Power plant accident positioning method and system based on big data
Using big data technology and the associated attention mechanism model to collect and analyze data in real time in the power plant, the problem of inaccurate location of accidents in power plants is solved, more efficient and accurate accident location is achieved, and three-dimensional models are used to intuitively display the location and characteristics of accidents.
Patent Information
- Application Number
- CN202410692916.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology has the problem of inaccurate positioning in power plant accident location, especially when multi-sensor data is abnormal, it is difficult to accurately determine the location and cause of the accident.
Big data technology is used to collect power plant data in real time, and the target feature data set is extracted through the associated attention mechanism model combined with the convolutional neural network and the self-attention mechanism, and the index mapping relationship between the power plant's spatial position and feature channels is established in the three-dimensional model, and the calculation Correlate scores to pinpoint incident locations.
It improves the accuracy and efficiency of power plant accident location, visually displays the accident location and its characteristics through a three-dimensional model, and helps to quickly identify and repair faults.
Smart Images

Figure CN118708922A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular, to a method and system for locating power plant accidents based on big data. Background Art
[0002] Power plant accidents are often accompanied by equipment damage and failure, which may lead to production interruptions, increased losses, etc. By accurately locating the accident, timely measures can be taken to protect surrounding equipment, avoid the expansion of the accident, and minimize losses.
[0003] In the prior art, analysis and judgment are usually performed based on data transmitted by traditional monitoring equipment and sensors. Sensors mainly include temperature, pressure, current, voltage and other sensors. The location and cause of the accident in the power plant are determined by analyzing and judging the sensor data of temperature, pressure, current, voltage and other sensors. However, for complex accident situations in power plants, for example, there may be multiple sensor data abnormalities, and the cause of the sensor data abnormality may not be caused by the location of the fault. Therefore, in this case, the location of the power plant accident will be inaccurate.
[0004] There is currently no better solution to the above problems. Summary of the invention
[0005] The embodiments of the present invention provide a power plant accident location method and system based on big data, so as to effectively improve the accuracy of power plant accident location.
[0006] According to an embodiment of the present invention, a method for locating power plant accidents based on big data is provided, comprising:
[0007] Collect power plant data in real time, wherein the power plant data includes image data and sensor data;
[0008] Using big data technology to extract features from the power plant data to obtain a target feature data set related to the power plant accident;
[0009] Inputting the target feature data set into an association attention mechanism model to obtain an association score between the spatial position of the power plant and the feature channel, wherein the association attention mechanism model is constructed based on a convolutional neural network and a self-attention mechanism;
[0010] Acquire a three-dimensional model of the power plant, and establish an index mapping relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model;
[0011] For each of the power plant spatial positions and the characteristic channels, combining the association score with the corresponding index mapping relationship, and establishing an association relationship between the power plant spatial position and the characteristic channel in the three-dimensional model of the power plant;
[0012] The correlation relationship between the spatial position of the power plant and the characteristic channel is mapped into the three-dimensional model of the power plant to obtain the accident position and the corresponding accident characteristics.
[0013] In an exemplary embodiment, the use of big data technology to extract features from the power plant data to obtain a target feature data set related to the power plant accident includes:
[0014] Inputting the image data into a pre-trained neural network model to obtain a first feature;
[0015] Calculate a statistical feature based on the sensor data, and use the statistical feature as a second feature;
[0016] Fusing the first feature with the second feature to obtain a fused feature;
[0017] For any one of the fused features, the covariance between the fused features and each power plant accident label is calculated one by one, and the first standard deviation of the fused feature and the second standard deviation of the power plant accident label are calculated respectively, and the covariance is divided by the product of the first standard deviation and the second standard deviation to obtain the correlation between any one of the fused features and each of the power plant accident labels;
[0018] The fused features corresponding to the correlations greater than a preset correlation threshold are used as a target feature data set related to the power plant accident.
[0019] In an exemplary embodiment, the association attention mechanism model includes a CCA module, and the method for constructing the association attention mechanism model includes:
[0020] Using the historical power plant image data as an input of a convolutional neural network to obtain a local feature map of the historical power plant image data, wherein the convolutional neural network includes a plurality of convolutional layers and a plurality of pooling layers;
[0021] Combining the convolutional neural network and the self-attention mechanism, taking the local feature map as input, cyclically executing the first step until a preset number of times are executed, and constructing the CCA module, wherein the CCA module is used to capture global context information;
[0022] The first step comprises:
[0023] Calculating the attention weight between any two position points on the local feature map;
[0024] According to the attention weight between any two position points, the feature vectors of all position points on the local feature map are weighted to obtain the updated feature vector of each position point on the local feature map.
[0025] In an exemplary embodiment, the target feature dataset includes a target image feature dataset and a target sensor feature dataset, and the target feature dataset is input into the association attention mechanism model to obtain the association score between the spatial position of the power plant and the feature channel, including:
[0026] Calculating a first attention weight between any two position points in the target image feature data set;
[0027] Obtain the number of feature channels of the target sensor feature data set, and calculate the second attention weight between any two feature channels;
[0028] Using the first attention weight as the query matrix Q and the second attention weight as the key matrix K;
[0029] Multiply the query matrix Q by the key matrix K using a dot product operation to obtain an attention score matrix;
[0030] Applying the Softmax function to the attention score matrix to obtain an attention weight matrix;
[0031] The attention weight matrix is multiplied by the numerical matrix V of the target image feature data set to obtain the association score between the spatial position of the power plant and the feature channel.
[0032] In an exemplary embodiment, the calculating the second attention weight between any two feature channels includes:
[0033] The feature channel attention weight calculation formula is used to calculate the second attention weight between any two feature channels;
[0034] The characteristic channel attention weight calculation formula includes:
[0035]
[0036] Where X is the target feature dataset, Q is the query matrix of the target feature dataset, K is the key matrix of the target feature dataset, V is the numerical matrix of the target feature dataset, and d k is the dimension of the second attention weight.
[0037] In an exemplary embodiment, establishing an index mapping relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model includes:
[0038] Assigning a unique first index to each of the power plant spatial locations;
[0039] Allocating a unique second index to each of the feature channels;
[0040] A mapping table is created, wherein the mapping table includes n entries, each entry includes a first index and corresponding m second indexes, where m is a positive integer, and each entry is used to characterize an index mapping relationship between a spatial position of the power plant and the corresponding characteristic channel.
[0041] In an exemplary embodiment, establishing an association relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model of the power plant includes:
[0042] Performing a first mark on the spatial position of the power plant in the index mapping relationship, and performing a second mark on the characteristic channel in the index mapping relationship;
[0043] Connecting the first mark and the second mark using a connection symbol;
[0044] In response to a click operation on the connection symbol, a correlation score corresponding to the connection symbol is displayed, wherein the correlation score is used to characterize the correlation relationship between the spatial position of the power plant and the characteristic channel.
[0045] According to another embodiment of the present invention, a power plant accident location device based on big data is provided, comprising:
[0046] A collection module, used for collecting power plant data in real time, wherein the power plant data includes image data and sensor data;
[0047] A feature extraction module, used to extract features from the power plant data using big data technology to obtain a target feature data set related to the power plant accident;
[0048] An input module, used for inputting the target feature data set into an association attention mechanism model to obtain an association score between the spatial position of the power plant and the feature channel, wherein the association attention mechanism model is constructed based on a convolutional neural network and a self-attention mechanism;
[0049] An index mapping establishment module, used to obtain a three-dimensional model of the power plant and establish an index mapping relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model;
[0050] A combining module, for combining the association score with the corresponding index mapping relationship for each of the power plant spatial position and the characteristic channel, and establishing an association relationship between the power plant spatial position and the characteristic channel in the three-dimensional model of the power plant;
[0051] The accident location module is used to map the correlation between the spatial position of the power plant and the characteristic channel into the three-dimensional model of the power plant to obtain the accident location and the corresponding accident characteristics.
[0052] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0053] According to another embodiment of the present invention, a power plant accident location system based on big data is also provided, including:
[0054] The above-mentioned power plant accident location device based on big data; and
[0055] The computer-readable storage medium described above.
[0056] Through the present invention, the association attention mechanism model is adopted to establish the association relationship between the spatial position of the power plant and the feature channel, the accident position can be accurately located, and the feature channel related to the accident can be found. Therefore, the power plant accident location method based on big data can comprehensively utilize different types of power plant data, and adopt feature extraction and association attention mechanism models, thereby effectively improving the accuracy and efficiency of accident location. At the same time, through the establishment of a three-dimensional model, the accident location and its characteristics can be more intuitively displayed, which is helpful for the intuitive location of power plant accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 is a hardware structure block diagram of a mobile terminal according to an embodiment of the present invention;
[0058] Figure 2 is a flow chart of a power plant accident location method based on big data according to an embodiment of the present invention;
[0059] Figure 3 is a schematic diagram of index mapping according to an embodiment of the present invention;
[0060] Figure 4 It is a structural block diagram of a power plant accident locating device based on big data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0062] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0063] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a power plant accident location method based on big data according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0064] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a power plant accident location method based on big data in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0065] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0066] The power plant accident location method based on big data provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0067] The embodiment of the present application discloses a method for locating power plant accidents based on big data.
[0068] Reference Figure 2 , a power plant accident location method based on big data includes the following steps
[0069] S110 . Collect power plant data in real time, wherein the power plant data includes image data and sensor data.
[0070] In this embodiment, image data can be obtained through devices such as cameras or drones, and sensor data can be obtained through sensors such as temperature sensors, pressure sensors, current sensors, and voltage sensors.
[0071] The image data may be images of the power plant to be tested in all directions, so as to comprehensively characterize the situation of the power plant and help locate the accident.
[0072] S120. Use big data technology to extract features from power plant data to obtain a target feature data set related to power plant accidents.
[0073] Big data technology can be used to extract features from the collected power plant data to extract target feature data sets related to power plant accidents. The target feature data sets may include power plant spatial anomaly features and sensor data anomaly features.
[0074] The spatial abnormal characteristics of the power plant include the abnormal characteristics of each area of the power plant, such as smoke from equipment and abnormal lighting in the power plant.
[0075] Abnormal features of sensor data include trend changes and abnormal fluctuations of sensor data, such as abnormal vibration and abnormal temperature.
[0076] S130. Input the target feature data set into the association attention mechanism model to obtain the association score between the spatial position of the power plant and the feature channel, wherein the association attention mechanism model is constructed based on a convolutional neural network and a self-attention mechanism.
[0077] The association attention mechanism model is a neural network model based on the attention mechanism, which is constructed based on the convolutional neural network and the self-attention mechanism. It is used to output the association score between the spatial position of the power plant and the feature channel according to the input target feature data set.
[0078] The association attention mechanism model can process and analyze the target feature dataset through the combination of convolutional neural network and self-attention mechanism, so as to calculate the association score between the spatial position of the power plant and the feature channel.
[0079] The correlation score indicates the degree of correlation between the spatial location of the power plant and the characteristic channel. A higher correlation score means a stronger correlation between the two, while a lower correlation score means a weaker correlation between the two.
[0080] Feature channels refer to channels of different features in power plant data. Each feature can be represented by a channel, and the channels can be input into the neural network for processing and analysis to extract features related to power plant accidents.
[0081] For example, if the power plant data contains four features such as temperature, pressure, current and voltage, they can be represented by four feature channels respectively, and the feature channels can be used as input and input into the association attention mechanism model for processing and analysis to calculate the association score between the spatial position of the power plant and the feature channel, so as to locate the power plant accident and extract relevant features.
[0082] S140, obtaining a three-dimensional model of the power plant, and establishing an index mapping relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model.
[0083] The three-dimensional model of the power plant can be obtained through laser scanning, modeling software, etc.
[0084] The index mapping relationship can map the spatial position of the power plant and the index of the feature channel, thereby associating the spatial position of the power plant with the feature channel. For example, a three-dimensional model of the power plant can be used to correspond each spatial position of the power plant to its coordinates in the three-dimensional model. At the same time, each feature channel is corresponded to its index in the three-dimensional model.
[0085] By establishing an index mapping relationship, the association between the spatial position of the power plant and the characteristic channel can be realized. In this way, the corresponding spatial position information can be easily obtained according to the index of the characteristic channel, or the corresponding characteristic channel can be obtained according to the index of the spatial position information. This facilitates the location and analysis of power plant accidents, as well as the extraction and visualization of features.
[0086] Figure 3 A schematic diagram of the index mapping provided in this embodiment is shown, wherein standard information refers to the spatial location of the power plant, and non-standard information refers to feature channels, wherein the features corresponding to each feature channel represent a power plant accident (i.e., the event shown in the figure), such as accident tripping, equipment abnormality, etc.
[0087] In addition, this embodiment can also associate the event with the data of the equipment, plant, voltage level, etc. to form a comprehensive event, so as to more intuitively display the location of the power plant accident.
[0088] S150. For each power plant spatial position and characteristic channel, the association score is combined with the corresponding index mapping relationship, and the association relationship between the power plant spatial position and the characteristic channel is established in the three-dimensional model of the power plant.
[0089] This embodiment combines the correlation score with the corresponding index mapping relationship to establish the correlation relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model of the power plant, so as to associate the correlation score with the specific position and characteristic channel, and further determine the location and characteristics of the accident.
[0090] For example, assume that the three-dimensional model of a power plant includes the indexes of each power plant spatial position and each feature channel of the power plant, and the correlation score matrix S between the power plant spatial position and the feature channel is calculated by the correlation attention mechanism model, where S(i,j) represents the correlation score between the i-th power plant spatial position and the j-th feature channel. At the same time, in the three-dimensional model of the power plant, the coordinate corresponding to the i-th spatial position is P(i), and the data index corresponding to the j-th feature channel is C(j).
[0091] Then, the association relationship between the spatial location of the power plant and the characteristic channel can be established by combining the association score and the index mapping relationship:
[0092] For each power plant spatial location i, find the corresponding row S(i,:) in the association score matrix;
[0093] Find the maximum relevance score value in this row, i.e. max(S(i,:));
[0094] Find the column index j corresponding to the maximum correlation score value, that is, j = argmax(S(i,:));
[0095] Find the corresponding feature channel C(j) according to index j;
[0096] The spatial position P(i) of the power plant is associated with the characteristic channel C(j), that is, the association relationship between P(i) and C(j) is established.
[0097] Through the above steps, the correlation score can be associated with the specific spatial position and characteristic channel of the power plant to further determine the location and characteristics of the power plant accident. For example, if the characteristic channel corresponding to the maximum correlation score value at a certain power plant spatial position i is the temperature channel, then it can be determined that the spatial position of the power plant has a strong correlation with the temperature feature, and the location of the power plant accident can be further determined.
[0098] S160, mapping the correlation between the spatial position of the power plant and the characteristic channel into the three-dimensional model of the power plant to obtain the accident position and the corresponding accident characteristics.
[0099] This embodiment can mark the location related to the power plant accident (the spatial location of the power plant) in the three-dimensional model, and visualize the feature channel corresponding to the location, so as to facilitate intuitive observation of the accident location and its corresponding accident characteristics.
[0100] For example, the position index i and the feature channel index j corresponding to the maximum correlation score value may be determined according to the correlation score matrix S. Assume that the position index i=3 and the feature channel index j=2 correspond to the maximum correlation score value.
[0101] According to the position index i=3, the corresponding position P(i) in the three-dimensional model is determined. For example, P(3) represents a specific position in the three-dimensional model of the power plant.
[0102] According to the characteristic channel index j=2, the corresponding characteristic channel C(j) is determined. For example, C(2) represents a characteristic channel in the power plant data, such as a temperature channel.
[0103] The position P(3) and the characteristic channel C(2) are associated, that is, the position P(3) is marked in the 3D model and the data of the temperature channel C(2) is visualized. The temperature anomaly at the position P(3) can be visually observed, thereby determining that the position is the accident position and the temperature is the accident characteristic.
[0104] This embodiment adopts the associative attention mechanism model to establish the association relationship between the spatial position of the power plant and the feature channel, which can accurately locate the accident location and find the feature channel related to the accident. Therefore, the power plant accident location method based on big data can comprehensively utilize different types of power plant data, and adopt feature extraction and associative attention mechanism models, thereby effectively improving the accuracy and efficiency of accident location. At the same time, through the establishment of a three-dimensional model, the accident location and its characteristics can be more intuitively displayed, which is helpful for the intuitive location of power plant accidents.
[0105] In one implementation of this embodiment, big data technology is used to extract features from power plant data to obtain a target feature data set related to power plant accidents, including the following steps:
[0106] S210: Input the image data into a pre-trained neural network model to obtain a first feature.
[0107] In this embodiment, the backbone network structure of the neural network model is a convolutional neural network (CNN). It should be noted that before the image data is input into the neural network model, the image data needs to be preprocessed, including image denoising, cropping, data cleaning and other operations to ensure the quality and accuracy of the image data.
[0108] This embodiment obtains an abstract feature representation of the image, that is, the first feature, by acquiring a feature layer in the middle layer of the convolutional neural network.
[0109] S220: Calculate statistical features according to the sensor data, and use the statistical features as the second features.
[0110] This embodiment uses a statistical method to calculate the sensor data to obtain statistical features (second features). Sensor data may include measurement values of various physical quantities such as temperature, pressure, and current. By performing statistical analysis on the sensor data, statistical features such as average value, variance, maximum value, and minimum value can be extracted to describe the overall characteristics of the sensor data.
[0111] S230: Fusing the first feature with the second feature to obtain a fused feature.
[0112] In this embodiment, the first feature (obtained from the image data) and the second feature (obtained from the statistical features of the sensor data) are subjected to feature fusion. The feature obtained after fusion is called a fusion feature, which integrates the feature information of the image data and the sensor data. The first feature and the second feature can be spliced in a splicing manner to achieve feature fusion.
[0113] S240. For any fused feature, calculate the covariance between it and each power plant accident label one by one, and calculate the first standard deviation of the fused feature and the second standard deviation of the power plant accident label respectively, divide the covariance by the product of the first standard deviation and the second standard deviation, and obtain the correlation between any fused feature and each power plant accident label.
[0114] Power plant accident labels refer to the names of various unexpected events or failures that occur during the operation of a power plant, such as power equipment failure, mechanical equipment failure, pipeline leakage, etc.
[0115] First, the first standard deviation of the fused feature and the second standard deviation of the power plant accident label are calculated respectively. Then, the covariance between the fused feature and each power plant accident label is calculated to obtain the correlation between the fused feature and each power plant accident label. Covariance is used to measure the linear relationship between two variables, and the standard deviation is used to measure the degree of discreteness of the variable. Dividing the covariance by the standard deviation can obtain a normalized correlation value, which is used to measure the degree of correlation between the fused feature and each power plant accident label.
[0116] In order to facilitate calculation, the power plant accident label is a digital code, and the digital code of the power plant accident is unique, and each digital code corresponds to a power plant accident.
[0117] The correlation can be represented by the Pearson correlation coefficient. In this embodiment, the correlation can be calculated using the following formula:
[0118]
[0119] Where, X fusion is the fusion feature, Y is the power plant accident label, corr(X fusion , Y) is the correlation coefficient, cov(X fusion , Y) is the fusion feature X fusion The covariance between the power plant accident label Y, σX fusion is the fusion feature X fusion σY is the standard deviation of the power plant accident label Y.
[0120] Covariance measures the degree of linear relationship between two variables. A positive value indicates a positive correlation, a negative value indicates a negative correlation, and a larger absolute value indicates a stronger correlation. The standard deviation is an indicator of the degree of concentration of a data set and is used to measure the degree of dispersion of the data.
[0121] By calculating the covariance and standard deviation, we can get the Pearson correlation coefficient, which is a value between -1 and 1. If the correlation coefficient is close to 1, it means that the fusion feature X fusionThere is a strong positive correlation between the power plant accident label Y; if the correlation coefficient is close to -1, it means there is a strong negative correlation; if the correlation coefficient is close to 0, it means there is almost no linear relationship between the two.
[0122] S250: taking the fused features corresponding to the correlations greater than a preset correlation threshold as a target feature data set related to the power plant accident.
[0123] If the correlation between one of the fused features and a power plant accident label exceeds the correlation threshold, the fused feature is the target feature related to the power plant accident and is added to the target feature dataset. The target feature dataset can be used for analysis and diagnosis of power plant accidents.
[0124] This embodiment uses big data technology to extract features from power plant data, and can obtain a target feature data set related to power plant accidents to facilitate the analysis of power plant accidents, thereby effectively improving the safety of power plants.
[0125] In one implementation of this embodiment, the associative attention mechanism model includes a CCA (Criss-CrossAttention) module, and the method for constructing the associative attention mechanism model includes the following steps:
[0126] S310. Using the historical power plant image data as an input of a convolutional neural network to obtain a local feature map of the historical power plant image data, wherein the convolutional neural network includes a plurality of convolutional layers and a plurality of pooling layers.
[0127] The historical power plant image data is used as the input of the convolutional neural network, and the local feature map of the historical power plant image data is obtained through multiple convolutional layers and pooling layers. The convolutional neural network can extract local features in the image, and gradually extract more abstract and advanced features through multi-layer convolution and pooling operations.
[0128] S320. Combining the convolutional neural network and the self-attention mechanism, taking the local feature map as input, executing the first step in a loop until a preset number of times is executed, and constructing a CCA module, wherein the CCA module is used to capture global context information.
[0129] The self-attention mechanism is to calculate the attention weight between each position point on the local feature map and other position points, and weight the local feature map according to the attention weight. This helps each position point focus on the features of other position points related to it.
[0130] The CCA module can combine CNN and self-attention mechanism to capture global context information. The attention weight between any two positions in the local feature map can be calculated by cyclically executing the first step. The CCA module can be used together with convolutional layers and fully connected layers as an associated attention mechanism model.
[0131] Specifically, the first step may include:
[0132] S330, calculating the attention weight between any two position points on the local feature map.
[0133] S340. According to the attention weight between any two position points, the feature vectors of all position points on the local feature map are weighted to obtain the updated feature vector of each position point on the local feature map.
[0134] The attention weight between any two position points on the local feature map is used to characterize the relationship between the two position points, which is helpful to capture the correlation between remote position points.
[0135] Each time the first step is performed, the feature vector of each position point in the local feature is updated once. For example, assuming there is a 5×5 feature map, each position point has a feature vector, and the step needs to be repeated twice (R=2).
[0136] In the first execution, for each position point, the attention weight between it and any other position point is calculated, and the feature vectors of all position points are weighted using the calculated attention weight to obtain the updated feature representation.
[0137] In the second execution, the attention weights between each position point and any other position point are calculated again, and the attention weights are used again to update the feature vector of the local feature map.
[0138] By repeatedly executing the first step, the correlation between distant location points can be captured, thereby obtaining more global context information rather than just local information.
[0139] In this embodiment, by executing the first step cyclically, a CCA module-based correlation attention mechanism model can be constructed to capture the global context information of historical power plant image data. The correlation attention mechanism model can take into account the correlation between different position points in the process of fusion feature extraction, thereby improving the feature expression ability and prediction performance.
[0140] In one implementation of this embodiment, the target feature data set includes a target image feature data set and a target sensor feature data set. The target feature data set is input into the association attention mechanism model to obtain the association score between the spatial position of the power plant and the feature channel, including the following steps:
[0141] S410, calculating the first attention weight between any two position points in the target image feature data set.
[0142] S420, obtaining the number of feature channels of the target sensor feature data set, and calculating the second attention weight between any two feature channels.
[0143] The Pearson correlation coefficient may be used as the first attention weight between any two position points. The calculation of the Pearson correlation coefficient has been specifically described in S240 and will not be repeated here.
[0144] In image data, feature channels can represent different color channels or the output of a feature extractor. In text data, feature channels can correspond to different word embeddings or feature encodings. Each feature channel corresponds to a feature dimension, and each spatial location point corresponds to a location.
[0145] S430. Use the first attention weight as the query matrix Q and the second attention weight as the key matrix K.
[0146] In the attention mechanism, the query matrix and the key matrix are used to calculate the attention score to obtain the locations and feature channels with higher attention.
[0147] S440. Use a dot product operation to multiply the query matrix Q and the key matrix K to obtain an attention score matrix.
[0148] The dot product operation multiplies each element in the query matrix and the key matrix by two, and sums the results to obtain a scalar value, namely the attention score matrix.
[0149] S450: Apply the Softmax function to the attention score matrix to obtain the attention weight matrix.
[0150] The Softmax function can convert each element in the attention score matrix into a probability value so that the sum of all probability values is 1.
[0151] S460, multiplying the attention weight matrix by the numerical matrix V of the target image feature data set to obtain the correlation score between the spatial position of the power plant and the feature channel.
[0152] The numerical matrix V is the numerical matrix of the target image feature data set, which contains the feature vectors of each position point and each feature channel. By weighting the attention weight matrix, the association score between each position point and each feature channel can be obtained, thereby obtaining the association relationship between the spatial position of the power plant and the feature channel.
[0153] In summary, the correlation score = Softmax(Q·K T )·V;
[0154] In the formula, the Softmax function is used to calculate the attention weight, Q is the query matrix composed of the first attention weight, and K T is the key matrix composed of the second attention weights, and V is the numerical matrix of the target image feature dataset.
[0155] In this embodiment, since image data usually contains rich visual information and can provide rich feature representations about position information and feature channels, the numerical matrix of the target image feature data set is used as the numerical matrix V.
[0156] This implementation can input the target feature data set into the association attention mechanism model to obtain the association score between the spatial position of the power plant and the feature channel, which is conducive to understanding the association relationship between the spatial position of the power plant and the feature channel, thereby more accurately predicting power plant accidents and accident locations.
[0157] In one implementation of this embodiment, calculating the second attention weight between any two feature channels includes the following steps:
[0158] S510: Calculate the second attention weight between any two feature channels using the feature channel attention weight calculation formula.
[0159] Among them, the feature channel attention weight calculation formula includes:
[0160]
[0161] In the formula, X is the target feature dataset, Q is the query matrix of the target feature dataset, K is the key matrix of the target feature dataset, V is the numerical matrix of the target feature dataset, and d k is the dimension of the second attention weight.
[0162] The dimension of the target feature data set in this embodiment is N×C×H×W, where N is the number of samples, C is the number of feature channels, and H and W are the height and width of the data, respectively.
[0163] Specifically, the query matrix Q, the key matrix K and the value matrix V can be obtained by performing a linear transformation on the target feature data set.
[0164] This implementation can use the attention mechanism to capture the correlation between feature channels, so as to better understand the relationship between different feature channels in the input data and effectively improve the representation ability and prediction performance of the associated attention mechanism model.
[0165] In one implementation of this embodiment, establishing an index mapping relationship between a power plant spatial position and a characteristic channel in a three-dimensional model includes the following steps:
[0166] S610. Allocate a unique first index to each spatial location of the power plant.
[0167] For each spatial location (eg, different areas) in the power plant, a unique first index is allocated to uniquely identify the location.
[0168] S620. Allocate a unique second index to each feature channel.
[0169] For each characteristic channel (eg, different measurement indicators) in the power plant, a unique second index is allocated to uniquely identify the characteristic channel.
[0170] S630. Create a mapping table, the mapping table including n entries, each entry including a first index and corresponding m second indexes, m is a positive integer, and each entry is used to characterize the index mapping relationship between a spatial position of a power plant and a corresponding characteristic channel.
[0171] Each entry is a key-value pair, where the key is the first index of the spatial location of the power plant and the value is the second index of the m feature channels associated with the location.
[0172] Indexes can be numbers, strings, or other forms that allow for unique identification within a model.
[0173] This embodiment can establish an index mapping relationship between the spatial position of a power plant and the characteristic channel in a three-dimensional model, so as to facilitate the search for the second index of the characteristic channel related to the position through the first index of the spatial position of the power plant, thereby realizing the query and operation of the association relationship between the spatial position of the power plant and the characteristic channel.
[0174] In one implementation of this embodiment, establishing an association relationship between a spatial position of a power plant and a characteristic channel in a three-dimensional model of the power plant includes the following steps:
[0175] S710: Perform a first mark on the spatial position of the power plant in the index mapping relationship, and perform a second mark on the characteristic channel in the index mapping relationship.
[0176] S720: Use a connection symbol to connect the first mark and the second mark.
[0177] S730. In response to a click operation on a connection symbol, a correlation score corresponding to the connection symbol is displayed, wherein the correlation score is used to characterize the correlation relationship between the spatial position of the power plant and the characteristic channel.
[0178] In the three-dimensional model, different tags are assigned to each spatial position and each characteristic channel of the power plant for association operation. Specifically, a connection symbol can be used to connect the first tag with the second tag. The connection symbol can be an arrow, a line segment or other symbol, which is used to indicate the association relationship between the spatial position of the power plant and the characteristic channel. Through the connection symbol, the association between the spatial position of the power plant and the characteristic channel can be displayed in the three-dimensional model.
[0179] The correlation score is used to characterize the strength or importance of the correlation relationship between the power plant spatial location and the characteristic channel. By clicking the connection symbol, the correlation score between the power plant spatial location and the characteristic channel can be displayed in the 3D model.
[0180] In this embodiment, marks or specific colors can be used to represent the spatial position and characteristic channel of each power plant to distinguish them in the three-dimensional model, and connecting symbols can be used to represent the association relationship between the spatial position and characteristic channel of each power plant, and the association score can be displayed in the three-dimensional model, and the association strength can be represented by color depth, line thickness or other methods.
[0181] For example, in the three-dimensional model of the power plant, there is a location A whose first index is "location A", and the corresponding feature channel 1 has a second index of 1. Assume that the correlation score is 0.8, indicating that the correlation between location A and feature channel 1 is strong.
[0182] This implementation manner establishes an association relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model of the power plant, which can provide an intuitive visual representation and facilitate accident location.
[0183] In summary, the power plant accident location method based on big data provided in this embodiment is illustrated by way of example:
[0184] Assume there is a 3D model of a power plant, which contains the following information:
[0185] Spatial location information of the power plant: location A, location B, location C, etc.
[0186] Feature channels: temperature features, pressure features, humidity features, etc.
[0187] Correlation: Position A is strongly correlated with temperature characteristics, position B is strongly correlated with humidity characteristics, and position C is weakly correlated with pressure characteristics.
[0188] In the 3D model, the accident location and corresponding accident characteristics can be displayed in the following ways:
[0189] S1. Mark the spatial position and characteristic channels of the power plant: Use different marks or colors to represent position A, position B, position C, as well as temperature characteristics, pressure characteristics, humidity characteristics, etc. in the three-dimensional model.
[0190] S2. Mark the connection relationship: Use lines or other connection symbols to connect the position information with the feature channel to indicate the association between the two.
[0191] S3. Show association strength: Indicate the strength of the association through line thickness, color depth or other methods. For example, a stronger association can be represented by a thick line, while a weaker association can be represented by a thin line.
[0192] S4. Identify the accident location and corresponding features: Based on the association relationship, the accident location and the corresponding accident features can be quickly identified. For example, if the accident occurs at location A, and a temperature feature that is strongly associated with location A can be seen on the 3D model, the accident feature that may be related to temperature can be determined.
[0193] Through the above method, the correlation between the spatial position of the power plant and the characteristic channels can be clearly displayed in the three-dimensional model, which helps to quickly locate the accident location and the corresponding accident characteristics, thereby facilitating effective fault diagnosis and repair.
[0194] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0195] In this embodiment, a power plant accident location device based on big data is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0196] Figure 3 is a structural block diagram of a power plant accident location device based on big data according to an embodiment of the present invention, such as Figure 3 As shown, the device comprises:
[0197] A collection module, used for collecting power plant data in real time, wherein the power plant data includes image data and sensor data;
[0198] A feature extraction module is used to extract features from power plant data using big data technology to obtain a target feature data set related to power plant accidents;
[0199] An input module is used to input the target feature data set into the association attention mechanism model to obtain the association score between the spatial position of the power plant and the feature channel, wherein the association attention mechanism model is constructed based on a convolutional neural network and a self-attention mechanism;
[0200] An index mapping establishment module is used to obtain a three-dimensional model of the power plant and establish an index mapping relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model;
[0201] A combination module is used to combine the association score with the corresponding index mapping relationship for each power plant spatial position and characteristic channel, and establish the association relationship between the power plant spatial position and the characteristic channel in the three-dimensional model of the power plant;
[0202] The accident location module is used to map the correlation between the spatial position of the power plant and the characteristic channel into the three-dimensional model of the power plant to obtain the accident location and the corresponding accident characteristics.
[0203] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0204] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0205] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0206] An embodiment of the present invention further provides a power plant accident location system based on big data, comprising:
[0207] The above-mentioned power plant accident location device based on big data; and
[0208] The computer-readable storage medium described above.
[0209] In an exemplary embodiment, the above-mentioned power plant accident location system based on big data may also include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
[0210] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0211] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0212] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present invention shall be included in the protection scope of the present invention.
Claims
1. A power plant accident location method based on big data, characterized in that: include: Collect power plant data in real time, wherein the power plant data includes image data and sensor data; Using big data technology to extract features from the power plant data to obtain a target feature data set related to the power plant accident; Inputting the target feature data set into an association attention mechanism model to obtain an association score between the spatial position of the power plant and the feature channel, wherein the association attention mechanism model is constructed based on a convolutional neural network and a self-attention mechanism; Acquire a three-dimensional model of the power plant, and establish an index mapping relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model; For each of the power plant spatial positions and the characteristic channels, combining the association score with the corresponding index mapping relationship, and establishing an association relationship between the power plant spatial position and the characteristic channel in the three-dimensional model of the power plant; The correlation relationship between the spatial position of the power plant and the characteristic channel is mapped into the three-dimensional model of the power plant to obtain the accident position and the corresponding accident characteristics.
2. The method according to claim 1, characterized in that The method of using big data technology to extract features from the power plant data to obtain a target feature data set related to power plant accidents includes: Inputting the image data into a pre-trained neural network model to obtain a first feature; Calculate a statistical feature based on the sensor data, and use the statistical feature as a second feature; Fusing the first feature with the second feature to obtain a fused feature; For any one of the fused features, the covariance between the fused features and each power plant accident label is calculated one by one, and the first standard deviation of the fused feature and the second standard deviation of the power plant accident label are calculated respectively, and the covariance is divided by the product of the first standard deviation and the second standard deviation to obtain the correlation between any one of the fused features and each of the power plant accident labels; The fused features corresponding to the correlations greater than a preset correlation threshold are used as a target feature data set related to the power plant accident.
3. The method according to claim 1, characterized in that The association attention mechanism model includes a CCA module, and the construction method of the association attention mechanism model includes: Using the historical power plant image data as an input of a convolutional neural network to obtain a local feature map of the historical power plant image data, wherein the convolutional neural network includes a plurality of convolutional layers and a plurality of pooling layers; Combining the convolutional neural network and the self-attention mechanism, taking the local feature map as input, cyclically executing the first step until a preset number of times are executed, and constructing the CCA module, wherein the CCA module is used to capture global context information; The first step comprises: Calculating the attention weight between any two position points on the local feature map; According to the attention weight between any two position points, the feature vectors of all position points on the local feature map are weighted to obtain the updated feature vector of each position point on the local feature map.
4. The method according to claim 3, characterized in that The target feature data set includes a target image feature data set and a target sensor feature data set. The target feature data set is input into the association attention mechanism model to obtain the association score between the spatial position of the power plant and the feature channel, including: Calculating a first attention weight between any two position points in the target image feature data set; Obtain the number of feature channels of the target sensor feature data set, and calculate the second attention weight between any two feature channels; Using the first attention weight as the query matrix Q and the second attention weight as the key matrix K; Multiply the query matrix Q by the key matrix K using a dot product operation to obtain an attention score matrix; Applying the Softmax function to the attention score matrix to obtain an attention weight matrix; The attention weight matrix is multiplied by the numerical matrix V of the target image feature data set to obtain the association score between the spatial position of the power plant and the feature channel.
5. The method according to claim 4, characterized in that The calculating the second attention weight between any two feature channels includes: The feature channel attention weight calculation formula is used to calculate the second attention weight between any two feature channels; The characteristic channel attention weight calculation formula includes: Where X is the target feature dataset, Q is the query matrix of the target feature dataset, K is the key matrix of the target feature dataset, V is the numerical matrix of the target feature dataset, and d k is the dimension of the second attention weight.
6. The method according to claim 1, characterized in that The establishing of the index mapping relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model includes: Assigning a unique first index to each of the power plant spatial locations; Allocating a unique second index to each of the feature channels; A mapping table is created, wherein the mapping table includes n entries, each entry includes a first index and corresponding m second indexes, where m is a positive integer, and each entry is used to characterize an index mapping relationship between a spatial position of the power plant and the corresponding characteristic channel.
7. The method according to claim 1, characterized in that The establishing of the association relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model of the power plant includes: Performing a first mark on the spatial position of the power plant in the index mapping relationship, and performing a second mark on the characteristic channel in the index mapping relationship; Connecting the first mark and the second mark using a connection symbol; In response to a click operation on the connection symbol, a correlation score corresponding to the connection symbol is displayed, wherein the correlation score is used to characterize the correlation relationship between the spatial position of the power plant and the characteristic channel.
8. A power plant accident location device based on big data, characterized in that: include: A collection module, used for collecting power plant data in real time, wherein the power plant data includes image data and sensor data; A feature extraction module, used to extract features from the power plant data using big data technology to obtain a target feature data set related to the power plant accident; An input module, used for inputting the target feature data set into an association attention mechanism model to obtain an association score between the spatial position of the power plant and the feature channel, wherein the association attention mechanism model is constructed based on a convolutional neural network and a self-attention mechanism; An index mapping establishment module, used to obtain a three-dimensional model of the power plant and establish an index mapping relationship between the spatial position of the power plant and the characteristic channel in the three-dimensional model; A combining module, for combining the association score with the corresponding index mapping relationship for each of the power plant spatial position and the characteristic channel, and establishing an association relationship between the power plant spatial position and the characteristic channel in the three-dimensional model of the power plant; The accident location module is used to map the correlation between the spatial position of the power plant and the characteristic channel into the three-dimensional model of the power plant to obtain the accident location and the corresponding accident characteristics.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
10. A power plant accident location system based on big data, characterized in that: include: A power plant accident location device based on big data according to claim 8; as well as A computer readable storage medium according to claim 9.
Citation Information
Patent Citations
Intelligent manufacturing equipment fault prediction method based on three gated towers
CN113626597A
Global self-attention target detection method combining channel space attention
CN114519807A
Edible mushroom infectious microbe detection method based on attention multi-source feature fusion
CN116824205A
Island photovoltaic operation and maintenance fault reason analysis method and system based on multi-modal data
CN117520924A
Tropical instability wave early warning method and device based on temporal-spatial cross-scale attention fusion
US20230400301A1
