be in the column j category. Thus, the main diagonal 
elements represent the number of data in a class that 
was correctly predicted for right class. If we use the 
elements on the main diagonal as the numerator and 
the sum of each row as the denominator, we can get 
the correct rate of this category of data. 
Through the above experiments, we can see that 
compared  with  the  Xgboost  classifier,  the  Xgboost 
based on PCA attribute reduction has a better effect. 
In the experiment, data are imported such as Naive 
Bayes ,SVM (Support Vector Machine, the Support 
Vector Machine),Random Forests, Xgboost and  the 
Xgboost model based on PCA attribute reduction for 
comparison,  comparing  their  precision  rate,  recall 
rate and
 
precision rate are observed. Table 6 shows 
the comparison of P(
precision rate
),R(
The recall rate
) 
and  F(
The  F  value
)  with  traditional  classification 
algorithms.
 
Table  6:  Comparison  with  traditional  classification 
algorithms. 
Category  Naive 
Bayes 
The 
SVM 
Random 
Forests 
Xgboost  based on 
PCA and 
Xgboost 
P  0.725  0.741  0.737  0.736  0.773 
R  0.714  0.735  0.731  0.745  0.764 
F  0.719  0.738  0.734  0.740  0.769 
 
It can be seen from the experiments that the effect 
of PCA attribute reduction and Xgboost is obviously 
better  than  other  classification  algorithm.  The 
precision rate has been improved in several different 
categories  of  data.  Thus,  compared  with  the 
algorithms  such  as  Naive  Bayes,  SVM,  Random 
Forests and Xgboost classification 
,
this algorithm 
has better classification results and higher precision 
rate. Comparing with Naive Bayesian algorithm the 
precision rate of this algorithm increased by 5%, the 
recall rate increased by 5%. It can be seen that this 
algorithm effectively improves the precision rate of 
situation  elements  extraction  and  the  work  of 
network situation elements extraction. 
5
 
CONCLUSION 
Firstly,  this  paper  expounds  the  research  work  of 
situation  elements  extraction  and  summarizes  the 
current  algorithms of  situation  elements extraction. 
According to the characteristics of situation elements 
extraction, this paper proposes a situation elements 
extraction  algorithm  based  on  PCA  attribute 
reduction  and  Xgboost.  Through  experimental 
analysis,  this  algorithm  is  compared  with  Naive 
Bayes,  SVM,  Random  Forest,  Xgboost  and  other 
classification  algorithms,  which  improves  the 
precision  rate  and  achieves  efficient  extraction  of 
network situation elements. 
REFERENCES 
Qi  Ben, Wang  Mengdi.  Extraction  of  bayesian  situation 
elements  based  on  information  gain  [J].  Information 
network security,2017(09):54-57. 
BASS,  T.  Multisensor  data  fusion  for  next  generation 
distributed  intrusion  detection  systems  [EB  /OL]. 
[2016-03-10]. 
Li Fangwei, Wang Sen, Zhu Jiang, Zhang Haibo. Secur ity 
situation  factor  acquisition  based  on  enhance 
probabilistic neural network [J]. Telecommunicati ons 
technology,2017,57(01):64-71. 
Li Dongyin. The research on situation element extraction 
of network security based on logistic regression [D]. 
University, 2014. 
Liu Xiaowu, Wang Huiqiang, Lu Hongwu, Yu Jiguo, Shu 
wen.  Network  security  situation  cognition  fusion 
sensing  control  model  [J].  Journal  of  software, 
2016,27(08):2099-2114. 
Si  cheng,  Zhang  Hongqi,  Wang Yongwei, Yang  Yingjie. 
Ontology-based  knowledge  base  model  of  network 
security  situation  factors[J].  Computer  science, 
2015,42(05):173-177. 
Zhao Dongmei, Li Hong. Network security situation factor 
extraction  algorithm  based  on  parallel  reduction  [J]. 
Computer application, 2017,37 (04) : 1008-1013. 
Zhu Jiang, Mingyue, Wang Sen. Security situation factor 
acquisition  mechanism  based  on  deep  self-coding 
network [J]. Computer application, 2017,37 (03) : 771-
776. 
Wang  sen.  Research  on  acquisition  and  prediction 
technology of  network  security  situation  factors [D]. 
Chongqing:  chongqing  university  of  posts  and 
telecommunications, 2017. 
Chen y. research on network security situation awareness 
technology  [J].  Jiangsu  science  and  technology 
information,2019,36(03):38-41. 
Guo  Jian.  Research  on  situation  element  acquisition 
technology  in  network  security  situation  awareness 
[D]. Liaoning: northeast university,2011. 
Li Hong. Research on the extraction of network security 
situation factors based on rough set [D]. Hebei: hebei 
normal university, 2017.