Please use this identifier to cite or link to this item: http://dspace.dtu.ac.in:8080/jspui/handle/repository/23542
Title: ENSEMBLE LEARNING FOR SOFTWARE QUALITY ASSURANCE: FROM DEFECT PREDICTION TO HALLUCINATION DETECTION IN LLM-ASSISTED SOFTWARE DEVELOPMENT
Authors: RAJPOOT, AKASH
Malhotra, Ruchika (SUPERVISOR)
Keywords: ENSEMBLE LEARNING
SOFTWARE QUALITY ASSURANCE
DEFECT PREDICTION
HALLUCINATION DETECTION
LLMs
Issue Date: May-2026
Series/Report no.: TD-9413;
Abstract: Quality Assurance in Software Development(SQA)formsanimportantbuildingblockin software development through the integration of traditional defect prediction approaches and new problems of hallucination in artefacts created using Large Language Models (LLMs). This thesis proposes innovative approaches within two ensemble learning research works, which cover these two different areas. The first research work focuses on predicting the number of defects in software using the JDT dataset consisting of 997 Java classes and 57 object-oriented features. A systematic pipeline is developed involving log-transformation of the overdispersed defect target, correlation-based feature pruning (reducing 57 to 47 features), and hyperparameter optimisation via RandomizedSearchCV. Individually, XGBoost and LightGBM achieve 𝑅2 values of 0.886 and 0.876 respectively. A blended ensemble that averages their predictions attains MAE = 3.08, RMSE = 6.53, 𝑅2 = 0.904, substantially outperforming the classical Poisson regression baseline (𝑅2 = −0.001) and surpassing individual Random Forest (𝑅2 = 0.868). SHAP analysis identifies LDHH_fanIn, CvsEntropy, and weighted method count (wmc) as the dominant predictors of defect-prone modules. The second study introduces EMHD (Ensemble Meta-learning for Hallucination Detection), a three-layer black-box framework for detecting hallucinations in LLM generated software engineering artefacts. EMHD queries a heterogeneous ensemble of 𝐾 = 5LLMs, extracts a 43-dimensional cross-model disagreement feature vector spanning syntactic, semantic, structural, and confidence sub-spaces, and feeds these features into an XGBoost meta-classifier optimised by Optuna. Evaluated on the CodeHalu benchmark (250 tasks, 7,500 LLM outputs), EMHD-XGBoost achieves a mean F1 = 0.900±0.048 and AUROC = 0.971±0.020 under 5-fold stratified cross validation. Systematic ablation confirms that Layer 1 cross-model disagreement features alone achieve F1 = 0.929, while all four layers together maximise AUROC. All improvements over six baselines (including SelfCheckGPT, MetaQA, and AST Deterministic) are statistically significant (𝑝 < 0.001, McNemar’s test with Holm Bonferroni correction). Together, these two studies demonstrate that ensemble methods—whether blending gradient boosted trees for structured prediction or stacking meta-learners over disagreement features for hallucination detection—provide robust, state-of-the-art solutions for software quality assurance.
URI: http://dspace.dtu.ac.in:8080/jspui/handle/repository/23542
Appears in Collections:M.E./M.Tech. Computer Engineering

Files in This Item:
File Description SizeFormat 
AKASH RAJPOOT m.TECH.pdf2.87 MBAdobe PDFView/Open
AKASH RAJPOOT PLAG.pdf3.1 MBAdobe PDFView/Open


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.