Lasse Hansen
1 previous affiliation
- Aarhus University2021–2024
- PhD student · 2021–2024
Research Overview
Lasse Hansen focuses on the application of machine learning and natural language processing (NLP) to improve patient outcomes in psychiatry. His work centers on representation learning from multi-modal data, specifically electronic health records (EHR) and speech recordings, to develop predictive models for neuropsychiatric conditions. Based at the Lübeck Academy of Music and previously at Aarhus University, Hansen emphasizes the development of open-source software and robust methodological frameworks to address the complexities of clinical time-series data and the temporal evolution of medical documentation.
Research Trajectory
Hansen’s research trajectory began with a focus on computational linguistics and sentiment analysis. In 2017, he examined the objective assessment of political bias in Danish media, utilizing sentiment dictionaries to quantify ideological leanings in newspaper articles. This early work established a foundation in Danish-language NLP, which would later inform his contributions to the Danish foundation models project and the release of state-of-the-art speech models for the Danish language.
By 2021, Hansen’s focus shifted toward clinical medicine and the systematic use of EHR data for precision psychiatry. A central component of this transition was his leadership in establishing the PSYCOP project. This initiative sought to leverage large-scale clinical data to advance the field of psychiatric outcome prediction, moving beyond small-scale studies toward representative, population-level datasets. During this period, Hansen identified a critical methodological gap: the lack of understanding regarding how clinical documentation changes over time. He addressed this by investigating the lexical stability of psychiatric notes over a ten-year period, demonstrating that the underlying structure of clinical documentation is sufficiently consistent to support the long-term deployment of NLP models, despite external shocks such as administrative changes or the COVID-19 pandemic.
In 2023 and 2024, Hansen expanded his methodological toolkit to include speech-based biomarkers. He addressed the limitations of binary classification models—which typically compare a single clinical group to healthy controls—by developing multiclass models capable of differentiating between multiple neuropsychiatric conditions, such as major depressive disorder, schizophrenia, and autism spectrum disorder. This work integrated both conventional machine learning and advanced Transformer architectures, highlighting the diagnostic potential of automated voice and text analysis in complex clinical settings.
Current Directions
Hansen’s current research is increasingly focused on the intersection of clinical AI and The Mechanics of Bias Amplification in Language Models. As large language models (LLMs) are integrated into healthcare decision-making, Hansen has contributed to identifying the "seeds of stereotypes" within massive web-based training corpora. This work reveals how racial and gender associations with diseases in training data can lead to Algorithmic Bias Amplification in Neural Networks, potentially compromising the goal of Equitable Clinical AI through Demographic Debiasing.
Another significant area of current focus is the Cross-Institutional Portability of Clinical Language Models. Hansen’s work on diagnostic progression—specifically predicting the transition from minor mental health issues to schizophrenia or bipolar disorder—emphasizes the need for models that generalize across different clinical environments. His findings suggest that while schizophrenia is notably predictable from routine EHR data, bipolar disorder remains significantly more challenging to forecast, indicating a need for more nuanced feature engineering and perhaps different data modalities.
To support the broader research community, Hansen has prioritized the release of open-source Python packages. These tools address specific technical hurdles in the clinical ML pipeline, such as the need for Mitigating Temporal Data Leakage in Financial Forecasting and other time-series domains. By providing standardized frameworks for text metric extraction and time-series flattening, Hansen aims to improve the reproducibility and efficiency of healthcare-oriented machine learning research.
Representative Work
The PSYchiatric clinical outcome prediction (PSYCOP) cohort: leveraging the potential of electronic health records in the treatment of mental disorders As the lead author, Hansen describes the establishment of the PSYCOP cohort, a large-scale dataset designed for precision psychiatry. The paper outlines the infrastructure necessary to apply state-of-the-art machine learning to EHR data, setting the stage for subsequent studies on patient outcomes and diagnostic transitions.
Lexical Stability of Psychiatric Clinical Notes from Electronic Health Records over a Decade In this first-author study, Hansen analyzes 14.8 million psychiatric notes to test the stability of clinical language over ten years. The research provides empirical evidence that the lexical and syntactic structures of these notes remain stable enough to support the long-term use of NLP models, a critical finding for the practical deployment of AI in healthcare.
Automated voice- and text-based classification of neuropsychiatric conditions in a multidiagnostic setting Hansen led this investigation into speech and text biomarkers, moving beyond binary classification to a multiclass approach. By comparing patients with depression, schizophrenia, and autism, the study evaluates the performance of both traditional ML pipelines and Transformer models, providing a more realistic assessment of how these tools might perform in a clinical diagnostic environment.
TextDescriptives: A Python package for calculating a large variety of metrics from text As the primary developer of this modular Python library, Hansen contributed a tool that simplifies the extraction of document-level metrics, including readability scores and linguistic measures. Built on the spaCy framework, the package is designed to enhance the reproducibility of NLP research by unifying disparate metrics into a single, tested pipeline.
timeseriesflattener: A Python package for summarizing features from (medical) time series Serving as the senior author, Hansen oversaw the development of this package, which addresses the challenge of irregularly sampled time-series data in EHRs. The tool provides a systematic method for flattening complex temporal data into feature vectors suitable for machine learning models like XGBoost, directly addressing the problem of temporal data leakage.
Predicting Diagnostic Progression to Schizophrenia or Bipolar Disorder via Machine Learning In this first-author publication in JAMA, Hansen demonstrates the feasibility of predicting diagnostic transitions using routine clinical data. The study highlights the superior predictive power of clinical notes over structured data for schizophrenia and identifies the comparative difficulty of forecasting bipolar disorder, providing a critical window for early intervention.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake