The invention discloses a defect severity prediction method based on developer modification history, and belongs to the technical field of
software development. Comprising the steps of extracting modified historical data and defect report data, constructing an
original data set, preprocessing the
original data set, establishing a standard
data set according to a file-defect-developer mapping relation, and constructing a developer-file weighted directed network based on the standard
data set. Obtaining a file-file weighted directed network through weighted projection based on the developer-file weighted directed network, calculating a structure entropy
score of a file node based on the file-file weighted directed network, and extracting a
software measurement index of each
source code file; and constructing a comprehensive
feature set based on the structure entropy
score, the
software measurement index and the defect
label combination, and training and verifying a
machine learning model based on the comprehensive
feature set to realize the defect severity prediction of the file. According to the invention, the accuracy and stability of defect severity prediction are improved from the perspective of history modification by developers.