OSCR

Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification.

Code ↔ Paper

1 match between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

One block of code here has a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 1 match · it ties a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Materials and proposed method › Methodology › Softmax classification ↔ train.py, the whole file · a weak match · score 0.50 · cross entropy loss, training, CNN, class, model · block oscr:b:9AGNZJ0C6SGRB-3 · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 45 lines · 998 B · other · 1 match

  1. import argparse
  2. import torch
  3. import torch.nn as nn
  4. from torch.optim import Adam
  5. from torch.utils.data import DataLoader
  6. from utils.seed import seed_everything
  7. from models.cnn_model import DemographicCNN
  8. from optimization.optabc import OptABC
  9. seed_everything(42)
  10. parser = argparse.ArgumentParser()
  11. parser.add_argument('--task', default='gender')
  12. args = parser.parse_args()
  13. if args.task == 'joint':
  14. num_classes = 8
  15. else:
  16. num_classes = 4
  17. optimizer_search = OptABC()
  18. best_params = optimizer_search.optimize()
  19. model = DemographicCNN(
  20. num_classes=num_classes,
  21. dropout=best_params['dropout']
  22. ).to('cuda' if torch.cuda.is_available() else 'cpu')
  23. criterion = nn.CrossEntropyLoss()
  24. optimizer = Adam(
  25. model.parameters(),
  26. lr=best_params['learning_rate']
  27. )
  28. print('Training initialized')
  29. print('Task:', args.task)
  30. print('Best Parameters:', best_params)
  31. for epoch in range(50):
  32. print(f'Epoch {epoch+1}/50 completed')
  33. torch.save(model.state_dict(), f'{args.task}_model.pth')

train.py at commit 7d08ab5, under other · at the source

Overview

Authors: Mohammed Aly1,2, Naif M Alotaibi3
ORCID iDs: Mohammed Aly
  1. Department of Artificial Intelligence, Faculty of Artificial Intelligence, Egyptian Russian University, Badr City, 11829 Egypt
  2. Department of Software Engineering, Faculty of Artificial Intelligence, Egyptian Russian University, Badr City, 11829 Egypt
  3. Department of Computer Science, College of Science and Humanities Dawadmi, Shaqra University, Shaqra, 11961 Saudi Arabia
Institutions: Egyptian Russian University (Egypt); Shaqra University (Saudi Arabia)
Journal: Scientific reports, volume 16, issue 1, article 19793
Dates: received 14 February 2026; accepted 16 June 2026; published online 29 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41598-026-58789-0 · PMID 42374059 · PMCID PMC13316114 · OpenAlex W7166570242
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), human (organism), autism (population)
Methods: Machine learning, fMRI & imaging
Keywords: Deep learning, Metaheuristic optimization, Artificial bee colony, Convolutional neural networks, Multi-class classification, Autism spectrum disorder, Computational biology and bioinformatics, Engineering, Health care, Mathematics and computing
MeSH: Autism Spectrum Disorder*, Deep Learning*, Neural Networks, Computer*, Algorithms, Classification Algorithms, Convolutional Neural Networks, Female, Humans, Magnetic Resonance Imaging, Male, Neuroimaging (* major topic)
Topic: Autism Spectrum Disorder Research (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 55 references in the paper

Abstract

Autism Spectrum Disorder (ASD) classification from neuroimaging data poses significant challenges due to high data heterogeneity and the complexity of learning robust representations across demographic subgroups. While recent deep learning approaches have shown promise, most existing studies rely on binary classification and limited model tuning strategies, overlooking demographic variability and the role of systematic optimization in model design. To address these challenges, this study formulates demographic-aware ASD classification as an optimization-driven learning problem and proposes a deep learning framework based on structural MRI (sMRI) data. The proposed framework employs three customized Convolutional Neural Network (CNN) models targeting gender-based classification, age-group-based classification, and joint age–gender classification using an octal class structure. Model architecture and training hyperparameters are automatically optimized using the Optimized Artificial Bee Colony (OptABC) algorithm, enabling task-specific adaptation without manual tuning. A dedicated preprocessing pipeline incorporating structural localization and controlled data augmentation is applied to improve robustness across heterogeneous imaging sites. All models are evaluated using five-fold cross-validation on the multi-site ABIDE dataset. Experimental results demonstrate that the proposed optimization-driven framework achieves accuracies of 84.25%, 88.07%, and 71.58% for gender-based, age-based, and joint age–gender classification tasks, respectively, yielding competitive performance relative to widely used pre-trained transfer learning models under comparable experimental settings. The results further indicate that age-aware modeling offers stronger discriminative capability than gender-based classification, while joint demographic stratification introduces increased task complexity due to finer class granularity. Overall, the findings highlight the effectiveness of metaheuristic optimization for enhancing deep learning models in complex, demographic-aware neuroimaging classification tasks. Further evaluation on independent datasets is planned to assess robustness across broader settings.

Supplementary Information: The online version contains supplementary material available at 10.1038/s41598-026-58789-0.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.

mohammedaly-tech/Demographic-Aware-ASD-Classification).An

License: none: the authors keep all their rights
State: the link is dead, verified on 27 September 2026
Evidence: found in the paper
Software Heritage: not archived
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link is dead
  • 27 September 2026: the link is dead

Zenodo 20419300

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (5 files), NumPy (3 files), OpenCV (2 files), pandas (1 file), SciPy (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
12 files

mohammedaly-tech/demographic-aware-asd-classification

License: other
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 7d08ab569afa48edd7f62ed02a1b1b2d781fd96b, 28 May 2026
Languages: Python (10)
Size: 16 files, 10 scripts
Software Heritage: not archived
Found in: the Zenodo archive record
Holds: README, license file, environment (requirements.txt)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: PyTorch (5 files), NumPy (3 files), OpenCV (2 files), pandas (1 file), SciPy (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
12 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 20 scripts, each with its path and the digest of its content;
  • 1 match between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability

The implementation code associated with this study, including preprocessing scripts, demographic-aware CNN architectures, OptABC optimization modules, statistical analysis scripts, and subject- and site-disjoint cross-validation splits, is publicly available at (https://github.com/mohammedaly-tech/Demographic-Aware-ASD-Classification).An archived reproducible version of the repository is additionally available through Zenodo: https://doi.org/10.5281/zenodo.20419300. The datasets analyzed during the current study are available in the Autism Brain Imaging Data Exchange (ABIDE) repository: https://fcon_1000.projects.nitrc.org/indi/abide/abide_I.html.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 2, 28 September 2026

  • Funding: added Science and Technology Development Fund

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 10 keywords, 11 MeSH terms, 36 references.

Cite

This paper

Aly, M., & Alotaibi, N. M. (2026). Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification. Scientific reports, 16(1), 19793. https://doi.org/10.1038/s41598-026-58789-0

BibTeX

@article{aly2026metaheuristic,
author = {Aly, Mohammed and Alotaibi, Naif M},
title = {{Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification}},
journal = {Scientific reports},
year = {2026},
month = jun,
volume = {16},
number = {1},
pages = {19793},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/s41598-026-58789-0},
url = {https://doi.org/10.1038/s41598-026-58789-0},
pmid = {42374059},
pmcid = {PMC13316114}
}

RIS

TY - JOUR
AU - Aly, Mohammed
AU - Alotaibi, Naif M
TI - Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/06/29
VL - 16
IS - 1
SP - 19793
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-026-58789-0
UR - https://doi.org/10.1038/s41598-026-58789-0
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-026-58789-0",
"type": "article-journal",
"title": "Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification",
"container-title": "Scientific reports",
"author": [
{
"family": "Aly",
"given": "Mohammed"
},
{
"family": "Alotaibi",
"given": "Naif M"
}
],
"container-title-short": "Sci Rep",
"volume": "16",
"issue": "1",
"page": "19793",
"DOI": "10.1038/s41598-026-58789-0",
"PMID": "42374059",
"PMCID": "PMC13316114",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-026-58789-0",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
29
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.3390/jimaging12070328 [code]
Contrastive and Transfer Learning for Aligned Multimodal Neuroimaging Classification of Autism Spectrum Disorder.
Journal: Journal of imaging
In common: PyTorch, pandas, SciPy, 1 other tool, autism, 3 references
[2] doi:10.1002/hbm.70190 [code]
A Framework for Comparison and Interpretation of Machine Learning Classifiers to Predict Autism on the ABIDE Dataset.
Journal: Human brain mapping
In common: OpenCV, PyTorch, pandas, 2 other tools, autism, structural MRI / diffusion, 2 references
[3] doi:10.3390/children12091127 [code]
The Expanding Frontier: The Role of Artificial Intelligence in Pediatric Neuroradiology.
Journal: Children (Basel, Switzerland)
In common: OpenCV, PyTorch, pandas, 2 other tools, structural MRI / diffusion, 2 references
[4] doi:10.1038/s41598-022-19356-5 [code]
Deep neural networks allow expert-level brain meningioma segmentation and present potential for improvement of clinical practice.
Journal: Scientific reports
In common: PyTorch, SciPy, NumPy, 3 references
[5] doi:10.1007/s10278-025-01399-5 [code]
MHNet: Multi-view High-Order Network for Diagnosing Neurodevelopmental Disorders Using Resting-State fMRI.
Journal: Journal of imaging informatics in medicine
In common: PyTorch, pandas, SciPy, 1 other tool, 2 references
[6] doi:10.3389/frai.2026.1771088 [code]
Few-shot deployment of pretrained MRI transformers in brain imaging tasks.
Journal: Frontiers in artificial intelligence
In common: OpenCV, PyTorch, pandas, 2 other tools, structural MRI / diffusion, 1 reference
[7] doi:10.1371/journal.pone.0330947 [code]
Pre-infection cerebral cortex structure predicts murine sepsis outcome.
Journal: PloS one
In common: OpenCV, PyTorch, pandas, 2 other tools, 1 reference
[8] doi:10.1162/netn_a_00412 [code]
Generative dynamical models for classification of rsfMRI data.
Journal: Network neuroscience (Cambridge, Mass.)
In common: PyTorch, pandas, SciPy, 1 other tool, 2 references
[9] doi:10.1038/s43856-025-01141-w [code]
Volumetric spline-based Kolmogorov-Arnold architectures surpass CNNs, vision transformers, and graph networks for Parkinson's disease detection.
Journal: Communications medicine
In common: PyTorch, pandas, SciPy, 1 other tool, 2 references
[10] doi:10.1038/s41467-022-28153-7 [code]
Automatic mapping of multiplexed social receptive fields by deep learning and GPU-accelerated 3D videography.
Journal: Nature communications
In common: OpenCV, PyTorch, pandas, 2 other tools, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41598-026-58789-0.svg)](https://openscicode.org/badge/doi/10.1038/s41598-026-58789-0)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41598-026-58789-0.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41598-026-58789-0
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41598-026-58789-0"><img src="https://openscicode.org/badge/doi/10.1038/s41598-026-58789-0.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.