Wanzhi Wen

Prof. Dr. Wanzhi Wen


Research Focus & Metrics

Academic Career Length

7Years (2020-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
13 October 2022 in IEEE Access
Verified
Journal Article
Open access
WWWanzhi Wen
Wanzhi Wen
RZRuinian Zhang
Ruinian Zhang
CWChuyue Wang
Chuyue Wang
CSChenqiang Shen
Chenqiang Shen
MYMeng Yu
Meng Yu
XGXinxin Gao
Xinxin Gao
Cross-project defect prediction technique is a hot topic in the field of software defect research because of the huge difference in data distribution between source project and target project. Software defect prediction technique usually first extracts software project features and then trains prediction models based on various classifiers. However, traditional features lack sufficient semantic information of source code resulting in poor performance of the prediction models. To construct more accurate prediction models based on the semantic information, we propose a cross-project defect prediction framework named BSLDP, which extracts semantic information of source code files through a bidirectional long and short-term memory network with self-attention mechanism. In particular, we provide semantic extractor named ALC to extract source code semantics based on source code files, and propose classification algorithm based on the semantic information of source project and target project, namely BSL, to build a prediction model. Furthermore, we propose an equal meshing mechanism that ALC generates semantic information on small fragments by dividing the numerical token vector to further improve the performance of the proposed model. We evaluated the performance of the proposed model on a publicly available PROMISE dataset. Compared with the four state-of-the-art methods, the experimental results indicate that on average BSLDP improves the performance of cross-project defect prediction in terms of F1 by 14.2%, 34.6%, 32.2% and 23.6%, respectively.

3 October 2022 in IEEE Access
Verified
Journal Article
Open access
WWWanzhi Wen
Wanzhi Wen
CSChenqiang Shen
Chenqiang Shen
XLXiaohong Lu
Xiaohong Lu
ZLZhixian Li
Zhixian Li
HWHaoren Wang
Haoren Wang
NZNingbo Zhu
Ningbo Zhu
Software defect prediction techniques can help software developers find software defects as soon as possible. It can also reduce the cost of software development. This technique usually predicts the target project through the entire source project. However, the data distribution difference between the entire source project and the target project is generally large, so the software defect prediction accuracy is not high. we propose a cross-project software defect prediction technique based on class code similarity CCS-CPDP. Firstly, this technique converts the code set extracted by AST(Abstract Syntax Tree) into a vector set through the DTI (Doc2Bow and TF-IDF) strategy; Secondly, the similarity will be calculated between the vector set of target projects and training projects; Finally, according to the principle of the majority decision subordinate category in KNN, the number of most similar class instances of the training project is determined, the source project is refined by selecting the class instance, and then software defects are predicted and evaluated. We compared CCS-CPDP with softawre defect prediction methods based on four traditional classification models (KNN, Random Forest, Naive Bayes, and Logistic Regression). Experimental results show that CCS-CPDP can improve the effectiveness of CPDP in terms of recall and f1-score.

2 December 2025 in IEEE Access
Verified
Journal Article
Open access
RJRongchang Jiang
Rongchang Jiang
DQDandan Qu
Dandan Qu
KWKe Wang
Ke Wang
GLGuijie Liu
Guijie Liu
XDXianzhen Dou
Xianzhen Dou
BLBo Liang
Bo Liang
This study introduces a rapid and non-destructive method for detecting multiple chemical residues in pure cotton fabrics, utilizing hyperspectral imaging, discrete wavelet transform (DWT), and a one-dimensional convolutional neural network (1D-CNN) to address limitations of traditional techniques, which have low efficiency and destructive nature. Initially, spectral data were collected from pure cotton fabric samples using a hyperspectral imaging system operating within the 400–1000 nm wavelength range , with each sample yielding one averaged spectrum from 100 pixels. The dataset was split 75:25 for training (9,000 spectra) and testing (3,000 spectra), using stratified sample-wise partitioning to prevent spectral leakage. Subsequently, DWT was applied for data dimensionality reduction, eliminating redundant information while retaining critical spectral characteristics. An optimized 1D-CNN model was developed to automatically extract spectral features and classify multiple residues, including formaldehyde, 4-aminobiphenyl, nonylphenol, melamine, and ethanol. The experimental findings demonstrated that the DWT preserved high information entropy (13.02) even after dimensionality reduction to 75 features. Furthermore, its computational efficiency significantly surpassed that of competitive adaptive reweighted sampling and kernel principal component analysis. In conjunction with DWT for dimensionality reduction, the 1D-CNN model achieved an overall classification accuracy of 99.76% and an F1 score of 0.99, exceeding the performance of the support vector machine and random forest models by 2.03% and 38.53%, respectively. This methodology facilitates non-destructive and rapid detection, achieving over 50% increase in detection speed while maintaining high accuracy in identifying formaldehyde residue. It represents an effective technological solution for ensuring textile quality and safety. Future work will focus on designing lightweight network architectures, implementing data augmentation strategies, and expanding the model’s applicability to detect multiple pollutants, aiming to enhance its practical deployment and generalization capability.

23 May 2026 in Neural Networks
Verified
Journal Article
Closed access
SYSai Yang
Sai Yang
HBHu Bin
Hu Bin
XWXiaoxin Wu
Xiaoxin Wu
Fan LiuFan Liu
Fan Liu
WWWanzhi Wen
Wanzhi Wen

29 June 2022 in Soft Computing
Verified
Journal Article
Closed access
PDF file
WWWanzhi Wen
Wanzhi Wen
TZTian Zhao
Tian Zhao
SWShiqiang Wang
Shiqiang Wang
JCJiawei Chu
Jiawei Chu
Deepak Kumar JainDeepak Kumar Jain
Deepak Kumar Jain

29 September 2022 in Scientific Programming
Verified
Journal Article
Open access
PDF file
WWWanzhi Wen
Wanzhi Wen
JCJiawei Chu
Jiawei Chu
TZTian Zhao
Tian Zhao
RZRuinian Zhang
Ruinian Zhang
BZBao Zhi
Bao Zhi
CSChenqiang Shen
Chenqiang Shen
Source code comments can improve the efficiency of software development and maintenance. However, due to the heterogeneity of natural language and program language, the quality of code comments is not so high. So, this paper proposes a novel method Code2tree, which is based on the encoder-decoder model to automatically generate Java code comments. Code2tree firstly converts Java source code into abstract syntax tree (AST) sequences, and then the AST sequences are encoded by GRU encoder to solve the long sequence learning dependency problem. Finally, the attention mechanism is introduced in the decoding stage, and the quality of the code comment is improved by increasing the weight of the key information. We use the open dataset java-small to train the model and verify the effectiveness of Code2tree based on common-used indicators BLEU and F1-Score.