The present application relates to the technical field of
data mining, and especially relates to a traffic safety public
opinion analysis method based on an SQ-LDA
topic model. The present application comprises the following steps: S1, obtaining traffic safety
social software public opinion data; S2, preprocessing the traffic safety
social software public opinion data; S3, extracting feature topics by using the SQ-LDA
topic model; and S4, visualizing traffic safety
social software public opinion hotspots. The
sample quality negative sampling method in the SQ-LDA
topic model of the present application calculates sample
information quantity according to a gradient, so as to distinguish high and low quality negative samples, filter out low quality negative samples, maximize
positive sample probability, minimize high quality
negative sample probability, and further effectively mine and analyze traffic safety social
software public opinion data. The present application sets a keyword frequency probability threshold value under a topic, and when the frequency probability of a keyword exceeds the set frequency probability threshold value, the keyword public opinion early warning under the topic will be triggered, thereby providing necessary
technical support for social public opinion early warning.