Method, device, equipment and storage medium for identifying sensitive data of power regulation
By numerically processing and feature extraction of power regulation data, and using convolutional layer and fully connected classification layer models to identify sensitive power regulation data, the weaknesses of traditional systems in data security protection are solved, and effective power regulation data is achieved. Identification and risk reduction.
Patent Information
- Application Number
- CN202311557286.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-11-21
AI Technical Summary
Traditional smart grid dispatching automation systems are weak in data security protection and cannot effectively identify and respond to internal leakage risks of power regulation data, leading to an increased risk of grid security accidents.
By obtaining power regulation data, numerical processing, preprocessing and feature extraction are performed, and the sensitive data identification model of the convolution layer and fully connected classification layer is used for identification, and the sensitive data of power regulation is accurately identified, thereby reducing the risk of data exposure.
It achieves accurate identification of sensitive data for power regulation, reduces the risk of data leakage, and enhances the security of the power grid.
Smart Images

Figure CN117633615B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular to a method, device, equipment and storage medium for identifying power regulation sensitive data. Background Art
[0002] With the digital transformation of the power grid, the power flow, business flow and information flow of the power grid are deeply integrated. The power business scenario is no longer just an interaction with power generation companies, but more of a friendly interaction with power users, aggregators and other objects. New businesses, new scenarios and new models are emerging in an endless stream. These new businesses and new scenarios have generated massive heterogeneous data, resulting in the interweaving of new and old data security issues, and data security risks are facing unprecedented challenges.
[0003] Power control data is highly sensitive and confidential, and has great application value. Once the data is leaked or used, it will seriously lead to power production safety accidents and affect the normal production order of society. At present, the traditional dispatching automation system has been built from several aspects such as network structure security, ontology security, and application security. It has a good network security foundation, but lacks effective technical means to ensure data security. The risk of power grid safety accidents caused by the leakage of sensitive power control data is increasing. Power control data is shared across a larger range and more frequently across domains, and accurate traceability faces huge challenges.
[0004] The network security protection of traditional smart grid dispatching automation systems is mainly based on the system's in-depth defense of border security. It lacks technical means to ensure data security, and its data security protection system and management mechanism are relatively weak. Compared with the continuously upgraded external data security threats, the internal data leakage security risk is becoming increasingly severe. The existing network security management platform mainly monitors the network, operating system and host levels, and can only analyze based on IP quintuples, network communication protocols, etc. It is unable to timely identify the security risks of power control data interaction behavior and the risks of sensitive information in the interactive data, and thus cannot respond and deal with the security risks of power control data in a timely manner, which poses a great security risk. Summary of the invention
[0005] The embodiments of the present disclosure provide a method, device, equipment and storage medium for identifying power regulation sensitive data, which can accurately identify power regulation sensitive data, thereby reducing the risk of sensitive data exposure.
[0006] In a first aspect, an embodiment of the present disclosure provides a method for identifying power regulation sensitive data, comprising: acquiring power regulation data within multiple moments; digitizing the power regulation data according to the data type of the power regulation data to obtain digitized power regulation data; preprocessing the digitized power regulation data to obtain preprocessed power regulation data; extracting features from the preprocessed power regulation data to obtain power regulation features; inputting the power regulation features into a set power regulation sensitive data identification model, and outputting an identification result; wherein the identification result includes power regulation sensitive data and non-power regulation sensitive data; wherein the set power regulation sensitive data identification model includes a convolutional layer and a fully connected classification layer; wherein the number of the convolutional layers includes a plurality; the plurality of convolutional layers are connected in series in sequence, and each convolutional layer includes an activation function.
[0007] In a second aspect, an embodiment of the present disclosure also provides a device for identifying power regulation sensitive data, including: a power regulation data acquisition module, used to acquire power regulation data within multiple moments; a numerical processing module, used to perform numerical processing on the power regulation data according to the data type of the power regulation data, to obtain numerical power regulation data; a preprocessing module, used to preprocess the numerical power regulation data, to obtain preprocessed power regulation data; a feature extraction module, used to perform feature extraction on the preprocessed power regulation data, to obtain power regulation features; an identification module, used to input the power regulation features into a set power regulation sensitive data identification model, and output an identification result; wherein the identification result includes power regulation sensitive data and non-power regulation sensitive data; wherein the set power regulation sensitive data identification model includes a convolutional layer and a fully connected classification layer; wherein the number of the convolutional layers includes multiple; the multiple convolutional layers are connected in series in sequence, and each convolutional layer includes an activation function.
[0008] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0009] one or more processors;
[0010] a storage device for storing one or more programs,
[0011] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for identifying power regulation sensitive data as described in the embodiment of the present disclosure.
[0012] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the method for identifying power regulation sensitive data as described in the embodiments of the present disclosure.
[0013] The technical solution of the embodiment of the present disclosure is to obtain power control data within multiple moments; perform numerical processing on the power control data according to the data type of the power control data to obtain numerical power control data; preprocess the numerical power control data to obtain preprocessed power control data; extract features from the preprocessed power control data to obtain power control features; input the power control features into a set power control sensitive data recognition model to output a recognition result; wherein the recognition result includes power control sensitive data and non-power control sensitive data; wherein the set power control sensitive data recognition model includes a convolution layer and a fully connected classification layer; wherein the number of convolution layers includes multiple; multiple convolution layers are connected in series in sequence, and each convolution layer includes an activation function. In the embodiment of the present disclosure, by performing numerical processing, preprocessing and feature extraction on the power control data, and using the set power control sensitive data recognition model to perform sensitive data recognition on the power control features, the power control sensitive data can be accurately identified, thereby reducing the risk of sensitive data exposure. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0015] Figure 1 A schematic diagram of a flow chart of a method for identifying sensitive data of power regulation provided in an embodiment of the present disclosure;
[0016] Figure 2 A schematic diagram of another method for identifying sensitive data of power regulation provided by an embodiment of the present disclosure;
[0017] Figure 3 A schematic diagram of the structure of a device for identifying sensitive data of power regulation provided by an embodiment of the present disclosure;
[0018] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0020] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0021] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0022] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0023] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0024] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0025] Figure 1 This is a flow chart of a method for identifying power regulation sensitive data provided by an embodiment of the present disclosure. The present disclosure embodiment is applicable to the case of identifying whether power regulation data is power regulation sensitive data. The method can be executed by a power regulation sensitive data identification device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server. Figure 1 As shown, the method includes:
[0026] S110, obtaining power control data at multiple time points.
[0027] Among them, the power control data can be data required for power system dispatching and control. The power control data can include multiple data types, such as character type and numeric type. The character type can also be divided into a character type including an order relationship and a character type not including an order relationship. The order relationship can be understood as a relative size relationship between each data, such as the power load is divided into three gears: low load, medium load and high load. The power control data in this embodiment can be understood as the actual (or the latest multiple moments) power control data.
[0028] S120 , performing numerical processing on the power control data according to the data type of the power control data to obtain numerical power control data.
[0029] The numerical power control data can be understood as power control data processed by numerical processing rules, and the numerical power control data can be used for data analysis. In this embodiment, the corresponding numerical processing rules can be determined according to the data type of the power control data, and the power control data can be processed according to the corresponding numerical processing rules to obtain the numerical power control data. The numerical processing rules can include serial number encoding methods, unique hot encoding methods, and statistical test methods.
[0030] Optionally, the power control data is digitized according to the data type to obtain digitized power control data, including: if the data type is a first character type, the power control data is digitized using a serial number encoding method to obtain first digitized power control data; if the data type is a second character type, the power control data is digitized using a one-hot encoding method to obtain second digitized power control data; if the data type is a numeric type, the power control data is distributed tested based on a function corresponding to a set data distribution to obtain a test result; based on the test result, the power control data is digitized to obtain third digitized power control data.
[0031] The numerical power control data includes first numerical power control data, second numerical power control data and third numerical power control data. The first character type is a character type including an order relationship. Specifically, if the data type is the first character type, the power control data is encoded into numerical data using a serial number encoding method. The size of the encoded power control data represents the relative size relationship between the data. For example, if the power load of the power supply system (that is, the power control data) is divided into three gears: low load, medium load and high load, the power control data of these three states can be encoded as 0, 1, and 2 respectively using a serial number encoding method; that is, if the power control data is low load, medium load and high load, the corresponding first numerical power control data can correspond to: 0, 1, and 2.
[0032] The second character type is a character type that does not include an order relationship. Specifically, if the data type is the second character type, the power control data is encoded as a one-hot vector using a one-hot encoding method. For example, if the data type contains a total of k different states, the one-hot vector encoding of a record of a power control data belonging to the jth category is [p1, p2, ..., p k ], where if i=j then p i =1, otherwise p i =0, for example, if the power control data includes four types of bus status data, namely, operating status, hot standby status, cold standby status, and maintenance status, these four types of data can be encoded as [1,0,0,0], [0,1,0,0], [0,0,1,0], [0,0,0,1], respectively. Among them, [1,0,0,0] is the second numerical power control data corresponding to the operating status (power control data).
[0033] Among them, the numerical power control data can be voltage value, current value, power generation capacity, power generation capacity growth rate, etc. These data reflect the operating status and control effect of the power system, and are of great significance for the monitoring and optimization of the power grid. In addition to the relatively clear physical meaning of the size of the numerical power control data itself, there will also be a distribution correlation between the power control data at multiple times. For example, there is an Ohm's law relationship between the voltage value and the current value, and there is a certain positive correlation between the power generation capacity and the power generation capacity growth rate. Therefore, for numerical power data, it is necessary to describe the distribution of power control data at multiple times in order to analyze the characteristics of the data such as the central tendency, the central tendency and the distribution shape. The data distribution description method may include graphical methods such as drawing frequency distribution tables, histograms, box plots, and numerical methods such as calculating mean, mode, median, variance, standard deviation, and interquartile range. In an embodiment of the present invention, a statistical test method can be used to determine whether the acquired power control data conforms to a given distribution. Specifically, if the data type is a numerical type, a distribution test is performed on the power control data at multiple moments based on a function corresponding to the set data distribution to obtain a test result; based on the test result, the power control data is numerically processed to obtain third numerical power control data. Among them, the set data distribution may include normal distribution, uniform distribution, exponential distribution, etc., which is not limited in this embodiment. The distribution test can be understood as whether the power control data at multiple moments (that is, the sample data currently obtained) is consistent with the set data distribution, or whether the significant difference between the power control data at multiple moments and the set data distribution falls within the set difference range. The test results include test pass and test fail. The third numerical power control data may be the power control data after standardization.
[0034] Optionally, the power control data is numerically processed based on the test result to obtain third numerical power control data, including: if the test result is a pass, the power control data is standardized to obtain third numerical power control data; wherein, the pass test indicates that the power control data conforms to the set data distribution; if the test result is a fail test, the power control data is transformed; a distribution test is re-performed on the transformed power control data based on a function corresponding to the set data distribution; and the power control data is numerically processed based on the new test result to obtain third numerical power control data.
[0035] For example, suppose the power control data at multiple times are x1, x2, ..., x n And they increase successively, then calculate the statistic K:
[0036]
[0037] Among them, F n (x i )=i / n,F D (·) is the cumulative distribution function corresponding to the set data distribution D. For example, when the set data distribution D is a normal distribution, Where μ and σ are the expectation and standard deviation of the normal distribution, respectively, and Φ is the cumulative distribution function of the standard normal distribution, that is,
[0038]
[0039] If the power control data at multiple times obey the set data distribution D, then the statistic K approximately obeys the Kolmogorov distribution, and the cumulative distribution function of the distribution is:
[0040]
[0041] If Pr is greater than 0.95, it means the test fails. If Pr is less than or equal to 0.95, it means the test passes. If the test passes, the power control data is standardized: in Represents the mean of the power control data at multiple moments, S represents the standard deviation of the power control data at multiple moments, and the distribution it obeys is recorded in the metadata of the corresponding data type. If the power control data conforms to the normal distribution, the standardized power control data obeys the standard normal distribution with a mean of 0 and a standard deviation of 1. Among them, the transformation processing operation may include square, square root, exponential, logarithmic transformation, etc. If the test fails, the power control data can be transformed, and the distribution test of the transformed power control data is re-performed based on the function corresponding to the set data distribution; if the new test result is that the test passes, the power control data is standardized to obtain the third numerical power control data; if the new test result is that the test fails, the power control data is transformed again. It should be noted that each time the test fails, the corresponding transformation processing operation is different. If the test passes, the transformed power control data is retained and the transformation type and the corresponding distribution are recorded in the metadata. For example, if the power control data is logarithmically transformed and passes the normality test, "logarithmic transformation" and "normal distribution" and the expected and variance of the distribution are recorded in the metadata.
[0042] Optionally, after the power control data is digitized based on the new test results to obtain third digitized power control data, it also includes: if the number of transformation processing performed on the power control data is greater than or equal to the set number of transformation processing times, and the corresponding test results are all test failures, then the power control data is used as the third digitized power control data.
[0043] For example, if the power control data is transformed in sequence by square, square root, exponential, logarithmic transformation, etc., and the test result is failure each time, it means that the power control data cannot reach the given distribution through transformation. At this time, the original power control data is retained, that is, the original power control data is used as the third digitized power control data, and the "unknown distribution" is recorded in the metadata.
[0044] S130, preprocessing the digitized power control data to obtain preprocessed power control data.
[0045] In this embodiment, there is no restriction on the specific operation of preprocessing, for example, it may be a zero mean processing. It should be noted that the digitized power control data at any moment may include multiple dimensions, a dimension may be a data type, and different data types correspond to different dimensions. For the digitized power control data at any moment, each dimension may be preprocessed (that is, each dimension is processed separately). Exemplarily, each dimension of the m digitized power control data with a dimension n that increases successively with time is subjected to a zero mean processing, so that the mean of the data in each dimension is 0 and the variance is 1. The preprocessed power control data matrix is:
[0046] X=[x1,x2,…,x m ] T ∈R m×n
[0047] Among them, x i Represents the i-th sample vector. Zero-mean processing can eliminate the impact of dimensions and orders of magnitude between different dimensions, making the data more standardized and consistent.
[0048] S140: extracting features from the preprocessed power regulation data to obtain power regulation features.
[0049] In this embodiment, the data processing method is used to perform dimensionality reduction and feature extraction on the pre-processed power control data, which can reduce the dimensionality of the power control data, extract the main features of the data, and eliminate the redundancy and noise of the data.
[0050] Optionally, feature extraction is performed on the preprocessed power control data to obtain power control features, including: performing singular value decomposition on the preprocessed power control data to obtain a left singular vector matrix, a singular value diagonal matrix and a right singular vector matrix; determining a matrix composed of eigenvalue vectors of the covariance matrix of the preprocessed power control data based on the right singular vector matrix; respectively determining the cumulative variance contribution rate of each eigenvalue of the covariance matrix; screening a set number of target eigenvalues according to the cumulative variance contribution rate; selecting a target eigenvector matrix composed of eigenvectors corresponding to the target eigenvalues; and determining the power control features based on the preprocessed power control data and the target eigenvector matrix.
[0051] In this embodiment, singular value decomposition is performed on the preprocessed power control data (matrix) to obtain its left singular vector matrix, singular value diagonal matrix and right singular vector matrix. Singular value decomposition is a matrix decomposition method that can decompose a matrix of any shape into the product of three matrices. Specifically, for the m×n preprocessed power control data X, it can be decomposed into:
[0052] X=UΣV T
[0053] Among them, U is an m×m matrix composed of left singular vectors, Σ is an m×n diagonal matrix whose diagonal elements are singular values, and V is an n×n matrix composed of right singular vectors. Since the singular values are arranged on the diagonal from large to small, the left singular vectors and right singular vectors are also arranged in the matrix in the corresponding order.
[0054] Next, the right singular vector matrix is used to obtain the matrix composed of the eigenvalue vectors of the covariance matrix of the preprocessed power control data. Among them, the covariance matrix is a matrix that describes the correlation between the various dimensions of the data. For the preprocessed power control data X, its covariance matrix is:
[0055] A=X T X / n
[0056] Where n is the sample dimension. Since the right singular vector matrix V satisfies V T V=I n , where I n is the n×n identity matrix, so AV=VΣ 2 / n. It can be seen that the matrix composed of right singular vectors is the matrix composed of eigenvalue vectors of covariance matrix A, that is, V = [v1, v2, ..., v n ]∈R n×n , where v i represents the i-th eigenvalue vector.
[0057] Then, the cumulative variance contribution rate of each eigenvalue of the covariance matrix is calculated, and the target eigenvalues with the largest cumulative variance contribution rate exceeding 0.99 are found, and the matrix spanned by the eigenvectors corresponding to the target eigenvalues is selected. Among them, the cumulative variance contribution rate is an indicator to measure the degree of retention of the original data information (pre-processed power control data) by the eigenvalue vector. For the eigenvalue λ of the covariance matrix A i , and its cumulative variance contribution rate is:
[0058]
[0059] Where i = 1, 2, ..., n. Generally, when the cumulative variance contribution rate reaches 0.99, it means that the first i eigenvalue vectors have retained most of the information of the original data (preprocessed power control data). Therefore, we can find the first set number of d largest eigenvalues with cumulative variance contribution rates exceeding 0.99, and select the corresponding eigenvectors to form the target eigenvector matrix V d =[v1,v2,…,v d ]∈R n×d , where d <n。
[0060] Finally, the target feature vector matrix is used to reduce the dimension and extract features of the preprocessed power control data to obtain a new data matrix (i.e., power control features). For example, the new data matrix (power control features) X d =XV d ∈R m×d .
[0061] In this embodiment, the power control feature can be used for subsequent intelligent identification of power control sensitive data.
[0062] In this embodiment, a d-dimensional feature vector can be obtained by projecting the preprocessed power control data through the target feature vector matrix. The target feature vector matrix is a matrix used for dimensionality reduction and feature extraction, which can project high-dimensional data into a low-dimensional space to extract the main features of the data.
[0063] S150, inputting the power regulation feature into a set power regulation sensitive data recognition model, and outputting a recognition result.
[0064] The identification result includes power regulation sensitive data and non-power regulation sensitive data. The power regulation sensitive data identification model can be any type of neural network model, such as a convolutional neural network, a recurrent neural network, an attention mechanism, etc. The power regulation sensitive data identification model can be used to classify power regulation features, and the classification categories include power regulation sensitive data or non-power regulation sensitive data.
[0065] Optionally, the power regulation sensitive data recognition model includes a convolution layer and a fully connected classification layer; wherein, the number of the convolution layers includes multiple; the multiple convolution layers are connected in series in sequence, and each convolution layer includes an activation function.
[0066] In this embodiment, the power regulation sensitive data recognition model may include multiple one-dimensional convolutional layers, each convolutional layer includes an activation function, and multiple convolutional layers are connected in series in sequence, wherein the activation function may be a rectified linear unit (Rectified linear unit, ReLU), Sigmoid function, etc., and this embodiment does not limit the specific activation function. Among them, the fully connected classification layer may also be a multi-layer fully connected layer. The convolutional layer is a neural network layer used to extract local features and spatial information, which can effectively process time series data.
[0067] In this embodiment, the convolution layer and the fully connected classification layer can enable the power regulation sensitive data recognition model to learn the time series correlation characteristics and data characteristics of the power regulation data.
[0068] Optionally, the power control feature is input into a set power control sensitive data recognition model to output a recognition result, including: inputting the power control feature into a convolutional layer to obtain timing information in the power control feature; inputting the timing information into a fully connected classification layer to output a recognition result.
[0069] It should be noted that due to the correlation between the sensitivity of power regulation data in the time dimension, for example, sensitive data of power regulation is usually accompanied by sensitive data before and after it appears. Therefore, in the process of intelligent identification of sensitive data of power regulation, it is necessary to consider not only the multidimensional characteristics of the current processing, but also the short-term historical data related to it in time series.
[0070] In the embodiment of the present invention, the time-related control data (power control characteristics) in the short term are integrated through a convolutional neural network, so that the classification model can learn the time series correlation.
[0071] In this embodiment, a convolutional neural network is used to map the associated information in the time-series related power control data; a fully connected neural network is used to classify the associated feature data to identify the power control sensitive data. d Add multiple one-dimensional convolutional layers in front of and use appropriate leading zero padding to keep the output length m, and get an output tensor Y, where
[0072] Y = Conv(X d )=σ(W*X+b)
[0073] In the formula, * represents the convolution operation, W is the weight matrix of the convolution kernel, b is the bias term; σ(x) = exp(x) / (1+exp(x)) is the Sigmoid activation function. Flatten the output tensor Y into a second-order tensor Y'∈R m×l , where l is the number of output channels of the convolutional layer, and Y' is also the time series information.
[0074] Construct a fully connected classification layer (also known as a naive classifier network) F:R l →R 2 , whose structure is a multi-layer fully connected layer, the input data is an l-dimensional feature vector, and the output is the probability of whether it is sensitive data for power regulation. For each row in the flattened tensor (i.e., each time step), it is passed as input to the naive fully connected network F, and the output tensor Z∈R is obtained n×2 , where each row represents the probability that the corresponding power regulation feature belongs to the true or false category (power regulation sensitive data or non-power regulation sensitive data category), that is,
[0075] Z=F(Y')=softmax(W f Y'+b f )
[0076] Where W f is the weight matrix of the original network F, b f is a bias vector, and softmax is a function that converts the output into probability, i.e. Where z = [z1, z2], C is the total category, which is 2. According to the needs, the category with the highest probability in Z is selected as the final recognition result, or the results in Z are integrated to determine whether the entire sequence is sensitive data for power regulation. The final complete classifier is a combination of the convolutional layer and the fully connected classification layer, that is, in, Represents a compound operation.
[0077] Optionally, the training method of setting the power regulation sensitive data recognition model is: obtaining power regulation training data and corresponding real classification labels; inputting the power regulation training data into the set power regulation sensitive data recognition model, and outputting a predicted recognition result; determining an adjustment factor of the power regulation training data; determining a loss function value between the real classification label and the predicted recognition result based on the adjustment factor; and training the set power regulation sensitive data recognition model based on the loss function value. The power regulation training data is historical power regulation data.
[0078] It should be noted that, for the loss function used in the training process of the power control sensitive data recognition model, in order to reduce the non-power control sensitive data, the training focus can be placed on sensitive data that is not easy to classify to reshape the loss function. For example, the estimated probability of non-power control sensitive data with classification model category c is p c , which can be represented by a softmax function. Set a focus parameter γ>0, and calculate the adjustment factor (1-p c ) γ This adjustment factor can dynamically adjust the loss weight of different sample data. c When it is close to 1, it means that the sample data is easy to classify, and the adjustment factor is close to 0, which reduces its loss weight. c When it is close to 0, it means that the sample data is difficult to classify, and the adjustment factor is close to 1, which increases its loss weight. Finally, the Focal loss function FL(p c )=-(1-p c ) γ logp c Instead of the naive cross entropy loss function CE(p c )=-logp c To calculate the loss value of each sample data, and sum or average the loss values of all sample data as the final loss function (loss value).
[0079] Specifically, the training method of the power regulation sensitive data recognition model is as follows: input the power regulation training data into the set power regulation sensitive data recognition model, output the predicted recognition result, determine the loss function value between the real classification label corresponding to the power regulation training data and the predicted recognition result; train the set power regulation sensitive data recognition model based on the loss function value, and update the model parameters through continuous iteration to obtain a smaller loss function value and improve the model accuracy. When the loss function value reaches the set loss value condition or reaches the training stop condition, stop the training. Among them, the parameter set of the classifier model G at the beginning of the i-th round is Θ j , calculate its classification prediction for the input data as p c =G(x;θ j ), and calculate FL i (p c ). Due to FL i (p c ) is Θ j Function, using automatic differentiation, we can calculate the Focal loss function relative to Θ j The partial derivative of , set the learning rate to lr, and use stochastic gradient descent to update the model parameters:
[0080] In this embodiment, the above-mentioned model optimization method is combined, and an optimization method based on the Focal loss function is adopted to continuously iterate and update the model parameters. In this embodiment, the Focal loss function is an improved cross-entropy loss function, which can reduce the loss weight of easy-to-classify samples and increase the loss weight of difficult-to-classify samples, so that the setting of the electric power regulation sensitive data recognition model pays more attention to those sensitive sample data that are helpful for training. Through continuous iteration of the model parameters, until the Focal loss is no longer significantly reduced, the model converges and the iterative process ends. After the iterative process ends, the model parameters obtained by the iteration are used as the final result and applied to the automatic recognition of actual electric power regulation data.
[0081] In this embodiment, for the power control training data, before the power control training data is input into the set power control sensitive data recognition model, it is necessary to perform numerical processing, preprocessing and feature extraction on the power control training data. Since it is the same as the operation of performing specific processing on the actual power control data, the process of performing numerical processing, preprocessing and feature extraction on the power control data in the above embodiment can be referred to, and it will not be repeated here.
[0082] The technical solution of the embodiment of the present disclosure is to obtain power control data within multiple moments; perform numerical processing on the power control data according to the data type of the power control data to obtain numerical power control data; preprocess the numerical power control data to obtain preprocessed power control data; extract features from the preprocessed power control data to obtain power control features; input the power control features into a set power control sensitive data recognition model to output a recognition result; wherein the recognition result includes power control sensitive data and non-power control sensitive data; wherein the set power control sensitive data recognition model includes a convolution layer and a fully connected classification layer; wherein the number of convolution layers includes multiple; multiple convolution layers are connected in series in sequence, and each convolution layer includes an activation function. In the embodiment of the present disclosure, by performing numerical processing, preprocessing and feature extraction on the power control data, and using the set power control sensitive data recognition model to perform sensitive data recognition on the power control features, the power control sensitive data can be accurately identified, thereby reducing the risk of sensitive data exposure.
[0083] Figure 2 A flowchart of another method for identifying sensitive data of power regulation provided by an embodiment of the present disclosure is provided, and the specific steps are as follows:
[0084] S210, obtaining power control data at multiple time periods.
[0085] S220: If the data type of the power control data is a first character type, numerically process the power control data using a serial number encoding method to obtain first numerical power control data.
[0086] S230: If the data type of the power control data is a second character type, the power control data is digitized using a one-hot encoding method to obtain second digitized power control data.
[0087] S240. If the data type of the power control data is a numerical type, a distribution check is performed on the power control data based on a function corresponding to the set data distribution to obtain a check result; based on the new check result, the power control data is numerically processed to obtain third numerical power control data.
[0088] S250 , preprocessing the first digitized power control data, the second digitized power control data, and the third digitized power control data to obtain preprocessed power control data.
[0089] S260: extracting features from the preprocessed power regulation data to obtain power regulation features.
[0090] In this embodiment, the power control data is digitized and preprocessed to construct a multidimensional feature space of the power control data (multidimensional feature vector of the power control data), and feature extraction is performed on the preprocessed power control data (i.e., the multidimensional feature vector of the power control data) to screen effective information or more concentrated feature fields.
[0091] S270: Input the power regulation feature into a set power regulation sensitive data recognition model, and output a recognition result.
[0092] In the embodiment of the present invention, the complex power control data is numerically processed and structured, the distribution information contained therein is checked and recorded, and the feature extraction is performed on the pre-processed power control data to achieve data dimension reduction and extraction of main features. The trained power control sensitive data recognition model is used to associate multiple power control features in a short period of time, and the associated features are used to identify sensitive data to reduce the risk of sensitive data exposure.
[0093] Figure 3 The schematic diagram of the structure of a device for identifying power control sensitive data provided by the embodiment of the present disclosure includes: a power control data acquisition module 310 , a numerical processing module 320 , a preprocessing module 330 , a feature extraction module 340 and an identification module 350 .
[0094] The power control data acquisition module 310 is used to acquire power control data at multiple times;
[0095] A numerical processing module 320, configured to perform numerical processing on the power control data according to the data type of the power control data to obtain numerical power control data;
[0096] A preprocessing module 330, used for preprocessing the digitized power control data to obtain preprocessed power control data;
[0097] A feature extraction module 340 is used to extract features from the preprocessed power control data to obtain power control features;
[0098] The identification module 350 is used to input the power regulation feature into the set power regulation sensitive data identification model and output the identification result; wherein the identification result includes power regulation sensitive data and non-power regulation sensitive data; wherein the set power regulation sensitive data identification model includes a convolutional layer and a fully connected classification layer; wherein the number of the convolutional layers includes multiple; multiple convolutional layers are connected in series in sequence, and each convolutional layer includes an activation function.
[0099] The technical solution of the embodiment of the present disclosure is to obtain power control data within multiple moments through a power control data acquisition module; to perform digital processing on the power control data according to the data type of the power control data through a digital processing module to obtain digital power control data; to preprocess the digital power control data through a preprocessing module to obtain preprocessed power control data; to extract features from the preprocessed power control data through a feature extraction module to obtain power control features; to input the power control features into a set power control sensitive data recognition model through an identification module to output a recognition result; wherein the recognition result includes power control sensitive data and non-power control sensitive data; wherein the set power control sensitive data recognition model includes a convolution layer and a fully connected classification layer; wherein the number of convolution layers includes multiple; multiple convolution layers are sequentially connected in series, and each convolution layer includes an activation function. In the embodiment of the present disclosure, by performing digital processing, preprocessing and feature extraction on the power control data, and using the set power control sensitive data recognition model to perform sensitive data recognition on the power control features, the power control sensitive data can be accurately identified, thereby reducing the risk of sensitive data exposure.
[0100] Optionally, the numerical processing module is specifically used for: if the data type is a first character type, then numerically processing the power control data using a serial number encoding method to obtain first numerical power control data; if the data type is a second character type, then numerically processing the power control data using a one-hot encoding method to obtain second numerical power control data; if the data type is a numerical type, then performing a distribution check on the power control data based on a function corresponding to a set data distribution to obtain a check result; and numerically processing the power control data based on the check result to obtain third numerical power control data.
[0101] Optionally, the numerical processing module is also used for: if the test result is a passed test, then standardizing the power control data to obtain third numerical power control data; wherein, the passed test indicates that the power control data conforms to the set data distribution; if the test result is a failed test, then transforming the power control data; re-performing a distribution test on the transformed power control data based on a function corresponding to the set data distribution; and numerically processing the power control data based on the new test result to obtain third numerical power control data.
[0102] Optionally, the digital processing module is also used for: if the number of transformation processing performed on the power control data is greater than or equal to the set number of transformation processing times, and the corresponding inspection results are all inspection failures, then the power control data is used as the third digital power control data.
[0103] Optionally, the feature extraction module is specifically used to: perform singular value decomposition on the preprocessed power control data to obtain a left singular vector matrix, a singular value diagonal matrix and a right singular vector matrix; determine a matrix composed of eigenvalue vectors of the covariance matrix of the preprocessed power control data based on the right singular vector matrix; respectively determine the cumulative variance contribution rate of each eigenvalue of the covariance matrix; screen a set number of target eigenvalues according to the cumulative variance contribution rate; select a target eigenvector matrix composed of eigenvectors corresponding to the target eigenvalues; and determine the power control characteristics based on the preprocessed power control data and the target eigenvector matrix.
[0104] Optionally, the set power control sensitive data recognition model includes a convolution layer and a fully connected classification layer; wherein the number of the convolution layers includes multiple; the multiple convolution layers are connected in series in sequence, and each convolution layer includes an activation function; the recognition module is specifically used to: input the power control feature into the convolution layer to obtain the timing information in the power control feature; input the timing information into the fully connected classification layer, and output the recognition result.
[0105] Optionally, the device also includes a training module, which is used to: obtain power control training data and corresponding true classification labels; input the power control training data into the set power control sensitive data recognition model, and output predicted recognition results; determine an adjustment factor of the power control training data; determine a loss function value between the true classification label and the predicted recognition result based on the adjustment factor; and train the set power control sensitive data recognition model based on the loss function value.
[0106] The device for identifying power regulation sensitive data provided in the embodiments of the present disclosure can execute the method for identifying power regulation sensitive data provided in any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method.
[0107] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0108] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0109] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0110] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0111] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for identifying sensitive data for power regulation.
[0112] In some embodiments, the method for identifying power regulation sensitive data may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for identifying power regulation sensitive data described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method for identifying power regulation sensitive data in any other appropriate manner (e.g., by means of firmware).
[0113] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SoCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0114] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0115] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0116] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0117] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0118] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0119] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0120] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for identifying sensitive data of power regulation, comprising: Obtain power control data at multiple times; Performing numerical processing on the power control data according to the data type of the power control data to obtain numerical power control data; The digitized power control data is preprocessed to obtain preprocessed power control data; characterized in that: Extracting features from the preprocessed power control data to obtain power control features; The power regulation feature is input into a set power regulation sensitive data recognition model, and a recognition result is output; wherein the recognition result includes power regulation sensitive data and non-power regulation sensitive data; wherein the set power regulation sensitive data recognition model includes a convolution layer and a fully connected classification layer; wherein the number of the convolution layers includes a plurality; the plurality of convolution layers are sequentially connected in series, and each convolution layer includes an activation function; Extracting features from the preprocessed power control data to obtain power control features includes: Performing singular value decomposition on the preprocessed power control data to obtain a left singular vector matrix, a singular value diagonal matrix and a right singular vector matrix; Determine a matrix composed of eigenvalue vectors of the covariance matrix of the preprocessed power control data based on the right singular vector matrix; Determine the cumulative variance contribution rate of each eigenvalue of the covariance matrix respectively; Screening a set number of target feature values according to the cumulative variance contribution rate; Select a target eigenvector matrix composed of eigenvectors corresponding to the target eigenvalues; The power regulation characteristics are determined according to the preprocessed power regulation data and the target feature vector matrix.
2. The method according to claim 1, characterized in that: The power control data is numerically processed according to the data type to obtain numerical power control data, including: If the data type is a first character type, the power control data is numerically processed by using a serial number encoding method to obtain first numerical power control data; If the data type is a second character type, the power control data is digitized by using a one-hot encoding method to obtain second digitized power control data; If the data type is a numerical type, a distribution test is performed on the power control data based on a function corresponding to a set data distribution to obtain a test result; wherein the set data distribution includes any one of the following distributions: normal distribution, uniform distribution, and exponential distribution; the distribution test is to test whether the power control data at multiple moments is consistent with the set data distribution, or to test whether the significant difference between the power control data at multiple moments and the set data distribution falls within a set difference range; Numerically processing the power control data based on the inspection result to obtain third numerical power control data; The step of performing numerical processing on the power control data based on the inspection result to obtain third numerical power control data includes: If the inspection result is that the inspection is passed, the power control data is standardized to obtain third numerical power control data; wherein the inspection passing indicates that the power control data conforms to the set data distribution; If the inspection result is that the inspection fails, transforming the power control data; Re-test the distribution of the transformed power control data based on the function corresponding to the set data distribution; The power control data is numerically processed based on the new inspection result to obtain third numerical power control data.
3. The method according to claim 2, characterized in that After the power control data is numerically processed based on the new inspection result to obtain third numerical power control data, the method further includes: If the number of times the power control data is transformed is greater than or equal to the set number of times, and the corresponding inspection results are all inspection failures, the power control data is used as the third digitized power control data.
4. The method according to claim 1, characterized in that: The power regulation feature is input into a set power regulation sensitive data recognition model, and a recognition result is output, including: Inputting the power regulation feature into a convolutional layer to obtain timing information in the power regulation feature; The time series information is input into the fully connected classification layer, and the recognition result is output.
5. The method according to claim 1, characterized in that The training method of the power regulation sensitive data recognition model is set as follows: Obtain power control training data and corresponding real classification labels; Inputting the power regulation training data into the set power regulation sensitive data recognition model, and outputting a prediction recognition result; Determine the adjustment factor of the power regulation training data; Determine the loss function value between the true classification label and the predicted recognition result based on the adjustment factor; The set power regulation sensitive data recognition model is trained based on the loss function value.
6. A device for identifying sensitive data of power regulation, comprising: A power control data acquisition module is used to acquire power control data at multiple times; A numerical processing module, used for performing numerical processing on the power control data according to the data type of the power control data to obtain numerical power control data; A preprocessing module is used to preprocess the numerical power control data to obtain preprocessed power control data; characterized in that: A feature extraction module, used to extract features from the preprocessed power control data to obtain power control features; An identification module, used for inputting the power regulation feature into a set power regulation sensitive data identification model, and outputting an identification result; wherein the identification result includes power regulation sensitive data and non-power regulation sensitive data; wherein the set power regulation sensitive data identification model includes a convolution layer and a fully connected classification layer; wherein the number of the convolution layers includes a plurality; the plurality of convolution layers are sequentially connected in series, and each convolution layer includes an activation function; The feature extraction module is specifically used for: Performing singular value decomposition on the preprocessed power control data to obtain a left singular vector matrix, a singular value diagonal matrix and a right singular vector matrix; Determine a matrix composed of eigenvalue vectors of the covariance matrix of the preprocessed power control data based on the right singular vector matrix; Determine the cumulative variance contribution rate of each eigenvalue of the covariance matrix respectively; Screening a set number of target feature values according to the cumulative variance contribution rate; Select a target eigenvector matrix composed of eigenvectors corresponding to the target eigenvalues; The power regulation characteristics are determined according to the preprocessed power regulation data and the target feature vector matrix.
7. The device according to claim 6, characterized in that The numerical processing module is specifically used for: if the data type is a first character type, performing numerical processing on the power control data by using a serial number encoding method to obtain first numerical power control data; If the data type is a second character type, the power control data is digitized by using a one-hot encoding method to obtain second digitized power control data; If the data type is a numerical type, a distribution test is performed on the power control data based on a function corresponding to a set data distribution to obtain a test result; wherein the set data distribution includes any one of the following distributions: normal distribution, uniform distribution, and exponential distribution; the distribution test is to test whether the power control data at multiple moments is consistent with the set data distribution, or to test whether the significant difference between the power control data at multiple moments and the set data distribution falls within a set difference range; Numerically processing the power control data based on the inspection result to obtain third numerical power control data; Among them, the numerical processing module is also used for: If the inspection result is that the inspection is passed, the power control data is standardized to obtain third numerical power control data; wherein the inspection passing indicates that the power control data conforms to the set data distribution; If the inspection result is that the inspection fails, transforming the power control data; Re-test the distribution of the transformed power control data based on the function corresponding to the set data distribution; The power control data is numerically processed based on the new inspection result to obtain third numerical power control data.
8. The device according to claim 7, characterized in that The numerical processing module is also used to: If the number of times the power control data is transformed is greater than or equal to the set number of times, and the corresponding inspection results are all inspection failures, the power control data is used as the third digitized power control data.
9. The device according to claim 6, characterized in that in, The set power regulation sensitive data recognition model includes a convolution layer and a fully connected classification layer; wherein the number of the convolution layers includes multiple; the multiple convolution layers are connected in series in sequence, and each convolution layer includes an activation function; the recognition module is specifically used for: Inputting the power regulation feature into a convolutional layer to obtain timing information in the power regulation feature; The time series information is input into the fully connected classification layer, and the recognition result is output.
10. The device according to claim 6, characterized in that The device also includes a training module, which is used to: Obtain power control training data and corresponding real classification labels; Inputting the power regulation training data into the set power regulation sensitive data recognition model, and outputting a prediction recognition result; Determine the adjustment factor of the power regulation training data; Determine the loss function value between the true classification label and the predicted recognition result based on the adjustment factor; The set power regulation sensitive data recognition model is trained based on the loss function value.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for identifying power regulation sensitive data as described in any one of claims 1-5.
12. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the method for identifying power regulation sensitive data as claimed in any one of claims 1 to 5 when executed by a computer processor.
