David Nabergoj
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
David Nabergoj has a total of 8 co-authors. Here are the top co-authors by number of shared publications:
- Florian Beutler
Institute for Astronomy, University of Edinburgh, Royal Observatory
2 shared publications - John A. Peacock
Institute for Astronomy, University of Edinburgh, Royal Observatory , Blackford Hill, Edinburgh EH9 3HJ
2 shared publications - Jure Demšar
Faculty of Computer and Information Science, University of Ljubljana, Ljubljana, Slovenia
2 shared publications - Minas Karamanis
Berkeley Center for Cosmological Physics University of California 94720 Berkeley CA USA
2 shared publications - Muhammad Rizwan
Department of Information Technology University of Engineering and Information Technology Rahim Yar Khan Pakistan
2 shared publications - Uroš Seljak
Physics Division, Lawrence Berkeley National Laboratory, Berkeley, CA, USA
2 shared publications
Latest Publications
- Open Access
- 7 July 2026
- Published by JMIR Publications Inc. in JMIR Preprints
Population-Level Profiling of DSM-5 Depressive Symptoms Among Self-Reported ADHD and ASD Users on Twitter: An Exploratory Study Using Advanced NLP and Statistical Analysis (Preprint)
BACKGROUND Depression frequently co-occurs with attention-deficit/hyperactivity disorder (ADHD) and autism spectrum disorder (ASD). However, population-level differences in how depressive symptoms are expressed between these groups remains underexplored. OBJECTIVE This study examined whether social media users with ADHD and ASD differ in how they express Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition (DSM-5) depressive symptoms in their tweets, focusing on the relative prominence of the nine symptoms at population level and testing whether observed differences persist across varying levels of depressive-content filtering. METHODS We analysed 1,282,437 tweets from 792 users (622 ADHD; 170 ASD) from a diagnosis-disclosure Twitter dataset. Tweets were pre-filtered for depressive relevance using zero-shot NLI, then classified into nine DSM-5 depressive symptoms using MentalRoBERTa fine-tuned on ReDSM5 (an expert annotated dataset). Nine-symptom profiles were created and mean-centered per user. We applied L1-penalised logistic regression with 5-fold cross-validation to distinguish between ADHD and ASD users, complemented by Pearson correlations to assess symptom co-occurrence. We tested the robustness of our approach across five filtering thresholds (0.45–0.65) using 1,000-resample bootstrapping and cross-threshold sign consistency. RESULTS For multi-label depression symptom classification, MentalRoBERTa achieved macro-F1 of 0.901 on a held-out set (>= 0.85 F1 on 8/9 symptoms), substantially outperforming the original ReDSM5 benchmark. ADHD vs ASD classification using fitted logistic regression yielded stable but modest performance (cross-validated ROC-AUC 0.645–0.653 across thresholds). Coefficient analysis revealed that cognitive issues, sleep issues, appetite change, and fatigue consistently leaned toward ADHD, while suicidal ideation and anhedonia consistently leaned toward ASD (bootstrap selection >= 0.90 across all thresholds). Psychomotor disturbance showed the same ASD-leaning directional effect with slightly lower stability. Correlation analysis revealed a largely shared symptom co-occurrence structure between groups (17 of 36 pairs individually bootstrap-robust in both groups and in the same direction); no pair met our pre-specified criterion for a robust disorder-specific difference CONCLUSIONS Population-level differences in depression-related language between self-reporting social media users with ADHD and ASD were consistently observed across multiple analytic thresholds, indicating distinct patterns of depressive symptom expression. These differences reflect population-level reproducibility rather than clinical validity and should be interpreted as exploratory rather than as evidence of differing depressive phenomenology at the individual level.
- 7 July 2026
- Published by JMIR Publications Inc. in JMIR Preprints
Open AccessPopulation-Level Profiling of DSM-5 Depressive Symptoms Among Self-Reported ADHD and ASD Users on Twitter: An Exploratory Study Using Advanced NLP and Statistical Analysis (Preprint)
BACKGROUND Depression frequently co-occurs with attention-deficit/hyperactivity disorder (ADHD) and autism spectrum disorder (ASD). However, population-level differences in how depressive symptoms are expressed between these groups remains underexplored. OBJECTIVE This study examined whether social media users with ADHD and ASD differ in how they express Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition (DSM-5) depressive symptoms in their tweets, focusing on the relative prominence of the nine symptoms at population level and testing whether observed differences persist across varying levels of depressive-content filtering. METHODS We analysed 1,282,437 tweets from 792 users (622 ADHD; 170 ASD) from a diagnosis-disclosure Twitter dataset. Tweets were pre-filtered for depressive relevance using zero-shot NLI, then classified into nine DSM-5 depressive symptoms using MentalRoBERTa fine-tuned on ReDSM5 (an expert annotated dataset). Nine-symptom profiles were created and mean-centered per user. We applied L1-penalised logistic regression with 5-fold cross-validation to distinguish between ADHD and ASD users, complemented by Pearson correlations to assess symptom co-occurrence. We tested the robustness of our approach across five filtering thresholds (0.45–0.65) using 1,000-resample bootstrapping and cross-threshold sign consistency. RESULTS For multi-label depression symptom classification, MentalRoBERTa achieved macro-F1 of 0.901 on a held-out set (>= 0.85 F1 on 8/9 symptoms), substantially outperforming the original ReDSM5 benchmark. ADHD vs ASD classification using fitted logistic regression yielded stable but modest performance (cross-validated ROC-AUC 0.645–0.653 across thresholds). Coefficient analysis revealed that cognitive issues, sleep issues, appetite change, and fatigue consistently leaned toward ADHD, while suicidal ideation and anhedonia consistently leaned toward ASD (bootstrap selection >= 0.90 across all thresholds). Psychomotor disturbance showed the same ASD-leaning directional effect with slightly lower stability. Correlation analysis revealed a largely shared symptom co-occurrence structure between groups (17 of 36 pairs individually bootstrap-robust in both groups and in the same direction); no pair met our pre-specified criterion for a robust disorder-specific difference CONCLUSIONS Population-level differences in depression-related language between self-reporting social media users with ADHD and ASD were consistently observed across multiple analytic thresholds, indicating distinct patterns of depressive symptom expression. These differences reflect population-level reproducibility rather than clinical validity and should be interpreted as exploratory rather than as evidence of differing depressive phenomenology at the individual level.
- 1 January 2026
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Visualization and Computer Graphics
- Vol. 32 (9) , 1-15
A General Approach to Visualizing Uncertainty in Statistical Graphics
We present a general approach to visualizing uncertainty in static 2-D statistical graphics. If we treat a visualization as a function of its underlying quantities, uncertainty in those quantities induces a distribution over images. We show how to aggregate these images into a single visualization that represents the uncertainty. The approach can be viewed as a generalization of sample-based approaches that use overlay. Notably, standard representations, such as confidence intervals and bands, emerge with their usual coverage guarantees without being explicitly quantified or visualized. As a proof of concept, we implement our approach in the IID setting using resampling, provided as an open-source Python library. Because the approach operates directly on images, the user needs only to supply the data and the code for visualizing the quantities of interest without uncertainty. Through several examples, we show how both familiar and novel forms of uncertainty visualization can be created. The implementation is not only a practical validation of the underlying theory but also an immediately usable tool that can complement existing uncertainty-visualization libraries.
- 1 January 2026
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Visualization and Computer Graphics
- Vol. 32 (9) , 1-15
A General Approach to Visualizing Uncertainty in Statistical Graphics
We present a general approach to visualizing uncertainty in static 2-D statistical graphics. If we treat a visualization as a function of its underlying quantities, uncertainty in those quantities induces a distribution over images. We show how to aggregate these images into a single visualization that represents the uncertainty. The approach can be viewed as a generalization of sample-based approaches that use overlay. Notably, standard representations, such as confidence intervals and bands, emerge with their usual coverage guarantees without being explicitly quantified or visualized. As a proof of concept, we implement our approach in the IID setting using resampling, provided as an open-source Python library. Because the approach operates directly on images, the user needs only to supply the data and the code for visualizing the quantities of interest without uncertainty. Through several examples, we show how both familiar and novel forms of uncertainty visualization can be created. The implementation is not only a practical validation of the underlying theory but also an immediately usable tool that can complement existing uncertainty-visualization libraries.
- Open Access
- 9 November 2022
- Published by The Open Journal in Journal of Open Source Software
- Vol. 7 (79) , 4634
pocoMC: A Python package for accelerated Bayesian inference in astronomy and cosmology
PocoMC is a Python package for accelerated Bayesian inference in astronomy and cosmology. The code is designed to sample efficiently from posterior distributions with non-trivial geometry, including strong multimodality and non-linearity. To this end, pocoMC relies on the Preconditioned Monte Carlo algorithm which utilises a Normalising Flow to decorrelate the parameters of the posterior. It facilitates both tasks of parameter estimation and model comparison, focusing especially on computationally expensive applications. It allows fitting arbitrary models defined as a log-likelihood function and a log-prior probability density function in Python. Compared to popular alternatives (e.g. nested sampling) pocoMC can speed up the sampling procedure by orders of magnitude, cutting down the computational cost substantially. Finally, parallelisation to computing clusters manifests linear scaling.
- 9 November 2022
- Published by The Open Journal in Journal of Open Source Software
- Vol. 7 (79) , 4634
Open AccesspocoMC: A Python package for accelerated Bayesian inference in astronomy and cosmology
PocoMC is a Python package for accelerated Bayesian inference in astronomy and cosmology. The code is designed to sample efficiently from posterior distributions with non-trivial geometry, including strong multimodality and non-linearity. To this end, pocoMC relies on the Preconditioned Monte Carlo algorithm which utilises a Normalising Flow to decorrelate the parameters of the posterior. It facilitates both tasks of parameter estimation and model comparison, focusing especially on computationally expensive applications. It allows fitting arbitrary models defined as a log-likelihood function and a log-prior probability density function in Python. Compared to popular alternatives (e.g. nested sampling) pocoMC can speed up the sampling procedure by orders of magnitude, cutting down the computational cost substantially. Finally, parallelisation to computing clusters manifests linear scaling.
- 17 August 2022
- Published by Oxford University Press (OUP) in Monthly Notices of the Royal Astronomical Society
- Vol. 516 (2) , 1644-1653
Accelerating astronomical and cosmological inference with preconditioned Monte Carlo
We introduce preconditioned Monte Carlo (PMC), a novel Monte Carlo method for Bayesian inference that facilitates efficient sampling of probability distributions with non-trivial geometry. PMC utilizes a Normalizing Flow (NF) in order to decorrelate the parameters of the distribution and then proceeds by sampling from the preconditioned target distribution using an adaptive Sequential Monte Carlo (SMC) scheme. The results produced by PMC include samples from the posterior distribution and an estimate of the model evidence that can be used for parameter inference and model comparison, respectively. The aforementioned framework has been thoroughly tested in a variety of challenging target distributions achieving state-of-the-art sampling performance. In the cases of primordial feature analysis and gravitational wave inference, PMC is approximately 50 and 25 times faster, respectively, than nested sampling (NS). We found that in higher dimensional applications, the acceleration is even greater. Finally, PMC is directly parallelisable, manifesting linear scaling up to thousands of CPUs.
- 17 August 2022
- Published by Oxford University Press (OUP) in Monthly Notices of the Royal Astronomical Society
- Vol. 516 (2) , 1644-1653
Accelerating astronomical and cosmological inference with preconditioned Monte Carlo
We introduce preconditioned Monte Carlo (PMC), a novel Monte Carlo method for Bayesian inference that facilitates efficient sampling of probability distributions with non-trivial geometry. PMC utilizes a Normalizing Flow (NF) in order to decorrelate the parameters of the distribution and then proceeds by sampling from the preconditioned target distribution using an adaptive Sequential Monte Carlo (SMC) scheme. The results produced by PMC include samples from the posterior distribution and an estimate of the model evidence that can be used for parameter inference and model comparison, respectively. The aforementioned framework has been thoroughly tested in a variety of challenging target distributions achieving state-of-the-art sampling performance. In the cases of primordial feature analysis and gravitational wave inference, PMC is approximately 50 and 25 times faster, respectively, than nested sampling (NS). We found that in higher dimensional applications, the acceleration is even greater. Finally, PMC is directly parallelisable, manifesting linear scaling up to thousands of CPUs.