An intelligent identification method for key nodes of command and control network based on random forest

By using random forest classifiers to identify key nodes in the command and control network, the problems of slow calculation speed and high hardware cost of deep learning methods are solved, and fast and low-cost identification results are achieved.

CN118395318BActive Publication Date: 2024-09-24THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410868718.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-24
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

Existing deep learning methods for identifying key nodes in command and control networks require high-performance graphics processors, resulting in slow computing speed and high hardware costs.

Method used

A random forest classifier based on machine learning is used for key node identification. By building and training a random forest model, the RandomizedSearchCV function of the scikit-learn library is used to optimize parameters to achieve rapid identification and reduce hardware requirements.

Benefits of technology

It achieves accurate identification of key nodes of the command and control network, requires lower computing power, runs faster, does not require a graphics processor, and significantly reduces hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395318B
    Figure CN118395318B
Patent Text Reader

Abstract

The present invention discloses a method for intelligently identifying key nodes of a command and control network based on random forests, and belongs to the fields of communication reconnaissance and artificial intelligence. The present invention comprises: constructing training data of a key node identification model, generating an intelligent key node identification model, and performing intelligent identification of key nodes on the data to be detected. The present invention uses a random forest classifier of machine learning to realize the identification of key nodes. Compared with the deep learning method, the present method has lower computing power requirements, faster running speed, and does not require the use of an image processor, which can effectively reduce hardware costs and improve the applicability of the method to hardware devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to a random forest-based intelligent identification method for key nodes of a command and control network. Background Art

[0002] The ability to identify key nodes in the command and control network is an important part of the system's confrontation capability. By attacking and damaging key nodes and electronically jamming them, the situation information fusion is destroyed, the command and control system is destroyed, and the opponent's decision-making space is compressed. With the explosive development of artificial intelligence methods represented by machine learning in recent years, the intelligent identification method of key nodes in the command and control network has become a research hotspot.

[0003] In the article "Reliability Analysis of Command and Control Network System Based on Generalized Continuous-Time Bayesian Network" published by Li Yifan et al. in "System Engineering and Electronic Technology", the Bayesian network in machine learning can be used to identify key nodes. In the article "Research on the Importance of Dynamic Network Nodes Based on Spatiotemporal Graph Convolution" published by Zhang Kai et al. in "College Mathematics", graph neural networks and recurrent neural networks are used to identify key nodes. In the patent "A Method for Identifying Key Nodes of Command and Control Network Based on Deep Learning" applied by the 54th Institute of China Electronics Technology Group Corporation, with the authorization announcement number CN114143210B, a command and control network key node identification neural network is proposed based on convolutional neural network to realize the identification of key nodes.

[0004] The above patents and papers have a common feature, which is the use of deep neural networks to identify key nodes, such as recurrent neural networks, graph neural networks, and convolutional neural networks. The advantage of this method is that it uses a paradigm structure to extract nodes from the data with high accuracy. However, deep learning requires the use of image processing. If a central processing unit is used instead of a graphics processor, the calculation speed will be slow, which will lead to the configuration requirements of hardware equipment and high costs. Summary of the invention

[0005] In view of this, the present invention proposes a method for intelligently identifying key nodes of a command and control network based on random forest. This method realizes the identification of key nodes based on a random forest classifier based on machine learning. It has lower computing power requirements, faster running speed, and does not require the use of an image processor, which can effectively reduce hardware costs.

[0006] The technical solution adopted by the present invention is:

[0007] A method for intelligently identifying key nodes of a command and control network based on random forests comprises the following steps:

[0008] Step 1: Construct key node recognition model training data;

[0009] Step 2: Generate an intelligent key node identification model;

[0010] Step 3: Intelligently identify key nodes of the data to be detected.

[0011] Furthermore, the specific method of step 1 is:

[0012] Step 1-1: Perform K samplings for a variety of different structures of the command and control network; each time sampling, perform T communication reconnaissance on a command and control network to obtain the following statistical data:

[0013]

[0014] The control network has N network nodes and L communication modes, where n and m are network node numbers, and l represents the type of communication mode. is the number of times node n and node m communicate with each other in communication mode l during T communication reconnaissance divided by T;

[0015] Step 1-2: Convert the statistical data of each sampling into a data sample in the form of a list:

[0016]

[0017] The key communication node under the command and control network of each sampling is set to y as the label of the data sample;

[0018] The K-times sampled data samples are combined into a data set, including the sample data set And label dataset ;

[0019] According to the proportion , the data set is divided into a training data set and a test data set, the number of which is and ,in Indicates rounding up; the sample data set of the training data set is , the dimension is ; The label dataset of the training dataset is , the dimension is ; The sample data set of the test data set is , the dimension is ; The label dataset of the test dataset is , the dimension is .

[0020] Furthermore, the specific method of step 2 is:

[0021] Step 2-1: Import the random forest classification model from the ensemble module of the scikit-learn open source machine learning library;

[0022] Step 2-2: Construct a parameter dictionary to define the parameter space to be searched, including the value range of each parameter; the parameters in the parameter dictionary include: the number of trees n_estimators, the maximum number of features max_features, the maximum depth max_depth, the minimum number of sample splits min_samples_split, the minimum number of sample leaves min_samples_leaf, and whether there is a bootstrap sampling with replacement;

[0023] Step 2-3: Import the RandomizedSearchCV function in the model_selection module and set the parameters of the RandomizedSearchCV function. In the parameters, the model to be used is the random forest classification model introduced in step 2-1, and the parameter space is the parameter dictionary constructed in step 2-2;

[0024] Step 2-4: Use the fit function of the RandomizedSearchCV function to search for parameters in the parameter space on the training data set. After the search is completed, obtain the optimal parameters obtained through the best_params_ attribute;

[0025] Step 2-5: Use the optimal parameters and score function obtained in step 2-4 to evaluate the performance of the model under the optimal parameters on the test data set to obtain the accuracy; if the accuracy is greater than or equal to the preset accuracy threshold, store the optimal parameters for intelligent identification of key nodes; if the accuracy is less than the preset accuracy threshold, return to step 2-4 to continue training.

[0026] Furthermore, the specific method of step 3 is:

[0027] Step 3-1: Load the optimal parameters after training to obtain an intelligent key node recognition model;

[0028] Step 3-2: Input the interaction data to be identified into the intelligent key node identification model to generate the identification result.

[0029] The beneficial effects of the present invention are:

[0030] The present invention uses a machine learning random forest classifier to achieve the recognition of key nodes. Compared with the deep learning method, this method has lower computing power requirements and faster operation speed under the requirement of accurate recognition, and does not require the use of an image processor, which can effectively reduce hardware costs and improve the applicability of the method to hardware devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a flow chart of an embodiment of the present invention.

[0032] Figure 2 Schematic diagram of the structure of the first accusation network in an embodiment of the present invention.

[0033] Figure 3 Schematic diagram of the structure of the second accusation network in an embodiment of the present invention.

[0034] Figure 4 Schematic diagram of the structure of the third accusation network in an embodiment of the present invention.

[0035] Figure 5 Schematic diagram of the structure of the fourth accusation network in the embodiment of the present invention.

[0036] Figure 6 Schematic diagram of the structure of the fifth accusation network in the embodiment of the present invention.

[0037] Figure 7 Schematic diagram of the structure of the sixth accusation network in the embodiment of the present invention.

[0038] Figure 8 Schematic diagram of the structure of the seventh accusation network in the embodiment of the present invention.

[0039] Fig. 9 Schematic diagram of the structure of the eighth accusation network in the embodiment of the present invention.

[0040] Fig.10 Schematic diagram of the structure of the ninth accusation network in an embodiment of the present invention.

[0041] Fig.11 Schematic diagram of the structure of the tenth accusation network in an embodiment of the present invention.

[0042] Fig.12 A schematic diagram of a confusion matrix for key node identification in an embodiment of the present invention.

[0043] Fig.13 Schematic diagram of the confusion matrix of the recurrent neural network in an embodiment of the present invention.

[0044] Fig.14 Schematic diagram of the confusion matrix of the Bayesian identifier in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0046] A random forest-based intelligent identification method for key nodes in a command and control network. The overall process is as follows: Figure 1 The specific steps include:

[0047] Step 1: Construct intelligent key node recognition model training data.

[0048] Step 1-1: Build a dataset.

[0049] For 10 types of accusation network structures, such as Figures 2 to 11 As shown, the order of nodes is changed to increase sample diversity, and K = 12000 samplings are performed. During each sampling, communication reconnaissance is performed on the command and control network. Under T = 1000 communication reconnaissances, the number of times each pair of nodes communicate with each other in different communication modes is recorded and divided by T for normalization. The result is recorded as , where n and m are the network node labels, indicating that information is sent from node n to node m, and the number of nodes is N=5; l represents the type of communication method, and the accusation network has a total of L=3 communication methods. Each sampling obtains a data sample x as:

[0050] .

[0051] In order to make the random forest recognizer process it, the above multidimensional matrix needs to be converted into a list form:

[0052] .

[0053] The key communication node of the accusation network is set to y at each sampling, which serves as the label of the data sample.

[0054] Step 1-2: Split the dataset into training dataset and test dataset.

[0055] After K=12000 samplings, the data set is obtained, including the sample data set and the label data set.

[0056] Among them, the sample data set for:

[0057] .

[0058] Labeled dataset for:

[0059] .

[0060] According to the proportion , the data set is divided into a training data set and a test data set, the number of which is and ,in Indicates rounding up.

[0061] The sample dataset of the training dataset is , the dimension is ; The label dataset of the training dataset is , the dimension is ; The sample data set of the test data set is , the dimension is ; The label dataset of the test dataset is , the dimension is .

[0062] Step 2-1: Generate a random forest classification model.

[0063] The random forest classification model is introduced from the ensemble module of the scikit-learn open source machine learning library (sklearn for short) and named rf:

[0064] from sklearn.ensemble import RandomForestClassifier rf =RandomForestClassifier().

[0065] Step 2-2: Define the parameter space.

[0066] There are five hyperparameters that need to be adjusted for the random forest classification model: the number of trees (n_estimators), the maximum number of features (max_features), the maximum depth (max_depth), the minimum number of sample splits (min_samples_split), and the minimum number of sample leaves (min_samples_leaf). In addition, it is also necessary to set whether to use replacement sampling (bootstrap).

[0067] Construct the param_dist dictionary to define the parameter space to be searched, including the possible value range of each parameter. The key values ​​of the dictionary are 'n_estimators', 'max_features', 'max_depth', 'min_samples_split', 'min_samples_leaf', and 'bootstrap'. The value corresponding to the key value is in the form of a list, storing the possible value range of each hyperparameter. param_dict can be expressed as:

[0068] param_dist = { 'n_estimators': [10, 20, 30, 40, 50, 60, 70, 80, 90,100], 'max_features': ['auto', 'sqrt', 'log2'], 'max_depth': [10, 20, 30, 40,50, 60, 70, 80, 90, 100], 'min_samples_split': [2, 5, 10], 'min_samples_leaf': [1, 2, 4], 'bootstrap': [True, False]}.

[0069] Step 2-3: Import the RandomizedSearchCV function in the model_selection module. The command statement is:

[0070] from sklearn.model_selection import RandomizedSearchCV.

[0071] The RandomizedSearchCV function needs to set 7 parameters, namely, estimator is the model to be used, param_distributions is the parameter space to be defined, n_iter is the number of iterations to be performed for the specified random search, cv is the number of cross-validation folds, verbose is to control the amount of information output during the search process, random_state is the random seed, and n_jobs is the number of CPU cores to be used. The specific settings are as follows:

[0072] random_search = RandomizedSearchCV(estimator=rf, param_distributions=param_dist, n_iter=100, cv=5, verbose=2, random_state=42, n_jobs=-1).

[0073] Step 2-4: Model training.

[0074] Randomly sample the alternative parameter space formed by the param_dist dictionary and perform a search using the training data. The command statement is:

[0075] random_search.fit( , ).

[0076] After the search is completed, the best parameters obtained through training can be obtained through the best_params_ attribute. The command statement is:

[0077] best_rf=random_search.best_params_.

[0078] Steps 2-5: Model evaluation.

[0079] Use the optimal parameters and score function to evaluate the model performance on the test set to obtain the accuracy. The command statement is:

[0080] best_rf.score( , ).

[0081] If the accuracy is greater than or equal to the preset accuracy threshold, the model is stored for intelligent identification of key nodes; if the accuracy is less than the preset accuracy threshold, return to steps 2-4 to continue training. Storage requires the introduction of the dump function in the joblib library to save the optimal parameter best_rf to the specified file. The command statement is:

[0082] import joblib joblib.dump(best_rf, 'rf_model.pkl').

[0083] Step 3: Intelligent key node identification.

[0084] Step 3-1: Load the trained recognition model.

[0085] Use the load function in the joblib library to load the optimal parameter best_rf. The command statement is:

[0086] best_rf =joblib.load('rf_model.pkl').

[0087] Step 3-2: Input the interaction data to be identified and generate the identification result.

[0088] against Figure 7 Conduct communication reconnaissance, and obtain the interaction data to be identified: , whose value is:

[0089] 0. 0. 0. 0. 0.091 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.148 0. 0. 0. 0. 0.11 0.004 0. 0. 0. 0. 0. 0.094 0.086 0. 0. 0. 0. 0.061 0. 0. 0. 0. 0. 0.064 0. 0.107 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.].

[0090] By running the command y=best_rf.predict(x), the result is node 0, which is consistent with the label.

[0091] This method is used to identify nodes in all data in the data set to form a confusion matrix as follows: Fig.12 As shown. The accuracy is 100%. The recurrent neural network is used for recognition, and the confusion matrix formed is as follows Fig.13 As shown in Figure 1, the accuracy is 77.95%. The Bayesian identifier is used for recognition, and the confusion matrix formed is as follows: Fig.14 The accuracy rate is 76.07%. It can be seen that the present invention can accurately identify key nodes in the command and control network.

Claims

1. A method for intelligent identification of key nodes in a command and control network based on random forest, characterized in that: The following steps are involved: Step 1: Construct key node recognition model training data; the specific method is: Step 1-1: Perform K samplings for a variety of different structures of the command and control network; each time sampling, perform T communication reconnaissance on a command and control network to obtain the following statistical data: The control network has N network nodes and L communication modes, where n and m are network node numbers, and l represents the type of communication mode. is the number of times node n and node m communicate with each other in communication mode l during T communication reconnaissance divided by T; Step 1-2: Convert the statistical data of each sampling into a data sample in the form of a list: The key communication node under the accusation network of each sampling is set to y as the label of the data sample; The K-times sampled data samples are combined into a data set, including the sample data set And label dataset ; According to the proportion , the data set is divided into a training data set and a test data set, the number of which is and ,in Indicates rounding up; the sample data set of the training data set is , the dimension is ; The label dataset of the training dataset is , the dimension is ; The sample data set of the test data set is , the dimension is ; The label dataset of the test dataset is , the dimension is ; Step 2: Generate an intelligent key node identification model; the specific method is: Step 2-1: Import the random forest classification model from the ensemble module of the scikit-learn open source machine learning library; Step 2-2: Construct a parameter dictionary to define the parameter space to be searched, including the value range of each parameter; the parameters in the parameter dictionary include: the number of trees n_estimators, the maximum number of features max_features, the maximum depth max_depth, the minimum number of sample splits min_samples_split, the minimum number of sample leaves min_samples_leaf, and whether there is a bootstrap sampling with replacement; Step 2-3: Import the RandomizedSearchCV function in the model_selection module and set the parameters of the RandomizedSearchCV function. In the parameters, the model to be used is the random forest classification model introduced in step 2-1, and the parameter space is the parameter dictionary constructed in step 2-2; Step 2-4: Use the fit function of the RandomizedSearchCV function to search for parameters in the parameter space on the training data set. After the search is completed, obtain the optimal parameters obtained through the best_params_ attribute; Step 2-5: Use the optimal parameters and score function obtained in step 2-4 to evaluate the performance of the model under the optimal parameters on the test data set to obtain the accuracy; if the accuracy is greater than or equal to the preset accuracy threshold, store the optimal parameters for intelligent identification of key nodes; if the accuracy is less than the preset accuracy threshold, return to step 2-4 to continue training; Step 3: Intelligently identify key nodes of the data to be detected.

2. According to claim 1, a random forest-based intelligent identification method for key nodes of a command and control network is characterized in that: The specific method of step 3 is: Step 3-1: Load the optimal parameters after training to obtain an intelligent key node recognition model; Step 3-2: Input the interaction data to be identified into the intelligent key node identification model to generate the identification result.