Data security situation prediction method based on weighted Markov model
The data security situation prediction method based on the weighted Markov model solves the problem that traditional methods are difficult to deal with complex security threats, realizes the prediction and diffusion of network node events, and improves data security protection capabilities.
Patent Information
- Application Number
- CN202411042282.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-08
AI Technical Summary
Traditional data security protection methods are difficult to deal with complex and ever-changing security threats and cannot predict the data security situation in real time, resulting in an increased risk of data leakage.
The data security situation prediction method based on the weighted Markov model is used to obtain the status of offline and online nodes, calculate the situation value and network situation matrix value, set thresholds to judge the status, and predict the spread of events.
It realizes the prediction and diffusion of network node events, improves data security protection capabilities, and reduces the risk of data leakage.
Smart Images

Figure CN118748622A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data prediction, and in particular to a data security situation prediction method based on a weighted Markov model. Background Art
[0002] With the rapid development of information technology, data has become one of the most important assets in modern society. However, with the rapid growth of data volume, data security issues have become increasingly prominent. Traditional data security protection methods often rely on fixed security policies and rules, which are difficult to cope with complex and changing security threats. Therefore, developing a method that can predict data security trends in real time is of great significance for improving data security protection capabilities and reducing data leakage risks. Summary of the invention
[0003] The present invention aims to at least solve the technical problems existing in the prior art, and in particular innovatively proposes a data security situation prediction method based on a weighted Markov model.
[0004] In order to achieve the above-mentioned object of the present invention, the present invention provides a data security situation prediction method based on a weighted Markov model, comprising the following steps:
[0005] S1, obtain the status of offline nodes and / or online nodes;
[0006] S2, calculating the situation value of a single node according to the status of the offline node and / or the online node obtained in step S1;
[0007] S3, calculating the network situation matrix value according to step S2;
[0008] S4, judging the state by setting a threshold value based on the calculated prediction value.
[0009] In a preferred embodiment of the present invention, in step S1, the vaccination status of the offline node u is expressed as:
[0010]
[0011] Among them, U u =1 indicates that the offline node u is in the vaccination state;
[0012] U u =0 means that the offline node u is in the unvaccinated state;
[0013] The expression of the disease status of online node u is:
[0014]
[0015] Among them, V u=1 means that the online node corresponding to the offline node u is in sick state;
[0016] V u =0 means that the online node corresponding to the offline node u is in an easily contagious state.
[0017] In a preferred embodiment of the present invention, in step S4, the calculation method of the predicted value is:
[0018]
[0019] in, represents the predicted value;
[0020] It indicates the ratio of susceptible people to infectious people in unit time t0;
[0021] It indicates the proportion of infectious persons who recover to be susceptible to infection within unit time t0;
[0022] It represents the proportion of susceptible people who are vaccinated within unit time t0;
[0023] It represents the proportion of vaccinated people who are transformed into susceptible people within unit time t0;
[0024] σ represents the vaccine failure factor.
[0025] In a preferred embodiment of the present invention, in step S2, σ is less than or equal to 1 and greater than or equal to 0.
[0026] In a preferred embodiment of the present invention, in step S2, in step S4, the method of determining the state by setting the threshold value through the situation is:
[0027] judge Relationship with Φ:
[0028] like The event is in a non-diffusion state;
[0029] like The event is in a diffusion state.
[0030] In a preferred implementation of the present invention, in step S2, the situation setting threshold Φ is 1.
[0031] In a preferred embodiment of the present invention, in step S2, the situation value of node u is represented as follows:
[0032]
[0033] Where P(|) represents the conditional probability function;
[0034] It means that at the next time t+1, the offline node u is in the unvaccinated state;
[0035] It means that at the next time t+1, the offline node u is in the vaccination state;
[0036] It means that at the next time t+1, the online node corresponding to the offline node u is in an easily contagious state;
[0037] It means that at the next time t+1, the online node corresponding to the offline node u is in the sick state;
[0038] P() represents the probability function;
[0039] It means that at the current time t, the offline node u is in the unvaccinated state;
[0040] Indicates that at the current time t, the offline node u is in the vaccination state;
[0041] Indicates that at the current time t, the online node corresponding to the offline node u is in an easily contagious state;
[0042] Indicates that at the current time t, the online node corresponding to the offline node u is in a sick state;
[0043] It means that at the current time t, the adjacent node v of the online node corresponding to the offline node u is in the vaccination state;
[0044] It represents the ratio of susceptible people to infectious people in unit time t0.
[0045] It indicates the proportion of infected people who recover to be susceptible to infection within unit time t0.
[0046] It represents the proportion of susceptible people who are vaccinated within unit time t0.
[0047] It represents the proportion of people who are vaccinated and become susceptible to infection within a unit time t0.
[0048] σ represents the vaccine failure factor, σ∈[0,1];
[0049] dt represents the time step value;
[0050] N u Represents the total number of neighbor nodes of the offline node u and / or the neighbor nodes of the online node corresponding to the offline node u;
[0051] o(dt) represents the time function.
[0052] In a preferred embodiment of the present invention, the network situation matrix value is expressed as:
[0053]
[0054] Among them, uv Indicates the disease status of the online node in row u and column v;
[0055] o uv =1 means that the online node in row u and column v is in the diseased state;
[0056] o uv =0 means that the online node in row u and column v is in an easily contagious state;
[0057] p S→S represents the probability of transforming from a susceptible state to a susceptible state;
[0058] p S→E represents the probability of transforming from the susceptible state to the vaccinated state;
[0059] p S→I It represents the probability of changing from a susceptible state to a diseased state;
[0060] p E→S represents the probability of converting from the vaccinated state to the susceptible state;
[0061] p E→E represents the probability of transitioning from the vaccinated state to the vaccinated state;
[0062] p E→I represents the probability of changing from the vaccinated state to the diseased state;
[0063] p I→S represents the probability of changing from a diseased state to a susceptible state;
[0064] p I→E represents the probability of transitioning from the diseased state to the vaccinated state;
[0065] p I→I Represents the probability of transitioning from a diseased state to a diseased state.
[0066] In a preferred embodiment of the present invention, in step S4, the method of determining the state by setting a threshold value through the situation is:
[0067] judge Relationship with 1:
[0068] like The event is in a non-diffusion state;
[0069] in, It represents the ratio of susceptible people to infectious people in unit time t0.
[0070] It indicates the proportion of infected people who recover to be susceptible to infection within unit time t0.
[0071] It represents the proportion of susceptible people who are vaccinated within unit time t0.
[0072] It represents the proportion of people who are vaccinated and become susceptible to infection within a unit time t0.
[0073] σ represents the vaccine failure factor, σ∈[0,1];
[0074] like The event is in a diffusion state;
[0075] in, It represents the ratio of susceptible people to infectious people in unit time t0.
[0076] It indicates the proportion of infected people who recover to be susceptible to infection within unit time t0.
[0077] It represents the proportion of susceptible people who are vaccinated within unit time t0.
[0078] It represents the proportion of people who are vaccinated and become susceptible to infection within a unit time t0.
[0079] σ represents the vaccine failure factor, σ∈[0,1].
[0080] In a preferred embodiment of the present invention, it also includes restoring data on offline nodes and / or online nodes.
[0081] In summary, due to the adoption of the above technical solution, the present invention can predict and diffuse events occurring on network nodes.
[0082] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0084] Figure 1 It is a schematic block diagram of the process of the present invention. DETAILED DESCRIPTION
[0085] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0086] The present invention provides a data security situation prediction method based on a weighted Markov model, such as Figure 1 As shown, the following steps are included:
[0087] S1, obtain the status of offline nodes and / or online nodes;
[0088] S2, calculating the situation value of a single node according to the status of the offline node and / or the online node obtained in step S1;
[0089] S3, calculating the network situation matrix value according to step S2;
[0090] S4, judging the state by setting a threshold value based on the calculated prediction value.
[0091] In a preferred embodiment of the present invention, in step S1, the vaccination status of the offline node u is expressed as:
[0092]
[0093] Among them, U u =1 indicates that the offline node u is in the vaccination state;
[0094] U u =0 means that the offline node u is in the unvaccinated state;
[0095] The expression of the disease status of online node u is:
[0096]
[0097] Among them, V u =1 means that the online node corresponding to the offline node u is in sick state;
[0098] V u =0 means that the online node corresponding to the offline node u is in an easily contagious state.
[0099] In a preferred embodiment of the present invention, in step S2, the situation value of node u is represented as follows:
[0100]
[0101] Where P(|) represents the conditional probability function;
[0102] It means that at the next time t+1, the offline node u is in the unvaccinated state;
[0103] It means that at the next time t+1, the offline node u is in the vaccination state;
[0104] It means that at the next time t+1, the online node corresponding to the offline node u is in an easily contagious state;
[0105] It means that at the next time t+1, the online node corresponding to the offline node u is in the sick state;
[0106] P() represents the probability function;
[0107] It means that at the current time t, the offline node u is in the unvaccinated state;
[0108] Indicates that at the current time t, the offline node u is in the vaccination state;
[0109] Indicates that at the current time t, the online node corresponding to the offline node u is in an easily contagious state;
[0110] Indicates that at the current time t, the online node corresponding to the offline node u is in a sick state;
[0111] It means that at the current time t, the adjacent node v of the online node corresponding to the offline node u is in the vaccination state;
[0112] It represents the ratio of susceptible people to infectious people in unit time t0.
[0113] It indicates the proportion of infected people who recover to be susceptible to infection within unit time t0.
[0114] It represents the proportion of susceptible people who are vaccinated within unit time t0.
[0115] It represents the proportion of people who are vaccinated and become susceptible to infection within a unit time t0.
[0116] σ represents the vaccine failure factor, σ∈[0,1];
[0117] dt represents the time step value;
[0118] N u Represents the total number of neighbor nodes of the offline node u and / or the neighbor nodes of the online node corresponding to the offline node u;
[0119] o(dt) represents the time function.
[0120] In a preferred embodiment of the present invention, the network situation matrix value is expressed as:
[0121]
[0122] Among them, uv Indicates the disease status of the online node in row u and column v;
[0123] o uv =1 means that the online node in row u and column v is in the diseased state;
[0124] o uv =0 means that the online node in row u and column v is in an easily contagious state;
[0125] p S→S represents the probability of transforming from a susceptible state to a susceptible state;
[0126] p S→E represents the probability of transforming from the susceptible state to the vaccinated state;
[0127] p S→I It represents the probability of changing from a susceptible state to a diseased state;
[0128] p E→S represents the probability of converting from the vaccinated state to the susceptible state;
[0129] p E→E represents the probability of transitioning from the vaccinated state to the vaccinated state;
[0130] p E→I represents the probability of changing from the vaccinated state to the diseased state;
[0131] p I→S represents the probability of changing from a diseased state to a susceptible state;
[0132] p I→E represents the probability of transitioning from the diseased state to the vaccinated state;
[0133] p I→I Represents the probability of transitioning from a diseased state to a diseased state.
[0134] In a preferred embodiment of the present invention, in step S4, the method of determining the state by setting a threshold value through the situation is:
[0135] judge Relationship with 1:
[0136] like The event is in a non-diffusion state;
[0137] in, It represents the ratio of susceptible people to infectious people in unit time t0.
[0138] It indicates the proportion of infected people who recover to be susceptible to infection within unit time t0.
[0139] It represents the proportion of susceptible people who are vaccinated within unit time t0.
[0140] It represents the proportion of people who are vaccinated and become susceptible to infection within a unit time t0.
[0141] σ represents the vaccine failure factor, σ∈[0,1];
[0142] like The event is in a diffusion state;
[0143] in, It represents the ratio of susceptible people to infectious people in unit time t0.
[0144] It indicates the proportion of infected people who recover to be susceptible to infection within unit time t0.
[0145] It represents the proportion of susceptible people who are vaccinated within unit time t0.
[0146] It represents the proportion of people who are vaccinated and become susceptible to infection within a unit time t0.
[0147] σ represents the vaccine failure factor, σ∈[0,1].
[0148] In a preferred embodiment of the present invention, the method further includes restoring data on offline nodes and / or online nodes. The method includes the following steps:
[0149] S51, obtaining backup and restoration data, and dividing the backup and restoration data into training set data and test set data;
[0150] S52, constructing a generator and a discriminator structure of a GANs model, and constructing a GANs model according to the constructed generator and discriminator;
[0151] S53, inputting the training set data in step S51 into the GANs model for training, and updating the generator and discriminator parameters;
[0152] S54, input the test set data in step S51 into the GANs model to generate restored image data. After the test is completed, the data to be restored on the offline node and / or the online node is input into the trained GANs model for restoration.
[0153] In a preferred embodiment of the present invention, the data ratio of the training set data to the test set data is 7:3.
[0154] In a preferred embodiment of the present invention, step S51 further includes preprocessing the backup and restoration data. The method for preprocessing the backup and restoration data is as follows:
[0155]
[0156] Where x′ represents the pixel value of the preprocessed image;
[0157] x represents the actual pixel value of the image in the backup and restoration data before preprocessing;
[0158] min(x) represents the minimum pixel value of the image in the backup and restoration data before preprocessing;
[0159] max(x) represents the maximum pixel value of the image in the backup and restoration data before preprocessing.
[0160] In a preferred embodiment of the present invention, in step S52, the structure of the generator is composed of 23 layers, including a convolution layer, a transposed convolution layer, a batch normalization layer, a LeakyReLU activation function layer and a Sigmoid activation function layer;
[0161] The discriminator has 14 layers, including convolutional layer, batch normalization layer, LeakyReLU activation function layer and Sigmoid activation function layer.
[0162] The GANs model is composed of a generator and a discriminator connected in sequence. The generator processes the input image data, and the generated simulated image data is input into the discriminator. After the discriminator processes the simulated image, it updates the generator and discriminator parameters.
[0163] In a preferred embodiment of the present invention, in step S52, the generator sequentially connects a convolutional layer, a batch normalization layer, and a LeakyReLU activation function layer to form a convolutional block;
[0164] Connect a transposed convolution layer, a batch normalization layer, and a LeakyReLU activation function layer in sequence to form a transposed convolution block;
[0165] After the image data is input into the generator, it first passes through four convolution blocks in succession, then passes through three transposed convolution blocks in succession, and finally passes through a transposed convolution layer and a Sigmoid activation function layer;
[0166] The discriminator is a convolutional block formed by sequentially concatenating a convolutional layer, a batch normalization layer, and a LeakyReLU activation function layer;
[0167] After the image data is input into the discriminator, it first passes through four convolution blocks in succession, followed by a convolution layer and a Sigmoid activation function layer.
[0168] In a preferred embodiment of the present invention, in step S53, the training includes:
[0169]
[0170] Among them, loss represents the training function;
[0171] χ represents the weight coefficient of the generator loss function;
[0172] loss(SCQ) represents the generator loss function;
[0173] γ represents the weight coefficient of the discriminator loss function;
[0174] loss(PBQ) represents the discriminator loss function;
[0175] γ=ε*χ,
[0176] Among them, χ represents the weight coefficient of the generator loss function;
[0177] γ represents the weight coefficient of the discriminator loss function;
[0178] ε represents the proportionality coefficient in the range (0,1).
[0179] In a preferred embodiment of the present invention, in step S53, the training further includes:
[0180]
[0181] Among them, loss(PBQ) represents the discriminator loss function;
[0182] represents the true label in the discriminator;
[0183] Represents the label probability in the discriminator;
[0184] Represents the intermediate amount of true labels in the discriminator;
[0185] Represents the intermediate label probability in the discriminator;
[0186]
[0187] in, represents the true label in the discriminator;
[0188] Represents the intermediate amount of true labels in the discriminator;
[0189]
[0190] Represents the label probability in the discriminator;
[0191] Represents the intermediate label probability in the discriminator.
[0192] In a preferred embodiment of the present invention, in step S53, the training further includes:
[0193]
[0194] Among them, loss(SCQ) represents the generator loss function;
[0195] represents the true label in the generator;
[0196] Represents the label probability in the generator.
[0197] In a preferred embodiment of the present invention, the GANs model is further evaluated by an index, wherein the evaluation index includes one or any combination of accuracy, precision, and false alarm rate;
[0198] The accuracy rate is calculated as follows:
[0199]
[0200] Among them, TP means that actual abnormality is classified as abnormal;
[0201] TN means that the actual normal record is classified as normal;
[0202] FP means that the actual normal records are classified as abnormal;
[0203] FN means that the actual abnormality is classified as a normal record;
[0204] Accuracy indicates accuracy;
[0205] The calculation method of precision is:
[0206]
[0207] TP means that actual abnormality is classified as abnormal;
[0208] FP means that the actual normal records are classified as abnormal;
[0209] Precision means the precision rate;
[0210] The false alarm rate is calculated as:
[0211]
[0212] FP means that the actual normal records are classified as abnormal;
[0213] TN means that the actual normal record is classified as normal;
[0214] FPR stands for False Positive Rate.
[0215] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A data security situation prediction method based on a weighted Markov model, characterized in that: The following steps are involved: S1, obtain the status of offline nodes and / or online nodes; S2, calculating the situation value of a single node according to the status of the offline node and / or the online node obtained in step S1; S3, calculating the network situation matrix according to step S2; S4, judging the state by setting a threshold value based on the calculated prediction value.
2. The data security situation prediction method based on the weighted Markov model according to claim 1 is characterized in that: In step S1, the vaccination status of offline node u is expressed as: Among them, U u =1 indicates that the offline node u is in the vaccination state; U u =0 indicates that the offline node u is in the unvaccinated state.
3. The data security situation prediction method based on weighted Markov model according to claim 1 is characterized in that: In step S1, the disease status of online node u is expressed as: Among them, V u =1 means that the online node corresponding to the offline node u is in sick state; V u =0 means that the online node corresponding to the offline node u is in an easily contagious state.
4. The data security situation prediction method based on weighted Markov model according to claim 1 is characterized in that: The predicted value is calculated as: in, represents the predicted value; It indicates the ratio of susceptible people to infectious people in unit time t0; It indicates the proportion of infectious persons who recover to be susceptible to infection within unit time t0; It represents the proportion of susceptible people who are vaccinated within unit time t0; It represents the proportion of vaccinated people who are transformed into susceptible people within unit time t0; σ represents the vaccine failure factor.
5. The data security situation prediction method based on weighted Markov model according to claim 1 is characterized in that: σ is less than or equal to 1 and greater than or equal to 0.
6. The data security situation prediction method based on weighted Markov model according to claim 1 is characterized in that: In step S4, the method of determining the state by setting the threshold value is as follows: judge Relationship with Φ: like The event is in a non-diffusion state; like The event is in a diffusion state.
7. The data security situation prediction method based on weighted Markov model according to claim 1 is characterized in that: The situation setting threshold Φ is set to 1.
8. The data security situation prediction method based on weighted Markov model according to claim 1 is characterized in that: It also includes recovery processing of data on offline nodes and / or online nodes.
Citation Information
Patent Citations
Power grid security risk prediction method
CN106372799A
Double-layer network public opinion information propagation prediction method based on continuous Markov
CN110163446A
Laser spot recovery method based on generative adversarial network
CN118096539A
Node online / offline status reporting method, reporting end server, and node online / offline status reporting system
WO2022143407A1
