Open Access iconOpen Access

ARTICLE

HAR-MLP: A Hybrid Attention–Residual MLP Architecture with Handcrafted Features for Software Bug Prediction

Isil Karabey Aksakalli*

Department of Computer Engineering, Erzurum Technical University, Erzurum, Türkiye

* Corresponding Author: Isil Karabey Aksakalli. Email: email

Computers, Materials & Continua 2026, 89(1), 37 https://doi.org/10.32604/cmc.2026.083166

Abstract

Open-source platforms and issue tracking systems such as GitHub and Jira generate large volumes of issue reports and code changes, making effective bug identification a challenging task. This study investigates software bug prediction by integrating various feature extraction methods, including Word2Vec, TF-IDF, FastText, GloVe, and Doc2Vec, with several lightweight ML algorithms. Hybrid feature sets are further enhanced using Discrete Cosine Transform (DCT) and Discrete Wavelet Transform (DWT) and empirical results indicate that Word2Vec and Multi-Layer Perceptron (MLP) provide comparatively stronger performance. The study proposes a Hybrid Attention-Residual Multilayer Perceptron (HAR-MLP) model to automatically classify software issue reports as bugs and feature requests. The model is equipped with a feature set consisting of a combination of TF-IDF reweighted embedding averages derived from Word2Vec embedding vectors, mean-maximum-standard deviation pooling statistics, and DCT spectral coefficients. This feature fusion is then combined with context-sensitive representations obtained from a multi-headed self-attention mechanism and fed as input to the Residual MLP model as a classifier. While traditional MLP has direct forward connections between layers, Residual MLP reduces gradient decay and prevents information loss in deep layers by combining intermediate layer outputs with the input using the skip connection method. This structure increases the model’s learning capacity and provides higher accuracy, especially in hybrid structures where attention outputs and handcrafted features are processed together. Experimental results demonstrate that the HAR-MLP model achieves higher performance than traditional feature extraction and classification methods while remaining computationally competitive compared to pre-trained transformer-based approaches. Moreover, cross-platform evaluation on three independent Jira issue datasets further demonstrates the generalizability of the proposed architecture, achieving macro-F1 scores ranging from 86.61% to 97.48%. The source code of the proposed HAR-MLP model can be accessed via the following link: https://github.com/isilkarabeyaksakalli/HAR-MLP.

Keywords

Software bug prediction; feature extraction; transformers; residual MLP; hybrid attention mechanism

Cite This Article

APA Style
Aksakalli, I.K. (2026). HAR-MLP: A Hybrid Attention–Residual MLP Architecture with Handcrafted Features for Software Bug Prediction. Computers, Materials & Continua, 89(1), 37. https://doi.org/10.32604/cmc.2026.083166
Vancouver Style
Aksakalli IK. HAR-MLP: A Hybrid Attention–Residual MLP Architecture with Handcrafted Features for Software Bug Prediction. Comput Mater Contin. 2026;89(1):37. https://doi.org/10.32604/cmc.2026.083166
IEEE Style
I. K. Aksakalli, “HAR-MLP: A Hybrid Attention–Residual MLP Architecture with Handcrafted Features for Software Bug Prediction,” Comput. Mater. Contin., vol. 89, no. 1, pp. 37, 2026. https://doi.org/10.32604/cmc.2026.083166



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 238

    View

  • 46

    Download

  • 0

    Like

Share Link