# GPTNeXt: Biomedical Image Classification Investigations

**Authors:** Fahad A. Alotaibi, Mehmet Said Nur Yagmahan, Khalid A. Alobaid, Mousa Jari, Omer Faruk Goktas, Mehmet Baygin, Turker Tuncer, Sengul Dogan

PMC · DOI: 10.3390/diagnostics16040581 · Diagnostics · 2026-02-14

## TL;DR

This paper introduces GPTNeXt, a new CNN model inspired by GPT, which achieves over 98% accuracy in classifying biomedical images of Alzheimer's, blood, and lung cancer.

## Contribution

The novel GPTNeXt CNN model and a deep feature engineering approach for biomedical image classification are introduced.

## Key findings

- GPTNeXt achieved over 98% classification accuracy on Alzheimer’s MR images.
- The model also showed high accuracy on blood and lung cancer image datasets.
- A lightweight CNN with strong performance was introduced.

## Abstract

Background/Objectives: In the field of computer vision, prominent solutions often rely on transformers and convolutional neural networks (CNNs). Researchers frequently incorporate CNNs and transformers in developing image classification models. This study aims to introduce an innovative CNN model inspired by the Generative Pretrained Transformer (GPT) architecture and assess its image classification capabilities. Methods: This study utilized three distinct biomedical image datasets to evaluate the efficacy of the proposed GPTNeXt model. The datasets encompassed (i) Alzheimer’s disease (AD) magnetic resonance (MR) images, (ii) blood images, and (iii) lung cancer images. The choice of these datasets aimed to showcase the GPTNeXt model’s versatile classification performance. The GPTNeXt model and a deep feature engineering approach based on it were developed. In this deep feature engineering model, features were extracted from the global average pooling layer of GPTNeXt, and a novel deep feature extraction method was employed. This method extracted features from the entire image and generated nine fixed-size patches. To identify the most informative features, iterative neighborhood component analysis (INCA) was applied. The classification phase involved three shallow classifiers to produce classification results. Results: The GPTNeXt-based feature engineering model was applied to the three aforementioned biomedical image datasets, achieving classification accuracies exceeding 98% for all of them. Conclusions: This study demonstrates the high effectiveness of the proposed approach, as evidenced by the exceptional classification performance on the selected biomedical image datasets. Additionally, a lightweight CNN was introduced, showcasing outstanding classification performance.

## Linked entities

- **Diseases:** Alzheimer’s disease (MONDO:0004975), lung cancer (MONDO:0005138)

## Full-text entities

- **Diseases:** dementia (MESH:D003704), breast cancer (MESH:D001943), acute promyelocytic leukemia (MESH:D015473), cognitive impairment (MESH:D003072), blood cell abnormalities (MESH:D006402), gastrointestinal abnormalities (MESH:D005767), infections (MESH:D007239), non-small-cell lung cancer (MESH:D002289), squamous cell carcinoma (MESH:D002294), laryngeal cancer (MESH:D007822), blood cancer (MESH:D019337), neuroendocrine (MESH:D018358), Blood Cell and Lung Cancer (MESH:D055752), injury to (MESH:D014947), anxiety (MESH:D001007), atrophy (MESH:D001284), cancer (MESH:D009369), adenocarcinoma (MESH:D000230), lung-related diseases (MESH:D008171), Lung Cancer (MESH:D008175), brain atrophy (MESH:C566985), AD (MESH:D000544)
- **Chemicals:** GPTNeXt (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12938938/full.md

## Figures

9 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12938938/full.md

## References

59 references — full list in the complete paper: https://tomesphere.com/paper/PMC12938938/full.md

---
Source: https://tomesphere.com/paper/PMC12938938