학술

KEMP‐PIP: A feature‐fusion based approach for pro‐inflammatory peptide prediction

PLOS ONE
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Figures
Abstract
Pro-inflammatory peptides (PIPs) play critical roles in immune signaling and inflammation but are difficult to identify experimentally due to costly and time-consuming assays. To address this challenge, we present KEMP-PIP, a hybrid machine learning framework that integrates deep protein embeddings with handcrafted descriptors for robust PIP prediction. Our approach combines contextual embeddings from pretrained ESM protein language models with multi-scale k-mer frequencies, physicochemical descriptors, and modlAMP sequence features. Feature pruning and class-weighted logistic regression were employed to manage dimensionality and class imbalance, while ensemble averaging with optimized thresholds enhanced sensitivity-specificity balance. To ensure a fair evaluation, all baseline and proposed models were re-evaluated under a strictly unified evaluation strategy, and statistical significance tests (paired t-tests) were applied. Through ablation studies, we demonstrate that the integration of complementary feature sets consistently improves predictive performance. On benchmark datasets, KEMP-PIP achieved superior results compared to state-of-the-art methods, with an MCC of 0.505, accuracy of 0.752, and AUC of 0.762, outperforming ProIn-fuse, MultiFeatVotPIP, and StackPIP. Compared to StackPIP, our results represent relative improvements of 9.5% in MCC and 4.8% in accuracy and AUC, establishing KEMP-PIP as a robust advance over prior state-of-the-art approaches. The KEMP-PIP web server is freely available at https://nilsparrow1920-kemp-pip.hf.space/ and the implementation is available at https://github.com/S18-Niloy/KEMP-PIP.
Citation: Niloy SD, Juboraj MF-U-A, Shatabda S (2026) KEMP‐PIP: A feature‐fusion based approach for pro‐inflammatory peptide prediction. PLoS One 21(12): e0363676. https://doi.org/10.1371/journal.pone.0363676
Editor: Patrick Goymer, Public Library of Science, UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND
Received: January 18, 2026; Accepted: November 9, 2026; Published: December 2, 2026
Copyright: © 2026 Niloy et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: No data was generated by this study. The following existing data sources were used: [MultiFeatVotPIP available via https://github.com/ChaoruiYan019/MultiFeatVotPIP.
Funding: The author(s) received no specific funding for this work.
Competing interests: We have read the journal’s policy and the authors of this manuscript have the following competing interests: Swakkhar Shatabda is an Academic Editor of PLOS One. This does not alter our adherence to PLOS ONE policies on sharing data and materials.
1 Introduction
Pro-inflammatory peptides (PIPs) are short chains of amino acids that promote inflammation by activating immune responses. These peptides can function as cytokines or chemokines, signaling molecules that recruit immune cells to sites of infection or injury, enhance pathogen clearance, and stimulate the production of other pro-inflammatory mediators. However, excessive production or activity of these peptides can lead to tissue damage, chronic inflammation, and contribute to the pathology of various inflammatory and infectious diseases [1]. Examples include fragments derived from larger cytokines like IL-1β, which directly promote inflammation and immune cell activation [1]. Pro-inflammatory peptides possess distinct physicochemical features that govern their ability to activate immune responses. Typically, these peptides are enriched in positively charged residues such as lysine and arginine, which facilitate electrostatic interactions with negatively charged cell membranes and immune receptors. Their amphipathic nature [2], arising from the segregation of hydrophobic and hydrophilic residues, enables both membrane insertion and receptor binding, processes that are further strengthened by moderate hydrophobicity [3] and a high hydrophobic moment. Structural preferences, such as α-helical or β-sheet conformations, provide stability and effective presentation of functional motifs, while their relatively short length (10–50 amino acids) ensures flexibility and accessibility. In addition, resistance to proteolytic degradation enhances their persistence in inflammatory environments, and their tendency to aggregate can further stimulate immune activation. Collectively, these physicochemical properties—charge, hydrophobicity, amphipathicity, secondary structure, size, and stability—are central to the pro-inflammatory potential of bioactive peptides. Before computational prediction, pro-inflammatory peptides are tested in the lab by treating immune cells or animal models with candidate peptides and measuring inflammatory responses, such as cytokine release, cell activation, or tissue inflammation [4]. These experiments are time-consuming, costly, and limited in throughput, motivating the use of computational approaches to efficiently predict PIPs. From a computational standpoint [5], PIP prediction poses significant challenges. First, the sequence–function relationship in proinflammatory activity is highly complex, with subtle motifs and residue preferences (e.g., enrichment in A, F, I, L, and V) that are not easily discernible from raw sequence data. Second, publicly available datasets are often small and class-imbalanced, with far fewer experimentally validated PIPs than non-PIPs, complicating model training and increasing the risk of biased predictions. Third, peptide immunogenicity is influenced by multiple factors including physicochemical properties, secondary structure, and evolutionary profiles which must be encoded into meaningful feature vectors for machine learning algorithms. Fourth, predictive models must not only achieve high accuracy on known peptides but also generalize effectively to unseen sequences, a requirement that necessitates careful feature selection, model regularization, and often the use of ensemble or hybrid learning strategies.
In recent years, several computational frameworks such as ProInflam [1], ProIn-Fuse [6],MultiFeatVotPIP [7], PIP-EL [8] and StackPIP [9] have demonstrated the feasibility of predicting PIPs with improved sensitivity, specificity, and Matthews correlation coefficient (MCC). These methods integrate diverse feature descriptors ranging from amino acid composition and dipeptide frequencies to evolutionary patterns and motif-based patterns, combined with machine learning classifiers such as support vector machines, random forests, and ensemble voting. Despite these advancements, achieving biologically interpretable predictions that can be reliably applied to peptide therapeutics remains a central computational challenge. Among them, MultiFeatVotPIP [7] integrates diverse sequence-derived features through a majority-voting ensemble, achieving strong overall accuracy but inheriting several limitations. Its reliance on numerous hand-crafted and potentially redundant descriptors can increase overfitting risk, particularly with imbalanced data. The unweighted voting mechanism treats all base classifiers equally, potentially masking differences in their error profiles and limiting sensitivity–specificity optimization. Furthermore, the method’s published results emphasize internal validation without extensive external benchmarking or statistical significance testing, which complicates claims of superior generalization. The ensemble design also offers limited biological interpretability, making it difficult to pinpoint mechanistic determinants of proinflammatory activity. Beyond PIP-specific predictors, recent years have witnessed significant advances in computational peptide bioactivity prediction. For instance, methods originally designed for antimicrobial peptides (AMPs) and general toxin prediction have increasingly adopted hybrid deep learning architectures and large-scale pre-trained protein language models (PLMs). Studies have demonstrated that PLMs can capture latent evolutionary and structural patterns that traditional sequence-derived features miss. However, directly applying these models to PIP prediction remains underexplored, particularly concerning how PLM embeddings interact with specific handcrafted physicochemical descriptors known to drive inflammatory responses.
In selecting the embedding model for KEMP-PIP, we prioritized ESM2-T6-8M. While more advanced models such as ProtBERT and ESMC offer larger parameter counts, our preliminary comparative evaluations revealed that ProtBERT increased feature extraction time by over 4-fold with only a marginal (< 1%) improvement in validation AUC. Given that KEMP-PIP is intended for deployment as an accessible web server, ESM2-T6-8M provided the optimal balance between capturing rich contextual representations and maintaining low computational overhead for end-users.
To achieve accurate proinflammatory peptide prediction, we developed a novel computational framework that integrates multiple complementary feature representations. Specifically, we extracted pretrained ESM embeddings from a state-of-the-art protein language model to capture deep contextual sequence information. This was combined with k-mer frequency counts to encode local motif patterns and physicochemical descriptors derived from the modlamp package to represent global biochemical properties. These features were concatenated into two distinct feature sets, which were separately normalized and used to train logistic regression classifiers. An ensemble strategy, averaging the predicted probabilities from both models, was applied with a tuned classification threshold to optimize the trade-off between sensitivity and specificity. Our framework outperformed both MultiFeatVotPIP and StackPIP, demonstrating its enhanced ability to capture diverse peptide characteristics and deliver robust and reliable proinflammatory peptide classification. Here our key contributions are-
- Our work introduces a lightweight model architecture that not only reduces computational complexity but also consistently delivers superior performance across multiple evaluation metrics. &
- Web Tool which supports the FASTA files, csv files as well as manual testing
2 Methodology
The overall workflow of KEMP-PIP is illustrated in Fig 1. The framework begins with a dataset of 2,872 training peptides (1,245 PIPs and 1,627 non-PIPs) and 342 test peptides. Multiple feature types are extracted, including k-mer frequency counts to capture local motif patterns, handcrafted physicochemical descriptors (e.g., hydrophobicity, charge, length), modlAMP-derived sequence descriptors, and contextual embeddings from pretrained ESM protein language models. An initial high-dimensional feature space undergoes zero-variance filtering and coefficient pruning to remove redundant and uninformative descriptors, resulting in significantly reduced feature sets (e.g., k-mer features reduced from 168,400–35,358). Two hybrid models are then constructed: Model C (k-mer + modlAMP + ESM) and Model D (modlAMP + physicochemical + ESM). The ensemble combines these models by averaging prediction probabilities to improve robustness. Finally, the trained system is deployed as a web server that supports both CSV and FASTA file inputs, enabling user-friendly peptide classification and facilitating downstream biological applications.
2.1 Dataset
The dataset used in this study consists of peptide sequences annotated with proinflammatory activity labels. The training set comprises 2872 peptides, each labeled as proinflammatory (positive class) or non-proinflammatory (negative class). The test set contains 342 peptide sequences, some of which have corresponding labels for evaluation, while others are unlabeled and used solely for prediction.
Each peptide sequence is represented as a string of amino acid residues from the standard 20-letter alphabet {A, C, D, E, F, G, H, I, K, L, M, N, P, Q, R, S, T, V, W, Y}. The lengths of peptides vary within the dataset, reflecting the natural diversity of biologically active peptides. The dataset was sourced from a publicly available repository (https://github.com/ChaoruiYan019/MultiFeatVotPIP) [7]. This comprehensive dataset provides a robust foundation for training and validating computational models for proinflammatory peptide prediction.
The class distribution in the training data exhibits some imbalance, with the positive class (proinflammatory peptides) comprising approximately 43% of the samples. This imbalance necessitates careful model training and evaluation strategies to avoid bias toward the majority class.
Data preprocessing included removal of duplicate sequences, filtering out sequences with non-standard amino acids, and ensuring uniform formatting (uppercase letters, no gaps or special characters). CD-HIT was applied by a group of researchers to reduce redundancy and achieved a dataset sequence identity threshold of 0.60 [7]. A summary of the dataset is given in Table 1.
2.2 Feature representation
For an accurate prediction of pro-inflammatory peptides, we extracted multiple complementary feature sets that capture the sequence composition, physicochemical properties, and learned embeddings. The features were grouped into three major categories: multiscale k-mer frequencies, handcrafted physicochemical descriptors, and deep protein embeddings (ESM and modlAMP). A hybrid ensemble model combined these features for robust classification.
2.2.1 Multi-scale K-mer frequency features.
For each peptide sequence s of length L, we computed k-mer [10] counts for . Let denote the standard amino acid alphabet.
(1)where i indexes sequences, and j indexes all possible k-mers of length k.
The total number of k-mers per scale is , giving feature dimensions:
(2)The concatenated multi-scale k-mer feature vector has shape:
(3)where N is the number of sequences.
2.2.2 Physicochemical features.
Let a peptide be a sequence
(4)of length L. Define a Kyte–Doolittle hydrophobicity scale h(a) for residue a. Let (helix-propensity residues), and (sheet-propensity residues).
- 1. Length
- 2. Mean Hydrophobicity (Kyte–Doolittle) [11].
- 3. Amphipathicity (Hydrophobic Moment, Eisenberg) [12]. For an angular period radians per residue:
- Helical hydrophobic moment: – Sheet hydrophobic moment:
- 4. Positive Charge at pH 7 [13]. For basic residues (K, R, H) with side-chain p values 10.5, 12.5, 6.0, and N-terminus , the fraction protonated is
- Then
- where is the count of residue a in s. The positive-charge density is
- 5. Structural Motif Propensities [14].
- 6. Proteolytic Stability Proxies (Cleavage Densities) [15]. Cleavage densities are counts per residue (lower density more stable).
- Trypsin (K/R, not before P):
- Chymotrypsin (F/Y/W/L, not before P):
- Elastase (A/V/I/L, not before P):
- 7. Final Feature Vector [16]:
- 8. Final Matrix Shape: For N peptides,
2.2.3 ModlAMP features.
We used the modlAMP [17] Python package to calculate global sequence descriptors. Let D denote the number of descriptors calculated (default D = 10). The resulting feature matrix has shape:
(17)2.2.4 Protein sequence embeddings.
To capture contextual sequence information beyond handcrafted features, we employed a pre-trained protein language model (ESM2-T6-8M, UR50D) [18]. Each peptide sequence was tokenized at the amino acid level and fed into the transformer encoder. The model outputs a hidden representation for every token position, together with a special classification token ([CLS]) [19] that summarizes the entire sequence.
For each input peptide, we extracted the [CLS] embedding from the final hidden layer as the global sequence representation. This yields a dense real-valued vector of fixed dimension
(18)where denotes the embedding of the i-th peptide. Thus, independent of sequence length, each peptide is mapped to a point in a 320 dimensional latent space. Unlike k-mer frequencies that capture exact local motif matches, these ESM embeddings primarily capture global evolutionary context, long-range residue interactions, and latent structural propensities, serving as complementary features for downstream classifiers, either alone or concatenated with k-mer, physicochemical, and modlAMP descriptors. A summary of the features are given in Table 2.
2.2.5 Feature pruning.
The initial feature space was extremely high-dimensional, particularly for the k-mer representation. Model C (comprising k-mer, modlAMP, and ESM features) contained 168,731 variables, while Model D (modlAMP, physchem, and ESM features) contained 341 variables. To reduce dimensionality and eliminate non-informative variables, a two-stage pruning [18] strategy was applied.
Zero-variance filtering. First, we removed any feature that exhibited no variation across the training set (i.e., constant columns). Zero-variance filtering [19] is crucial for sparse encodings such as k-mers, where many possible k-mers do not occur in the peptide corpus. After this step, Model C was reduced from 168,730–35,688 features, eliminating 133,042 constant features. For Model D, no features were constant, so the dimensionality remained unchanged at 341.
Coefficient-magnitude pruning. Second, we trained an initial class-weighted logistic regression (LR) on the reduced set and ranked features by the absolute magnitude of their coefficients [20]. We evaluated a grid of thresholds . For each , only features with were retained, the model was re-trained, and performance was assessed on a stratified validation split (10% of the training set). The optimization criterion was the Matthews correlation coefficient (MCC), which is particularly suitable for imbalanced datasets.
For both Model C and Model D, the optimal threshold was found to be , indicating that retaining all non-constant features yielded the best validation MCC. Thus, the final retained feature counts were 35,688 features for Model C and 341 features for Model D.
Interpretation. This procedure [21] ensured that only features containing information (i.e., non-constant) were preserved, while providing an opportunity to discard features with negligible predictive contribution if they degraded MCC. The results highlight that the major dimensionality reduction occurred via zero-variance filtering (particularly for the sparse k-mer representation), while coefficient-based pruning did not further reduce the feature space in this dataset.
The failure of coefficient-magnitude pruning (optimal cutoff ) provides an important insight into the nature of our fused feature space. It suggests high multicollinearity among the predictors; the Logistic Regression model distributes small, non-zero weights across many correlated features rather than relying heavily on a few. Consequently, removing features based on arbitrary coefficient thresholds disrupted this distributed representation and degraded performance, whereas retaining all non-constant features preserved the complementary information network.
2.2.6 Feature combination.
We designed two complementary feature combinations for ensemble learning:
- Model C: Multi-scale k-mer + physicochemical + ESM
- Model D: ModlAMP + physicochemical + ESM
Each combined feature set was normalized using standard scaling before logistic regression training. Ensemble prediction was obtained by averaging probabilities from both models:
(21)where and are the predicted probabilities from Model A and Model B, respectively. The final label is assigned using a threshold :
(22)This multi-view feature representation captures both sequence composition patterns, global physicochemical properties, and contextual embeddings learned from large protein language models, enabling superior predictive performance.
The table summarizes the feature representations used in our models and the effect of pruning on their dimensionality. The k-mer features (with k = 2,3,4) initially contributed 168,400 dimensions, reflecting the exhaustive vocabulary of possible amino acid subsequences. However, many of these features were constant (i.e., had zero variance across all peptide sequences) and were removed using a variance-threshold pruning step. This reduced the effective k-mer feature space to 35,358 informative dimensions.
Physicochemical (Physchem) descriptors, consisting of 11 handcrafted features that capture sequence length, average hydrophobicity, amphipathicity, net positive charge, secondary-structure propensities, and cleavage-site densities, remained fully preserved since all provided non-zero variance across the dataset.
Similarly, the 10 modlAMP global descriptors, which encode higher-level sequence composition, and the 320-dimensional transformer-based embeddings (ESM2, CLS token), showed no redundant or constant dimensions and were retained in full.
After pruning, Model C (k-mer + modlAMP + ESM) was reduced from 168,730–35,688 dimensions, while Model D (modlAMP + Physchem + ESM) remained unchanged at 341 dimensions. This pruning step was crucial to eliminate non-informative features, mitigate overfitting, and reduce computational overhead, while retaining the essential diversity of the peptide representations.
2.3 Logistic regression with class weights
To address the class imbalance inherent in peptide classification tasks, we employed a Logistic Regression (LR) [22] model with class weighting. Assigning weights inversely proportional to class frequencies ensures that the minority class receives greater emphasis during training. This prevents the model from being biased towards the majority class, thereby improving its generalization on rare proinflammatory peptides. The LR classifier was optimized using the lbfgs [23] solver with a carefully tuned regularization parameter.
2.4 Ensemble tuning via alpha blending and threshold optimization
To further enhance predictive performance, we implemented an ensemble mechanism that combines predictions from multiple complementary feature representations. Specifically, a weighted averaging strategy (alpha blending) [24] was applied, where each model’s probability outputs were combined using a tunable mixing coefficient . In addition, the decision threshold [25] for classification was optimized on the validation set to maximize the Matthews Correlation Coefficient (MCC). This two-stage ensemble tuning procedure allowed the system to balance sensitivity and specificity, yielding a more reliable classification.
2.5 MCC-driven feature selection
Since MCC is a balanced metric that accounts for both false positives and false negatives, it was used as the guiding criterion for feature selection. Features with minimal contribution to MCC were pruned iteratively using coefficient magnitude analysis from the LR model, combined with variance thresholding. This strategy ensured that only the most informative biochemical, sequence, and embedding-derived features were retained, leading to a more compact yet robust feature space.
2.6 Positive quadrant projection for interpretability
To enhance the interpretability of the model, feature importance coefficients from the LR classifier were projected into the positive quadrant. This transformation ensures that all contributions are represented on a non-negative scale, facilitating intuitive visualization of feature influence. Specifically, we calculated the absolute values of the logistic regression coefficients to derive feature importance scores. We then ranked and visualized the top contributing features to verify which specific physicochemical descriptors, k-mer motifs, and ESM embedding dimensions most strongly drive classification decisions. The projection highlights which physicochemical descriptors, k-mer frequencies, and embedding dimensions most strongly drive classification decisions, offering biological insight into the discriminative properties of proinflammatory peptides [26]. For instance, this analysis revealed that specific positively charged k-mers and high hydrophobic moment scores were among the strongest drivers of positive PIP classification, aligning with known biochemical mechanisms of immune cell activation.
2.7 Performance evaluation
To assess the predictive performance of the proposed models, we employed standard classification four key metrics [27] widely used in bioinformatics, derived from the confusion matrix. Let TP, TN, FP, and FN denote the number of true positives, true negatives, false positives, and false negatives, respectively.
- 1. Accuracy (ACC) The overall proportion of correctly classified peptides is given by:
- 2. Sensitivity (SN) Sensitivity measures the ability of the classifier to correctly identify active peptides:
- 3. Specificity (SP) Specificity reflects the ability to correctly reject inactive peptides:
- 4. Matthews Correlation Coefficient (MCC) MCC [28] provides a balanced measure of classification performance, particularly under class imbalance. It ranges from (total disagreement) to + 1 (perfect prediction):
- 5. Area Under the ROC Curve (AUC) [29] The AUC quantifies the probability that the classifier assigns a higher score to a randomly chosen positive sample than to a negative one:
where and .
3 Results and analysis
3.1 Feature ablation
To evaluate the contribution of different feature types and their combinations, we conducted an ablation study using validation and test sets. The results (Table 3) report MCC, AUC, and accuracy (ACC) for each feature block and combination; the best values per column are bolded.
On the validation split, kmer+physchem+ESM achieved the highest MCC (0.2873). On the independent test set, the full feature fusion kmer+physchem+ESM+modlamp performed best with MCC 0.4042. Additionally, kmer+modlAMP + ESM acheived highest AUC in both validation set (AUC 0.70) and independent test set (MCC 0.78). The gap between validation (MCC 0.28) and test (MCC 0.40) suggests the validation split was conservative, while the test set confirmed stronger generalization. Overall, k-mer features carry the strongest standalone signal; physicochemical, ESM, and modlAMP descriptors add consistent, incremental gains.
The gap between validation (MCC 0.28) and test (MCC 0.40) suggests the validation split was conservative, while the test set confirmed stronger generalization. Overall, k-mer features carry the strongest standalone signal; physicochemical, ESM, and modlAMP descriptors add consistent, incremental gains. From a biological perspective, the dominance of k-mer features is likely due to their ability to capture highly conserved local sequential motifs (e.g., specific cleavage sites or receptor-binding domains) inherent to pro-inflammatory activity. In contrast, ESM embeddings capture global evolutionary context, which, while informative, is broader and less specifically tuned to the localized functional motifs driving inflammation. All performance differences between the top-performing feature combinations and the standalone features were statistically validated using paired t-tests across cross-validation folds (p < 0.05), confirming that the improvements are genuine and not due to random chance.
3.2 Model ablation
We further evaluated feature blocks across four classifiers (XGB, RF, SVM, MLP). Table 4 presents the ablation study results across the four classifiers (XGBoost, Random Forest, SVM, and MLP) using MCC, AUC, and ACC as evaluation metrics. When individual feature sets were employed, k-mer and ESM descriptors provided relatively stronger predictive power compared to physicochemical and modlAMP features. However, performance improved consistently when feature sets were combined.
3.3 Protein language model selection and comparison
ESM2-T6-8M (UR50D) was selected as the primary protein language model (PLM) backbone in this study for two main reasons. First, its small size (8M parameters, 6 transformer layers) keeps embedding extraction computationally lightweight, which is important for a web-server deployment intended for real-time peptide screening rather than a GPU-heavy research pipeline. Second, ESM2-T6-8M is pretrained on UniRef50 (UR50D), a clustered, non-redundant sequence database that reduces overrepresentation of common protein families and is widely adopted as a standard, reproducible pretraining corpus for PLM-based bioinformatics tools.
To address the reviewer’s suggestion, we additionally benchmarked two more recent PLMs: ESMC [30] (a contrastively trained ESM-family model) and ProtBERT [31] (a BERT-based PLM pretrained on UniRef100). Embeddings from both models were extracted and combined with the existing k-mer, physicochemical, and modlAMP feature blocks, in addition to the original ESM2 embeddings, and re-evaluated across multiple classifiers (Logistic Regression, MLP, XGBoost, Random Forest, SVM). Table 5 reports the top-ranked feature/model combinations by MCC.
As shown in Table 5, the best-performing combination overall was kmer+physchem+modlamp+esm2 + protbert under Logistic Regression, achieving MCC 0.4423, ACC 0.7193, and F1 0.7000 — an improvement over the ESM2-only fusion reported in Table 3 (MCC 0.4042). Combinations that added ESMC alongside ESM2 (e.g., kmer+modlamp+esm2 + esmc and kmer+physchem+esm2 + esmc) achieved the highest AUC values (0.79–0.79) and competitive MCC (0.4327), indicating that ESMC embeddings contribute complementary ranking information even though they do not surpass the ESM2 + ProtBERT fusion in MCC. ProtBERT-containing combinations without ESM2 (e.g., kmer+modlamp+protbert, kmer+physchem+protbert) performed noticeably worse (MCC 0.38), suggesting that ProtBERT embeddings are most useful as a complementary addition to ESM2 rather than as a standalone replacement. Overall, these results confirm that ESM2-T6-8M remains a strong and computationally efficient backbone choice, while augmenting it with ESMC or ProtBERT embeddings yields modest but consistent performance gains, supporting its retention as the default PLM in the deployed KEMP-PIP web server for efficiency reasons, with the extended multi-PLM fusion noted here as a viable direction for future accuracy-focused extensions.
3.4 Ensemble ablation
We trained five single LR models: A = (kmer+physchem+ESM), B = (kmer+physchem+modlamp), C = (kmer+ESM+modlamp), D = (physchem+ESM+modlamp), E = (kmer+physchem+ESM+modlamp). We then built all six pairwise ensembles by linearly blending probabilities with weight and tuning both and the decision threshold t to maximize MCC on a held-out split.
Table 6 reports the performance of all pairwise ensemble combinations between models A to E. Each ensemble was optimized by tuning the mixing weight () between the two component models and the decision threshold (t) to maximize the Matthews correlation coefficient (MCC) on the validation split. The results are summarized in terms of accuracy (ACC), area under the ROC curve (AUC), MCC, F1 score, sensitivity (SN), and specificity (SP), with the best value in each column highlighted in bold. The results show that no single ensemble dominates across all metrics. The CD ensemble achieved the highest overall accuracy (0.7515), MCC (0.5049), and specificity (0.7953), indicating it provides the best balanced performance. The AC ensemble obtained the best AUC (0.7834), reflecting ththe superior ranking ability.Meanwhile, the BD ensemble yielded the best F1 score (0.7652) and sensitivity (0.8480), making it the strongest choice when minimizing false negatives is critical. The ROC curve for the different ensembles are given in Figs 2 and 3.
Overall, the ablation study demonstrates that ensemble learning not only stabilizes the predictions across heterogeneous feature groups but can also enhance the balance between sensitivity and specificity, a desirable property for downstream peptide classification tasks.
3.5 Comparison with the state-of-the-art methods
We evaluated our proposed approach against several state-of-the-art methods including ProIn-fuse, MultiFeatVotPIP, and StackPIP. To ensure a strictly fair comparison, we did not copy baseline results from previous literature. Instead, all baseline methods were re-implemented or executed locally using the exact same dataset splits, feature extraction pipelines where applicable, and unified evaluation metrics (ACC, MCC, AUC, SN, SP). Furthermore, paired t-tests were conducted between KEMP-PIP and the next best baseline (StackPIP) to validate the significance of our improvements. As shown in Table 7, our ensemble model (KEMP-PIP) consistently outperforms all baselines across evaluation metrics. Specifically, KEMP-PIP achieves the highest sensitivity (0.708) (p < 0.01), indicating improved capability in correctly identifying positive instances compared to the next best method, StackPIP (0.628). It also delivers superior specificity (0.795) (p < 0.05), suggesting stronger discrimination against false positives. In terms of overall accuracy, KEMP-PIP reaches 0.752, exceeding all other models by a notable margin. Furthermore, the model yields the best AUC (0.762), reflecting a more balanced trade-off between sensitivity and specificity. Finally, KEMP-PIP attains the highest Matthews correlation coefficient (0.505), highlighting its robustness under class imbalance conditions. These consistent gains across all metrics underscore the effectiveness and reliability of our ensemble framework over existing alternatives.
3.6 Web server development
To facilitate broad accessibility and practical use of KEMP-PIP, we developed a dedicated, user-friendly web server that allows researchers to predict the pro-inflammatory potential of peptides without requiring programming expertise. The back-end of the web server is built using the FastAPI framework, while the front-end utilizes HTML and JavaScript for interactive sequence input. The tool accepts peptide sequences in FASTA or plain text format and returns prediction scores along with classification outcomes (pro-inflammatory vs. non-pro-inflammatory). Fig 4 illustrates the web interface, which is divided into distinct modules: (a) the sequence input panel supporting single sequences, CSV, and FASTA files, (b) the prediction execution button, and (c) the results dashboard displaying classification labels and probability scores. A screenshot of the webservier is given in Fig 4. The KEMP-PIP web server is freely available at https://nilsparrow1920-kemp-pip.hf.space/, and is compatible with modern browsers across devices. We anticipate that this resource will empower the community to rapidly evaluate peptide candidates, prioritize experimental validation, and accelerate therapeutic peptide discovery. The implementation is available at https://github.com/S18-Niloy/KEMP-PIP which includes a detailed README.md, a requirements.txt file for environment setup, and an inference_notebook.ipynb containing a dummy example for local predictions.
3.7 Computational cost and complexity
All experiments were conducted on a single NVIDIA Tesla T4 GPU with 16 GB of VRAM through the Kaggle notebook environment. The computational requirements of KEMP-PIP arise primarily from the extraction of protein language model (PLM) embeddings, whereas the handcrafted feature extraction and subsequent classification stages are comparatively lightweight. ESM2-T6-8M, containing approximately 8 million parameters and six Transformer layers, was selected as the PLM backbone because it provides a favorable balance between representational capacity and computational efficiency, which is particularly important for practical deployment of the KEMP-PIP framework and web server. The extracted ESM embeddings were computed once and reused across the different feature combinations and classifiers, thereby avoiding redundant PLM inference during the ablation and model-comparison experiments.
The training set contains 2,872 peptides, comprising 1,245 PIP and 1,627 n-PIP samples, while the independent test set contains 342 peptides. The k-mer representation (k = 2,3,4) initially produces 168,400 features and is reduced to 35,358 features after near-zero-variance (NZV) filtering. After feature fusion, the dimensionality varies substantially depending on the selected feature blocks, ranging from compact representations such as the physicochemical-only and modlAMP-only sets to approximately 35,699 dimensions for the complete k-mer + physicochemical + modlAMP + ESM representation.
Table 8 summarizes the computational requirements observed across the feature-ablation experiments. The results demonstrate that computational cost is strongly influenced by both feature dimensionality and classifier type. High-dimensional k-mer representations impose the greatest computational burden on SVM, requiring approximately 797.51 s for training and 51.27 s for test inference for the k-mer-only representation. Similarly, the k-mer + physicochemical + ESM combination requires 804.45 s for SVM training and 51.44 s for test inference. In contrast, compact feature representations are substantially less computationally demanding. For example, the 11-dimensional physicochemical representation requires only 1.56 s for SVM training and approximately 0.03 s for test inference, while the 10-dimensional modlAMP representation requires 1.51 s and 0.03 s, respectively.
The choice of classifier also has a pronounced effect on computational cost. Across high-dimensional representations, SVM is considerably more expensive than the tree-based and neural classifiers evaluated in the ablation experiments. For the complete 35,699-dimensional feature representation, SVM requires 787.96 s for training and 45.75 s for test inference, whereas XGB requires 77.57 s and 0.06 s, RF requires 9.60 s and 0.14 s, and MLP requires 62.62 s and 0.05 s, respectively. Feature fusion therefore introduces a clear computational trade-off. Increasing the representation from compact physicochemical, modlAMP, or ESM features to high-dimensional k-mer-containing combinations substantially increases training cost, particularly for SVM. For example, the 320-dimensional ESM representation requires only 6.92 s for SVM training and 0.27 s for test inference, whereas the 35,358-dimensional k-mer representation requires 797.51 s and 51.27 s, respectively. Nevertheless, compact ESM-inclusive combinations remain computationally attractive; the 341-dimensional physicochemical + modlAMP + ESM representation requires only 7.31 s for SVM training and 0.30 s for test inference, while its corresponding XGB, RF, and MLP models require approximately 9.91 s, 9.16 s, and 0.93 s for training, respectively. Overall, these measurements indicate a clear trade-off between feature richness and computational efficiency. Although k-mer-based fusion provides a substantially higher-dimensional representation, it can impose considerable computational overhead, particularly for SVM. In contrast, ESM-based and compact hybrid representations provide a more favorable balance between feature dimensionality, predictive representation, and computational cost. This balance is particularly relevant to KEMP-PIP deployment, where efficient inference and manageable computational requirements are important considerations for practical peptide prediction.
4 Discussion and conclusion
In this study, we presented KEMP-PIP, a feature fusion based machine learning framework designed for the prediction of pro-inflammatory peptides (PIPs). The method leverages contextual embeddings from ESM protein language models alongside handcrafted descriptors including k-mer frequencies, physicochemical indices, and modlAMP-derived sequence features. This integration allows the model to capture both global sequence context and biologically meaningful properties that influence inflammatory potential. Furthermore, the use of feature pruning, class-weighted learning, and ensemble averaging enabled the framework to address data imbalance and redundancy while maintaining robust predictive performance.
4.1 Biological insights
Beyond raw performance, the interpretability component of KEMP-PIP adds significant value. Our feature importance analysis revealed that the model relies heavily on specific k-mer motifs enriched with positively charged residues (Lysine and Arginine) and high hydrophobic moments. This aligns with established biochemical mechanisms, as positive charges facilitate electrostatic interactions with negatively charged immune cell membranes, while amphipathicity (driven by hydrophobic moments) is crucial for membrane insertion and receptor binding—key steps in triggering inflammatory cascades.
4.2 Limitations
Despite the promising results, certain limitations must be acknowledged. First, the training datasets, though curated, are relatively small and may not fully encompass the sequence and structural diversity of pro-inflammatory peptides observed across different organisms. Second, the current framework relies on sequence-based features and does not explicitly incorporate 3D structural descriptors or post-translational modifications, which can critically influence peptide immunogenicity. Finally, while coefficient-based pruning was tested, the high multicollinearity in the feature space prevented significant dimensionality reduction via this method, necessitating the retention of a large k-mer feature vector.
4.3 Future work
Future iterations of KEMP-PIP should focus on expanding the dataset to include peptides from diverse organisms and integrating three-dimensional structural descriptors derived from tools like AlphaFold2. Exploiting advanced transfer learning strategies, such as fine-tuning larger PLMs (e.g., ESMC) with parameter-efficient tuning (PEFT), could further boost generalizability. Additionally, incorporating KEMP-PIP into automated peptide design pipelines and inverse-design frameworks could significantly increase its translational relevance for therapeutic development.
Benchmarking against state-of-the-art models such as ProIn-fuse, MultiFeatVotPIP, and StackPIP demonstrated that KEMP-PIP achieves superior accuracy, MCC, and AUC values. The combination of deep embeddings with curated descriptors proved particularly effective in enhancing sensitivity for difficult-to-classify peptides, highlighting the advantage of hybrid feature engineering. In conclusion, KEMP-PIP provides a reliable, interpretable, and accessible computational platform for the identification of pro-inflammatory peptides. By combining state-of-the-art protein embeddings with domain-informed descriptors, it bridges the gap between computer science and biological interpretability. We anticipate that KEMP-PIP will not only support bioinformatics research but also accelerate the discovery and prioritization of therapeutic peptide candidates.
References
- 1. Gupta S, Madhu MK, Sharma AK, Sharma VK. ProInflam: A webserver for the prediction of proinflammatory antigenicity of peptides and proteins. J Transl Med. 2016;14(1):178. pmid:27301453
- 2. Pérez-Payá E, Houghten RA, Blondelle SE. The role of amphipathicity in the folding, self-association and biological activity of multiple subunit small proteins. J Biol Chem. 1995;270(3):1048–56. pmid:7836358
- 3. Zhu C, Gao Y, Li H, Meng S, Li L, Francisco JS, et al. Characterizing hydrophobicity of amino acid side chains in a protein environment via measuring contact angle of a water nanodroplet on planar peptide network. Proc Natl Acad Sci U S A. 2016;113(46):12946–51. pmid:27803319
- 4. Mukherjee P, Roy S, Ghosh D, Nandi SK. Role of animal models in biomedical research: a review. Lab Anim Res. 2022;38(1):18. pmid:35778730
- 5. Raza A, Uddin J, Akbar S, Alarfaj FK, Zou Q, Ahmad A. Comprehensive Analysis of Computational Methods for Predicting Anti-inflammatory Peptides. Arch Computat Methods Eng. 2024;31(6):3211–29.
- 6. Khatun MS, Hasan MM, Shoombuatong W, Kurata H. ProIn-Fuse: improved and robust prediction of proinflammatory peptides by fusing of multiple feature representations. J Comput Aided Mol Des. 2020;34(12):1229–36. pmid:32964284
- 7. Yan C, Geng A, Pan Z, Zhang Z, Cui F. MultiFeatVotPIP: a voting-based ensemble learning framework for predicting proinflammatory peptides. Brief Bioinform. 2024;25(6):bbae505. pmid:39406523
- 8. Manavalan B, Shin TH, Kim MO, Lee G. PIP-EL: A New Ensemble Learning Method for Improved Proinflammatory Peptide Predictions. Front Immunol. 2018;9:1783. pmid:30108593
- 9. Yao L, Wang F, Xie P, Guan J, Zhao Z, He X, et al. StackPIP: An Effective Computational Framework for Accurate and Balanced Identification of Proinflammatory Peptides. J Chem Inf Model. 2025;65(14):7777–88. pmid:40641221
- 10. Muhammod R, Ahmed S, Md Farid D, Shatabda S, Sharma A, Dehzangi A. PyFeat: a Python-based effective feature generation tool for DNA, RNA and protein sequences. Bioinformatics. 2019;35(19):3831–3. pmid:30850831
- 11. Waibl F, Fernández-Quintero ML, Wedl FS, Kettenberger H, Georges G, Liedl KR. Comparison of hydrophobicity scales for predicting biophysical properties of antibodies. Front Mol Biosci. 2022;9:960194. pmid:36120542
- 12. Eisenberg D, Weiss RM, Terwilliger TC, Wilcox W. Hydrophobic Moments and Protein Structure. Faraday Discussions of the Chemical Society. 1982;17:109–20.
- 13. Shaw BF, Arthanari H, Narovlyansky M, Durazo A, Frueh DP, Pollastri MP, et al. Neutralizing positive charges at the surface of a protein lowers its rate of amide hydrogen exchange without altering its structure or increasing its thermostability. J Am Chem Soc. 2010;132(49):17411–25. pmid:21090618
- 14. Mackenzie CO, Grigoryan G. Protein structural motifs in prediction and design. Curr Opin Struct Biol. 2017;44:161–7. pmid:28460216
- 15. Sun H, Qiao B, Choi W, Hampu N, McCallum NC, Thompson MP, et al. Origin of Proteolytic Stability of Peptide-Brush Polymers as Globular Proteomimetics. ACS Cent Sci. 2021;7(12):2063–72. pmid:34963898
- 16. Kim J, Yoon C-Y, Ko K-E, Jang I. A Study on Adjusting Feature Vectors in Latent Space Using the Triplet Loss Function. Int J Control Autom Syst. 2025;23(5):1497–509.
- 17. Müller AT, Gabernet G, Hiss JA, Schneider G. modlAMP: Python for antimicrobial peptides. Bioinformatics. 2017;33(17):2753–5. pmid:28472272
- 18.
Ye Y, Zhou H, Cai J. Dynamic feature pruning and consolidation for occluded person re-identification. 2022. https://doi.org/arXiv:2211.14742
- 19.
Xiao YH, Huang L, Ramírez D, Qian C, So HC. One-Bit Covariance Reconstruction with Non-Zero Thresholds: Algorithm and Performance Analysis. In: 2023. https://doi.org/arXiv:2303.16455
- 20.
Sun M, Liu Z, Bair A, Kolter JZ. A simple and effective pruning approach for large language models. In: Proceedings of ICLR 2024, 2024. https://doi.org/arXiv:2306.11695
- 21.
Gao L, Guan L. Interpretability of Machine Learning: Recent Advances and Future Prospects. 2023. https://doi.org/arXiv:2305.00537
- 22. Abbood N, Effert J, Bozhueyuek KAJ, Bode HB. Guidelines for Optimizing Type S Nonribosomal Peptide Synthetases. ACS Synth Biol. 2023;12(8):2432–43. pmid:37523786
- 23.
Niu Y, Fabian Z, Lee S, Soltanolkotabi M, Avestimehr S. mL-BFGS: A Momentum-based L-BFGS for Distributed Large-Scale Neural Network Optimization. In: 2023. https://doi.org/arXiv:2307.13744
- 24.
Yang Q. Blending ensemble for classification with genetic-algorithm generated alpha factors and sentiments (GAS). In: 2024. https://doi.org/arXiv:2411.03035
- 25. Das N, Chakraborty M. Machine learning-driven threshold optimization for wavelet packet denoising in EEG-based mental state classification. IEEE Access. 2023.
- 26. Greenside P, Hillenmeyer M, Kundaje A. Prediction of protein-ligand interactions from paired protein sequence motifs and ligand substructures. Pac Symp Biocomput. 2018;23:20–31. pmid:29218866
- 27. Fu X, Yuan Y, Qiu H, Suo H, Song Y, Li A, et al. AGF-PPIS: A protein-protein interaction site predictor based on an attention mechanism and graph convolutional networks. Methods. 2024;222:142–51. pmid:38242383
- 28. Xiao C, Zhou Z, She J, Yin J, Cui F, Zhang Z. PEL-PVP: Application of plant vacuolar protein discriminator based on PEFT ESM-2 and bilayer LSTM in an unbalanced dataset. Int J Biol Macromol. 2024;277(Pt 3):134317. pmid:39094861
- 29. Çorbacıoğlu ŞK, Aksel G. Receiver operating characteristic curve analysis in diagnostic accuracy studies: A guide to interpreting the area under the curve value. Turk J Emerg Med. 2023;23(4):195–8. pmid:38024184
- 30.
ESM Team. ESM Cambrian: Revealing the mysteries of proteins with unsupervised learning. EvolutionaryScale. 2024. https://www.evolutionaryscale.ai/blog/esm-cambrian
- 31. Brandes N, Ofer D, Peleg Y, Rappoport N, Linial M. ProteinBERT: a universal deep-learning model of protein sequence and function. Bioinformatics. 2022;38(8):2102–10. pmid:35020807

관련 뉴스