Skip to content

kmlstyle/ADHD-DNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Predicting childhood and adolescent attention-deficit/hyperactivity disorder onset: a nationwide deep learning approach

Python code for the paper: Garcia-Argibay, M., Zhang-James, Y., Cortese, S., Lichtenstein, P., Larsson, H., & Faraone, S. V. (2023). Predicting childhood and adolescent attention-deficit/hyperactivity disorder onset: a nationwide deep learning approach. Molecular Psychiatry, 28(3), 1232-1239. [Link to paper]

DNN.py contains the Python code for the Deep Neural Network (DNN).

ML.py contains the code for the different machine learning models & ensemble model.

model_weights\best.h5 includes the model weights. Use tf.keras.models.load_model() to load the weights. Note that the models expects an array with 22 features in the specified order (see Python code) and that features need to be scaled. After the model is loaded, use model.predict(x = scaled_features, batch_size=100000, verbose=0) to calculate the model predicted probabilities of having ADHD for each individual.

Requirements

Data availability

The Public Access to Information and Secrecy Act in Sweden prohibits us from making individual level data publicly available. Researchers who are interested in replicating our work can apply for individual level data at Statistics Sweden.

Citation

@article{garcia2023predicting,
  title={Predicting childhood and adolescent attention-deficit/hyperactivity disorder onset: a nationwide deep learning approach},
  author={Garcia-Argibay, Miguel and Zhang-James, Yanli and Cortese, Samuele and Lichtenstein, Paul and Larsson, Henrik and Faraone, Stephen V},
  journal={Molecular Psychiatry},
  volume={28},
  number={3},
  pages={1232--1239},
  year={2023},
  publisher={Nature Publishing Group UK London}
}