Globally, cancer continues to be a significant cause of death, with lung and colorectal cancers being prevalent. Lung cancer is the most common cause of cancer-related deaths worldwide and the second most common type of cancer overall [
1]. Lung cancer accounted for 18% of all cancer deaths in 2020, with 1.8 million new cases caused by the disease [
2]. Compared to other central malignancies, lung cancer had a significantly poorer 5-year survival rate (7–25%) [
3]. Due to its high death rate, lung cancer’s mortality distribution closely matched its incidence distribution, resulting in a significant worldwide disease burden. It is notable that about 17 patients (0.54%) out of 3102 patients with lung cancer also received a concurrent diagnosis of colon cancer within one month, suggesting that these two cancers significantly overlap [
4].
The respiratory system is severely hampered by lung cancer, which frequently manifests as symptoms including hemoptysis, shortness of breath, chest pain, and a chronic cough [
5]. On the other hand, colon cancer mainly affects the digestive tract and frequently results in abdominal pain and rectal hemorrhage [
6]. Even though non-invasive approaches such as radiography and Computer Tomography (CT) [
7] are commonly used to detect lung and colon cancers, they are not always sufficient for a conclusive diagnosis [
8]. Histopathological analysis of tissue samples remains the standard for precise diagnosis and therapy planning [
9]. However, manual analysis by pathologists is labor-intensive, time-consuming, and prone to human error, especially in early-stage malignancies, where diagnostic signs may be subtle [
10].
Technological developments in deep learning (DL) and artificial intelligence (AI) have created exciting prospects to automate cancer diagnosis, reduce pathologists’ burden, and enhance diagnostic accuracy [
11]. convolutional neural networks (CNNs), in particular, have demonstrated an impressive ability to extract complex patterns from histopathology images [
12]. Early cancer detection and multi-stage classification are enabled by these models’ ability to identify discriminative characteristics that human specialists might find challenging [
13]. In addition to histopathology, DL has demonstrated significant enhancement in radiography, Magnetic Resonance Imaging (MRI), and retinal imaging, providing enhanced analytical precision and expedited decision-making [
14]. Colorectal cancer is a significant global health concern, requiring accurate and efficient diagnostic methods. Histopathological image analysis has emerged as a reliable approach for early detection. In this work, we focus on improving computational efficiency and classification performance using deep learning and optimization techniques.
1.1. Related Work
For lung and colon cancer histopathological imaging classes, Ochoa-Ornelas, R. et al. [
15] proposed a machine learning- and deep learning-based hybrid approach by using the two deep models along with gray wolf optimization. The original LC25000 was modified to increase robustness and clinical generalizability, as the original datasets lack generalizability due to image augmentation. To do so, a contrast-limited adaptive histogram equalization (CLAHE) technique was applied during preprocessing. Moreover, 1000 new images were added to three malignant classes, namely colon adenocarcinoma, lung squamous cell carcinoma, and lung adenocarcinoma, which were gathered from the NCI (National Cancer Institute) GDC data portal. The features were extracted and fused by transfer learning the MobileNetV2 and EfficientNetB3 models. Optimal feature selection was performed using GWO, and the data were split into 80:20 for classification. The proposed methodology achieved 94.8% accuracy using the MEGWO-LCCHC technique.
A DL-based classification framework for lung and colon classification using DL and digital image processing (DIP) was proposed by Masud, M. et al. [
8]. They have analyzed and classified histopathological images of lung and colon tissues into three malignant and two benign classes. The image-sharpening-based technique, i.e., the unsharp masking, was used in the preprocessing phase. The features are extracted using two basic digital image processing techniques, namely the 2D Fourier and 2D wavelet transforms. The features from 2D fast Fourier transform (2D-FFT) and 2D Discrete Wavelet Transform (2D-DWT) are then fused to get the resultant feature vector. The results show that the proposed technique performs well, with an accuracy of 96.33%.
Mehmood, S. et al. [
16] presented a technique for lung and colon cancer detection using class-selective image processing and transfer learning. LC25000, which comprises five classes for lung and colon cancer, was used in this study. Transfer learning was performed on a pretrained deep CNN, AlexNet, by tuning its four layers using the respective dataset. The results after transfer learning do not show strong performance, with the highest accuracy of 89%. A single class caused this degradation, so instead of applying preprocessing to the whole dataset, the author applies the contrast enhancement technique to the respective class only. This technique improves the overall classification accuracy by 9.4%, bringing it to 98.4%.
A lung cancer histopathological image classification framework assisted by the Non-Local Mean (NLM) was proposed by Kumar, A. et al. in [
17]. In the preprocessing phase, the images are enhanced by eliminating the noise and preserving edges using the NLM filter. These denoised images are then passed to ML3CNet (a multi-headed convolutional neural network for lung cancer classification), which was proposed in this paper. To reduce model size, a quantization technique was used, enabling the model to run faster and use less memory. The classification results show that ML3CNet performed well, achieving an accuracy of 98.92%. Recent advances in the medical field, which include 3D-printing and IoT-enabled systems, have transformed cancer diagnosis and treatment. 3D printing allows histopathological and imaging data to be converted into physical anatomical models, supporting precise surgical planning, patient-specific treatment, and medical education. On the other hand, IoT technologies enable real-time data acquisition, remote monitoring, and cloud-based processing of medical images, facilitating efficient diagnostics.
The
was proposed by Ijaz, M. et al. [
18], in which lung and colon classification were performed using transfer learning and optimization. Two pretrained deep CNN models, i.e., ResNet50 and EfficientNetB0, were fine-tuned, and their deep features were extracted. The extracted deep feature vector is then fused using a priority-based serial approach. The fused feature vector was then fed into the gray wolf optimizer (GWO) for optimal feature selection. For the final prediction, the author used a soft voting technique and achieved an overall accuracy of 98.73% on the ‘LC25000’ dataset, improving ‘prediction time’ by 19.14%. Naveed, M.U. et al. [
19] proposed a lung cancer classification technique by transferring learning from the EfficientNetB3 model over the LC25000 dataset, excluding the colon classes. The deep features are extracted by utilizing the TL model and fed to the classifiers for comparative analysis. The result shows that the proposed methodology achieves an accuracy of 99.80%.
Anjum performed a lung cancer classification on a histopathological imaging dataset, as in S. et al. [
20]. In this study, the author used pretrained variants B0-B7 of EfficientNet and transferred them to the LC25000 dataset at different image resolutions for each variant. The evaluation and analysis show that at a 260 × 260 pixel resolution, EfficientNetB2 achieved the highest accuracy of 97%. Kumar, N. et al. [
21] presented a lung and colon classification technique by using handcrafted and dense feature extraction. The handcrafted features were extracted based on texture, shape, color, and structure, and transfer learning was performed across seven deep CNN architectures for feature extraction. This study achieved an accuracy of 98.60% over extracted deep features of DenseNet-121.
Oubaalla et al. [
22] aim to increase accuracy by demonstrating the impact of combining transfer learning (TL) and ensemble learning techniques for lung and colon classification. In this article, three different deep models were transfer-learned, i.e., DenseNet, VGG, and ResNet, for feature extraction, based on the ensemble learning technique. The authors’ proposed method shows accuracies of 97%, 97.4%, and 97.5% on the training, testing, and validation data, respectively. Anusha, M. et al. [
23] proposed a transfer learning-based technique in which the VGG16 model was trained on the LC25000 dataset. In this study, a rigorous preprocessing was performed to enhance the image quality. The proposed technique achieved 98.69% accuracy and an ROC-AUC score of 99.96%.
A lightweight deep convolutional neural network (CNN) was proposed by Sakr, A.S. et al. [
24] for efficient colon cancer classification. The publicly available histopathological image dataset of colon cancer was normalized and fed to a deep CNN model, which depicted an accuracy of 99.50%. Togaçar, M.J.C.i.B. [
25] trained a DarkNet-19 model from scratch and extracted the deep features by using this model. The inefficient features were selected using Manta Ray Foraging and equilibrium optimizers, which were then distinguished from the original feature set to obtain the efficient features. An accuracy of 99.69% was achieved by passing this feature set to SVM.
There is a lot of research that has already been done in the field of lung and colon cancer classification and detection [
8,
15,
16,
17,
18,
20,
26,
27]. These studies used various techniques, including preprocessing to enhance dataset images, transfer learning/fine-tuning, feature extraction, optimization, and deep learning to improve accuracy. As stated earlier, DL has shown tremendous potential in radiography, retinal imaging, and Magnetic Resonance Imaging (MRI), offering enhanced diagnostic accuracy [
28]. However, a problem with deep learning is that it requires a large volume of data to achieve good accuracy [
29]. In medical imaging, it can be difficult to collect such a large volume of data [
30]. The evolution of transfer learning has had a tremendous impact on the field of computer vision, yielding strong results even on limited datasets [
31]. Moreover, task-specific adaptation is achieved in transfer learning by modifying the layers of the pertained deep convolutional neural network (DCNN) models, such as ResNet, EfficientNet, DenseNet, VGG, and AlexNet, etc., to achieve good results, by most of the researchers. Although existing studies have achieved high classification accuracy, many rely on computationally intensive architectures and lack efficient feature optimization mechanisms. These limitations highlight the need for lightweight frameworks that maintain performance while reducing computational overhead. The proposed approach addresses these challenges by integrating transfer learning with an optimization-driven feature selection strategy.