The invention discloses a toxic speech detection method and
system based on forgetting learning, and the method comprises the steps: firstly constructing a toxic
speech classification model, dynamically tracking the classification state change of each sample in a training process, and carrying out the quantitative calculation of the total number of forgetting events; then sorting and analyzing the samples based on the forgetting frequency, and identifying and removing redundant samples which are difficult to forget so as to construct a high-quality simplified
training set; and the model is retrained by using the simplified
data set, the
model parameters are optimized, and the detection efficiency is improved. The
system comprises a data preprocessing module, a forgetting event calculation module, a sample screening module, a model training module and a detection generation module, and a complete
toxicity speech detection and optimization process is formed. According to the method, a forgetting learning mechanism is introduced, so that the defects of training
data redundancy,
annotation noise interference and the like in a traditional method are effectively overcome, the model training speed and generalization performance are remarkably improved while the detection accuracy is ensured, and reliable
technical support is provided for online content safety management and toxic speech real-time detection.