The invention discloses an
SQL classification method and
system based on a standardized Born network and a model training method and
system, and belongs to the technical field of
network security. The method comprises the steps that feature vectors of
SQL statements and corresponding real tags are obtained, and the feature vectors are mapped to a non-negative region and normalized; the feature vectors of the
SQL statements serve as input of a regularization Born
network model, labels of the SQL statements serve as classification results of the regularization Born
network model, the regularization Born
network model is trained, the trained regularization Born network model calculates the collapse probability of conversion from a
wave function of a superposition state of the feature vectors to a
quantum state, and the collapse probability of conversion from the
wave function to the
quantum state is calculated. Classifying the SQL statements according to the collapse probability; according to the method, the Born theory is used for researching
SQL injection, and the detection accuracy and the detection efficiency of the SQL are remarkably improved.