Skip to main content
BMC Genomics logoLink to BMC Genomics
. 2026 Jul 6;27:786. doi: 10.1186/s12864-026-13128-5

A self-attention-based deep learning model for identifying key genes in insect pupal metamorphosis

Fangrong Liu 1,#, Yong Cao 1,#, Songping Qian 1,#, Xingyu Tong 1, Junhui Liu 1, Yan Zhang 2, Jiaying Zhu 3, Jiawei Mao 4, Xingke Yang 4, Jiasheng Hao 5, Youjie Zhao 1,✉
PMCID: PMC13617954  PMID: 42410516

Abstract

Metamorphosis is the major innovation in the evolution of insect, playing an important role in environmental adaptation and biodiversity formation. However, it has been a challenge to identify the key genes in insect pupal metamorphosis. In this study, we constructed a library of word embeddings based on Word2vec for 293 insect protein sequences from 14 orders. A gene network classification model (GNCM) based on deep learning (DL) and self-attention mechanisms (SAM) was designed to identify key genes by calculating their importance (weights) in the metamorphosis of insect pupae. Empirical studies demonstrated that GNCM achieved a significantly better performance than other algorithms, including ANN, SVM, XGBoost, BiGRU, and BiLSTM, classification accuracy and interpretability. The results showed that GNCM identified 1,048 high-weight gene families, and differential expression analysis revealed that high-weight genes exhibited significantly higher expression levels than low-weight genes during the pupal stage. KEGG annotation showed that these genes were involved in functions with developmental, apoptosis, and immunity, which are crucial for insect metamorphosis. This study not only develops a novel artificial intelligence approach applicable to the identification of key genes, but also provided new insights for understanding the development of insect metamorphosis.

Supplementary Information

The online version contains supplementary material available at https://doi.org/10.1186/s12864-026-13128-5.

Keywords: Insect proteome, Metamorphosis, Key genes, Natural language processing, Deep learning, Attention mechanism

Introduction

Insects originated during the Early Ordovician period (~ 479 million years ago) [1, 2] and evolved through a developmental process from wingless to winged and from hemimetabolous to holometabolous [3, 4]. These organisms comprise more than 50% of all known animals [5], with more than 98% of them undergoing metamorphosis during their life cycle [6]. The formation of metamorphosis promotes insect prosperity and diversity [7, 8], allowing them to utilize different habitats and resources in order to adapt to changing environments. Hemimetabolous insects develop directly into adults from the final larval (nymph) stage, whereas holometabolous insects molt into the pupal stage and undergo a remarkable process of morphological reorganization [9, 10]. The mechanisms underlying the formation of pupae in holometabolous insects are a key issue in evolutionary biology. However, the molecular mechanisms underlying the successful evolution of insect metamorphosis have not yet been systematically and comprehensively investigated. In particular, the molecular regulatory mechanisms governing the metamorphosis process during the pupal stage of holometabolous insects remain a mystery.

In previous studies, insect metamorphosis was shown to involve the co-regulation and expression of numerous genes, as well as the complete remodeling of cells, tissues and organs (holometabolous). For example, Prothoracicotropic hormone (PTTH) initiates the onset of molting and metamorphosis [11], Ecdysone is converted to 20-hydroxyecdysone (20E), which initiates and regulates the process of moulting and metamorphosis [12], and juvenile hormone (JH) regulates the direction of metamorphosis [13, 14]. And the transcription factor Krüppel-homolog 1 (Kr-h1) regulates pupal development by inhibiting the transition from larva to adult in hemimetabolous insects and pupal development in holometabolous insects [15]. In addition, the transcription factor chronologically inappropriate morphogenesis (chinmo), which is also essential for maintaining the larval stage of insects, together with broad-complex(br) and Eip93F(Ecdysone-induced protein 93 F), constitutes a trinity of mutually repressive master genes of insect metamorphosis [16], which regulate metamorphic processes in insects. Among them, the br regulates the formation and development of hemimetabolous insect wings and holometabolous insect pupae [17, 18], whereas the Eip93F plays a central role in the formation of the adult stage [19]. Although these genes are crucial for elucidating their key roles in the metamorphosis process during the insect pupal stage, it remains unclear whether other genes are also involved in the molecular regulatory mechanisms. These studies based on traditional functional gene identification methods often require extensive biological experiments to validate their reliability, usually at a high cost. Therefore, how to use an efficient and low-cost artificial intelligence method to identify genes critical to insect pupal metamorphosis is the main problem to be addressed in this study.

Among existing machine learning (ML) methods, most models rely on traditional algorithms such as Support Vector Machines (SVM), Random Forests (RF) and Xtreme Gradient Boosting (XGBoost) for training [20–22]. This approach requires significant manual effort to select effective parameters from vast amounts of manually designed features for feature selection. While these methods are effective with small datasets, they often struggle to identify efficient training features when handling large-scale datasets. With the rapid development of artificial intelligence, deep learning (DL) [23] is a way that enables better and more efficient data mining and analysis. Compared to traditional ML [24, 25], DL is widely used in data mining and analysis tasks due to its ability to automatically extract features and higher accuracy [26]. In recent years, DL models have been widely used in tasks such as molecular structure prediction [27], enhancer prediction [28], and gene expression prediction [29] in the field of biology. For example, the DL model AlphaFold3 can predict the combined structure of complexes including proteins, nucleic acids, small molecules, ions, and modified residues, which is difficult to achieve with traditional ML algorithms [30]. However, the interpretability of DL during the inference stage remains limited. In the task of identifying key genes for insect metamorphosis, interpretability is equally important as model performance. Attention mechanisms [31, 32] can compute weights for the input gene sequences of deep learning models during training, thereby capturing the model’s focus on specific sequences. Applying AM to identify key genes during the pupal metamorphosis of insects still presents significant challenges.

In this study, using protein sequences from 293 insect species across hemimetabolous and holometabolous taxa, we designed a gene network classification model (GNCM), which is based on bidirectional gated recirculation unit (BiGRU) and self-attention mechanisms (SAM) with the goal of identifying genes that are critical for influencing the development of insect pupal metamorphosis. In addition, we also investigated the functional enrichment and differential expression of genes related to pupal metamorphosis. Our study shows the great potential of GNCM in identifying key genes for insect pupal metamorphosis and lays the foundation for a better understanding of the molecular mechanisms of insect metamorphosis.

Materials and methods

Taxon sampling

The proteomes of 293 insects were obtained from National Center for Biotechnology Information (NCBI) (https://www.ncbi.nlm.nih.gov/) database [33], with protein-coding genes as the raw data samples. According to the different types of metamorphosis, these protein sequences are divided into two classes: hemimetabolous and holometabolous. Among them, the hemimetabolous insects cover 8 orders with 36 species, and the holometabolous insects cover 6 orders with 257 species. The distribution is as follows (Table 1): Odonata (2), Ephemeroptera (2), Blattodea (3), Phasmatodea (1), Orthoptera (7), Phthiraptera (1), Thysanoptera (2), Hemiptera (18), Coleoptera (24), Lepidoptera (44), Siphonaptera (1), Neuroptera (1), Hymenoptera (83) and Diptera (104). Detailed information is given in Table S1.

Table 1.

Protein sequences of 293 insects from 81 families in 14 orders

NO Metamorphosis Order Family Genus Species Total proteins
1 Hemimetabolous Odonata 2 2 2 27,057
2 Hemimetabolous Ephemeroptera 1 2 2 25,871
3 Hemimetabolous Blattodea 3 3 3 42,160
4 Hemimetabolous Phasmatodea 1 1 1 14,448
5 Hemimetabolous Orthoptera 2 2 7 121,322
6 Hemimetabolous Phthiraptera 1 1 1 10,758
7 Hemimetabolous Thysanoptera 1 2 2 30,848
8 Hemimetabolous Hemiptera 9 17 18 272,972
9 Holometabolous Coleoptera 12 20 24 341,072
10 Holometabolous Lepidoptera 13 29 44 600,114
11 Holometabolous Siphonaptera 1 1 1 18,878
12 Holometabolous Neuroptera 1 1 1 12,985
13 Holometabolous Hymenoptera 19 55 83 956,107
14 Holometabolous Diptera 15 36 104 1,475,724

Workflow of GNCM

Hemimetabolous and holometabolous of 293 insect species were used as classification labels for the experimental samples. The hemimetabolous and holometabolous were modeled as a classification problem of protein sequences (Fig. 1A). Based on these protein sequences, externally we use NLP to construct word embedding libraries, and then add AM to the BiGRU classification network to calculate the weights of different genes in the classification process. The workflow of GNCM used in this study mainly includes four parts: Data preprocessing (Fig. 1B), GNCM construction(Fig. 1C), Screening for key genes(Fig. 1D), and Differential expression analysis(Fig. 1E). The details of each part are described in the following subsections.

Fig. 1.

Fig. 1

Workflow of GNCM to identify metamorphosis genes. A The protein sequences of 293 insect species, including 36 hemimetabolous and 257 holometabolous were selected as Class 1 and Class 2. B In the data preprocessing, the data quality control and data enhancement were carried out firstly, and the protein sequences were then subjected to the operations of sequence tokenizing and embedding, to generate vectorized representations. C The GNCM was constructed by combining BiGRU with the self-attention. D The output of the GNCM was used to screen the key genes related to pupal metamorphosis. E Differential expression analysis of highly weighted genes. Images of representative taxa in the 14 orders were obtained from PhyloPic (http://phylopic.org)

Data preprocessing

Data quality control

To ensure the completeness and reliability of the protein sequences of each insect, we systematically evaluated all samples using BUSCO v5 (Benchmarking Tool for Universal Single Copy Orthologous Genes, v5) [34, 35]. BUSCO outputs include four key metrics: Complete (C, including Single-copy, S, and Duplicated, D), Fragmented (F), and Missing (M). Among them, the C reflects the overall integrity of the sequence, while the proportion of M and F suggests potential sequence deletion. In this study, we selected the OrthoDB database insecta_odb10 as the reference lineage, which contains a collection of highly conserved single-copy orthologous genes within insects, and is suitable for quality control of protein sequences. During the analysis, we ran the protein mode of BUSCO v5 to evaluate the protein sequences of insects, and adopted the default parameters to ensure the comparability of the results among different datasets. Based on the analysis results, we screened out datasets with high deletion rates or large fragmentation ratios, and only retained the sequence samples with high BUSCO scores for subsequent model construction and analysis, so as to ensure the reliability and scientific validity of the research results.

Data enhancement

To meet the sample requirements for deep learning, we expanded the protein sample size for holometabolous and hemimetabolous groups through two rounds of data augmentation. (1) Due to the limited number of samples from hemimetabolous insects, which could lead to lower prediction accuracy for certain categories, we performed oversampling to achieve a relatively balanced sample size between the two groups. (2) We used Orthofinder to cluster the genomic sequences of 293 insects with orthologous genes, and subsequently expanded the sample size by simulating real data [36]. First, we calculated the coverage of each Orthogroup based on the absence of Orthogroups across different species and excluded Orthogroups with excessively high absence rates to retain a set of gene families with high representativeness. Second, during each sampling batch, we randomly selected a fixed number of groups from the filtered Orthogroup set. For each species sample, we extract the corresponding protein sequences from the selected Orthogroups and concatenate them in the order of the predefined delimiters to construct new composite sequence samples. Therefore, in this study, we train, validate, and test the performance of GNCM using samples generated by simulating real data. To minimize model accuracy bias caused by the sampling strategy, we applied the same data construction workflow and model parameters to all methods in the model comparison experiments.

Sequence tokenizing

BPE is a data compression algorithm that iteratively merges the most frequently occurring genome segments in a corpus to construct a fixed-size vocabulary list, which has been widely used in the field of NLP for word segmentation strategies [37, 38]. Based on the BPE algorithm, the protein sequences of 293 insects are processed for word segmentation, and Fig. 2A shows the detailed process of vocabulary construction in a given corpus. First, we initialize the vocabulary with all the unique characters in the corpus. Then, in each iteration, the character segment with the highest frequency of occurrence (e.g., AA in iteration 1 of Fig. 2A) is considered as a new word to be added to the vocabulary, and the corpus is updated by replacing all the same character segments with this new word. This iteration continues until the desired vocabulary size is reached.

Fig. 2.

Fig. 2

The process of BPE tokenization and word embedding model design in CBOW. A Represents the process of BPE to tokenize the protein sequences. It first initializes the vocabulary list, then counts the frequency of each subword pair, and finally generates a subword dictionary by merging the most frequent subwords to generate the subword dictionary. B The CBOW word embedding algorithm for Word2vec. It predicts the center word by context words. The context window of CBOW word embedding model in this study is set to 20, the embedding dimension is 150, and the number of training rounds is 5

In addition, common word segmentation methods include k-mer [39]. K-mer segmentation is essentially a rule-based approach that uses fixed windows to segment sequences in a systematic manner; however, it ignores potential long-range dependencies and complex semantic structures within the sequences, which may result in the loss of some valuable biological information. Therefore, this study builds upon the k-mer method to investigate the use of high-frequency k-mers (referred to as HFkmer) for protein sequence segmentation (Fig S1).

Sequence embedding

Word embedding is an important technique in the field of NLP, which overcomes the limitations of traditional one-hot coding methods by mapping words to a low-dimensional continuous vector space to capture semantic relationships. In this study, we use the CBOW algorithm in Word2vec [40] for word embedding training (Fig. 2B). The core idea behind the Skip-gram (Sg) algorithm is the opposite of that of CBOW: it predicts the probability of the target word based on the surrounding words (Fig S2). The amino acids of each protein sequence are replaced with their vector representations obtained from the pre-trained word embedding model, and then by taking the average of all the amino acid embedding vectors in that protein sequence as its feature representation.

In CBOW word embedding process, the context vector Inline graphic is obtained by summing and averaging the word vectors of the context words, which are denoted as Inline graphic,…,Inline graphic,Inline graphic,…,Inline graphic with the window size of 2w, then the Inline graphic computation formula is as shown in Eq. (1).

graphic file with name d33e791.gif 1

where Inline graphic is the word vector of the word Inline graphic with j ranging from -c to c and j ≠ 0 (i.e., excluding the center word) when summed over all context words. The probabilistic prediction of the target word Inline graphic is computed by calculating the dot product of Inline graphic with the word vectors of all the words in the vocabulary as shown in Eq. (2).

graphic file with name d33e817.gif 2

where, Inline graphic,…,Inline graphic,Inline graphic,…,Inline graphic denote the context words of the target wordInline graphic, Inline graphic denotes the word vectors of the target wordInline graphic, Inline graphic denotes the vectors of all the words Inline graphic in the vocabulary. The probability distribution is obtained by softmax function using negative log-likelihood loss function as shown in Eq. (3).

graphic file with name d33e863.gif 3

where Inline graphic denotes the loss function, and T is the total number of words in the corpus.

GNCM construction

The construction of GNCM is mainly used to identify genes families that are crucial for insect metamorphosis. The GNCM model is developed based on PyTorch, and the Adam optimizer [41] is used for model training, with the learning rate set to 0.001. In general, an appropriate learning rate or combination of learning rates can accelerate model training and produce better or even optimal performance. If the learning rate is too small, it will take too long to reach the desired state; conversely, if the learning rate is too large, the algorithm may not converge. In addition, we use classification cross entropy as the loss function for model training. Because cross entropy is very effective in binary classification scenarios, it represents the difference between the true probability distribution and the predicted probability distribution. In addition, we set the number of epochs to 50 and the size of batch to 8 to train the GNCM model. We set dropout and early stopping strategies to avoid overfitting [42, 43]. Due to the differences in the length of the protein sequences, during the training process, we make the sequences of the same length by padding the end of the sequence with zeros (zeros represent any unknown amino acid type).

The architecture of GNCM used in our research is as follows (Fig. 3): first, the protein sequences of all species were preprocessed for normalization. Subsequently, each sequence is characterized by Word2Vec, and a 150-dimensional vector sequence is obtained as input. This input is then fed into BiGRU to capture bi-directional contextual dependencies, and the key information is weighted and aggregated by the AM. Finally, the gene family determination is realized through the fully connected layer and softmax activation to output the category probability.

Fig. 3.

Fig. 3

Architecture of GNCM. The input protein sequence is first tokenized into words using BPE. Each word is embedded as a vector Inline graphic. For each sentence, its representation Inline graphic obtained by averaging its constituent word vectors  . These vectors are fed into the feature extraction layer, where a bidirectional recurrent network encodes contextual information and generates hidden representations Inline graphic. Self-attention layer is subsequently applied to capture long-range dependencies and assign different weights (Inline graphic) to the features. Finally, the weighted feature representations are passed through a softmax classifier to produce the final output for protein sequence classification. Where Inline graphic and Inline graphic denote the input representation of the ith word and the ith sentence, respectively, and h denotes the hidden state

The gated recurrent unit (GRU) uses a gating mechanism to monitor the state of a sequence without using a separate storage unit, which consists of an update gate Inline graphic and a reset gate Inline graphic. Update gate Inline graphic controls how much information Inline graphic needs to keep from Inline graphic and how much information it needs to receive from Inline graphic. Reset gate Inline graphic controls whether the computation of Inline graphic depends on Inline graphic or not. GRU can effectively alleviate the problem of long-distance dependence in LSTM and improve the computational efficiency, and it is calculated as follows:

graphic file with name d33e999.gif 4
graphic file with name d33e1003.gif 5
graphic file with name d33e1007.gif 6
graphic file with name d33e1012.gif 7

where Inline graphic and Inline graphic denote the hidden layer states at moments  t-1 and  t, respectively. Inline graphic denotes the candidate states,  W and  U denote the weights, and b is the bias. σ is the Sigmoid function, and the output 0 is completely discarded, and 1 is completely retained.

We use BiGRU to process the sequence data, which consists of forward-propagating GRU units and backward-propagating GRU units. We unify the length of sequences by Padding technique so that the model can handle inputs of different lengths. BiGRU combines the forward and backward GRU to capture the bidirectional semantic information of sequences, which solves the problem of variable-length sequences, and also improves the computational efficiency and the performance of the model. The BiGRU is calculated as follows:

graphic file with name d33e1049.gif 8
graphic file with name d33e1053.gif 9
graphic file with name d33e1057.gif 10

where Inline graphic and Inline graphic denote the forward and backward implicit variables of Inline graphic and Inline graphic, respectively, for the ith sentence in the text. In this study, AM is added to BiGRU to dynamically adjust the weights of different parts of the input sequences, which enables the model to process the sequences more flexibly, and the attention scores are calculated as shown in Eq. (11).

graphic file with name d33e1083.gif 11

where Q is the query matrix, K is the key matrix, Inline graphic is the query weight moment, and Inline graphic the key weight matrix. Inline graphic is the dimension of the key vector, which is used for scaling dot product. Attention weight Inline graphic is the result of score Inline graphic after softmax function, which represents the attention weight of the ith query vector to the jth key vector. The attentional weight Inline graphic is calculated as shown in Eq. (12) and finally the value vectors of the sentence are weighted and summed using the attentional weights as shown in Eq. (13).

graphic file with name d33e1133.gif 12
graphic file with name d33e1137.gif 13

where n denotes the length of the sequence and V is the value matrix, which represents the value representation of the input sequence after linear transformation. Each value vector Inline graphic corresponds to an element of the input sequence.

We used four performance evaluation metrics, Accuracy (𝐴𝑐𝑐), Precision (𝑃𝑟𝑒), Recall(𝑅𝑒), F1 score (𝐹1) and area under the receiver operating characteristic (ROC) curve (AUC) to assess the effectiveness of the GNCM in general. All metrics are positive, i.e., the larger the metrics the better the model, and it is calculated as follows:

graphic file with name d33e1155.gif 14
graphic file with name d33e1159.gif 15
graphic file with name d33e1163.gif 16
graphic file with name d33e1167.gif 17

where TP (True Positive) denotes the number of positive samples correctly classified, TN (True Negative) denotes the number of negative samples correctly classified, FP (False Positive) i.e., the number of misclassified as actual samples, and FN (False Negative) denotes the number of actual labels not predicted by the model in classification.

Weight calculation for genes

In this study, the weights for gene families were derived from a real-world dataset consisting of 36 samples of hemimetabolous insects and 257 samples of holometabolous insects. The attention scores for each gene were aggregated to form the weight for the corresponding gene family. Through the attention weight calculation of the GNCM module (Fig.S3), we obtain the weight distributionInline graphicfor the query vector, where the weight value reflects the relevance of each key vectorInline graphic to the query vector. The value vector Inline graphic corresponding to the high weight value Inline graphic contributes more to the final attention value, while the value vector with a low weight value contributes less. The weights obtained by GNCM are arranged in descending order, and the top 5% Orthogroups with the highest weights are taken out as the high-weight genes identified by the classification model. Then, the key genes in this study are obtained by intersecting.

Differential expression analysis

To retrieve transcriptome data of insects at different developmental stages, we searched NCBI’s Sequence Read Archive (SRA) Browser (https://www.ncbi.nlm.nih.gov/sra) using the species name and developmental stage as search terms to obtain RNA-seq SRA login numbers. Ultimately, we downloaded transcriptome data from 27 Drosophila melanogaster (D. melanogaster), and 24 Spodoptera frugiperda (S. frugiperda). Detailed information on the stage of transcriptome data for each species is provided in Table S2. For insect high-weighted genes identified by GNCM, we performed transcript assembly and abundance estimation using StringTie v2.2.1 [44]. Transcript abundance was normalized to transcripts per million (TPM) by calculating read coverage for each transcript, normalizing counts based on transcript length, and scaling based on total sequencing depth for each sample. Soft clustering analysis of genes was performed using Mfuzz software [45], processing standardized read counts based on the developmental process. We selected nine developmental stages. In addition, we used weighted gene co-expression network analysis (WGCNA) to perform module clustering of gene expression across different developmental stages [46].

Results

Data preprocessing results

Protein sequences of 257 holometabolous and 36 hemimetabolous insects used to construct the GNCM were obtained from NCBI. Their phylogenetic relationships indicate that holometabolous insects evolved later than hemimetabolous insects (Fig.S4). The completeness assessment showed that the BUSCO values of these proteomes were all higher than 90%, with an average of 98.5% (Table S1). A total of 3,950,316 proteins with longest transcripts were obtained from these 293 insects, with the number ranged from 11,969 to 25,647 (Fig.S4, Table S1). Among them, the average gene number in hemimetabolous insects was about 15,151, while the value in holometabolous insects was 13,249. Based on the 3,950,316 protein sequences of 293 species, 38,316 Orthogroups were clustered using Orthofinder (Table S3). Subsequently, orthologous genes from 20,481 Orthogroups were selected to construct GNCM for simulated insect samples (Fig. 4A).

Fig. 4.

Fig. 4

The results of data preprocessing. A Orthogroups’ length selection strategy, when the length is 20,481, it can cover 99% of species. A larger gap value means that there are fewer species with gene family in each Orthogroup. B BPE tokenizer frequency of words of different lengths. C Sample size after data enhancement, D0 represents the original sample, D1 is the number of samples after enhancement of hemimetabolous taxon samples, and D2 is the number of samples after gene family sampling and expansion. D Word2vec-based CBOW word embedding heatmap. E Word2vec-based Skip-gram word embedding heatmap. The horizontal axis represents the dimension of the embedding vector (from 1 to 150), the vertical axis represents the ranked frequency of words (from high to low), and the color shade reflects the magnitude and direction of the vector value in different dimensions. The yellow indicates a larger positive value, green indicates a larger negative value, and the darker the color, the more significant the activation of the embedding vector in that dimension

In order to meet the sample size requirements of deep learning, we simulated and expanded the samples. A total of 2,520 hemimetabolous and 2,570 holometabolous samples were obtained from 293 insects based on their gene family of 20,481 Orthogroups (Fig. 4B). The total 5,090 samples were divided into 3,562 training samples, 1,017 validation samples, and 511 test samples for GNCM in a ratio of 7:2:1. For each input sample, 13,000 sequences are extracted and encoded into a 150-dimensional embedding vector, which serves as the training input for the GNCM. All protein sequences of the 2,190 samples were vectorized by the 9,991 words and used to construct GNCM.

In this study, the parameters for the CBOW and Skip-gram word embedding methods were set identically: a window size of 20, an embedding dimension of 150, a minimum word frequency of 1,500, and 5 training iterations. The results show that the embedding heatmaps generated by the CBOW model generally exhibit more uniform and smooth features, with relatively continuous color transitions (Fig. 4D). Unlike the Skip-gram, no particularly prominent band-like clustering phenomena were observed across different dimensions (Fig. 4E). Therefore, during training, the CBOW tends to learn contextual information in a more globally averaged sense, resulting in a more stable distribution of features across dimensions and a better overall balance in the embedding space.

Training and evaluation of GNCM

It is important to note that during the training of deep learning models, close attention must be paid to potential overfitting issues. In this study, we not only employed “dropout” and “early stopping” strategies to prevent overfitting, but also continuously monitored the trends in model loss and accuracy using the training and validation sets. Figures 5A and C illustrate the trends in accuracy and loss during the training and validation phases of GNCM. After five training epochs, the loss and accuracy values remained largely stable. As training progressed, the attention layer learned high-level abstract features that were crucial for classification predictions, leading the model to converge to a state of high accuracy. In Fig. 5, we compare the training and validation accuracy and loss curves of GNCM based on BPE under the two word embedding methods (CBOW and Sg). The results show that the accuracy and loss of GNCM based on the BPE+CBOW and BPE + Sg combinations both outperform BiLSTM_Attention. Furthermore, Fig. 6 compares the accuracy and loss of GNCM using the HFkmer+CBOW and HFkmer + Sg combinations, which also outperform BiLSTM_Attention. It is worth noting that the BPE-based protein sequence feature construction method significantly outperforms HFkmer, while the CBOW-based protein sequence feature extraction significantly outperforms Sg (Table 2).

Fig. 5.

Fig. 5

Comparison of training performance between BiGRU and BiLSTM with attention under different word embedding representations. A The training and validation accuracy of GNCM (BPE+CBOW). B The training and validation accuracy of GNCM (BPE + Sg). C The training and validation loss of GNCM (BPE+CBOW). D The training and validation loss of GNCM (BPE + Sg)

Fig. 6.

Fig. 6

Comparison of training performance between HFkmer and BPE with attention under different word embedding representations. A The training and validation accuracy of GNCM (HFkmer+CBOW). B The training and validation accuracy of GNCM (HFkmer + Sg). C The training and validation loss of GNCM (HFkmer +CBOW). D The training and validation loss of GNCM (HFkmer + Sg)

Table 2.

A comparison of GNCM performance on the test set using different sequence tokenizing and word embedding methods

Sequence tokenizing Word Embedding Algorithm Accuracy F1 Precision Recall Cross-Entropy Loss
BPE CBOW GNCM 0.9960 0.9957 0.9947 0.9967 0.0126
Sg GNCM 0.9922 0.9922 0.9921 0.9923 0.0328
CBOW BiLSTM + SAM 0.9647 0.9647 0.9646 0.9648 0.1054
Sg BiLSTM + SAM 0.8686 0.8682 0.8781 0.8708 0.3380
HFkmer CBOW GNCM 0.9869 0.9869 0.9873 0.9865 0.0391
Sg GNCM 0.8072 0.8012 0.8257 0.7998 0.4263
CBOW BiLSTM + SAM 0.9935 0.9934 0.9934 0.9934 0.0140
Sg BiLSTM + SAM 0.8170 0.8107 0.8400 0.8090 0.4078

Here, we report the ablation test results for the GNCM framework. First, we compared the prediction performance across different embedding dimensions (Table 3). We set the embedding dimensions to 30, 50, 100, and 150 and compared their impact on model performance. Results indicate that GNCM achieves optimal performance and minimal loss at embedding dimension = 150, followed by 100, 50, and 30, while 30 yields the poorest results. Additionally, we conducted an ablation analysis on the deep learning framework within GNCM to investigate whether the attention layer enhances model predictive performance. Performance comparisons from ablation test revealed that this effect only became apparent after incorporating the attention layer.

Table 3.

Results of the ablation analysis of the GNCM on test dataset

Algorithm Accuracy F1 Precision Recall Cross-Entropy Loss
GNCM with parameter embedding dim = 150 0.9960 0.9957 0.9947 0.9967 0.0126
GNCM with parameter embedding dim = 100 0.9757 0.9745 0.9700 0.9804 0.0328
GNCM with parameter embedding dim = 50 0.9676 0.9659 0.9627 0.9698 0.0752
GNCM with parameter embedding dim = 30 0.9474 0.9453 0.9393 0.9555 0.1173
BiGRU with parameter embedding dim = 150 0.7530 0.6998 0.7845 0.6919 0.5443

To validate the classification performance of GNCM, we first compared the classification performance of BiLSTM and BiGRU networks using BPE and HFkmer, respectively. The results showed that the classification accuracy of both models was below 0.76 (Table S7), which clearly demonstrates the contribution of SAM (Table 2). Second, we also compared the performance of GNCM, ANN, BiLSTM (bidirectional long short-term memory), SVM, and XGBoost (Table 4). Compared to the other four methods, GNCM demonstrates significant advantages across all five performance evaluation metrics. GNCM achieves the best classification results for all five performance evaluation metrics in each category, while methods such as SVM, XGBoost, and ANN perform poorly, with BiLSTM yielding the worst results. Overall, the findings indicate that GNCM excels in identifying insect pupal metamorphosis genes.

Table 4.

Performance analysis results of the GNCM on the test dataset with other algorithms

Methods Accuracy F1 Precision Recall Cross-Entropy Loss
GNCM 0.9960 0.9957 0.9947 0.9967 0.0126
BiLSTM 0.7247 0.6720 0.7305 0.6670 0.5761
SVM 0.9555 0.9527 0.9536 0.9517 0.0954
ANN 0.9555 0.9516 0.9665 0.9415 0.3090
XGBoost 0.9312 0.9240 0.9500 0.9096 0.4913

Weight acquisition and KEGG enrichment analysis

The weights of Orthogroups were obtained from the AM of GNCM (Table S4). Among these Orthogroups, 1,048 Orthogroups (accounting for 5%) have weights exceeding 0.65 (Fig. 7). We designate the genes within these 1,048 orthogroups as high-weight genes, and subsequent analyses will be based on these genes.

Fig. 7.

Fig. 7

Weight distribution of gene families. High-weight Orthogroups accounts for 5%

To further understand the biological functions of these high-weight gene families and identify the major metabolic pathways in which they participate, we analyzed the identified high-weight genes D. melanogaster using the Kyoto Encyclopedia of Genes and Genomes (https://www.kegg.jp/kegg/) [47]. The analysis of the results showed 97 genes were enriched in 8 pathways (P < 0.01) (Fig. 8; Table S5). Among these genes, we found 16 genes (MP1, modSP, and PGRP-SA et al.) are involved in the Toll and Imd signaling pathway [48], 23 genes (bab2, ttk, and Ras85D et al.) located in the MAPK signaling pathway – fly [49], 10 genes (br, Dronc, Ras85D, and Eip93F et al.) were located in the Apoptosis – fly [50], and 8 genes (chinmo, ab, and aop et al.) were located in the Dorso-ventral axis formation [51]. These enriched signaling pathways are closely associated with insect metamorphosis. Overall, the genes within these pathways reflect their necessity for immune defense [52], apoptosis [53], and development [54] during the transformation from larva to pupa and adult.

Fig. 8.

Fig. 8

KEGG enrichment of key genes. The reference species is Silkworm, -log10(P value) is the p value in -log base 10

Case study

To further validate the ability of GNCM to identify key genes involved in insect pupation, we performed a differential analysis on the genes with higher and lower weights identified by GNCM. First, we analyzed the P0, P1, P2, P3, and P4 stages of D. melanogaster (Fig. S6). The results showed that the expression patterns of high-weight and low-weight genes differed significantly across all P0–P4 stages (Mann–Whitney U test, p < 0.05). Notably, at the P0(p = 6.62e–45), the expression levels of high-weight genes were significantly higher than those of low-weight genes, with the difference being most pronounced. At the P4(late pupal development), this difference remained statistically significant, although the p-value was significantly higher than in the previous stages. Second, we conducted case studies on different developmental stages of two holometabolous insect species: D. melanogaster and S. frugiperda. Holometabolous insects undergo extensive tissue removal and new structure formation during development, with programmed cell death (PCD) being a key event in this process [55–57]. Notably, the br (Broad-Complex), Eip93F (Ecdysone-induced protein 93 F), Dronc (Death regulator Nedd2-like caspase), and Ras85D (Ras oncogene at 85D) in the apoptosis pathway are highly expressed during the pupal stage of D. melanogaster and S. frugiperda (Fig. 9, Table S6), consistent with the physiological role of tissue apoptosis in clearing old tissues during metamorphosis. In summary, GNCM is capable of identifying key genes involved in the metamorphosis of insect pupae.

Fig. 9.

Fig. 9

Relative expression levels of genes in the apoptosis pathway at different developmental stages in D. melanogaster and S. frugiperda. A br is upregulated during the prepupal stage. B Eip93F is expressed during the pupal stage. C Dronc is upregulated during the prepupal stage. D Ras85D is highly expressed during the pupal stage.The developmental stages were first instar larvae (L1), second instar larvae (L2), third instar larvae (L3), fourth instar larva (L4), fifth instar larva(L5), sixth instar larva(L6), and the pupal stage (P), prepupal stage (P0), first day of pupal stage (P1), second day of pupal stage (P2), third day of pupal stage (P3), fourth day of pupal stage (P4), and the first day of adult stage (A). Each bar is the average TPM of the stage, and the error line is the standard deviation (SD). Statistical tests were performed on log2(TPM + 1): one-way ANOVA (one-way ANOVA, log2TPM ~ Stage) was fitted to each gene and multiple comparisons (two-sided, α = 0.05) were performed with Tukey’s HSD. Different letters on the columns indicate significant differences between stages (same letter is not significant)

Discussion

In recent years, with the rapid accumulation of genomic data and the continuous advancement of artificial intelligence technologies, DL has gradually emerged as a powerful tool for identifying key trait genes. DL can automatically learn latent features within large-scale sequences and achieve high-dimensional expression modeling by constructing complex feature spaces, thereby overcoming traditional methods’ reliance on manually set thresholds. This study designed a GNCM model based on SAM and BiGRU, using protein sequences as input to identify key genes involved in insect pupal metamorphosis. Compared to traditional machine learning methods, GNCM yields more precise results. When evaluated other algorithms such as BiGRU, BiLSTM, ANN, SVM, and XGBoost, GNCM demonstrated superior performance across all metrics (Tables 2, 3 and 4), attributed to its selective SAM. Compared to the feature extraction model based on the Sg sequence, the GNCM model built using CBOW demonstrates superior performance across all evaluation metrics (Figs. 5 and 6 ), likely because the features extracted by CBOW are smoother (Figs. 4D, E).

To validate the reliability of GNCM in identifying key genes, we performed temporal soft clustering analysis on stage-specific transcriptomes of D. melanogaster using Mfuzz software, focusing on gene clusters that peaked in expression during the pupal stage (Fig.S5). These gene clusters preferentially transcribed during the pupal stage, such as Clusters 6, Clusters 7, Clusters 8, Clusters 9, Clusters 10, Clusters 11, Clusters 12, Clusters 14, Clusters 15, Clusters 16, Clusters 18, and Clusters 19 (Fig.S5), these genes may play an important role in the metamorphosis process during the pupal stage. Although genes within the GNCM-identified families are not exclusively highly expressed during the pupal stage, this may result from the presence of non-essential genes within certain gene families. In addition, the genes identified by the GNCM as having higher weights exhibited higher expression levels during the pupal stage compared to those with lower weights (Fig.S6). There are 166 overlapping genes between the genes enriched in WGCNA during the pupal stage and GNCM, suggesting that GNCM is capable of identifying pupal-specific genes (Figs.S7,8). Regardless, the majority of genes identified by GNCM exhibit pupa-specific expression. These findings validate GNCM’s feasibility and accuracy in identifying insect pupal metamorphosis genes, laying a solid foundation for subsequent functional validation and mechanism studies.

Insects undergo a series of time-regulated morphological stages during development that lead to the final adult form. In holometabolous insects, the larva transitions through the pupal stage to the adult form, when the larval tissues are completely reorganized and adult structures such as wings gradually form [58]. Previous studies have revealed that chinmo is essential for maintaining the larval stage in D. melanogaster, and with br and Eip93F, it forms a triad of master genes governing insect metamorphosis [16]. The chinmo is strongly expressed during larval growth (Fig.S9A), and its removal leads to premature expression in br first-stage larvae, resulting in a shift from larval to pre-metamorphic function [59]. In holometabolous insects, br is specifically upregulated during the larval-to-pupal transition and is essential for pupal formation (Fig. 8A). Previous studies have shown that the br triggers pupation in holometabolous insects [60, 61], whereas in hemimetabolous insects, br is primarily involved in the development of wings and ovipositor [62]. The Eip93F acts as a marker for adult-specific differentiation during the pupal stage and plays a key role in programmed cell death, which is essential for mediating tissue remodeling [63–65]. Additionally, several genes in the Toll and Imd signaling pathway exhibit high expression during the pupal stage (Figs.S9B-D), such as PGRP-SA [66], MP1 [67], and modSP [68], we speculate that these genes may play a role in the immune system during the metamorphosis of insects. Some of the key genes identified by GNCM have been shown to be essential for insect metamorphosis (Table S8). These genes demonstrate the feasibility of GNCM in identifying key genes involved in the metamorphosis of insect pupae. Furthermore, some new insect pupal metamorphosis candidate genes have also been identified (Fig.S10). These candidate genes are significantly upregulated in the P0 stage (Figs.S10A, B) of D. melanogaster. These newly identified candidate genes require further validation and also provide a foundation for future research on insect metamorphosis.

This study has several limitations. First, due to the limited availability of genomic data from hemimetabolous insects for modeling, the unbalanced sampling may introduce some bias into the model results. Second, because of the limited transcriptomic data available, this study only examined gene expression differences between D. melanogaster and S. frugiperda at different developmental stages. As more insect genomes are sequenced and artificial intelligence technologies advance rapidly, these limitations will be effectively addressed. Although GNCM has identified many genes associated with insect metamorphosis, these may include both genuine biological signals related to metamorphosis and signals related to certain data structural patterns. In the future, it will be necessary to combine these findings with more rigorous phylogenetic control analyses, independent validation data, and functional experiments to further screen and validate these candidate genes, thereby more clearly distinguishing the contributions of “biological signals” from those of “dataset structural signals”.

Conclusion

In this study, we constructed a gene network classification model (GNCM) based on BiGRU and SAM to identify key genes influencing insect metamorphosis. Comparative analysis across different dimensionality embeddings revealed that GNCM achieved optimal classification performance at 150 dimensions. When comparing sequence feature construction methods (BPE and HFkmer) with extraction methods (CBOW and Sg), the combination of CBOW and BPE yields the best results. Compared with algorithms such as SVM, XGBoost, ANN, BiGRU, and BiLSTM, GNCM demonstrated superior performance across all evaluation metrics. The high-weight gene families identified by GNCM predominantly exhibited clustering trends of high expression during the pupal stage, indicating its reliability in protein sequence classification and key gene identification tasks for hemimetabolous and holometabolous insects. This study not only identified multiple genes known to be associated with insect pupal metamorphosis but also discovered candidate genes that have not been studied yet and may play important roles in insect pupal metamorphosis, providing a reference for future research on insect metamorphic development.

Supplementary Information

Acknowledgements

Not applicable.

Authors’ contributions

Conceptualization: F.L., Y.J.Z, Y.C, and S.Q., Data Curation: X.T., and J.L., Formal Analysis: F.L., X.T., and J. L., Investigation: X.T., and S.Q., and J.L., Methodology: F.L., Y.J.Z., J.M., Y.C and S.Q., Resources: Y.J.Z, and Y.C, Supervision: F.L., Validation: F.L., X.T., and Y.J.Z, Visualization: F.L., and X.T., Writing—original draft: F.L., and Y.J.Z, Writing—review & editing: Y.J.Z, F.L., X.Y., J.H., J.Z., and Y.Z, Funding Acquisition: Y.J.Z.

Funding

This work was supported by Natural Science Foundation of China (32560249), Forest Ecological Big Data Open Project of Key Laboratory of State Forestry and Grassland Administration (SWFU-BIC-2024016) and Scientific Research Foundation of Yunnan Education Department (2024Y612).

Data availability

All sequence information used for model construction and analysis was obtained from publicly accessible NCBI databases and is available in the figshare repository: [https://doi.org/10.6084/m9.figshare.30061399.v1]. Corresponding accession numbers are detailed in Supplementary Material 2 (Table S1 and S2). Other data supporting the findings of this study are available from the corresponding author upon reasonable request.

Code availability

The source code for GNCM is available at the following link: https://github.com/liufangrong/GNCM.

Declarations

Ethics approval and consent to participate

Not applicable.

Consent for publication

Not applicable.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Fangrong Liu, Yong Cao and Songping Qian contributed equally to this work.

Change history

10/14/2026

The original publication was updated to amend a typographical error in affiliation 1.

References

  • 1.Misof B, Liu S, Meusemann K, Peters RS, Donath A, Mayer C, et al. Phylogenomics resolves the timing and pattern of insect evolution. Science. 2014;346:763–7. 10.1126/science.1257570. [DOI] [PubMed] [Google Scholar]
  • 2.Li Y, Liu Z, Liu C, Shi Z, Pang L, Chen C, et al. HGT is widespread in insects and contributes to male courtship in lepidopterans. Cell. 2022;185:2975–e298710. 10.1016/j.cell.2022.06.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Truman JW, Riddiford LM. The origins of insect metamorphosis. Nature. 1999;401:447–52. 10.1038/46737. [DOI] [PubMed] [Google Scholar]
  • 4.Ohde T, Mito T, Niimi T. A hemimetabolous wing development suggests the wing origin from lateral tergum of a wingless ancestor. Nat Commun. 2022;13:979. 10.1038/s41467-022-28624-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Tihelka E, Cai C, Giacomelli M, Lozano-Fernandez J, Rota-Stabelli O, Huang D, et al. The evolution of insect biodiversity. Curr Biol. 2021;31:R1299–311. 10.1016/j.cub.2021.08.057. [DOI] [PubMed] [Google Scholar]
  • 6.Belles X. Investigating the origin of insect metamorphosis. eLife. 2023;12:e94410. 10.7554/eLife.94410. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Condamine FL, Clapham ME, Kergoat GJ. Global patterns of insect diversification: towards a reconciliation of fossil and molecular evidence? Sci Rep. 2016;6:19208. 10.1038/srep19208. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Blaimer BB, Santos BF, Cruaud A, et al. Key innovations and the diversification of Hymenoptera. Nat Commun. 2023;14:1212. 10.1038/s41467-023-36868-4. [DOI] [PMC free article] [PubMed]
  • 9.Rolff J, Johnston PR, Reynolds S. Complete metamorphosis of insects. Philos Trans R Soc Lond B Biol Sci. 2019;374:20190063. 10.1098/rstb.2019.0063. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Wexler J, Pick L, Chipman A. Segmental expression of two ecdysone pathway genes during embryogenesis of hemimetabolous insects. Dev Biol. 2023;498:87–96. 10.1016/j.ydbio.2023.03.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Lough JM, Anderson KD, Hughes TP. Increasing thermal stress for tropical coral reefs: 1871–2017. Sci Rep. 2018;8:6079. 10.1038/s41598-018-24530-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Ishimaru Y, Tomonari S, Matsuoka Y, Watanabe T, Miyawaki K, Bando T, et al. TGF-β signaling in insects regulates metamorphosis via juvenile hormone biosynthesis. Proc Natl Acad Sci. 2016;113:5634–9. 10.1073/pnas.1600612113. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Baumann AA, Texada MJ, Chen HM, Etheredge JN, Miller DL, Picard S, et al. Genetic tools to study juvenile hormone action in Drosophila. Sci Rep. 2017;7:2132. 10.1038/s41598-017-02264-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Kayukawa T, Jouraku A, Ito Y, Shinoda T. Molecular mechanism underlying juvenile hormone-mediated repression of precocious larval–adult metamorphosis. Proc Natl Acad Sci. 2017;114:1057–62. 10.1073/pnas.1615423114. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Song J, Wu Z, Wang Z, Deng S, Zhou S. Krüppel-homolog 1 mediates juvenile hormone action to promote vitellogenesis and oocyte maturation in the migratory locust. Insect Biochem Mol Biol. 2014;52:94–101. 10.1016/j.ibmb.2014.07.001. [DOI] [PubMed] [Google Scholar]
  • 16.Truman JW, Riddiford LM. Chinmo is the larval member of the molecular trinity that directs Drosophila metamorphosis. Proc Natl Acad Sci. 2022;119(e2201071119). 10.1073/pnas.2201071119. [DOI] [PMC free article] [PubMed]
  • 17.Daimon T, Uchibori M, Nakao H, Sezutsu H, Shinoda T. Knockout silkworms reveal a dispensable role for juvenile hormones in holometabolous life cycle. Proc Natl Acad Sci U S A. 2015;112:E4226–4235. 10.1073/pnas.1506645112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Erezyilmaz DF, Riddiford LM, Truman JW. The pupal specifier broad directs progressive morphogenesis in a direct-developing insect. Proc Natl Acad Sci. 2006;103:6925–30. 10.1073/pnas.0509983103. [DOI] [PMC free article] [PubMed]
  • 19.Ureña E, Manjón C, Franch-Marro X, Martín D. Transcription factor E93 specifies adult metamorphosis in hemimetabolous and holometabolous insects. Proc Natl Acad Sci. 2014;111:7024–9. 10.1073/pnas.1401478111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Huang S, Cai N, Pacheco PP, Narrandes S, Wang Y, Xu W. Applications of Support Vector Machine (SVM) Learning in Cancer Genomics. Cancer Genomics Proteom. 2018;15:41–51. 10.21873/cgp.20063. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Jansen S, Baulain U, Habig C, Ramzan F, Schauer J, Schmitt AO, et al. Identification and Functional Annotation of Genes Related to Bone Stability in Laying Hens Using Random Forests. Genes (Basel). 2021;12:702. 10.3390/genes12050702. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Liu J, Zhang D, Cao Y, Zhang H, Li J, Xu J, et al. Screening of crosstalk and pyroptosis-related genes linking periodontitis and osteoporosis based on bioinformatics and machine learning. Front Immunol. 2022;13:955441. 10.3389/fimmu.2022.955441. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.LeCun Y, Bengio Y, Hinton G. Deep learning. Nature. 2015;521:436–44. 10.1038/nature14539. [DOI] [PubMed] [Google Scholar]
  • 24.Lin H, Chen W, Anandakrishnan R, Plewczynski D. Application of Machine Learning Method in Genomics and Proteomics. Sci World J. 2015;2015:914780. 10.1155/2015/914780. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Choi RY, Coyner AS, Kalpathy-Cramer J, Chiang MF, Campbell JP. Introduction to Machine Learning, Neural Networks, and Deep Learning. Transl Vis Sci Technol. 2020;9:14. 10.1167/tvst.9.2.14. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Li Z, Gao E, Zhou J, Han W, Xu X, Gao X. Applications of deep learning in understanding gene regulation. Cell Rep Methods. 2023;3:100384. 10.1016/j.crmeth.2022.100384. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Chen L, Li Q, Nasif KFA, Xie Y, Deng B, Niu S, et al. AI-Driven Deep Learning Techniques in Protein Structure Prediction. Int J Mol Sci. 2024;25:8426. 10.3390/ijms25158426. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Geng Q, Yang R, Zhang L. A deep learning framework for enhancer prediction using word embedding and sequence generation. Biophys Chem. 2022;286:106822. 10.1016/j.bpc.2022.106822. [DOI] [PubMed] [Google Scholar]
  • 29.Barbadilla-Martínez L, Klaassen N, van Steensel B, de Ridder J. Predicting gene expression from DNA sequence using deep learning models. Nat Rev Genet. 2025;26:666–80. 10.1038/s41576-025-00841-2. [DOI] [PubMed] [Google Scholar]
  • 30.Abramson J, Adler J, Dunger J, Evans R, Green T, Pritzel A, et al. Accurate structure prediction of biomolecular interactions with AlphaFold 3. Nature. 2024;630:493–500. 10.1038/s41586-024-07487-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN et al. Attention Is All You Need. arXiv.org. 2017. https://arxiv.org/abs/1706.03762v7. Accessed 30 Oct 2025.
  • 32.Srivastava P, Bej S, Yordanova K, Wolkenhauer O. Self-Attention-Based Models for the Extraction of Molecular Interactions from Biological Texts. Biomolecules. 2021;11:1591. 10.3390/biom11111591. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Sayers EW, Bolton EE, Brister JR, Canese K, Chan J, Comeau DC, et al. Database resources of the national center for biotechnology information. Nucleic Acids Res. 2022;50:D20–6. 10.1093/nar/gkab1112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Manni M, Berkeley MR, Seppey M, Simão FA, Zdobnov EM. BUSCO Update: Novel and Streamlined Workflows along with Broader and Deeper Phylogenetic Coverage for Scoring of Eukaryotic, Prokaryotic, and Viral Genomes. Mol Biol Evol. 2021;38:4647–54. 10.1093/molbev/msab199. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Simão FA, Waterhouse RM, Ioannidis P, Kriventseva EV, Zdobnov EM. BUSCO: assessing genome assembly and annotation completeness with single-copy orthologs. Bioinformatics. 2015;31:3210–2. 10.1093/bioinformatics/btv351. [DOI] [PubMed] [Google Scholar]
  • 36.Emms DM, Kelly S. OrthoFinder: phylogenetic orthology inference for comparative genomics. Genome Biol. 2019;20:1–14. 10.1186/s13059-019-1832-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Kawano K, Koide S, Imamura C. Seq2seq Fingerprint with Byte-Pair Encoding for Predicting Changes in Protein Stability upon Single Point Mutation. IEEE/ACM Trans Comput Biol Bioinf. 2020;17:1762–72. 10.1109/TCBB.2019.2908641. [DOI] [PubMed] [Google Scholar]
  • 38.Zhou Z, Ji Y, Li W, Dutta P, Davuluri R, Liu H. DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genome. 2024. 10.48550/arXiv.2306.15006. [DOI]
  • 39.Deorowicz S. FQSqueezer: k-mer-based compression of sequencing data. Sci Rep. 2020;10:578. 10.1038/s41598-020-57452-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Mikolov T, Chen K, Corrado G, Dean J. Efficient Estimation of Word Representations in Vector Space. 2013. 10.48550/arXiv.1301.3781. [DOI]
  • 41.Liu M, Yao D, Liu Z, Guo J, Chen J. An Improved Adam Optimization Algorithm Combining Adaptive Coefficients and Composite Gradients Based on Randomized Block Coordinate Descent. Comput Intell Neurosci. 2023;2023:4765891. 10.1155/2023/4765891. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Prechelt L. Early Stopping — But When? In: Montavon G, Orr GB, Müller K-R, editors. Neural Networks: Tricks of the Trade: Second Edition. Berlin, Heidelberg: Springer; 2012. pp. 53–67. 10.1007/978-3-642-35289-8_5. [DOI] [Google Scholar]
  • 43.Srivastava N, Hinton G, Krizhevsky A, Sutskever I, Salakhutdinov R. Dropout: a simple way to prevent neural networks from overfitting. J Mach Learn Res. 2014;15:1929–58. [Google Scholar]
  • 44.Pertea M, Pertea GM, Antonescu CM, Chang T-C, Mendell JT, Salzberg SL. StringTie enables improved reconstruction of a transcriptome from RNA-seq reads. Nat Biotechnol. 2015;33:290–5. 10.1038/nbt.3122. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Kumar L, E Futschik M. Mfuzz: a software package for soft clustering of microarray data. Bioinformation. 2007;2:5–7. 10.6026/97320630002005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Langfelder P, Horvath S. WGCNA: an R package for weighted correlation network analysis. BMC Bioinformatics. 2008;9:559. 10.1186/1471-2105-9-559. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Kanehisa M, Furumichi M, Sato Y, Kawashima M, Ishiguro-Watanabe M. KEGG for taxonomy-based analysis of pathways and genomes. Nucleic Acids Res. 2023;51:D587–92. 10.1093/nar/gkac963. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Yang L, Yang L, Wang X, Peng C, Chen X, Wei W, et al. Toll and IMD Immune Pathways Are Important Antifungal Defense Components in a Pupal Parasitoid, Pteromalus puparum. Int J Mol Sci. 2023;24:14088. 10.3390/ijms241814088. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Guo Z, Kang S, Sun D, Gong L, Zhou J, Qin J, et al. MAPK-dependent hormonal signaling plasticity contributes to overcoming Bacillus thuringiensis toxin action in an insect host. Nat Commun. 2020;11:3003. 10.1038/s41467-020-16608-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Ribeiro Lopes M, Parisot N, Callaerts P, Calevro F. Genetic Diversity of the Apoptotic Pathway in Insects. In: Pontarotti P, editor. Evolution, Origin of Life, Concepts and Methods. Cham: Springer International Publishing; 2019. pp. 253–85. 10.1007/978-3-030-30363-1_13. [DOI] [Google Scholar]
  • 51.Sagner A, Merkel M, Aigouy B, Gaebel J, Brankatschk M, Jülicher F, et al. Establishment of Global Patterns of Planar Polarity during Growth of the Drosophila Wing Epithelium. Curr Biol. 2012;22:1296–301. 10.1016/j.cub.2012.04.066. [DOI] [PubMed] [Google Scholar]
  • 52.Han P, Han J, Fan J, Zhang M, Ma E, Li S, et al. 20-Hydroxyecdysone activates PGRP-SA mediated immune response in Locusta migratoria. Dev Comp Immunol. 2017;72:128–39. 10.1016/j.dci.2017.02.021. [DOI] [PubMed] [Google Scholar]
  • 53.Tettamanti G, Casartelli M. Cell death during complete metamorphosis. Philos Trans R Soc Lond B Biol Sci. 2019;374:20190065. 10.1098/rstb.2019.0065. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Li Y, Li S, Jin P, Chen L, Ma F. miR-11 regulates pupal size of Drosophila melanogaster via directly targeting Ras85D. Am J Physiol Cell Physiol. 2017;312:C71–82. 10.1152/ajpcell.00190.2016. [DOI] [PubMed] [Google Scholar]
  • 55.Winbush A, Weeks JC. Steroid-triggered, cell-autonomous death of a Drosophila motoneuron during metamorphosis. Neural Dev. 2011;6:15. 10.1186/1749-8104-6-15. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Gu H, Zou H, Cheng J, Liu X, Jiang Z, Peng P, et al. Mechanism of programmed cell death in the posterior silk gland of the silkworm, Bombyx mori, during pupation based on Ca2 + homeostasis. Insect Mol Biol. 2024;33:551–9. 10.1111/imb.12911. [DOI] [PubMed] [Google Scholar]
  • 57.Pino-Jiménez B, Giannios P, Casanova J. Polyploidy-associated autophagy promotes larval tracheal histolysis at Drosophila metamorphosis. Autophagy. 2023;19:2972–81. 10.1080/15548627.2023.2231828. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Stehr FW. Chapter 216 - Pupa and Puparium. In: Resh VH, Cardé RT, editors. Encyclopedia of Insects (Second Edition). San Diego: Academic Press; 2009. pp. 862–3. 10.1016/B978-0-12-374144-8.00225-3. [DOI]
  • 59.Khong H, Hattley KB, Suzuki Y. The BTB transcription factor, Abrupt, acts cooperatively with Chronologically inappropriate morphogenesis (Chinmo) to repress metamorphosis and promotes leg regeneration. Dev Biol. 2024;509:70–84. 10.1016/j.ydbio.2024.02.006. [DOI] [PubMed] [Google Scholar]
  • 60.Suzuki Y, Truman JW, Riddiford LM. The role of Broad in the development of Tribolium castaneum: implications for the evolution of the holometabolous insect pupa. Development. 2008;135:569–77. 10.1242/dev.015263. [DOI] [PubMed] [Google Scholar]
  • 61.Ureña E, Chafino S, Manjón C, Franch-Marro X, Martín D. The Occurrence of the Holometabolous Pupal Stage Requires the Interaction between E93, Krüppel-Homolog 1 and Broad-Complex. PLoS Genet. 2016;12:e1006020. 10.1371/journal.pgen.1006020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Okude G, Moriyama M, Kawahara-Miki R, Yajima S, Fukatsu T, Futahashi R. Molecular mechanisms underlying metamorphosis in the most-ancestral winged insect. Proc Natl Acad Sci. 2022;119(e2114773119). 10.1073/pnas.2114773119. [DOI] [PMC free article] [PubMed]
  • 63.Lee CY, Wendel DP, Reid P, Lam G, Thummel CS, Baehrecke EH. E93 directs steroid-triggered programmed cell death in Drosophila. Mol Cell. 2000;6:433–43. 10.1016/s1097-2765(00)00042-3. [DOI] [PubMed] [Google Scholar]
  • 64.Lee CY, Baehrecke EH. Steroid regulation of autophagic programmed cell death during development. Development. 2001;128:1443–55. 10.1242/dev.128.8.1443. [DOI] [PubMed] [Google Scholar]
  • 65.Liu X, Dai F, Guo E, Li K, Ma L, Tian L, et al. 20-Hydroxyecdysone (20E) Primary Response Gene E93 Modulates 20E Signaling to Promote Bombyx Larval-Pupal Metamorphosis. J Biol Chem. 2015;290:27370–83. 10.1074/jbc.M115.687293. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Park J-W, Kim C-H, Kim J-H, Je B-R, Roh K-B, Kim S-J et al. Clustering of peptidoglycan recognition protein-SA is required for sensing lysine-type peptidoglycan in insects. Proc Natl Acad Sci USA. 2007;104:6602–7. 10.1073/pnas.0610924104. [DOI] [PMC free article] [PubMed]
  • 67.An C, Zhang M, Chu Y, Zhao Z. Serine Protease MP2 Activates Prophenoloxidase in the Melanization Immune Response of Drosophila melanogaster. PLoS ONE. 2013;8:e79533. 10.1371/journal.pone.0079533. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68.Buchon N, Poidevin M, Kwon H-M, Guillou A, Sottas V, Lee B-L, et al. A single modular serine protease integrates signals from pattern-recognition receptors upstream of the Drosophila Toll pathway. Proc Natl Acad Sci. 2009;106:12442–7. 10.1073/pnas.0901924106. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

All sequence information used for model construction and analysis was obtained from publicly accessible NCBI databases and is available in the figshare repository: [https://doi.org/10.6084/m9.figshare.30061399.v1]. Corresponding accession numbers are detailed in Supplementary Material 2 (Table S1 and S2). Other data supporting the findings of this study are available from the corresponding author upon reasonable request.

The source code for GNCM is available at the following link: https://github.com/liufangrong/GNCM.


Articles from BMC Genomics are provided here courtesy of BMC

RESOURCES