IDEAS home Printed from https://ideas.repec.org/a/jbh/ijsrcs/v12y2026i2id1962.html

Code Complexity Patterns for Mental Health Risk Prediction by Using Artificial Intelligence and Machine Learning

Author

Listed:
  • Ruchi Singh
  • Ananya Dwivedi
  • Aryan Singh
  • Farheen Siddiqui
  • Yusuf Perwej

Abstract

Software development is a cognitively intensive profession where tight deadlines, continuous integration cycles, and evolving requirements consistently generate stress, burnout, and psychological deterioration. Traditional mental health assessment tools — based on self-reporting and periodic clinical instruments are intrusive, retrospective, and fundamentally ill-suited to the continuous, large-scale monitoring requirements of modern software organisations. This paper proposes a non-intrusive, data-driven framework for predicting mental health risk in software developers by analysing code complexity patterns extracted passively from version control systems. The core hypothesis is that cognitive overload manifests measurably in coding behaviour: elevated cyclomatic complexity, irregular commit rhythms, increased code churn, and reduced modularity all correlate significantly with validated psychological stress indicators. A supervised machine learning pipeline is developed across structural, cognitive, and behavioural feature dimensions encompassing nine distinct metrics. The study recruited 120 software developers over a 12-week longitudinal period. Results show that a Deep Neural Network achieves 91.3% classification accuracy across three risk categories (Low, Moderate, High), with an AUC-ROC of 0.938.

Suggested Citation

  • Ruchi Singh & Ananya Dwivedi & Aryan Singh & Farheen Siddiqui & Yusuf Perwej, 2026. "Code Complexity Patterns for Mental Health Risk Prediction by Using Artificial Intelligence and Machine Learning," International Journal of Scientific Research in Computer Science, Engineering and Information Technology, International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 12(2), pages 570-600, April.
  • Handle: RePEc:jbh:ijsrcs:v12:y2026:i2:id:1962
    DOI: 10.32628/CSEIT26121386
    Note: Article URL: https://ijsrcseit.com/home/article/view/CSEIT26121386
    as

    Download full text from publisher

    File URL: https://ijsrcseit.com/home/article/view/CSEIT26121386
    File Function: Article URL
    Download Restriction: no

    File URL: https://ijsrcseit.com/home/article/download/CSEIT26121386/CSEIT26121386
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32628/CSEIT26121386?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jbh:ijsrcs:v12:y2026:i2:id:1962. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Pankaj Sharma (USA) (email available below). General contact details of provider: https://ijsrcseit.com/home .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.