From 6860d820ce3715b240720a96b5ba8fc20a13cbdf Mon Sep 17 00:00:00 2001 From: louis-19041904 Date: Tue, 14 Jul 2026 19:00:28 +0200 Subject: [PATCH] docs(analysis): move career stage analysis into career_stage/ and add README --- analysis/career_stage/README.md | 59 ++++++++++++++++++ .../career_stage_analysis.py | 0 .../career_stage_results.csv | 0 .../career_stage_sample.csv | 0 .../career_stage_visualization.py | 0 .../{ => career_stage}/openalex_client.py | 0 ...e_years_by_discipline_group_and_status.png | Bin .../plots/average_active_years_by_status.png | Bin ...er_span_by_discipline_group_and_status.png | Bin .../plots/average_career_span_by_status.png | Bin ...n_count_by_discipline_group_and_status.png | Bin .../average_publication_count_by_status.png | Bin ...publications_per_active_year_by_status.png | Bin ...publications_per_career_year_by_status.png | Bin ...years_since_last_publication_by_status.png | Bin ...e_years_by_discipline_group_and_status.png | Bin .../plots/boxplot_active_years_by_status.png | Bin ...er_span_by_discipline_group_and_status.png | Bin .../plots/boxplot_career_span_by_status.png | Bin ...n_count_by_discipline_group_and_status.png | Bin .../boxplot_publication_count_by_status.png | Bin .../plots/histogram_career_span.png | Bin .../plots/histogram_publication_count.png | Bin ...e_years_by_discipline_group_and_status.png | Bin .../plots/median_active_years_by_status.png | Bin ...er_span_by_discipline_group_and_status.png | Bin .../plots/median_career_span_by_status.png | Bin ...n_count_by_discipline_group_and_status.png | Bin .../median_publication_count_by_status.png | Bin ...e_years_vs_publication_count_by_status.png | Bin ..._publication_count_by_status_all_names.png | Bin ..._publication_count_by_discipline_group.png | Bin ...on_count_by_discipline_group_all_names.png | Bin ...er_span_vs_publication_count_by_status.png | Bin ..._publication_count_by_status_all_names.png | Bin ...s_publication_count_by_status_outliers.png | Bin ...publications_per_active_year_by_status.png | Bin ...ns_per_active_year_by_status_all_names.png | Bin .../summaries/summary_by_discipline_group.csv | 0 ...summary_by_discipline_group_and_status.csv | 0 .../summaries/summary_by_status.csv | 0 41 files changed, 59 insertions(+) create mode 100644 analysis/career_stage/README.md rename analysis/{ => career_stage}/career_stage_analysis.py (100%) rename analysis/{ => career_stage}/career_stage_results.csv (100%) rename analysis/{ => career_stage}/career_stage_sample.csv (100%) rename analysis/{ => career_stage}/career_stage_visualization.py (100%) rename analysis/{ => career_stage}/openalex_client.py (100%) rename analysis/{ => career_stage}/plots/average_active_years_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/average_active_years_by_status.png (100%) rename analysis/{ => career_stage}/plots/average_career_span_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/average_career_span_by_status.png (100%) rename analysis/{ => career_stage}/plots/average_publication_count_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/average_publication_count_by_status.png (100%) rename analysis/{ => career_stage}/plots/average_publications_per_active_year_by_status.png (100%) rename analysis/{ => career_stage}/plots/average_publications_per_career_year_by_status.png (100%) rename analysis/{ => career_stage}/plots/average_years_since_last_publication_by_status.png (100%) rename analysis/{ => career_stage}/plots/boxplot_active_years_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/boxplot_active_years_by_status.png (100%) rename analysis/{ => career_stage}/plots/boxplot_career_span_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/boxplot_career_span_by_status.png (100%) rename analysis/{ => career_stage}/plots/boxplot_publication_count_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/boxplot_publication_count_by_status.png (100%) rename analysis/{ => career_stage}/plots/histogram_career_span.png (100%) rename analysis/{ => career_stage}/plots/histogram_publication_count.png (100%) rename analysis/{ => career_stage}/plots/median_active_years_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/median_active_years_by_status.png (100%) rename analysis/{ => career_stage}/plots/median_career_span_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/median_career_span_by_status.png (100%) rename analysis/{ => career_stage}/plots/median_publication_count_by_discipline_group_and_status.png (100%) rename analysis/{ => career_stage}/plots/median_publication_count_by_status.png (100%) rename analysis/{ => career_stage}/plots/scatter_active_years_vs_publication_count_by_status.png (100%) rename analysis/{ => career_stage}/plots/scatter_active_years_vs_publication_count_by_status_all_names.png (100%) rename analysis/{ => career_stage}/plots/scatter_career_span_vs_publication_count_by_discipline_group.png (100%) rename analysis/{ => career_stage}/plots/scatter_career_span_vs_publication_count_by_discipline_group_all_names.png (100%) rename analysis/{ => career_stage}/plots/scatter_career_span_vs_publication_count_by_status.png (100%) rename analysis/{ => career_stage}/plots/scatter_career_span_vs_publication_count_by_status_all_names.png (100%) rename analysis/{ => career_stage}/plots/scatter_career_span_vs_publication_count_by_status_outliers.png (100%) rename analysis/{ => career_stage}/plots/scatter_career_span_vs_publications_per_active_year_by_status.png (100%) rename analysis/{ => career_stage}/plots/scatter_career_span_vs_publications_per_active_year_by_status_all_names.png (100%) rename analysis/{ => career_stage}/summaries/summary_by_discipline_group.csv (100%) rename analysis/{ => career_stage}/summaries/summary_by_discipline_group_and_status.csv (100%) rename analysis/{ => career_stage}/summaries/summary_by_status.csv (100%) diff --git a/analysis/career_stage/README.md b/analysis/career_stage/README.md new file mode 100644 index 00000000..71fb60be --- /dev/null +++ b/analysis/career_stage/README.md @@ -0,0 +1,59 @@ +# Career-Stage-Analyse + +Diese Analyse untersucht, wie sich der Karrierestatus von Forschenden (Professor vs. +Researcher) aus deren Publikationshistorie in OpenAlex ableiten lässt. Das Ergebnis ist die +Grundlage für die Career-Stage-Klassifikation im SmartGuide-Backend. + +## Vorgehen + +- **Stichprobe:** 60 Forschende der UDE mit manuell recherchiertem, bekanntem Status + (31 Professor, 29 Researcher inkl. Doctoral Researcher) aus fünf Disziplingruppen: + Biology, Computer Science, Engineering, Medicine, Sociology + ([career_stage_sample.csv](career_stage_sample.csv)). +- **Datenerhebung:** Für jede Person wurden alle Werke über die OpenAlex-API geladen + ([openalex_client.py](openalex_client.py)) und daraus pro Person Metriken berechnet + ([career_stage_analysis.py](career_stage_analysis.py) → + [career_stage_results.csv](career_stage_results.csv)): + - `career_span`: Jahre vom ersten bis zum letzten Publikationsjahr (inklusiv) + - `active_years`: Anzahl **unterschiedlicher** Jahre mit mindestens einer Publikation + - `publication_count`, `publications_per_active_year`, `publications_per_career_year`, + `years_since_last_publication` +- **Auswertung:** Vergleich der Metriken zwischen den bekannten Status-Gruppen, auch je + Disziplingruppe ([career_stage_visualization.py](career_stage_visualization.py) → + [plots/](plots/), [summaries/](summaries/)). + +## Ergebnisse + +Die Gruppen trennen sich deutlich (Median Professor vs. Researcher): + +| Metrik | Professor | Researcher | +| ----------------------------- | --------- | ---------- | +| Aktive Publikationsjahre | 28 | 5 | +| Career Span (Jahre) | 31 | 7 | +| Publikationen | 224 | 11 | +| Publikationen je aktivem Jahr | 7,6 | 1,8 | + +Wichtigste Erkenntnis: **`career_span` ist unzuverlässig.** Fehlerhafte Autorenzuordnungen in +OpenAlex führen zu unplausibel frühen Erstpublikationen (z. B. 1893/1906 bei aktiven +Professor:innen) und blähen die Spannweite massiv auf (Mittelwert 45 Jahre bei Median 31). +**`active_years` ist dagegen robust:** Ein einzelnes falsch zugeordnetes altes Werk erhöht die +Spannweite um Jahrzehnte, die aktiven Jahre aber nur um 1. Die Trennung zwischen den Gruppen +ist bei `active_years` zudem über alle Disziplingruppen hinweg konsistent. + +## Fazit: finale Entscheidungskriterien im Projekt + +Die Career Stage wird im Backend ausschließlich über die **aktiven Publikationsjahre** +(`active_years`) bestimmt (siehe `_classify_career_stage` in +`service/src/main/inse/persons/logic.py`): + +| Aktive Jahre | Career Stage | +| ------------ | ------------ | +| 0 | unknown | +| 1–4 | Early | +| 5–9 | Emerging | +| 10–14 | Established | +| ≥ 15 | Senior | + +Zusätzlich wird `has_suspicious_publication_years` gesetzt (Erstpublikation vor 1970 oder +Career Span > 60 Jahre), um Personen mit vermutlich fehlerhafter OpenAlex-Zuordnung zu +kennzeichnen. diff --git a/analysis/career_stage_analysis.py b/analysis/career_stage/career_stage_analysis.py similarity index 100% rename from analysis/career_stage_analysis.py rename to analysis/career_stage/career_stage_analysis.py diff --git a/analysis/career_stage_results.csv b/analysis/career_stage/career_stage_results.csv similarity index 100% rename from analysis/career_stage_results.csv rename to analysis/career_stage/career_stage_results.csv diff --git a/analysis/career_stage_sample.csv b/analysis/career_stage/career_stage_sample.csv similarity index 100% rename from analysis/career_stage_sample.csv rename to analysis/career_stage/career_stage_sample.csv diff --git a/analysis/career_stage_visualization.py b/analysis/career_stage/career_stage_visualization.py similarity index 100% rename from analysis/career_stage_visualization.py rename to analysis/career_stage/career_stage_visualization.py diff --git a/analysis/openalex_client.py b/analysis/career_stage/openalex_client.py similarity index 100% rename from analysis/openalex_client.py rename to analysis/career_stage/openalex_client.py diff --git a/analysis/plots/average_active_years_by_discipline_group_and_status.png b/analysis/career_stage/plots/average_active_years_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/average_active_years_by_discipline_group_and_status.png rename to analysis/career_stage/plots/average_active_years_by_discipline_group_and_status.png diff --git a/analysis/plots/average_active_years_by_status.png b/analysis/career_stage/plots/average_active_years_by_status.png similarity index 100% rename from analysis/plots/average_active_years_by_status.png rename to analysis/career_stage/plots/average_active_years_by_status.png diff --git a/analysis/plots/average_career_span_by_discipline_group_and_status.png b/analysis/career_stage/plots/average_career_span_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/average_career_span_by_discipline_group_and_status.png rename to analysis/career_stage/plots/average_career_span_by_discipline_group_and_status.png diff --git a/analysis/plots/average_career_span_by_status.png b/analysis/career_stage/plots/average_career_span_by_status.png similarity index 100% rename from analysis/plots/average_career_span_by_status.png rename to analysis/career_stage/plots/average_career_span_by_status.png diff --git a/analysis/plots/average_publication_count_by_discipline_group_and_status.png b/analysis/career_stage/plots/average_publication_count_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/average_publication_count_by_discipline_group_and_status.png rename to analysis/career_stage/plots/average_publication_count_by_discipline_group_and_status.png diff --git a/analysis/plots/average_publication_count_by_status.png b/analysis/career_stage/plots/average_publication_count_by_status.png similarity index 100% rename from analysis/plots/average_publication_count_by_status.png rename to analysis/career_stage/plots/average_publication_count_by_status.png diff --git a/analysis/plots/average_publications_per_active_year_by_status.png b/analysis/career_stage/plots/average_publications_per_active_year_by_status.png similarity index 100% rename from analysis/plots/average_publications_per_active_year_by_status.png rename to analysis/career_stage/plots/average_publications_per_active_year_by_status.png diff --git a/analysis/plots/average_publications_per_career_year_by_status.png b/analysis/career_stage/plots/average_publications_per_career_year_by_status.png similarity index 100% rename from analysis/plots/average_publications_per_career_year_by_status.png rename to analysis/career_stage/plots/average_publications_per_career_year_by_status.png diff --git a/analysis/plots/average_years_since_last_publication_by_status.png b/analysis/career_stage/plots/average_years_since_last_publication_by_status.png similarity index 100% rename from analysis/plots/average_years_since_last_publication_by_status.png rename to analysis/career_stage/plots/average_years_since_last_publication_by_status.png diff --git a/analysis/plots/boxplot_active_years_by_discipline_group_and_status.png b/analysis/career_stage/plots/boxplot_active_years_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/boxplot_active_years_by_discipline_group_and_status.png rename to analysis/career_stage/plots/boxplot_active_years_by_discipline_group_and_status.png diff --git a/analysis/plots/boxplot_active_years_by_status.png b/analysis/career_stage/plots/boxplot_active_years_by_status.png similarity index 100% rename from analysis/plots/boxplot_active_years_by_status.png rename to analysis/career_stage/plots/boxplot_active_years_by_status.png diff --git a/analysis/plots/boxplot_career_span_by_discipline_group_and_status.png b/analysis/career_stage/plots/boxplot_career_span_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/boxplot_career_span_by_discipline_group_and_status.png rename to analysis/career_stage/plots/boxplot_career_span_by_discipline_group_and_status.png diff --git a/analysis/plots/boxplot_career_span_by_status.png b/analysis/career_stage/plots/boxplot_career_span_by_status.png similarity index 100% rename from analysis/plots/boxplot_career_span_by_status.png rename to analysis/career_stage/plots/boxplot_career_span_by_status.png diff --git a/analysis/plots/boxplot_publication_count_by_discipline_group_and_status.png b/analysis/career_stage/plots/boxplot_publication_count_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/boxplot_publication_count_by_discipline_group_and_status.png rename to analysis/career_stage/plots/boxplot_publication_count_by_discipline_group_and_status.png diff --git a/analysis/plots/boxplot_publication_count_by_status.png b/analysis/career_stage/plots/boxplot_publication_count_by_status.png similarity index 100% rename from analysis/plots/boxplot_publication_count_by_status.png rename to analysis/career_stage/plots/boxplot_publication_count_by_status.png diff --git a/analysis/plots/histogram_career_span.png b/analysis/career_stage/plots/histogram_career_span.png similarity index 100% rename from analysis/plots/histogram_career_span.png rename to analysis/career_stage/plots/histogram_career_span.png diff --git a/analysis/plots/histogram_publication_count.png b/analysis/career_stage/plots/histogram_publication_count.png similarity index 100% rename from analysis/plots/histogram_publication_count.png rename to analysis/career_stage/plots/histogram_publication_count.png diff --git a/analysis/plots/median_active_years_by_discipline_group_and_status.png b/analysis/career_stage/plots/median_active_years_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/median_active_years_by_discipline_group_and_status.png rename to analysis/career_stage/plots/median_active_years_by_discipline_group_and_status.png diff --git a/analysis/plots/median_active_years_by_status.png b/analysis/career_stage/plots/median_active_years_by_status.png similarity index 100% rename from analysis/plots/median_active_years_by_status.png rename to analysis/career_stage/plots/median_active_years_by_status.png diff --git a/analysis/plots/median_career_span_by_discipline_group_and_status.png b/analysis/career_stage/plots/median_career_span_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/median_career_span_by_discipline_group_and_status.png rename to analysis/career_stage/plots/median_career_span_by_discipline_group_and_status.png diff --git a/analysis/plots/median_career_span_by_status.png b/analysis/career_stage/plots/median_career_span_by_status.png similarity index 100% rename from analysis/plots/median_career_span_by_status.png rename to analysis/career_stage/plots/median_career_span_by_status.png diff --git a/analysis/plots/median_publication_count_by_discipline_group_and_status.png b/analysis/career_stage/plots/median_publication_count_by_discipline_group_and_status.png similarity index 100% rename from analysis/plots/median_publication_count_by_discipline_group_and_status.png rename to analysis/career_stage/plots/median_publication_count_by_discipline_group_and_status.png diff --git a/analysis/plots/median_publication_count_by_status.png b/analysis/career_stage/plots/median_publication_count_by_status.png similarity index 100% rename from analysis/plots/median_publication_count_by_status.png rename to analysis/career_stage/plots/median_publication_count_by_status.png diff --git a/analysis/plots/scatter_active_years_vs_publication_count_by_status.png b/analysis/career_stage/plots/scatter_active_years_vs_publication_count_by_status.png similarity index 100% rename from analysis/plots/scatter_active_years_vs_publication_count_by_status.png rename to analysis/career_stage/plots/scatter_active_years_vs_publication_count_by_status.png diff --git a/analysis/plots/scatter_active_years_vs_publication_count_by_status_all_names.png b/analysis/career_stage/plots/scatter_active_years_vs_publication_count_by_status_all_names.png similarity index 100% rename from analysis/plots/scatter_active_years_vs_publication_count_by_status_all_names.png rename to analysis/career_stage/plots/scatter_active_years_vs_publication_count_by_status_all_names.png diff --git a/analysis/plots/scatter_career_span_vs_publication_count_by_discipline_group.png b/analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_discipline_group.png similarity index 100% rename from analysis/plots/scatter_career_span_vs_publication_count_by_discipline_group.png rename to analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_discipline_group.png diff --git a/analysis/plots/scatter_career_span_vs_publication_count_by_discipline_group_all_names.png b/analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_discipline_group_all_names.png similarity index 100% rename from analysis/plots/scatter_career_span_vs_publication_count_by_discipline_group_all_names.png rename to analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_discipline_group_all_names.png diff --git a/analysis/plots/scatter_career_span_vs_publication_count_by_status.png b/analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_status.png similarity index 100% rename from analysis/plots/scatter_career_span_vs_publication_count_by_status.png rename to analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_status.png diff --git a/analysis/plots/scatter_career_span_vs_publication_count_by_status_all_names.png b/analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_status_all_names.png similarity index 100% rename from analysis/plots/scatter_career_span_vs_publication_count_by_status_all_names.png rename to analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_status_all_names.png diff --git a/analysis/plots/scatter_career_span_vs_publication_count_by_status_outliers.png b/analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_status_outliers.png similarity index 100% rename from analysis/plots/scatter_career_span_vs_publication_count_by_status_outliers.png rename to analysis/career_stage/plots/scatter_career_span_vs_publication_count_by_status_outliers.png diff --git a/analysis/plots/scatter_career_span_vs_publications_per_active_year_by_status.png b/analysis/career_stage/plots/scatter_career_span_vs_publications_per_active_year_by_status.png similarity index 100% rename from analysis/plots/scatter_career_span_vs_publications_per_active_year_by_status.png rename to analysis/career_stage/plots/scatter_career_span_vs_publications_per_active_year_by_status.png diff --git a/analysis/plots/scatter_career_span_vs_publications_per_active_year_by_status_all_names.png b/analysis/career_stage/plots/scatter_career_span_vs_publications_per_active_year_by_status_all_names.png similarity index 100% rename from analysis/plots/scatter_career_span_vs_publications_per_active_year_by_status_all_names.png rename to analysis/career_stage/plots/scatter_career_span_vs_publications_per_active_year_by_status_all_names.png diff --git a/analysis/summaries/summary_by_discipline_group.csv b/analysis/career_stage/summaries/summary_by_discipline_group.csv similarity index 100% rename from analysis/summaries/summary_by_discipline_group.csv rename to analysis/career_stage/summaries/summary_by_discipline_group.csv diff --git a/analysis/summaries/summary_by_discipline_group_and_status.csv b/analysis/career_stage/summaries/summary_by_discipline_group_and_status.csv similarity index 100% rename from analysis/summaries/summary_by_discipline_group_and_status.csv rename to analysis/career_stage/summaries/summary_by_discipline_group_and_status.csv diff --git a/analysis/summaries/summary_by_status.csv b/analysis/career_stage/summaries/summary_by_status.csv similarity index 100% rename from analysis/summaries/summary_by_status.csv rename to analysis/career_stage/summaries/summary_by_status.csv