Distributed state estimation method for data tampering attack detection

By using Q-learning algorithm and partially observable Markov decision process in distributed state estimation, the problem of data tampering detection in unknown attack model scenarios is solved, and the performance of distributed state estimation and attack detection response in fields such as Internet of Vehicles are improved. speed.

CN118764255APending Publication Date: 2024-10-11EAST CHINA UNIV OF SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410916341.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing attack detection methods are usually designed for predefined attack models and cannot guarantee good performance of distributed state estimation in scenarios where the attack model is unknown. Especially in fields such as the Internet of Vehicles, it is difficult to detect data tampering attacks when the model is unknown. Effective detection and defense.

Method used

Using a reinforcement learning algorithm based on Q-learning, by establishing the state space model of the system state and sensor nodes, combined with the attack detection communication activation strategy, a regression form of distributed state estimation is constructed, and a partially observable Markov decision process is used to solve the problem. The reinforcement learning strategy with the largest cumulative reward is used to determine the legitimacy of communication data and discard illegal data, thereby achieving data tampering attack detection.

Benefits of technology

When subjected to data tampering attacks unknown to the model, the estimation performance of distributed state estimation is significantly improved, and the learning speed of the Q-learning algorithm is accelerated through the Q-value correction method, which improves the response speed to unknown attack strategies and protects the distribution. The accuracy of the state estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764255A_ABST
    Figure CN118764255A_ABST
Patent Text Reader

Abstract

The invention relates to a distributed state estimation method in combination with Q-learning data tampering attack detection. The method comprises the following steps: establishing a state space model of a system state and a sensor node; establishing an expression of a regression form of distributed state estimation based on the state space model in combination with an attack detection communication activation strategy; on the basis of a regression form, establishing an online estimation performance index; based on the regression form and the online estimation performance index, establishing a partial observable Markov decision process of the data tampering attack detection task; and solving a part of the considerable Markov decision process by using a Q-learning algorithm to obtain a reinforcement learning strategy which maximizes an accumulated reward, and obtaining distributed state estimation combined with attack detection communication activation, thereby realizing distributed state estimation of data tampering attack detection. According to the method, data tampering attack detection can be realized and the distributed state estimation performance can be protected in an unknown scene of an attack model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless sensor networks, and in particular to a distributed state estimation method for data tampering attack detection based on Q-learning, which has good estimation performance when subjected to data tampering attacks with unknown models. Background Art

[0002] In recent years, with the development of technologies such as the Internet of Vehicles and the Industrial Internet, data security issues in distributed state estimation have been studied in depth. In distributed state estimation, each sensor obtains system measurement data, calculates local state estimates, and then exchanges state estimates with neighboring sensors to achieve consistent estimation within the network. Consistency estimation can provide sensors with global information about the sensor network, which can improve the control effects of tasks such as vehicle formation and obstacle avoidance control. Due to the openness of communication networks in physical space, data transmission in distributed state estimation is vulnerable to network attacks, posing a serious threat to system security.

[0003] Existing attack detection methods are usually designed for predefined attack models. When the predefined attack model does not match the actual attack model, the existing detection methods cannot guarantee that the distributed state estimation has good estimation performance. Therefore, the design of attack detection methods for scenarios with unknown attack models is still an urgent problem to be solved.

[0004] In view of this, the present invention proposes a distributed state estimation method, which uses reinforcement learning to find the optimal attack detection threshold to ensure the estimation performance, and designs a value function correction method to improve the learning efficiency of the reinforcement learning algorithm. Summary of the invention

[0005] The object of the present invention is to provide a distributed state estimation method for data tampering attack detection, which has better estimation performance when subjected to data tampering attacks with unknown models.

[0006] A distributed state estimation method for data tampering attack detection, characterized by comprising:

[0007] Step S1, establishing a state space model of system state and sensor nodes;

[0008] Step S2, based on the state space model and in combination with the attack detection communication activation strategy, establish a regression form expression of distributed state estimation;

[0009] Step S3, establishing an online estimation performance indicator based on the regression form;

[0010] Step S4, establishing a partially observable Markov decision process for the data tampering attack detection task based on the regression form and the online estimation performance index;

[0011] Step S5, using a Q-learning algorithm to solve the partially observable Markov decision process to obtain a reinforcement learning strategy that maximizes the cumulative reward; wherein the legitimacy of the received communication data is determined according to the reinforcement learning strategy that maximizes the cumulative reward, and the illegal communication data is discarded, and then the result of the distributed state estimation combined with the attack detection communication activation strategy is obtained online according to the communication data, thereby realizing the distributed state estimation of the data tampering attack detection, and thereby updating the reward variable of the partially observable Markov decision process;

[0012] Step S6, tracking and state estimation of the target vehicle in the Internet of Vehicles based on the result of the distributed state estimation, the state estimation value includes the position and speed of the target vehicle.

[0013] In step S1, the expressions of the state space model of the system state and the sensor node are:

[0014] x(k+1)=Ax(k)+w(k),

[0015] y i (k) = H i x(k)+v i (k)

[0016] Among them, x(k) is the actual state of the system at time k, represents the real number domain, m is the dimension of the target state, x(k+1) is the actual state of the system at time k+1, A is the system state transfer matrix, w(k) is the Gaussian system noise with zero mean and variance Q; y i (k) is the measurement value of the i-th sensor, n is the dimension of the measurement vector, H i is the measurement matrix of the i-th sensor, i is the ordinal number of the sensor, v i (k) has a mean of zero and a variance of R i Gaussian measurement noise, k is the current moment.

[0017] In step S2, the regression form of the distributed state estimation is expressed as:

[0018]

[0019] in, is the estimated value of the true state x(k) of the system at time k by the i-th sensor, is the estimated value of the true state x(k) of the system at time k+1 by the i-th sensor; A is the system state transfer matrix, is the estimated gain of the i-th sensor; i represents the ordinal number of the sensor, j represents the ordinal number of the neighboring sensor of the i-th sensor, and N i is the set of neighboring sensors of the i-th sensor; H i is the measurement matrix of the i-th sensor; ε is the consistency coefficient; is the jth sensor’s estimate of the true state x(k) of the system at time k, is the jth sensor at time k Sent to the i-th sensor, the communication data received by the i-th sensor after the data sending process; a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, a i,j (k) = 0 means that the i-th sensor refuses to use the data from the j-th sensor a i,j (k) = 1 means that the i-th sensor uses the data from sensor j

[0020] Estimated gain of the i-th sensor for:

[0021]

[0022]

[0023]

[0024]

[0025]

[0026] Among them, x(k) is the actual state of the system at time k, is the estimated value of the true state x(k) of the system at time k by the i-th sensor, e i (k) is the estimated error of the ith sensor, e j (k) is the estimated error of the i-th sensor, P i (k) is the estimated error covariance of the i-th sensor, P i,j (k) is the estimated error covariance between the i-th sensor and the j-th sensor, A is the system state transfer matrix, ε is the consistency coefficient, i represents the ordinal number of the sensor, j represents the ordinal number of the neighboring sensor of the i-th sensor, N i is the set of neighbor sensors of the i-th sensor, a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, is the estimated value of the true state x(k) of the system at time k by the i-th sensor; Hi is the measurement matrix of the i-th sensor; M i (k) is the intermediate parameter, R i is the Gaussian measurement noise v i The variance of (k).

[0027] The estimated error covariance P of the i-th sensor i (k) and the estimated error cross-covariance P between the i-th sensor and the j-th sensor i,j The update formula of (k) is:

[0028] Among them, P i (k+1),P i (k) is the estimated error covariance of the i-th sensor, Q is the variance of the Gaussian system noise w(k), R i is the Gaussian measurement noise v i The variance of (k), is the estimated gain of the i-th sensor, ε is the consistency coefficient, i represents the ordinal number of the sensor, r, s represents the ordinal number of the neighboring sensor of the i-th sensor, N i is the set of neighbor sensors of the i-th sensor, a i,r (k) is the attack detection communication activation strategy between the i-th sensor and the r-th sensor, a i,s (k) is the attack detection communication activation strategy between the i-th sensor and the s-th sensor, P i,r (k) is the cross-covariance of the estimated errors between the i-th sensor and the r-th sensor, P r,i (k) is the cross-covariance of the estimated errors between the rth sensor and the ith sensor, P r,s (k) is the cross-covariance of the estimated errors between the rth sensor and the sth sensor, P s,i (k) is the cross-covariance of the estimated errors between the sth sensor and the i-th sensor, P i,s (k) is the cross-covariance of the estimated errors between the i-th sensor and the s-th sensor, P r,j (k) is the estimated error covariance between the rth sensor and the jth sensor, A is the system state transfer matrix, P i,j (k+1),P i,j (k) is the cross-covariance of the estimated errors of the i-th sensor and the j-th sensor.

[0029] In step S3, the expression of the online estimation performance index is:

[0030]

[0031] Among them, r i (k) is the estimated performance index of the i-th sensor at time k, y i(k) and is the measured value and state estimate of the i-th sensor at time k, H i is the measurement matrix of the ith sensor, k is the current moment;

[0032] Alternatively, the expression for the online estimation performance indicator is:

[0033]

[0034] Among them, H i is the measurement matrix of the ith sensor, is the measurement matrix H of the i-th sensor i The inverse matrix, r i (k) is the estimated performance index of the i-th sensor at time k, y i (k) and is the measurement value and state estimation value of the i-th sensor at time k, where k is the current time.

[0035] In step S4, the communication data sent by the jth sensor obtained by checking the i-th sensor is Its partially observable Markov decision process is defined as

[0036] Among them, P s is the state transition function from the current state to the new state, P o is the observation function from the current state to the observation, γ∈(0,1) is the discount factor;

[0037] s i,j (k) = e i (k)-e j (k) where s i,j (k) is the state variable of the partially observable Markov decision process at time k, e i (k) is the estimated error of the ith sensor, e j (k) is the estimated error of the i-th sensor, is the state space;

[0038] Among them i,j (k) is the observed variable of the partially observable Markov decision process at time k, is the estimated value of the true state x(k) of the system at time k by the i-th sensor; is the jth sensor at time k The communication data sent to the i-th sensor is received by the i-th sensor after the data sending process; is the observation space;

[0039] in, is the action space, a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, which is the action variable taken at time k;

[0040] r i,j (k) = -r i (k+1), where r i,j (k) is the reward variable at time k, r i (k+1) is the online estimation performance index of the i-th sensor at time k+1, r i,j (k) is a value of the reward function R;

[0041] The optimization goal of the partially observable Markov decision process is to find a solution that makes the cumulative reward The maximum strategy π * , r i,j (τ) is the reward variable at time τ, τ is the prediction time, γ is the discount factor, and k is the current time.

[0042] In step S5, the partially observable Markov decision process is solved using a Q-learning algorithm, including:

[0043] Step S51: Obtain observation variable o i,j (k) Quantification results;

[0044] Step S52: Observe variable o i,j The quantization result of (k) is bucketed to obtain a bucketed result space;

[0045] Step S53: Based on the result space of the buckets and the action space of the partially observable Markov decision process, a Q-table of the Q-learning algorithm is established, and the partially observable Markov decision process is solved according to the Q-table of the Q-learning algorithm to obtain the attack detection communication activation strategy a between the i-th sensor and the j-th sensor. i,j (k) is the result of the action variable taken at time k and the reinforcement learning strategy;

[0046] The step S53 specifically includes:

[0047] Step S531: Bucketing result row based on time k i,j (k), select the action variable taken at time k according to the ∈-greedy strategy;

[0048] Step S532: Bucketing result row based on time k i,j (k) and the action variable taken at time k, and the update formula of the Q table is obtained.

[0049] In step S51, the observed variable o i,j The quantification result of (k)quan(o i,j (k)) is:

[0050]

[0051] Among them, quan(o i,j (k)) represents the observed variable o i,j The quantitative results of (k), o i,j (k) is the observed variable, Σ ij yes The steady-state variance of

[0052] Alternatively, the observed variable o i,j The quantification result of (k)quan(o i,j (k)) is:

[0053]

[0054] Among them, quan(o i,j (k)) represents the observed variable o i,j The quantitative results of (k), o i,j (k) is the observed variable;

[0055] In step S52, the interval endpoints required for the bucketing operation are β 0 =0<β 1 <β 2 <…<β h , the bucketing operation is in the form of:

[0056] Traverse row∈{1,2,…,h}, if β row-1 ≤quan(o i,j (k))<β row , then for quan(o i,j (k)) The result row of bucketing i,j (k) is row, where row i,j (k) is for quan(o i,j (k)) is the result of bucketing, row is the interval index of the bucket traversal operation, β row It is the right endpoint value of the bucket interval corresponding to the interval index;

[0057] In step S532, the update formula of the Q table is:

[0058] Q(row i,j (k),a i,j (k))←Q(row i,j (k),a i,j(k))+α[r i,j (k)+γQ(row i,j (k+ 1,ai,j*k+1)-Q(rowi,j(k),ai,j(k))],

[0059] Among them, α is the learning step size, r i,j (k) is the reward variable at time k, row i,j (k+1) is the bucketing result at time k+1, is the optimal action at time k+1.

[0060] In step S532, the expression of the Q table is:

[0061] Q(row,a),

[0062] Among them, row∈{1,2,…,h}, a∈{0,1}, and all values ​​in the Q table are initialized to 0;

[0063] And the step S53 also includes step S533: based on the update formula of the Q table, Q value correction is performed to speed up the learning efficiency of the Q-learning algorithm, which specifically includes:

[0064] Traverse all row∈{1,2,…,h} and a∈{0,1} in the Q table Q(row,a), where row is the interval index of the bucket traversal operation, and a is the action taken by the reinforcement learning algorithm. a=0 means rejecting the communication data, and a=1 means accepting and using the communication data:

[0065] If row <row ij (k) and Q(row,0)>Q(row ij (k),0), assign Q(row,0) to Q(row ij (k),0);

[0066] If row>row ij (k) and Q(row,0) <Q(row ij (k),0), assign Q(row,0) to Q(row ij (k),0);

[0067] If row <row ij (k) and Q(row,1) <Q(row ij (k),1), assign Q(row,1) to Q(row ij (k),1);

[0068] If row>row ij(k) and Q(row,1)>Q(row ij (k),1), assign Q(row,1) to Q(row ij (k),1).

[0069] The distributed state estimation method for data tampering attack detection of the present invention can protect the estimation performance of the distributed state estimation in the scenario of suffering from model unknown data tampering attack; and the Q value correction part provided by the present invention can significantly accelerate the learning speed of the Q-learning algorithm and improve the response speed of the attack detection module to unknown attack strategies, thereby better protecting the estimation performance of the distributed state estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 The present invention is a flowchart of a distributed state estimation method for detecting data tampering attacks.

[0071] Figure 2 An exemplary schematic diagram of a wireless sensor network communication topology provided for some embodiments of the present invention.

[0072] Figure 3A-3C An exemplary diagram of the RMSE of the algorithms provided for some embodiments of the present invention. DETAILED DESCRIPTION

[0073] The preferred embodiments of the present invention are given below in conjunction with the accompanying drawings and described in detail.

[0074] The present invention provides a distributed state estimation method for data tampering attack detection, which has good estimation performance when subjected to data tampering attacks with unknown models. The distributed state estimation method for data tampering attack detection of the present invention generally comprises: constructing a state space model of sensor nodes; based on the state space model, constructing a regression form of distributed state estimation based on communication activation; based on the regression form, using the Q-learning reinforcement learning algorithm to construct a random communication strategy that minimizes the online estimation error.

[0075] A distributed state estimation method for data tampering attack detection of the present invention specifically includes:

[0076] Step S1, establishing a state space model of system state and sensor nodes;

[0077] The expressions of the system state and the state space model of the sensor node are:

[0078] x(k+1)=Ax(k)+w(k),

[0079] y i (k) = H i x(k)+vi (k)

[0080] in, is the real state of the system at time k, represents the real number domain, m is the dimension of the target state, x(k+1) is the actual state of the system at time k, is the system state transition matrix, is a Gaussian system noise with zero mean and variance Q; is the measurement value of the i-th sensor, n is the dimension of the measurement vector, is the measurement matrix of the i-th sensor, i is the ordinal number of the sensor, It has a mean of zero and a variance of R i Gaussian measurement noise.

[0081] Step S2, based on the state space model and in combination with the attack detection communication activation strategy, establish a regression form expression of distributed state estimation;

[0082] The regression form of the distributed state estimation is expressed as:

[0083]

[0084] in, is the estimated value of the true state x(k) of the system at time k by the i-th sensor, is the estimated value of the true state x(k) of the system at time k+1 by the i-th sensor; A is the system state transfer matrix, is the estimated gain of the i-th sensor; i represents the ordinal number of the sensor, j∈N i Indicates the ordinal number of the neighboring sensor of the i-th sensor, N i is the set of neighbor sensors of the i-th sensor, and the adjacency relationship between sensors is determined by the network topology; is the measurement matrix of the i-th sensor; ε∈(0,1 / d) is the consistency coefficient, d is the number of neighbors of the sensor node with the largest number of neighbors, and in some instances ε=0.1; is the jth sensor’s estimate of the true state x(k) of the system at time k, is the jth sensor at time k The communication data sent to the i-th sensor is received by the i-th sensor after the data transmission process (the data transmission process may be subject to data tampering attacks); a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, a i,j (k) = 0 means that the i-th sensor refuses to use the data from the j-th sensor ai,j (k) = 1 means that the i-th sensor uses the data from sensor j

[0085] Furthermore, the data sent by the jth sensor It may be attacked by data tampering with a fixed probability p. In some embodiments, p=0.5. Sent to the i-th sensor, after the data sending process, the data received by the i-th sensor and the jth sensor's estimate of the true state x(k) of the system at time k The relationship between is determined by the attack strategy and is expressed as:

[0086]

[0087] Among them, p i,j (k) is a random number generated by the attacker to help the attacker decide whether to launch an attack. p represents the fixed probability of the attacker launching a data tampering attack. i,j (k) follows a uniform distribution from 0 to 1. The attacker compares 1-p and p i,j The size of (k) determines whether to launch an attack, U(0,1) is a uniform distribution from 0 to 1, Att(·) is the attack strategy that the attacker may take, and the above expression represents that the attacker tampers with the communication data with a fixed probability p according to the attack strategy Att(·);

[0088] In some instances, the attacker may launch a false data injection attack, in which the jth sensor estimates the true state x(k) of the system at time k. The attack strategy changes The expression is:

[0089]

[0090] Among them, θ i,j (k) has a mean of zero and a variance of Σ θ Gaussian random noise, in some instances Σ θ You can take the identity matrix.

[0091] In some instances, the attacker may launch a replay attack, in which the jth sensor estimates the true state x(k) of the system at time k. The result of the change of attack strategy The expression is:

[0092]

[0093] Where k represents the time when the jth sensor sends data, T ais the delay factor of the replay attack, which can be T in some instances a =4, is the jth sensor's contribution to the system at kT a The estimated value of the true state x(k) at time.

[0094] In some instances, the attacker may launch a two-way stealth attack, where The expression is:

[0095]

[0096] Among them, θ i,j (k) has zero mean, and Gaussian random noise with the same variance. The condition for launching a two-way hidden attack is that the attacker can intercept is the estimated value of the true state x(k) of the system at time k by the i-th sensor.

[0097] Furthermore, in order to calculate the estimated gain of the i-th sensor definition:

[0098]

[0099]

[0100]

[0101] Among them, x(k) is the actual state of the system at time k, is the estimated value of the true state x(k) of the system at time k by the i-th sensor, e i (k) is the estimated error of the ith sensor, e j (k) is the estimated error of the i-th sensor, P i (k) is the estimated error covariance of the i-th sensor, P i,j (k) is the cross-covariance of the estimated errors of the i-th sensor and the j-th sensor.

[0102] Furthermore, the estimated gain of the i-th sensor is for:

[0103]

[0104]

[0105] Among them, P i (k) is the estimated error covariance of the i-th sensor, P i,j(k) is the estimated error covariance between the i-th sensor and the j-th sensor, A is the system state transfer matrix, ε is the consistency coefficient, i represents the ordinal number of the sensor, j represents the ordinal number of the neighboring sensor of the i-th sensor, N i is the set of neighbor sensors of the i-th sensor, a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, is the estimated value of the true state x(k) of the system at time k by the i-th sensor; H i is the measurement matrix of the i-th sensor; M i (k) is the intermediate parameter, R i is the Gaussian measurement noise v i The variance of (k).

[0106] The estimated error covariance P of the i-th sensor i (k) and the estimated error cross-covariance P between the i-th sensor and the j-th sensor i,j The update formula of (k) is:

[0107]

[0108]

[0109] Among them, P i (k+1),P i (k) is the estimated error covariance of the i-th sensor, Q is the variance of the Gaussian system noise w(k), R i is the Gaussian measurement noise v i The variance of (k), is the estimated gain of the i-th sensor, ε is the consistency coefficient, i represents the ordinal number of the sensor, r, s represents the ordinal number of the neighboring sensor of the i-th sensor, N i is the set of neighbor sensors of the i-th sensor, a i,r (k) is the attack detection communication activation strategy between the i-th sensor and the r-th sensor, a i,s (k) is the attack detection communication activation strategy between the i-th sensor and the s-th sensor, P i,r (k) is the cross-covariance of the estimated errors between the i-th sensor and the r-th sensor, P r,i (k) is the cross-covariance of the estimated errors between the rth sensor and the ith sensor, P r,s (k) is the cross-covariance of the estimated errors between the rth sensor and the sth sensor, P s,i (k) is the cross-covariance of the estimated errors between the sth sensor and the i-th sensor, P i,s (k) is the cross-covariance of the estimated errors between the i-th sensor and the s-th sensor, Pr,j (k) is the estimated error covariance between the rth sensor and the jth sensor, A is the system state transfer matrix, P i,j (k+1),P i,j (k) is the cross-covariance of the estimated errors of the i-th sensor and the j-th sensor.

[0110] To simplify the above formula, Denoted as the second intermediate parameter F i (k), so there is a second intermediate parameter By setting P i (k) and P i,j The initial value P of (k) i (0) and P i,j (0) can complete the regression form of distributed state estimation. The convergence of the above distributed state estimator can ensure that it is not attacked when P i (k) and P i,j (k) It can converge from any positive definite matrix initial value.

[0111] Step S3: establishing an online estimation performance indicator based on the regression form.

[0112] In some embodiments, the expression of the online estimation performance indicator is:

[0113]

[0114] Among them, r i (k) is the estimated performance index of the i-th sensor at time k, y i (k) and is the measured value and state estimate of the i-th sensor at time k, H i is the measurement matrix of the ith sensor.

[0115] In some other embodiments, the expression of the online estimation performance index is:

[0116]

[0117] Among them, H i is the measurement matrix of the ith sensor, is the measurement matrix H of the i-th sensor i The inverse matrix, r i (k) is the estimated performance index of the i-th sensor at time k, y i (k) and is the measurement value and state estimate of the i-th sensor at time k.

[0118] Step S4, based on the regression form and the online estimation performance index, a partially observable Markov decision process (POMDP) ​​for the data tampering attack detection task is established.

[0119] At time k, the jth sensor will Sent to the i-th sensor, after the data transmission process, the communication data received by the i-th sensor The POMDP is defined as Where P s is the state transition function from the current state to the new state, P o is the observation function from the current state to the observation, γ∈(0,1) is the discount factor, in some examples, γ=0.9, and the meanings of other variables are:

[0120] State variables i,j (k) = e i (k)-e j (k) where s i,j (k) is the state of the POMDP at time k, and its value is not available. i (k) is the estimated error of the ith sensor, e j (k) is the estimated error of the i-th sensor, is the state space;

[0121] Observed variables Among them, i,j (k) is the observed variable of POMDP at time k, is the estimated value of the true state x(k) of the system at time k by the i-th sensor; is the jth sensor at time k The communication data sent to the i-th sensor is received by the i-th sensor after the data sending process; is the observation space;

[0122] Action variables Among them, a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor. It is the action variable taken at time k, and its value is determined by the reinforcement learning strategy. It is a mapping from observation space to action space, learned by reinforcement learning algorithm;

[0123] r i,j (k) = -r i (k+1), where r i,j (k) is the reward variable at time k, r i(k+1) is the online estimation performance index of the i-th sensor at time k+1, r i,j (k) is a value of the reward function R;

[0124] The optimization goal of the partially observable Markov decision process is to find a solution that makes the cumulative reward The largest strategy π * , r i,j (τ) is the reward variable at time τ, τ is the prediction time, γ is the discount factor, and k is the current time.

[0125] Step S5, using the Q-learning algorithm to solve the POMDP to obtain a reinforcement learning strategy that maximizes the cumulative reward; wherein the result of the distributed state estimation combined with the attack detection communication activation strategy is obtained through online measurement, thereby realizing the distributed state estimation of data tampering attack detection in a scenario with unknown attack model, and determining the reward variable in the partially observable Markov decision process.

[0126] In step S5, the reinforcement learning strategy that maximizes the cumulative reward is obtained by online learning, i.e., solving the partially observable Markov decision process (pre-trained parameters may be used in combination with online learning), because the online reward r has been designed for the reinforcement learning algorithm. i,j (k) = -r i (k+1), Therefore, online learning of reinforcement learning algorithms is feasible.

[0127] The result of the reinforcement learning strategy is specifically reflected in the Q table. For example, the reinforcement learning attack detection strategy between the i-th sensor and the j-th sensor corresponds to the Q table Q(row i,j (k),a i,j (k)), where row i,j (k) is the bucketing result of the quantized value of the communication data between the i-th sensor and the j-th sensor, a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, which represents the action variable that may be taken at time k for the communication data, a i,j (k) = 1 means accepting data, a i,j (k) = 0 means rejecting data. The result of the reinforcement learning strategy is the attack detection communication activation strategy a between the i-th sensor and the j-th sensor i,j (k). The result of distributed state estimation is the state estimate For example, the estimated state of the i-th sensor at time k is

[0128] The result of distributed state estimation is updated based on online measurement, where the result of distributed state estimation is such as the estimated gain of the i-th sensor It can be updated online, and only the estimated error covariance P of the i-th sensor needs to be completed synchronously i (k) and the estimated error cross-covariance P between the i-th sensor and the j-th sensor i,j The result of the distributed state estimation is used to solve the reward variable in the partially observable Markov decision process.

[0129] The reinforcement learning strategy that maximizes the cumulative reward and the result of the distributed state estimation have the following functions: the reinforcement learning strategy that maximizes the cumulative reward is used to help the sensor check the legitimacy of the received communication data and discard illegal communication data; the result of the distributed state estimation is an estimate of the state of the target system. The connection between the two is that the online reward variable of the reinforcement learning strategy that maximizes the cumulative reward is designed based on the result of the distributed state estimation, so when subjected to a network attack, the reinforcement learning strategy that maximizes the cumulative reward can improve the estimation accuracy of the result of the distributed state estimation.

[0130] Since the final result of the present invention is the result of distributed state estimation, before obtaining this result, it is necessary to check the legitimacy of the communication data using a reinforcement learning strategy that maximizes the cumulative reward.

[0131] Furthermore, the Q-learning algorithm is used to solve the above POMDP, including:

[0132] Step S51: Obtain observation variable o i,j (k) Quantification results;

[0133] In some embodiments, the observed variable o i,j The quantification result of (k)quan(o i,j (k)) is:

[0134]

[0135] Among them, quan(o i,j (k)) represents the observed variable o i,j The quantitative results of (k), o i,j (k) is the observed variable, Σ ij yes The steady-state variance can be obtained statistically when the state estimation just converges. It can usually be assumed that Unaffected by attacks;

[0136] In other embodiments, the observed variable o i,j The quantification result of (k)quan(o i,j (k)) is:

[0137]

[0138] Step S52: Observe variable o i,j The quantization result of (k) is bucketed to obtain a bucketed result space;

[0139] The interval endpoints required for the bucketing operation are β 0 =0<β 1 <β 2 <…<β h =∞, where ∞ can be replaced by a sufficiently large real number, row is the interval (bucket) index of the bucket traversal operation, β row is the right endpoint value of the bucket interval corresponding to the interval index row, β h is the maximum value of the interval endpoints required for the bucketing operation, h is the number of preset bucket results (the actual number of bucket results generated may be less than this value), and in some instances the interval endpoint set is:

[0140] {β 0 =0,β 1 =1,β 2 =2,…,β h-1 =600,β h =10 10};

[0141] Furthermore, the bucketing operation is in the form of:

[0142] Traverse row∈{1,2,…,h}, if β row-1 ≤quan(o i,j (k))<β row , then for quan(o i,j (k)) The result row of bucketing i,j (k) is row, where row i,j (k) is the bucketing result at time k, row is the interval (bucketing) index of the bucketing traversal operation, β row It is the right endpoint value of the bucket interval corresponding to the interval index row.

[0143] Step S53: Based on the result space of the buckets and the action space of the partially observable Markov decision process, a Q-table of the Q-learning algorithm is established, and the partially observable Markov decision process is solved according to the Q-table of the Q-learning algorithm to obtain the attack detection communication activation strategy a between the i-th sensor and the j-th sensor. i,j (k) is taken as the action variable taken at time k and the result of the reinforcement learning strategy.

[0144] The expression of the Q table of the Q-learning algorithm is:

[0145] Q(row,a),

[0146] Among them, row∈{1,2,…,h}, row represents the row of the Q table (here row has the meaning of enumerating each row of the Q table), the result of quantization and bucketing of the communication data corresponds to a row in the Q table, and the Q table has a total of h rows, which is determined by the number of preset bucketing results. When the bucketing result of the communication data is row, a∈{0,1} is the action taken by the reinforcement learning algorithm, a=0 means rejecting the communication data, a=1 means accepting and using the communication data, and all values ​​in the Q table are initialized to 0.

[0147] The step S53 specifically includes:

[0148] Step S531: Bucketing result row based on time k i,j (k), select the action variable taken at time k according to the ∈-greedy strategy (i.e., a ij (k));

[0149] Where ∈ is the greedy coefficient, in some instances ∈ = 0.1, and the specific action variable taken at time k (i.e. a ij The selection strategy of (k)) is:

[0150] Generate random variable ξ i,j (k)~U(0,1), if ξ i,j (k) <∈, randomly and uniformly select the attack detection communication activation strategy a between the i-th sensor and the j-th sensor in the set {0,1} i,j (k), otherwise choose a i,j (k) in is to make Q(row i,j (k),a) achieves the maximum action, that is:

[0151]

[0152] Step S532: based on the quantization result row at time k i,j (k) and the action variable taken at time k (i.e., a ij (k)), and obtain the update formula of Q table;

[0153] The update formula of the Q table is:

[0154]

[0155] Where α is the learning step size, which is taken as 0.1 in some examples, r i,j (k) is the reward variable at time k, row i,j (k+1) is the bucketing result at time k+1, is the optimal action at time k+1, that is Make Q(row i,j (k+1), a) reaches the maximum, and r can only be obtained at time k+1 i,j (k), row i,j (k+1) and Then complete the Q table update at time k;

[0156] Step S533: Based on the update formula of the Q table, Q value correction is performed to speed up the learning efficiency of the Q-learning algorithm;

[0157] Step S533 specifically includes: traversing all row∈{1,2,…,h} and a∈{0,1} in the Q table Q(row,a), where row is the interval index of the bucket traversal operation, and a is the action taken by the reinforcement learning algorithm. a=0 indicates rejecting the communication data, and a=1 indicates accepting and using the communication data:

[0158] If row <row ij (k) and Q(row,0)>Q(row ij (k),0), assign Q(row,0) to Q(row ij (k),0);

[0159] If row>row ij (k) and Q(row,0) <Q(row ij (k),0), assign Q(row,0) to Q(row ij (k),0);

[0160] If row <row ij (k) and Q(row,1) <Q(row ij (k),1), assign Q(row,1) to Q(row ij (k),1);

[0161] If row>row ij (k) and Q(row,1)>Q(row ij (k),1), assign Q(row,1) to Q(row ij (k),1).

[0162] Step S6, tracking and state estimation of the target vehicle in the Internet of Vehicles based on the result of the distributed state estimation, the state estimation value includes the position and speed of the target vehicle.

[0163] The results required to be obtained by the partially observable Markov decision process of the present invention are the results of distributed state estimation, which can be used for tracking and state estimation of target vehicles in the Internet of Vehicles.

[0164] In the Internet of Vehicles, an attacker may use a small number of motor vehicles to provide state estimation results with false data injection to other normally traveling vehicles. For example, if the vehicle controlled by the attacker is equipped with the jth sensor, the jth sensor should provide its state estimation value to the ith sensor (mounted on a normally traveling vehicle). However, the jth sensor does not transmit its true estimate, but instead provides information based on some attack strategy, such as providing θ i,j (k) has a mean of zero and a variance of Σ θ Gaussian random noise, in some instances Σ θ The unit matrix can be taken. The state estimation value in the Internet of Vehicles may include the position and speed of the target vehicle. The speed information of a vehicle in a certain direction may be used as the basis for path planning of other vehicles. Therefore, an attacker may affect the path planning algorithm of a normal vehicle by providing false data, thereby achieving the purpose of affecting transportation. When modifying the speed information of the target vehicle, the attacker should also consider the connection between speed and position, and synchronously modify the target's position estimation value. This design algorithm of false data is reflected in the attack strategy. False data injection attacks are easy to model, so they are used to generate test data to verify the effectiveness of attack detection algorithms.

[0165] When designing an attack strategy, the attacker may consider the attack detection algorithm installed on a normal vehicle. The attack detection strategy based on online learning of the reinforcement learning algorithm obtained by the present invention has adaptive capabilities for different attack strategies and can protect the performance of distributed state estimation in the Internet of Vehicles. Since the attacker may manipulate the vehicle to access the Internet of Vehicles, the attacker can obtain sufficient prior information about the Internet of Vehicles and then design attacks that are difficult to detect. Therefore, the computer cannot confirm the existence of the attack through unchanged parameter conditions.

[0166] Specifically, in the prior art, when an attacker provides false data to the i-th sensor according to a false data injection attack When , the i-th sensor expresses the received communication data as By comparison The relationship between the size of the given threshold thresh is used to judge the communication data Is it false data? Thresh is the design parameter of the attack detection algorithm in the i-th sensor, which can be selected based on the confidence level in combination with historical data. The i-th sensor determines that the received communication data When unreliable, communication data will be discarded Avoid using this data when performing data fusion; instead, use communication data when performing data fusion. The threshold thresh should also be selected in combination with the attacker's attack strategy, but when the attacker dynamically adjusts the attack strategy, it is usually difficult for the detection strategy to dynamically adjust the detection threshold. The reinforcement learning algorithm based on the online learning obtained by the present invention determines the legitimacy of the received communication data according to the reinforcement learning strategy that maximizes the cumulative reward, and has the ability to adaptively adjust the detection threshold thresh.

[0167] The above Q-learning algorithm combined with Q-value update and Q-value correction does not require pre-training, and can obtain better attack detection results and estimation performance through online learning. However, in order to further improve the stability of online estimation performance, it is necessary to use communication data that is randomly subjected to data tampering attacks and replay attacks to pre-train the Q-learning algorithm, retain the trained Q table, and load the pre-trained Q table into the sensor network.

[0168] The distributed state estimation method for data tampering attack detection of the present invention can protect the estimation performance of the distributed state estimation in the scenario of suffering from model unknown data tampering attack, and the Q value correction part provided by the present invention can significantly accelerate the learning speed of the Q-learning algorithm and improve the response speed of the attack detection module to unknown attack strategies, thereby better protecting the estimation performance of the distributed state estimation.

[0169] Simulation results:

[0170] Figure 2 An exemplary schematic diagram of a wireless sensor network communication topology provided for some embodiments of the present invention, Figure 3A-3C An exemplary schematic diagram of RMSE provided for some embodiments of the present invention. Figure 3A Contains experimental results for false data injection attack (denoted as fdi, false data injection attack); Figure 3B It is the experimental result against replay attack (represented as replay,replay attack); Figure 3B This is the experimental result of bidirectional stealthy attack (denoted as bi_att).

[0171] Figure 3A In the figure, the curve marked with noattack_Q is the experimental result of the distributed state estimation method combined with Q-learning for data tampering attack detection of the present invention when it is not attacked, fdi_Q is the experimental result of the distributed state estimation method combined with Q-learning for data tampering attack detection of the present invention when it is attacked by false data injection, and fdi_noQ is the experimental result of the existing distributed state estimation method without attack detection when it is attacked by false data injection; Figure 3B In the figure, the curve marked with noattack_Q is the experimental result of the distributed state estimation method for data tampering attack detection combined with Q-learning of the present invention when it is not attacked, replay_Q is the experimental result of the distributed state estimation method for data tampering attack detection combined with Q-learning of the present invention when it is subjected to a replay attack, and replay_noQ is the experimental result of the existing distributed state estimation method without attack detection when it is subjected to a replay attack; Figure 3C In the figure, the curve marked with noattack_Q is the experimental result of the distributed state estimation method combined with Q-learning for data tampering attack detection when not attacked, bi_att_Q is the experimental result of the distributed state estimation method combined with Q-learning for data tampering attack detection when subjected to a two-way hidden attack, and bi_att_noQ is the experimental result of the existing distributed state estimation method without attack detection when subjected to a two-way hidden attack.

[0172] like Figure 2 As shown in FIG3 , the present invention uses a vehicle networking driving state tracking model to verify the effectiveness of the proposed algorithm. The state space equation of this tracking model is:

[0173]

[0174]

[0175] in Indicates the state of the tracking target. and is the position of the target in the x-axis and y-axis directions, and is the speed of the target in the x-axis and y-axis directions; ΔT = 0.1 sec is the time interval, and the covariance matrix of the noise is:

[0176]

[0177] Among them, x(0), P i (0) and P i,j The initial value of (0) is:

[0178]

[0179] The performance of these algorithms is compared using the root mean square error (RMSE), which is defined as:

[0180]

[0181] in is the total number of Monte Carlo experiments, in some instances r represents the rth Monte Carlo experiment, x r (k) is the kth moment in the rth Monte Carlo experiment, is the state estimate of the i-th sensor at time k in the r-th Monte Carlo experiment.

[0182] The distributed state estimation performance of the distributed state estimation method combined with Q-learning data tampering attack detection and the distributed state estimation method without attack detection when subjected to network attacks is compared, and the topology of the wireless sensor network is as follows Figure 2 In the simulation, the measurement information of all nodes is subject to a mean of zero and a variance of 1.8I n The simulation results show that the estimation performance of the distributed state estimation method for data tampering attack detection provided by the present invention is significantly better than the distributed state estimation method without attack detection.

[0183] The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. The above embodiments of the present invention can also be modified and varied. That is, all simple, equivalent changes and modifications made according to the claims and the contents of the specification of the present invention fall within the scope of protection of the claims of the present invention. The contents not described in detail in the present invention are all conventional technical contents.

Claims

1. A distributed state estimation method for data tampering attack detection, characterized in that: include: Step S1, establishing a state space model of system state and sensor nodes; Step S2, based on the state space model and in combination with the attack detection communication activation strategy, establish a regression form expression of distributed state estimation; Step S3, establishing an online estimation performance indicator based on the regression form; Step S4, establishing a partially observable Markov decision process for the data tampering attack detection task based on the regression form and the online estimation performance index; Step S5, using a Q-learning algorithm to solve the partially observable Markov decision process to obtain a reinforcement learning strategy that maximizes the cumulative reward; wherein the legitimacy of the received communication data is determined according to the reinforcement learning strategy that maximizes the cumulative reward, and the illegal communication data is discarded, and then the result of the distributed state estimation combined with the attack detection communication activation strategy is obtained online according to the communication data, thereby realizing the distributed state estimation of the data tampering attack detection, and thereby updating the reward variable of the partially observable Markov decision process; Step S6, tracking and state estimation of the target vehicle in the Internet of Vehicles based on the result of the distributed state estimation, the state estimation value includes the position and speed of the target vehicle.

2. The distributed state estimation method for data tampering attack detection according to claim 1 is characterized in that: In step S1, the expressions of the state space model of the system state and the sensor node are: x(k+1)=Ax(k)+w(k), y i (k)=H i x(k)+v i (k), Among them, x(k) is the actual state of the system at time k, represents the real number domain, m is the dimension of the target state, x(k+1) is the actual state of the system at time k+1, A is the system state transfer matrix, w(k) is the Gaussian system noise with zero mean and variance Q; y i (k) is the measurement value of the i-th sensor, n is the dimension of the measurement vector, H i is the measurement matrix of the i-th sensor, i is the ordinal number of the sensor, v i (k) has a mean of zero and a variance of R i Gaussian measurement noise, k is the current moment.

3. The distributed state estimation method for data tampering attack detection according to claim 2 is characterized in that: In step S2, the regression form of the distributed state estimation is expressed as: in, is the estimated value of the true state x(k) of the system at time k by the i-th sensor, is the estimated value of the true state x(k) of the system at time k+1 by the i-th sensor; A is the system state transfer matrix, is the estimated gain of the i-th sensor; i represents the ordinal number of the sensor, j represents the ordinal number of the neighboring sensor of the i-th sensor, and N i is the set of neighboring sensors of the i-th sensor; H i is the measurement matrix of the i-th sensor; ε is the consistency coefficient; is the jth sensor’s estimate of the true state x(k) of the system at time k, is the jth sensor at time k Sent to the i-th sensor, the communication data received by the i-th sensor after the data sending process; a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, a i,j (k) = 0 means that the i-th sensor refuses to use the data from the j-th sensor a i,j (k) = 1 means that the i-th sensor uses the data from sensor j Estimated gain of the i-th sensor for: Among them, x(k) is the actual state of the system at time k, is the estimated value of the true state x(k) of the system at time k by the i-th sensor, e i (k) is the estimated error of the ith sensor, e j (k) is the estimated error of the i-th sensor, P i (k) is the estimated error covariance of the i-th sensor, P i,j (k) is the estimated error covariance between the i-th sensor and the j-th sensor, A is the system state transfer matrix, ε is the consistency coefficient, i represents the ordinal number of the sensor, j represents the ordinal number of the neighboring sensor of the i-th sensor, N i is the set of neighbor sensors of the i-th sensor, a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, is the estimated value of the true state x(k) of the system at time k by the i-th sensor; H i is the measurement matrix of the i-th sensor; M i (k) is the intermediate parameter, R i is the Gaussian measurement noise v i The variance of (k).

4. The distributed state estimation method for data tampering attack detection according to claim 3 is characterized in that: The estimated error covariance P of the i-th sensor i (k) and the estimated error cross-covariance P between the i-th sensor and the j-th sensor i,j The update formula of (k) is: Among them, P i (k+1),P i (k) is the estimated error covariance of the i-th sensor, Q is the variance of the Gaussian system noise w(k), R i is the Gaussian measurement noise v i The variance of (k), is the estimated gain of the i-th sensor, ε is the consistency coefficient, i represents the ordinal number of the sensor, r, s represents the ordinal number of the neighboring sensor of the i-th sensor, N i is the set of neighbor sensors of the i-th sensor, a i,r (k) is the attack detection communication activation strategy between the i-th sensor and the r-th sensor, a i,s (k) is the attack detection communication activation strategy between the i-th sensor and the s-th sensor, P i,r (k) is the cross-covariance of the estimated errors between the i-th sensor and the r-th sensor, P r,i (k) is the cross-covariance of the estimated errors between the rth sensor and the ith sensor, P r,s (k) is the cross-covariance of the estimated errors between the rth sensor and the sth sensor, P s,i (k) is the cross-covariance of the estimated errors between the sth sensor and the i-th sensor, P i,s (k) is the cross-covariance of the estimated errors between the i-th sensor and the s-th sensor, P r,j (k) is the estimated error covariance between the rth sensor and the jth sensor, A is the system state transfer matrix, P i,j (k+1),P i,j (k) is the cross-covariance of the estimated errors of the i-th sensor and the j-th sensor.

5. The distributed state estimation method for data tampering attack detection according to claim 1, characterized in that: In step S3, the expression of the online estimation performance index is: Among them, r i (k) is the estimated performance index of the i-th sensor at time k, y i (k) and is the measured value and state estimate of the i-th sensor at time k, H i is the measurement matrix of the i-th sensor, k is the current moment; Alternatively, the expression for the online estimation performance indicator is: Among them, H i is the measurement matrix of the ith sensor, is the measurement matrix H of the i-th sensor i The inverse matrix, r i (k) is the estimated performance index of the i-th sensor at time k, y i (k) and is the measurement value and state estimation value of the i-th sensor at time k, where k is the current time.

6. The distributed state estimation method for data tampering attack detection according to claim 3 is characterized in that: In step S4, the communication data sent by the jth sensor obtained by checking the i-th sensor is Its partially observable Markov decision process is defined as Among them, P s is the state transition function from the current state to the new state, P o is the observation function from the current state to the observation, γ∈(0,1) is the discount factor; s i,j (k) = e i (k)-e j (k) Among them, s i,j (k) is the state variable of the partially observable Markov decision process at time k, e i (k) is the estimated error of the ith sensor, e j (k) is the estimated error of the i-th sensor, is the state space; Among them, i,j (k) is the observed variable of the partially observable Markov decision process at time k, is the estimated value of the true state x(k) of the system at time k by the i-th sensor; is the jth sensor at time k The communication data sent to the i-th sensor is received by the i-th sensor after the data sending process; is the observation space; in, is the action space, a i,j (k) is the attack detection communication activation strategy between the i-th sensor and the j-th sensor, which is the action variable taken at time k; r i,j (k) = -r i (k+1), where r i,j (k) is the reward variable at time k, r i (k+1) is the online estimation performance index of the i-th sensor at time k+1, r i,j (k) is a value of the reward function R; The optimization goal of the partially observable Markov decision process is to find a solution that makes the cumulative reward The largest strategy π * , r i,j (τ) is the reward variable at time τ, τ is the prediction time, γ is the discount factor, and k is the current time.

7. The distributed state estimation method for data tampering attack detection according to claim 6, characterized in that: In step S5, the result of the distributed state estimation includes at least the estimated gain of the i-th sensor 8. The distributed state estimation method for data tampering attack detection according to claim 6, characterized in that: In step S5, the partially observable Markov decision process is solved using a Q-learning algorithm, including: Step S51: Obtain observation variable o i,j (k) Quantification results; Step S52: Observe variable o i,j The quantization result of (k) is bucketed to obtain a bucketed result space; Step S53: Based on the result space of the buckets and the action space of the partially observable Markov decision process, a Q-table of the Q-learning algorithm is established, and the partially observable Markov decision process is solved according to the Q-table of the Q-learning algorithm to obtain the attack detection communication activation strategy a between the i-th sensor and the j-th sensor. i,j (k) is the action variable and reinforcement learning strategy taken at time k; The step S53 specifically includes: Step S531: Bucketing result row based on time k i,j (k), select the action variable taken at time k according to the ∈-greedy strategy; Step S532: Bucketing result row based on time k i,j (k) and the action variable taken at time k, and the update formula of the Q table is obtained.

9. The distributed state estimation method for data tampering attack detection according to claim 8, characterized in that: In step S51, the observed variable o i,j The quantification result of (k)quan(o i,j (k)) is: Among them, quan(o i,j (k)) represents the observed variable o i,j The quantitative results of (k), o i,j (k) is the observed variable, Σ ij yes The steady-state variance of Alternatively, the observed variable o i,j The quantification result of (k)quan(o i,j (k)) is: Among them, quan(o i,j (k)) represents the observed variable o i,j The quantitative results of (k), o i,j (k) is the observed variable; In step S52, the interval endpoints required for the bucketing operation are β0=0<β1<β2<…<β h , the bucketing operation is in the form of: Traverse row∈{1,2,…,h}, if β row-1 ≤quan(o i,j (k))<β row , then for quan(o i,j (k)) The result row of bucketing i,j (k) is row, where row i,j (k) is for quan(o i,j (k)) is the result of bucketing, row is the interval index of the bucket traversal operation, β row It is the right endpoint value of the bucket interval corresponding to the interval index; In step S532, the update formula of the Q table is: Q(row i,j (sour i,j (k))←Q(row i,j (sour i,j (k))+α[r i,j (k)+γQ(row i,j (k+1,ai,j*k+1)-Q(rowi,j(k),ai,j(k))], Among them, α is the learning step size, r i,j (k) is the reward variable at time k, row i,j (k+1) is the bucketing result at time k+1, is the optimal action at time k+1.

10. The distributed state estimation method for data tampering attack detection according to claim 9, characterized in that: In step S532, the expression of the Q table is: Q(row,a), Among them, row∈{1,2,…,h}, a∈{0,1}, and all values ​​in the Q table are initialized to 0; And the step S53 also includes step S533: based on the update formula of the Q table, Q value correction is performed to speed up the learning efficiency of the Q-learning algorithm, which specifically includes: Traverse all row∈{1,2,…,h} and a∈{0,1} in the Q table Q(row,a), where row is the interval index of the bucket traversal operation, and a is the action taken by the reinforcement learning algorithm. a=0 means rejecting the communication data, and a=1 means accepting and using the communication data: If row <row ij (k) and Q(row,0)>Q(row ij (k),0), assign Q(row,0) to Q(row ij (k),0); If row>row ij (k) and Q(row,0) <Q(row ij (k),0), assign Q(row,0) to Q(row ij (k),0); If row <row ij (k) and Q(row,1) <Q(row ij (k),1), assign Q(row,1) to Q(row ij (k),1); If row>row ij (k) and Q(row,1)>Q(row ij (k),1), assign Q(row,1) to Q(row ij (k),1).

Citation Information

Cited By

  • Switching type safety control method and device for wind turbine generator set under replay attack

    CN120315338A