[Paper Review] Machine Learning With Feature Selection Using Principal Component Analysis for Malware Detection: A Case Study
This paper proposes an enhanced machine learning approach for malware detection by integrating principal component analysis (PCA) with a multilayer perceptron (MLP) neural network to reduce feature dimensionality in PDF malware detection. The method achieves a 33% reduction in features and 22% faster training while maintaining a 93.17% true positive rate and 0.08% false positive rate—surpassing even top commercial antivirus scanners.
Cyber security threats have been growing significantly in both volume and sophistication over the past decade. This poses great challenges to malware detection without considerable automation. In this paper, we have proposed a novel approach by extending our recently suggested artificial neural network (ANN) based model with feature selection using the principal component analysis (PCA) technique for malware detection. The effectiveness of the approach has been successfully demonstrated with the application in PDF malware detection. A varying number of principal components is examined in the comparative study. Our evaluation shows that the model with PCA can significantly reduce feature redundancy and learning time with minimum impact on data information loss, as confirmed by both training and testing results based on around 105,000 real-world PDF documents. Of the evaluated models using PCA, the model with 32 principal feature components exhibits very similar training accuracy to the model using the 48 original features, resulting in around 33% dimensionality reduction and 22% less learning time. The testing results further confirm the effectiveness and show that the model is able to achieve 93.17% true positive rate (TPR) while maintaining the same low false positive rate (FPR) of 0.08% as the case when no feature selection is applied, which significantly outperforms all evaluated seven well known commercial antivirus (AV) scanners of which the best scanner only has a TPR of 84.53%.
Motivation & Objective
- To address the challenge of feature redundancy and high computational cost in malware detection using machine learning.
- To evaluate the impact of PCA-based feature selection on model performance and training efficiency in a real-world PDF malware detection task.
- To compare the proposed PCA-enhanced model against both the original MLP df model and commercial antivirus scanners in terms of detection accuracy and false positive rate.
- To demonstrate that dimensionality reduction via PCA can preserve critical information while significantly reducing learning time and feature redundancy.
Proposed method
- The study extends the previously proposed MLP df model with PCA-based feature selection to reduce input dimensionality.
- Principal component analysis is applied to extract the most informative linear combinations of original features, retaining maximum variance.
- Multiple PCA configurations are tested, including 10, 28, and 32 principal components, corresponding to 79%, 41%, and 33% dimensionality reduction, respectively.
- The MLP df model architecture is retained—two hidden layers with 72 neurons each and a single sigmoid output layer for binary classification.
- Models are trained for 5,000 epochs and evaluated on a dataset of ~105,000 real-world PDF documents, including both benign and malicious samples.
- Performance is measured using true positive rate (TPR), false positive rate (FPR), training accuracy, and learning time.
Experimental results
Research questions
- RQ1Can PCA-based feature selection effectively reduce dimensionality in PDF malware detection with minimal loss of predictive information?
- RQ2How does the performance of the PCA-enhanced model compare to the original MLP df model in terms of training accuracy and inference speed?
- RQ3To what extent does the PCA-based model outperform commercial antivirus scanners in detecting malicious PDFs?
- RQ4What is the optimal number of principal components that balances model efficiency and detection accuracy?
Key findings
- The model with 32 principal components (MLP_df+PCA_32) achieved a training accuracy nearly identical to the original MLP df model, indicating minimal information loss.
- The PCA-based model reduced feature dimensionality by approximately 33% and decreased learning time by 22% compared to the full-feature model.
- The MLP_df+PCA_32 model achieved a 93.17% true positive rate while maintaining a low false positive rate of 0.08%, matching the performance of the original MLP df model.
- The proposed model significantly outperformed the best commercial antivirus scanner, which achieved only 84.53% true positive rate on the same test set.
- The cumulative explained variance ratio analysis confirmed that 32 components retained sufficient information for high detection accuracy.
- The model with 10 principal components achieved ~98% training accuracy after 3,000 epochs, suggesting strong convergence even at lower dimensionality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.