Risk assessment method, device and equipment for key personnel data, medium and computer program product
By introducing the random forest algorithm into the analytic hierarchy process to process the data of key personnel, the problem of subjectivity of assessment results in the existing technology is solved, a more accurate and timely risk assessment is achieved, and technical support is provided for the management and control of key personnel.
Patent Information
- Application Number
- CN202410858265.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology has high subjectivity when using the analytic hierarchy process to analyze key personnel data, resulting in insufficient objectiveness of the assessment results and difficulty in conducting accurate and timely risk assessments.
Combined with the random forest algorithm to add quantitative components, by collecting and processing key personnel characteristic data, a training feature combination is generated, the feature combination with the highest generalization score is selected as the descriptive feature, and the AHP analytic hierarchy process is used for risk assessment.
It improves the objectivity and accuracy of the assessment results, enables more timely risk assessment of key personnel, and provides technical support for their management, control and early warning.
Smart Images

Figure CN118710470A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of big data analysis, and in particular to a risk assessment method, apparatus, equipment, medium and computer program product for key personnel data. Background Art
[0002] Key personnel are people with special attributes, including criminals, mental patients, etc., whose activities need to be controlled and managed. At present, there is no unified platform for the control and management of the data of special key personnel in the whole region, resulting in decentralized management models and backward prevention and control measures. In particular, the inability to conduct multi-dimensional analysis and early warning of the massive data of key personnel in a timely manner has led to poor timeliness in the control of key personnel, and thus the inability to fully control the current security situation.
[0003] The Analytic Hierarchy Process (AHP) is widely used in the fields of safety science and environmental science, but it also has many defects. One of the main problems of the traditional AHP method is that the evaluation indicators are selected by human experience, which is highly subjective, resulting in less quantitative data, more qualitative components and less convincing results.
[0004] Therefore, how to improve the objectivity of the evaluation results when using the AHP method to analyze key personnel data in order to more accurately conduct risk assessment of key personnel is an urgent problem to be solved. Summary of the invention
[0005] The present application provides a risk assessment method for key personnel data, which can increase the quantitative component through the random forest algorithm when using the AHP method to analyze the key personnel data, thereby improving the objectivity of its assessment results, thereby conducting risk assessment on key personnel more accurately and timely.
[0006] In order to achieve the above object, the present invention adopts the following technical scheme:
[0007] In a first aspect, the present invention provides a method for risk assessment of key personnel data, the method comprising:
[0008] Collect characteristic data of key personnel;
[0009] Grouping relevant features in the feature data into a group to obtain a plurality of feature combinations, selecting two feature combinations from the plurality of feature combinations, combining each feature of the first feature combination with each feature of the second feature combination in pairs, and combining each combined feature with a basic feature in the feature data to obtain a plurality of training feature combinations;
[0010] Input all training feature combinations into the random forest algorithm to obtain the generalization score of each training feature combination, and select the training feature combination with the highest generalization score as the descriptive feature;
[0011] Based on the descriptive characteristics, the AHP hierarchical analysis method is used to evaluate the risks of key personnel and obtain the evaluation results.
[0012] In a preferred example of the present application, it can be further configured that the collecting of characteristic data of key personnel includes:
[0013] Extract features and samples from the terrorism-related database, and select features describing personal background information from the features as retained features;
[0014] Delete samples with feature missing rate greater than 70%, and then randomly select some samples to add to the training set;
[0015] The training set and the retained features are used as feature data of key personnel.
[0016] In a preferred example of the present application, it can be further configured to include:
[0017] When there are missing values in the features of the training set, the missing values are filled using the mode of all values of the feature in the training set.
[0018] In a preferred example of the present application, it can be further configured that before all training feature combinations are input into the random forest algorithm, the following are included:
[0019] The number of subtrees in the random forest algorithm is set to 100.
[0020] In a preferred example of the present application, it can be further configured to include:
[0021] All the training feature combinations are oversampled using the SMOTE algorithm, and then input into the random forest algorithm to obtain the oversampled generalization score of each training feature combination;
[0022] If the oversampled generalization score and the highest value of the generalization score are the same, the training feature combination corresponding to the highest value is determined as the description feature.
[0023] In a preferred example of the present application, it can be further configured that, based on the descriptive features, the AHP hierarchical analysis method is used to evaluate the risk of key personnel, and the evaluation results obtained include:
[0024] Based on the described characteristics, a personal risk assessment indicator system is established;
[0025] Use AHP hierarchical analysis method to assign weights to the personal risk assessment index system to obtain weight data;
[0026] Construct a quantitative scoring table, combine it with the weight data, and calculate the individual comprehensive risk score;
[0027] The risk level of key personnel is assessed based on the individual comprehensive risk score.
[0028] In a second aspect, the present application provides a risk assessment device for key personnel data, the device comprising:
[0029] Data collection module, used to collect characteristic data of key personnel;
[0030] A feature combination module, used for grouping relevant features in the feature data into a group to obtain a plurality of feature combinations, selecting two feature combinations from the plurality of feature combinations, combining each feature of the first feature combination with each feature of the second feature combination in pairs, and combining each combined feature with a basic feature in the feature data to obtain a plurality of training feature combinations;
[0031] A decision module is used to input all training feature combinations into a random forest algorithm to obtain a generalization score of each training feature combination, and select the training feature combination with the highest generalization score as a descriptive feature;
[0032] The evaluation module is used to evaluate the risks of key personnel based on the described characteristics using the AHP hierarchical analysis method to obtain evaluation results.
[0033] In a third aspect, the present application provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the risk assessment method for key personnel data as described in any one of the above items are implemented.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium having a program stored thereon, wherein when the program is executed by a processor, a risk assessment method for key personnel data as described in any one of the above items is implemented.
[0035] In a fifth aspect, the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the risk assessment method for key personnel data as described in any one of the above items.
[0036] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects:
[0037] The present application provides a risk assessment method for key personnel data, including collecting feature data of key personnel; dividing relevant features in the feature data into a group to obtain multiple feature combinations, selecting two feature combinations from the multiple feature combinations, combining each feature of the first feature combination with each feature of the second feature combination, combining each combined feature with the basic feature in the feature data, and obtaining multiple training feature combinations; inputting all training feature combinations into a random forest algorithm to obtain the generalization score of each training feature combination, and selecting the training feature combination with the highest generalization score as a descriptive feature; based on the descriptive feature, using the AHP hierarchical analysis method to assess the risk of key personnel and obtain an assessment result. When using the AHP method to analyze key personnel data, the out-of-bag error of the random forest algorithm can be used to screen the features used to assess the risk of key personnel, thereby increasing the quantitative component of the AHP method and improving the objectivity of the assessment results, thereby more accurately and timely assessing the risk of key personnel and providing technical support for the management and early warning of key personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flowchart of a method for risk assessment of key personnel data provided in one embodiment of the present application.
[0039] Figure 2 A diagram showing the characteristics and partial meaning of a risk assessment method for key personnel data provided in one embodiment of the present application.
[0040] Figure 3 An evaluation index system diagram of a risk assessment method for key personnel data provided in one embodiment of the present application.
[0041] Figure 4 A personal risk assessment system indicator diagram of a risk assessment method for key personnel data provided in one embodiment of the present application.
[0042] Figure 5 An indicator weight diagram of a risk assessment method for key personnel data provided in one embodiment of the present application.
[0043] Figure 6 A quantitative graph of partial indicator scores of a risk assessment method for key personnel data provided in one embodiment of the present application.
[0044] Figure 7 A module diagram of a risk assessment method for key personnel data provided in one embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] In one embodiment of the present application, a risk assessment method for key personnel data is provided. Figure 1 As shown, the method includes:
[0047] S100: Collect characteristic data of key personnel.
[0048] Specifically, the characteristic data includes evaluation indicators and samples of key personnel, and the evaluation indicators include basic information, behavioral habits, and environmental relationships, etc. The samples are the values of each evaluation indicator of multiple key personnel, such as basic information: male, 20 years old.
[0049] S200: Grouping relevant features in the feature data into a group to obtain a plurality of feature combinations, selecting two feature combinations from the plurality of feature combinations, combining each feature of the first feature combination with each feature of the second feature combination in pairs, and combining each combined feature with a basic feature in the feature data to obtain a plurality of training feature combinations;
[0050] Specifically, the features (evaluation indicators) that can be classified into one category in the feature data are divided into a group. For example, the three features of birthplace, country when joining the organization, and country of training can all describe the national background information of key personnel, so these three are grouped together as a feature combination. And so on, multiple feature combinations are obtained. Then, two feature combinations with strong correlation are selected from the multiple feature combinations, and each feature of the first feature combination is combined with each feature of the second feature combination. For example, two feature combinations based on national background information and immigration background information are respectively used. There is also a strong correlation between these two feature combinations, which has a great impact on the subsequent processing steps, so feature screening is required. Specifically, feature A is extracted from the national background information feature combination, and combined with feature B of the immigration background information to obtain a combined feature AB. Feature C is then selected from the national background information feature combination and combined with feature D of the immigration background information combination to obtain another combined feature CD. And so on, multiple combined features are obtained. Then, each of the combined features is combined with the basic features in the feature data to form multiple training feature combinations. The basic features are at least Figure 2 Features corresponding to the basic features in the feature category.
[0051] S300: inputting all training feature combinations into a random forest algorithm to obtain a generalization score of each training feature combination, and selecting a training feature combination with the highest generalization score as a descriptive feature;
[0052] Specifically, the random forest algorithm is implemented by calling the RF (RandomForest) function of the sklearn library, the generalization score is OOB_Score (out-of-bag error), and the training feature combination with the highest OOB_Score is selected as the descriptive feature. For example, the training feature combination including the combination of features CD is selected, that is, in addition to selecting the basic features as the descriptive information, feature C in the national background information feature combination is selected to describe the national background information, and feature D in the immigration background information combination is selected to describe the immigration background information.
[0053] S400: Based on the descriptive features, the AHP hierarchical analysis method is used to evaluate the risks of key personnel to obtain an evaluation result; specifically, according to the screened descriptive features, the AHP hierarchical analysis method (Analytic Hierarchy Process) is used to assign weights to each feature, and a comprehensive risk score is calculated based on the weights of each feature, and then the risk level is determined based on the comprehensive risk score.
[0054] In this embodiment, when using the AHP method to analyze the data of key personnel, the out-of-bag error of the random forest algorithm is used to screen the features used to assess the risks of key personnel, which increases the quantitative component of the AHP method and improves the objectivity of the assessment results, thereby conducting risk assessments on key personnel more accurately and timely, and providing technical support for the management, control and early warning of key personnel.
[0055] In some embodiments, the collecting of characteristic data of key personnel includes:
[0056] Extract features and samples from the terrorism-related database, and select features describing personal background information from the features as retained features;
[0057] Delete samples with feature missing rate greater than 70%, and then randomly select some samples to add to the training set;
[0058] The training set and the retained features are used as feature data of key personnel.
[0059] In specific implementation, the terrorism-related database is an international terrorist dataset. The retained features include at least Figure 3 The first-level and second-level indicators in the feature missing rate are the ratio of the features with missing values to all features.
[0060] In this embodiment, by preprocessing the data, a data set that is more suitable for algorithm training is constructed, thereby improving the accuracy and efficiency of random forest decision making.
[0061] In some embodiments, including:
[0062] When there are missing values in the features of the training set, the missing values are filled using the mode of all values of the feature in the training set.
[0063] In this embodiment, the accuracy and efficiency of random forest decision making are improved.
[0064] In some embodiments, before all training feature combinations are input into the random forest algorithm, the steps include:
[0065] The number of subtrees in the random forest algorithm is set to 100.
[0066] In some embodiments, it also includes:
[0067] All the training feature combinations are oversampled using the SMOTE algorithm, and then input into the random forest algorithm to obtain the oversampled generalization score of each training feature combination;
[0068] If the oversampled generalization score and the highest value of the generalization score are the same, the training feature combination corresponding to the highest value is determined as the description feature.
[0069] In specific implementation, the SMOTE algorithm is Synthetic Minority Oversampling Technique, which is a synthetic minority oversampling technique, and is an oversampling method for dealing with class imbalance in classification problems.
[0070] In this embodiment, since the training data, that is, the set of training feature combinations, is unbalanced data, in order to eliminate the influence of unbalanced data on the results, the original data and the data processed by SMOTE oversampling are respectively input into the random forest algorithm, so that the random forest algorithm obtains a more accurate output result. By comparing the generalization scores of the two data, the final descriptive features are determined, which can improve the accuracy of the determined descriptive features.
[0071] In some embodiments, the risk of key personnel is assessed using AHP based on the descriptive features to obtain an assessment result, including:
[0072] Based on the described characteristics, a personal risk assessment indicator system is established;
[0073] Use AHP hierarchical analysis method to assign weights to the personal risk assessment index system to obtain weight data;
[0074] Construct a quantitative scoring table, combine it with the weight data, and calculate the individual comprehensive risk score;
[0075] The risk level of key personnel is assessed based on the individual comprehensive risk score.
[0076] In the specific implementation, firstly, a personal risk assessment indicator system is established based on the described characteristics. The risk assessment indicator system is as follows: Figure 4 Then, weights are assigned according to the 1-9 scale, and the judgment matrix can be obtained by combining relevant literature and expert scores (taking the criterion layer as an example):
[0077]
[0078] The weight vector is W = {0.6074, 0.0815, 0.0815, 0.2296}, with the maximum eigenvalue λmax. The matrix CR = 0.03 < 0.1 is tested, and the consistency test is passed. Similarly, the comprehensive weight and ranking of each indicator in the factor layer relative to the target can be obtained. The results are shown in Figure 5 According to the results, the top three are occupation, birthplace and education field.
[0079] Next, we measure the personal risk indicators. To make the data uniform and easy to read, we use a 10-point system to output the indicators and compare them. We collect the distribution of characteristic elements of 475 samples in the statistical data set and complete the quantitative scoring table of personal risk assessment indicators. The quantitative scores of some indicators are shown in Figure 6 , personal information can be evaluated and scored according to the scoring table.
[0080] According to the weight values, the first-level indicator score and the comprehensive risk score can be calculated by the score of the personal background indicator, as follows:
[0081] Innate condition score: B1 = C1 × 0.6074 + C2 × 0.0815 + C3 × 0.0815 + C4 × 0.2296;
[0082] Personal development score: B2 = C5 × 0.1031 + C6 × 0.0533 + C7 × 0.4579 + C8 × 0.2062 + C9 × 0.1795;
[0083] Religion and politics score: B3 = C10 × 0.111 2 + C11 × 0.2290 + C12 × 0.3584 + C13 × 0.3014;
[0084] Comprehensive risk score = B1×0.25+B2×0.5+B3×0.25.
[0085] The risk level is assessed through the individual's comprehensive risk score. The higher the score, the greater the risk. A score less than 4.25 is classified as low risk, and a score greater than 4.25 is classified as high risk.
[0086] In this embodiment, the efficiency and accuracy of risk assessment of key personnel are improved.
[0087] This application also provides a risk assessment device for key personnel data, see Figure 7 As shown, the device comprises:
[0088] The data collection module 100 is used to collect characteristic data of key personnel;
[0089] A feature combination module 200 is used to group related features in the feature data to obtain multiple feature combinations, select two feature combinations from the multiple feature combinations, combine each feature of the first feature combination with each feature of the second feature combination, and combine each combined feature with the basic features in the feature data to obtain multiple training feature combinations;
[0090] A decision module 300 is used to input all training feature combinations into a random forest algorithm to obtain a generalization score of each training feature combination, and select the training feature combination with the highest generalization score as a descriptive feature;
[0091] The evaluation module 400 is used to evaluate the risk of key personnel based on the described features using the AHP hierarchy analysis method to obtain an evaluation result.
[0092] The functional implementation of each module in the above-mentioned risk assessment device for key personnel data corresponds to the steps in the above-mentioned embodiment of the risk assessment method for key personnel data, and its functions and implementation processes will not be repeated here one by one.
[0093] The present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the risk assessment method for key personnel data as described in any of the above embodiments are implemented.
[0094] The present application also provides a computer-readable storage medium, on which a program is stored, wherein the computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, and / or a memory stick, etc., and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The working process, working details, and technical effects of the computer-readable storage medium provided in this embodiment can be found in the above embodiment of a risk assessment method for key personnel data, which will not be repeated here.
[0095] The application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the risk assessment method for key personnel data as described in any of the above embodiments.
[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0097] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above-mentioned embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several deformations and improvements can be made, which all belong to the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be based on the attached claims.
Claims
1. A risk assessment method for key personnel data, It is characterized in that include: Collect characteristic data of key personnel; Grouping relevant features in the feature data into a group to obtain a plurality of feature combinations, selecting two feature combinations from the plurality of feature combinations, combining each feature of the first feature combination with each feature of the second feature combination in pairs, and combining each combined feature with a basic feature in the feature data to obtain a plurality of training feature combinations; Input all training feature combinations into the random forest algorithm to obtain the generalization score of each training feature combination, and select the training feature combination with the highest generalization score as the descriptive feature; Based on the descriptive characteristics, the AHP hierarchical analysis method is used to evaluate the risks of key personnel and obtain the evaluation results.
2. The risk assessment method for key personnel data according to claim 1, It is characterized in that The characteristic data of key personnel collected includes: Extract features and samples from the terrorism-related database, and select features describing personal background information from the features as retained features; Delete samples with feature missing rate greater than 70%, and then randomly select some samples to add to the training set; The training set and the retained features are used as feature data of key personnel.
3. The risk assessment method for key personnel data according to claim 2, It is characterized in that include: When there are missing values in the features of the training set, the missing values are filled using the mode of all values of the feature in the training set.
4. The risk assessment method for key personnel data according to claim 1, It is characterized in that All training feature combinations are fed into the random forest algorithm before inputting them, including: The number of subtrees in the random forest algorithm is set to 100.
5. The risk assessment method for key personnel data according to claim 4, It is characterized in that Also includes: All the training feature combinations are oversampled using the SMOTE algorithm, and then input into the random forest algorithm to obtain the oversampled generalization score of each training feature combination; If the oversampled generalization score and the highest value of the generalization score are the same, the training feature combination corresponding to the highest value is determined as the description feature.
6. The risk assessment method for key personnel data according to claim 1, It is characterized in that Based on the described characteristics, the AHP hierarchical analysis method is used to assess the risks of key personnel, and the assessment results are obtained, including: Based on the described characteristics, a personal risk assessment indicator system is established; Use AHP hierarchical analysis method to assign weights to the personal risk assessment index system to obtain weight data; Construct a quantitative scoring table, combine it with the weight data, and calculate the individual comprehensive risk score; The risk level of key personnel is assessed based on the individual comprehensive risk score.
7. A risk assessment device for key personnel data, It is characterized in that include: Data collection module, used to collect characteristic data of key personnel; A feature combination module, used for grouping relevant features in the feature data into a group to obtain a plurality of feature combinations, selecting two feature combinations from the plurality of feature combinations, combining each feature of the first feature combination with each feature of the second feature combination in pairs, and combining each combined feature with a basic feature in the feature data to obtain a plurality of training feature combinations; A decision module is used to input all training feature combinations into a random forest algorithm to obtain a generalization score of each training feature combination, and select the training feature combination with the highest generalization score as a descriptive feature; The evaluation module is used to evaluate the risks of key personnel based on the described characteristics using the AHP hierarchical analysis method to obtain evaluation results.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the risk assessment method for key personnel data according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a program, wherein when the program is executed by a processor, the risk assessment method for key personnel data according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising computer instructions, It is characterized in that The computer instructions implement the steps of the method according to claims 1 to 6 when executed by a processor.
