The invention relates to the technical field of safety assessment, and particularly discloses a
smart campus safety assessment method based on
the Internet of Things, and the method comprises the steps: data collection and
processing,
safety index selection, evaluation matrix construction, index weight calculation, index comprehensive evaluation and result decision. According to the scheme, the
random forest is constructed, the
feature set is screened out through split bagging
ensemble learning, the new
random forest model is constructed based on the
feature set for training, and it is ensured that the finally selected features have high importance in all data; the information entropy is calculated, the dispersion degree of each
safety index is measured, the scientificity of weight evaluation is improved, the weight of each
safety index is quantified, the redundancy is calculated, and the effectiveness of the indexes is better understood; the weighted
decision matrix is calculated to enhance the accuracy of
security assessment, so that more important indexes play a greater role in assessment, the relative advantages and disadvantages of each index are quantified, subsequent sorting and
decision making are facilitated, and a reliable basis is provided for security improvement.