1. Introduction
Cancer continues to be a major source of illness and death globally, necessitating ongoing improvements in diagnostic and treatment approaches. With an anticipated 19.3 million new cases and 10 million fatalities recorded globally in 2020 alone, this remains a major global health concern (Sung et al., 2021). The complexity of cancer, characterized by high levels of genetic and phenotypic heterogeneity, poses substantial challenges for traditional diagnostic methods. Precision oncology, which focuses on tailoring medical care, has emerged as a promising approach to address these challenges (Zhang et al., 2024). However, its implementation requires advanced tools capable of integrating and interpreting diverse data sources, such as genomics, clinical records, and imaging modalities, in a meaningfully.
Digital twin technology is a cutting-edge approach, initially developed for engineering and manufacturing and offers significant potential in healthcare by creating virtual replicas of physical entities, such as patients or their organs, to simulate and predict outcomes in real-time scenarios (Bruynseels et al., 2018). Digital twin technology, initially developed in engineering fields, has shown potential in transforming healthcare by creating dynamic, realtime virtual replicas of patients (Samek et al., 2021). These "digital twins" enable clinicians to simulate disease progression, predict treatment outcomes, and test interventions in a virtual environment before applying them in the real world (Björnsson et al., 2020). These developments make it feasible to integrate digital twin frameworks with Artificial Intelligence (AI) for real-time cancer diagnostics. Single-layer applications, such imaging or molecular analysis, are frequently the focus of current research using digital twins in healthcare (Björnsson et al., 2020). RNNs work well with sequential data, such patient histories, whereas CNNs are excellent at evaluating medical images (Litjens et al., 2017). Researchers can create systems that offer more thorough and individualized insights into cancer diagnosis and treatment planning by fusing these techniques with digital twin technology (Aguilar-Blas et al., 2024). However, multi-layered digital twins capable of dynamically incorporating molecular, clinical, and imaging data remain underexplored, particularly in the context of cancer diagnosis.
This study introduces a Deep Learning-Driven Multi-Layer Digital Twin Framework, leveraging the MIOT methodology, to address gaps in current cancer diagnostic systems. By utilizing multi-modal datasets such as genomic sequences, histopathological imaging, and clinical records, this approach integrates robust predictive modeling, dynamic simulations, and real-time patient data updates. The Model-Integration-Optimization-Testing (MIOT) framework offers a structured approach to developing such systems by addressing key challenges in modeling complexity, ensuring data interoperability, optimizing decision-making and validating performance. Combining the MIOT methodology with digital twin technology and deep learning could enable highly personalized and adaptive cancer diagnostics that simulate tumor progression, evaluate treatment options, and predict patient outcomes in a risk-free virtual environment. The proposed framework aims to enhance diagnostic accuracy, optimize treatment strategies, and improve clinical decision-making, positioning itself as a novel solution for advancing precision oncology.
The article is organized as follows: A review of the literature is given in Section 2, the dataset used in the proposed study is described in Section 3, the methodology is explained in Section 4, the results are discussed in Section 5, and the study is concluded in Section 6.
2. Review of the Literature
This literature survey examines existing studies on digital twins, the incorporation of deep learning algorithms, and the challenges faced, highlighting their potential and limitations. Analysis of a variety of data sources, such as genetic sequences, clinical records, and histopathological imaging, is necessary for cancer diagnoses. Because they are static and unimodal, traditional algorithms like SVMs and Random Forests are not well suited to handle such diverse data (Chicco, 2017; Chen et al., 2018). The intricacy of multi-modal fusion needed for digital twins is not addressed by CNNs and RNNs alone, despite the fact that they have better imaging and sequential data capabilities, respectively (Ronneberger et al., 2015). Real-time analysis is made more difficult by the substantial computational cost added by current multi-modal DL frameworks (Litjens et al., 2017).
SVMs have been utilized for classifying tumor subtypes and analyzing gene expression profiles (Guyon et al., 2002). Despite their robustness with small datasets, SVMs struggle to handle high-dimensional, multi-modal cancer data and require careful parameter tuning. Furthermore, their reliance on static kernels limits adaptability, a crucial requirement in real-time digital twins (Chicco, 2017). Radiological and histopathological image analysis has made substantial use of the U-Net and ResNet designs (Ronneberger et al., 2015). However, CNNs face significant challenges in cancer diagnostics, particularly when integrated into digital twin systems. Overfitting becomes more prominent in Deep Neural Networks when using high-dimensional data like gene expression profiles or radiomics features, leading to poor generalization of new patient data (Zhang et al., 2018). RNNs suffer from the vanishing gradient problem, particularly in sequences of long duration, making it difficult for the model to learn long-term dependencies (Hochreiter & Schmidhuber, 1997). LSTMs mitigate this issue to some extent, but they still face challenges in handling noisy and incomplete data, which is common in clinical settings (Mavaddati et al., 2025). Moreover, training these models is computationally expensive and requires large annotated datasets, which are often scarce in oncology (Jiang et al., 2023).
Generative Adversarial Networks (GANs) have shown promise in generating synthetic medical images for training models in the absence of labeled data. There is a limit in generating realistic and diverse synthetic tumor images (Kannappan et al., 2023). Additionally, GANs are challenging to train and require careful tuning of the hyperparameters, which can be computationally intensive.
K-NN is a powerful algorithm, has been used in cancer diagnosis for classifying tumors based on feature similarity. It struggles with large datasets, as it requires storing the entire dataset for comparison during inference, leading to high memory usage and slow prediction times (Yuanlu et al., 2024). Sparse Autoencoders, which aim to learn sparse representations, may not always capture the most important features for cancer diagnosis, especially in heterogeneous datasets that require more nuanced representations (Vincent et al., 2008).
3. Dataset
Using simplex method, find the optimal solution for the following linear programming problem (1):
We symbolize the quantities produced from the product 𝐴 with the symbol 𝑥1, and from the product 𝐵 with the symbol 𝑥2 , after building the appropriate mathematical model and solving it, we conclude that 𝑥1 = 5, 𝑥2 = 3 , and hence the maximum profit 𝑍∗= 50 of monetary unit.
4. Methodology
Figure 1 illustrates a Deep Learning-Driven Multi-Layer Digital Twin Framework for precision oncology, highlighting the systematic steps from data acquisition to performance evaluation. It begins with input data sources, encompassing molecular, clinical, and imaging data (genomic sequences from TCGA, and histopathological images from CAMELYON16). This heterogeneous data undergoes Preprocessing Pipelines, ensuring standardization, normalization, and harmonization. CNNs for image data and RNNs for sequential data are used to extract high-level features.
The core MIOT Framework incorporates model design, multi-modal integration, and optimization using strategies like reinforcement learning, and testing against benchmark datasets. The processed data integrates into a digital twin deployment module, enabling real-time tumor progression modeling, personalized treatment pathways, and simulations. This flowchart underscores the innovation in combining multi-modal data with advanced deep learning techniques for precision medicine. The detailed process of the Figure 1 is described as follows.
4.1 Input Data Sources
The proposed research combines diverse datasets to form a unified, multimodal dataset. The integration is mathematically represented in Equation (1), where the combined dataset enables the model to leverage the complementary strengths of molecular, clinical, and imaging data for improved predictive or diagnostic outcomes.
Molecular Data: Genomic sequences (𝐷𝑚𝑜𝑙𝑒𝑐𝑢𝑙𝑎𝑟) from datasets like TCGA.
Clinical Data: Tabular clinical records (𝐷𝑐𝑙𝑖𝑛𝑖𝑐𝑎𝑙)
Imaging Data: Histopathological images (𝐷𝑖𝑚𝑎𝑔𝑖𝑛𝑔) from datasets like CAMELYON16.
4.2 Data Pre-processing
Data preprocessing ensures the consistency and suitability of heterogeneous data for deep learning models. The details of the preprocessing steps applied to the molecular, clinical, and imaging data are as follows.
4.2.1 Molecular Data Preprocessing
Molecular data often comes in raw formats, such as nucleotide sequences or mutation information. This involves genomic or proteomic data, often in the form of nucleotide sequences or mutation profiles. The preprocessing involves the following procedure.
One-Hot Encoding
Nucleotide sequences (e.g., A, T, G, C) are converted into binary matrices for computational models. For a sequence S= [A, T, G, C]:
One-Hot Encoding (OHE) represents the categorical features as binary vectors. This ensures that the model treats categories as distinct entities without implying an ordinal relationship between them. In equation (2), rows represent the sequence positions. Columns represent nucleotides (A, T, G, C), with a binary 1 indicating presence. For a categorical variable 𝑥𝑖 with k unique categories. The one-hot vector is defined as shown in equation (3).
Where:
𝑒𝑗= 1 if 𝑥𝑖belongs to the jth category.
Dimensionality Reduction
Principal Component Analysis (PCA) is applied to reduce high-dimensional data, as illustrated in Equation (4).
Where:
X: Original data matrix (𝑛× 𝑚) times, with n samples and mmm features.
W: Principal component matrix 𝑚× 𝑘 times, reducing dimensions to k.
𝑋′: Transformed lower-dimensional data (𝑛× 𝑘) times.
4.2.2 Clinical Data Preprocessing
Clinical records often contain missing values, inconsistencies, and mixed data types of numerical and categorical. It includes the following steps to handle the missing values.
Imputation
Numerical data (𝑥𝑖) is replaced with mean, median, or mode as shown in equation (5).
The categorical data is replaced with the most frequent category. Also, remove records with too many missing fields.
Standardization
Standardization ensures a uniform scale for numerical features as shown in equation (6).
Where 𝑥𝑖 is the original feature; μ represents the mean; and σ is the standard deviation.
4.2.3 Imaging Data Preprocessing
Histopathological images need consistent formatting.
Resizing
Images (I) are resized to fixed dimensions (W, H) as shown in equation (7).
Where I is the original image and W, H is the desired width and height.
Normalization
Pixel values (𝑝𝑖) are scaled to the range [0, 1] given in equation (8).
where 𝑝𝑖 is the original pixel intensity; min (𝑝𝑖), and max(𝑝𝑖) are the minimum and maximum pixel intensities in the image.
Augmentation
Augmentation introduces variability through transformations as shown in equation (9).
where 𝐼′ is the augmented image. Transformations include rotation (0° −360°) (flipping (horizontal/vertical), and scaling.
Patch Extraction
Large images are split into smaller patches for focused analysis as shown in equation (10).
Where P is the set of patches. 𝐼𝑥,𝑦 is the patch extracted at coordinates (x, y).
4.2.4 Multi-Modal Data Integration
Figure 2 shows the processed data from different modalities are combined for unified analysis.
The concatenated final multimodal data is given in equation (11).
where:
𝐹𝑚𝑜𝑙𝑒𝑐𝑢𝑙𝑎𝑟 : Features extracted from molecular data.
𝐹𝑐𝑙𝑖𝑛𝑖𝑐𝑎𝑙: Features from clinical records.
𝐹𝑖𝑚𝑎𝑔𝑖𝑛𝑔: Features from imaging data.
𝐶𝑜𝑛𝑐𝑎𝑡: Concatenation operation to merge features into a single representation.
4.3 Feature Extraction
Imaging Data (𝐷𝑖𝑚𝑎𝑔𝑖𝑛𝑔) features are extracted using CNNs as given in equation (12).
The CNN layers are shown in Figure 3 which applies convolution as follows.
where w is the weight, b is bias, x is the input, and σ is an activation function.
Sequential Data (𝐷𝑚𝑜𝑙𝑒𝑐𝑢𝑙𝑎𝑟) features are extracted using RNNs as shown in equation (14).
where ℎ𝑡 is the hidden state at time 𝑡, 𝑊ℎ, 𝑊𝑥 are weight matrices, and b is the bias. The final feature set is shown in equation (15).
4.4 MIOT Framework
The MIOT Framework focuses on three primary model tasks: tumor segmentation, classification, and prediction, aiming to address key challenges in medical imaging and oncology. Each task plays a distinct yet interrelated role in the framework.
Tumor Segmentation
Tumor segmentation involves identifying tumor regions in medical images. The U-Net architecture is widely used for this task due to its encoder-decoder structure, which captures both spatial and contextual information. It is shown in Figure 4.
Consider, given an input image 𝑋∈ℝ𝐴×𝐵×𝐶, where A is height, B is width, and C is the number of channels. The encoder maps the input X into a latent representation Z as shown in equation (17).
where 𝜃𝑒𝑛𝑐 are the parameters of the encoder. The decoder reconstructs the segmentation mask 𝑌∈{0,1}𝐻×𝑊from Z as follows.
where 𝜃𝑑𝑒𝑐 are the parameters of the decoder.
The Dice loss for optimization is shown in equation (18).
where𝑌̂𝑖 is the identified mask, and 𝑌𝑖 is the ground truth.
Classification and Survival Prediction
Classification tasks involve assigning a label to the entire image’s tumor subtype. DenseNet ensure efficient feature reuse and gradient flow. DenseNet or transformers computation is given in equation (19).
Cross-entropy loss is given in equation (20).
Integration
Features are fused for multi-modal predictions as given in equation (21).
Optimization
Multi-objective optimization, such as reinforcement learning (policy gradient) is given in equation (22).
where Q (s, a) is the expected reward for state s and action a.
5. Results
The results of the Deep Learning-Driven Multi-Layer Digital Twin Framework integrated with the Medical Internet of Things (MIoT) for precision oncology in cancer diagnosis demonstrate its strong performance and potential to enhance diagnostic accuracy and personalized treatment
Segmentation results of malignant cases
Figure 5 provides a comprehensive visual comparison of original medical images and their corresponding segmentation results, focusing on both benign and malignant cases in cancer diagnosis. It consists of the following cases.
Original benign cases: Figure 4(a) displays the raw imaging data of benign tumors as captured through medical imaging techniques of MRI, CT, or histopathology slides. These images typically show the unprocessed structures of benign tissues without any overlays or analysis.
Segmentation results of benign cases: Figure 4(b) illustrates the processed version of the benign tumor images, where segmentation techniques have been applied to delineate and identify Regions of Interest (ROIs). These could include the boundaries of benign tumors or specific tissue features, helping in further analysis or diagnosis. Original malignant cases: Figure 4 (c) showcases the raw imaging data of malignant tumors, which often appear more irregular or invasive compared to benign tumors. These unprocessed images provide a baseline view for understanding the nature of malignant tissue. Segmentation results of malignant cases: Figure 4(d) has undergone segmentation to extract critical details such as tumor boundaries, density, or irregularities. These results are crucial for highlighting malignancy-specific characteristics and aiding in diagnosis or treatment planning. This visual contrast not only underscores the effectiveness of the algorithm but also provides insights into the structural differences between benign and malignant tumors, enabling better clinical decision-making.
Table 2 demonstrates that the proposed deep learning architecture performed well, achieving 98.5% accuracy, 97.3% sensitivity, and 96.1% specificity on average. This indicates the framework’s effectiveness in distinguishing between different cancer stages and types. The multi-layer digital twin architecture allowed for the integration of real-time MIoT data, along with historical patient records, enabling personalized, patient-specific diagnostic pathways. Furthermore, the MIoT integration enabled continuous, real-time monitoring, providing up-to-date data on patient conditions and allowing for timely adjustments in diagnosis and treatment. The interpretability of the model was significantly enhanced through clear visualizations of tumor segmentation and diagnostic decisions, supporting better clinical decision-making.
Figure 6 shows the proportions of correctly and incorrectly classified samples for each class. It is calculated by dividing the total number of true cases in the associated class by each element in the confusion matrix. The anticipated labels are shown in the columns, while the actual labels are shown in the rows. Off-diagonal numbers reveal misclassifications, whereas diagonal values represent the percentage of correctly categorized samples. Regardless of class imbalance, this matrix offers a more transparent picture of the model's performance across several classes, guaranteeing equitable evaluation in cancer diagnosis. This multi-layer approach not only improved diagnostic precision but also contributed to the overall goal of precision oncology by tailoring interventions to the individual needs of each patient.
6. Conclusion
The digital twin framework proposed for cancer diagnosis, utilizing the Model-Integration-Optimization-Testing (MIOT) methodology, marks a significant leap in precision oncology. By integrating multi-modal data such as genomic sequences, histopathological images, and clinical records, it offers a holistic, patient-specific diagnostic approach. Through deep learning architectures like U-Net for tumor segmentation, DenseNet for classification, and transformers for survival prediction, the system achieves impressive performance with a diagnostic accuracy. The U-Net model demonstrated a Dice coefficient of 0.92 for tumor segmentation, while the system's ability to differentiate between tumor subtypes was aligned with clinical standards. The MIOT framework ensures a structured design process, incorporating optimization techniques to offer personalized diagnostic and therapeutic pathways. The framework has the potential to transform cancer diagnosis and treatment planning, opening the door to individualized, data-driven cancer care, as evidenced by its effectiveness in these assessments. This system is a vital tool for developing precision oncology because it makes clinical decisions more informed, reduces mistakes, and improves patient outcomes through the integration of several data types and diagnostic accuracy.
Funding: “This research received no external funding”
Conflicts of Interest: “The authors declare no conflict of interest.”