FPA-Based Weighted Average Ensemble of Deep Learning Models for Lung Cancer Classification Using CT Scans

Sci Rep 2025 AI 7 Explanations View Original
Original Paper (PDF)

Unable to display PDF. Download it here or view on PMC.

Plain-English Explanations
Pages 1-2
Combining Multiple AI Models to Better Diagnose Lung Cancer

Why Lung Cancer Diagnosis Needs AI Help Lung cancer is the leading cause of cancer death worldwide, and early detection through CT (computed tomography) scan analysis is critical for improved survival. However, manually reviewing CT scans is time-consuming, subjective, and requires specialist expertise. Deep learning AI models can analyze CT images rapidly and consistently, but individual models have limitations and errors.

The Ensemble Approach Rather than relying on a single AI model, this study developed an ensemble method that combines the predictions of three different deep learning architectures. Like a panel of expert consultants who reach a consensus, the ensemble leverages the complementary strengths of each model, correcting for individual errors and achieving higher accuracy than any single model alone.

FPA Optimization The key innovation is using the Flower Pollination Algorithm (FPA) - a nature-inspired optimization method based on how flowers pollinate across distances - to determine the optimal weight assigned to each model in the ensemble. Rather than treating all models equally or guessing weights, FPA mathematically finds the combination that maximizes classification accuracy.

Dataset and Classes The study used 1,000 CT scan images from lung cancer patients, classifying them into categories representing different lung cancer types and normal tissue. The three base models tested were VGG16, InceptionV3, and ResNet101V2 - well-established deep learning architectures widely used in medical image analysis.

TL;DR: This study built an AI ensemble that combines three deep learning models using mathematical optimization (FPA) to classify lung cancer CT scans, achieving 98.2% accuracy - better than any single model alone.
Pages 2-3
Deep Learning Base Models: VGG16, InceptionV3, and ResNet101V2

VGG16 Architecture VGG16 is a deep convolutional neural network with 16 layers, originally developed at Oxford's Visual Geometry Group. It uses a simple, uniform architecture of 3x3 convolutional filters stacked in increasing depth. For this study, VGG16 was fine-tuned on lung CT images using transfer learning from ImageNet pre-training, achieving 94.6% standalone accuracy.

InceptionV3 Architecture InceptionV3 uses parallel convolutional filters of different sizes (1x1, 3x3, 5x5) at each layer, allowing it to capture features at multiple scales simultaneously. This is particularly valuable for CT analysis where tumors appear at various sizes and scales. Fine-tuned on the lung CT dataset, InceptionV3 achieved 94% accuracy.

ResNet101V2 Architecture ResNet101V2 uses residual connections that skip layers, solving the vanishing gradient problem that limited earlier deep networks. With 101 layers, it can learn very deep feature representations while maintaining stable training. On the lung CT dataset, ResNet101V2 achieved 92.7% accuracy - the lowest of the three but still clinically meaningful.

Transfer Learning Strategy All three models were initialized with weights pre-trained on ImageNet (a massive natural image database) and then fine-tuned on the lung cancer CT dataset. Transfer learning allows models to leverage patterns learned from millions of general images, which surprisingly transfers well to medical imaging tasks because both domains require edge, texture, and shape recognition.

TL;DR: Three established deep learning architectures (VGG16, InceptionV3, ResNet101V2) were each fine-tuned on lung cancer CT scans using transfer learning, achieving individual accuracies of 92.7-94.6%.
Pages 3-5
The Flower Pollination Algorithm for Optimal Weight Assignment

Why Weight Optimization Matters In a weighted average ensemble, the final prediction is calculated as a weighted sum of each model's predictions. The weights determine how much influence each model has on the final decision. If one model consistently performs better, it should receive higher weight. The challenge is finding the optimal weights without manually trying all possible combinations.

FPA Inspiration from Nature The Flower Pollination Algorithm mimics how flowers reproduce through pollination. Cross-pollination (long-distance, by insects or wind) allows exploration of diverse solutions, while self-pollination (local, within the same flower) allows refinement of promising solutions. This balance between global exploration and local exploitation makes FPA effective for optimization problems.

FPA Optimization Process In this study, FPA treated the ensemble weights as variables to optimize. Each 'flower' in the algorithm represented a different combination of weights for the three models. The algorithm iteratively updated weight combinations based on how well they performed on validation data, gradually converging toward the optimal weighting.

Final Optimal Weights Found FPA determined that the optimal weights for the three models were: VGG16 = 0.176 (17.6%), InceptionV3 = 0.332 (33.2%), and ResNet101V2 = 0.492 (49.2%). Interestingly, ResNet101V2 received the highest weight despite having the lowest individual accuracy, suggesting its errors were complementary to the other models and added diverse information to the ensemble.

TL;DR: The Flower Pollination Algorithm mathematically optimized the combination of three models, assigning weights of 17.6%, 33.2%, and 49.2% to VGG16, InceptionV3, and ResNet101V2 respectively.
Pages 5-6
FPA Ensemble Outperforms All Individual Models

Ensemble Performance The FPA-weighted ensemble achieved 98.2% accuracy, 98.4% precision, 98.6% recall, and 98.5% F1 score on the test dataset. This represents a substantial improvement over the best individual model (VGG16 at 94.6%), demonstrating that the ensemble approach successfully leverages the complementary strengths of all three architectures.

Comparison with Alternative Ensemble Methods The study also compared FPA weighting against simpler ensemble strategies including simple averaging (equal weights) and majority voting. FPA consistently outperformed these alternatives, confirming that intelligent weight optimization is superior to treating all models equally.

Reduction in Error Rate Going from the best single model (94.6% accuracy, 5.4% error rate) to the FPA ensemble (98.2% accuracy, 1.8% error rate) represents a two-thirds reduction in errors. For a clinical screening tool handling thousands of CT scans annually, this reduction in misclassifications would translate to substantially fewer false diagnoses.

TOPSIS Ranking Confirms FPA Superiority TOPSIS (Technique for Order Preference by Similarity to an Ideal Solution) is a multi-criteria decision analysis method that simultaneously evaluates all performance metrics. TOPSIS analysis consistently ranked the FPA ensemble as the best-performing model across all evaluation criteria, providing a rigorous multi-dimensional validation of its superiority.

TL;DR: The FPA ensemble achieved 98.2% accuracy, substantially outperforming the best individual model (94.6%) and simpler ensemble approaches, representing a two-thirds reduction in classification errors.
Pages 6-7
Dataset Composition and Training Details

CT Dataset Characteristics The 1,000 CT scan images were collected from lung cancer patients and organized into classes representing different cancer types. Images underwent standardized preprocessing including resizing, normalization, and data augmentation (rotation, flipping, zooming) to increase the effective training set size and improve model robustness to imaging variations.

Training Protocol Each base model was trained using the Adam optimizer with learning rate scheduling and early stopping to prevent overfitting. Models were evaluated using k-fold cross-validation to ensure stable performance estimates. The training, validation, and test splits were maintained consistently across all models to enable fair comparisons.

Confusion Matrix Analysis Detailed confusion matrices for each model revealed their specific error patterns. VGG16 and InceptionV3 made somewhat similar errors, while ResNet101V2's errors were more distinct. This error diversity explains why ResNet101V2 received the highest FPA weight despite lower individual accuracy - its different error pattern adds unique corrective information to the ensemble.

Computational Efficiency While running three models in an ensemble requires more computation than a single model, the FPA weight optimization itself is computationally efficient. Once the optimal weights are determined through FPA training, deployment involves simply running three forward passes and computing a weighted average - a straightforward process feasible in clinical real-time settings.

TL;DR: The 1,000-image CT dataset was processed with standardized augmentation, and confusion matrix analysis showed that each model made different types of errors, explaining why their combination was so powerful.
Pages 7-8
Clinical Translation and Practical Deployment

Potential for Clinical Decision Support A system achieving 98.2% accuracy could serve as a reliable computer-aided detection (CAD) tool to flag suspicious CT findings for radiologist review, prioritize scan reading queues for high-risk cases, or provide a second opinion in settings with limited specialist access. Even a 2% error rate means careful human oversight remains essential.

Improving Early Detection Rates Lung cancer caught at early stages has dramatically better prognosis. A high-accuracy automated CT classification system could help screen large populations or flag early-stage lesions that might be subtle enough to miss in rapid manual review, potentially shifting detection toward earlier stages.

Applicability to Low-Resource Settings In hospitals and regions with limited access to specialized radiologists, an automated CT analysis tool could provide expert-level preliminary assessment. The system requires only a CT scanner and computing hardware, without specialized nuclear medicine equipment or complex biomarker testing.

Integration with Existing Workflows Deep learning systems like this can be integrated into Picture Archiving and Communication Systems (PACS) used in radiology departments, flagging studies automatically as they arrive for processing. The weighted ensemble approach is transparent in that the contribution of each model can be reported alongside the diagnosis, aiding radiologist trust and interpretability.

TL;DR: A 98.2% accurate CT classification system could serve as a clinical decision support tool to assist radiologists, improve early detection, and expand access to expert-level diagnosis in resource-limited settings.
Pages 8-9
Limitations and Next Steps for Development

Dataset Size Limitations The 1,000-image dataset, while sufficient for initial development, is relatively small by deep learning standards. Larger, more diverse datasets from multiple hospitals and scanner types would be needed to fully validate performance and ensure the model generalizes across different patient populations and imaging protocols.

Limited Histological Granularity CT scans alone cannot distinguish between different lung cancer subtypes (adenocarcinoma, squamous cell carcinoma, small cell) with full certainty. Future models integrating clinical data, PET metabolic information, or genomic biomarkers alongside CT features could provide more clinically actionable classification.

Prospective Validation Required This study used retrospective CT images. Prospective validation in real clinical settings where the AI tool assists radiologists would be needed before regulatory approval or clinical adoption. Such studies would also measure the impact on radiologist accuracy, workflow efficiency, and patient outcomes.

Explainability for Clinical Trust Deep learning models are often criticized as 'black boxes' whose decision-making process is opaque. Future work should incorporate visualization techniques like Grad-CAM (Gradient-weighted Class Activation Mapping) to highlight which CT regions most influenced each classification, improving radiologist trust and enabling identification of model errors.

TL;DR: The small dataset, limited histological classification, and lack of prospective validation are key limitations, and future work should expand the dataset, add explainability features, and conduct clinical workflow studies.
Citation: Open Access, 2025. Available at: PMC12134160.