Digital twin image data transmission and safety control method and system in power transformation engineering

Image block processing and ABAC access control combined with the MQTT protocol and WSO2 identity authentication server solve the challenges of multimedia data transmission and security control of digital twin technology in power substation projects, achieving efficient image data transmission and security management. Improved the ability to identify construction progress and safety risks.

CN118784693AActive Publication Date: 2024-10-15STATE GRID JIANGSU ELECTRIC POWER CO LTD NANJING POWER SUPPLY COMPANY +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410922543.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-15
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing digital twin technology in power substation projects is difficult to effectively process and transmit large amounts of multimedia data, especially video, image and audio data, and lacks a systematic security control mechanism, which limits its application breadth and efficiency.

Method used

Using the MQTT protocol combined with the WSO2 application server and WSO2 identity authentication server, through image block processing, linear interpolation segmentation algorithm and BASE64 encoding and decoding, high compression ratio transmission of image data is achieved, and secure transmission is provided through the ABAC access control mechanism to establish an attribute-based Access control to ensure the security of data transmission.

Benefits of technology

It achieves high compression ratio transmission and security control of image data, reduces the deployment of sensors on the construction site, enhances construction progress management and security risk identification capabilities, makes up for the shortcomings of the traditional MQTT protocol in security risks, and provides higher data transmission security and management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784693A_ABST
    Figure CN118784693A_ABST
Patent Text Reader

Abstract

The invention discloses a digital twin image data transmission and safety control method and system in power transformation engineering. The method comprises the following steps: step 1, acquiring construction site equipment data and image data at fixed time and fixed point through a sensor and a camera; step 2, processing the acquired data based on an MQTT protocol network, compressing the image data volume, encoding and transmitting to an MQTT server; and step 3, receiving and decoding the data subjected to secure coding, setting an ABAC and encrypted channel-based MQTT server, combining with a digital twinborn scene and construction site data, performing identity and authorization management secure transmission and remote control data by using a WSO2 application server and a WSO2 identity authentication server, and visualizing a production operation and maintenance scene. High-compression-ratio image data transmission based on the MQTT protocol is realized, so that the arrangement requirements of field sensors are reduced. And an attribute-based access control authorization technology is adopted, so that the security is enhanced, and intrusion data leakage of illegal clients is prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of Internet of Things communication technology, and more specifically, relates to a method and system for digital twin image data transmission and safety control in a substation project. Background Art

[0002] Digital twin technology has shown great potential in the fields of industry, manufacturing, and energy. By building digital copies of physical systems, it realizes the virtualization of physical systems and provides important tools for real-time monitoring, simulation, and predictive optimization. However, although digital twin technology has brought significant progress in data acquisition, real-time analysis, and control, it still faces challenges in processing large amounts of data, especially multimedia data transmission such as video, images, and audio. Although the current IoT communication protocol is suitable for communication between devices in a restricted environment, it has limited support for multimedia data transmission with large amounts of data and high bandwidth requirements, which limits the application breadth and efficiency of digital twin technology when it comes to large-scale image and video data processing.

[0003] As a commonly used IoT communication protocol, MQTT has a simple design, low operation and maintenance costs, adapts to the influence of low bandwidth, high latency and unstable network environment, and flexibly sets the type and format of transmitted data. It is suitable for communication between IoT smart devices in restricted environments. However, the MQTT protocol has great limitations on the transmission of large amounts of data, such as the transmission of video, image, audio and other data.

[0004] In the field of digital twin technology for power engineering infrastructure, in addition to real-time data collection of physical targets such as equipment and personnel on site of infrastructure projects, it is also necessary to collect, transmit and process multimedia data such as video, images and audio. However, the MQTT protocol does not support multimedia data transmission with large amounts of data.

[0005] Prior art document 1 (CN112887429A) discloses a method, device, electronic device and storage medium for data transmission. The method is executed by a sender terminal device, including: receiving a network message sent by an MQTT service background, determining the current network status of the sender terminal device according to the network message; judging whether the size of the original data in the original data queue exceeds a preset data threshold, and if so, compressing the original data according to the current network status to obtain compressed data; sending the compressed data to the MQTT service background, so that the MQTT service background can determine the current network status of the sender terminal device according to the sending time and receiving time of the compressed data, and writing the current network status into the network message and sending it to the sender terminal device.

[0006] The shortcomings of the prior art document 1 are that the compression method and compression algorithm are not clearly stated; there is no systematic security control mechanism, including permission control, encrypted channel and other solutions; it cannot be applied to the processing of image files and cannot compress and transmit continuous image files. Summary of the invention

[0007] In order to solve the deficiencies in the prior art, the present invention provides a method and system for digital twin image data transmission and safety control in a substation project, which overcomes the defects in real-time and reliability of image information transmission in the prior art.

[0008] The present invention adopts the following technical solution.

[0009] A first aspect of the present invention provides a method for transmitting and safely controlling digital twin image data in a substation project, comprising the following steps:

[0010] Step 1: Collect construction site equipment data and image data at fixed points and at fixed times through sensors and cameras;

[0011] Step 2: Process the collected data based on the MQTT protocol network, compress the image data volume, and encode and transmit it to the MQTT server;

[0012] Step 3: Receive and decode securely encoded data, set up an MQTT server based on ABAC and encrypted channels to combine digital twin scenarios with construction site data, use WSO2 application servers and WSO2 identity authentication servers to perform identity and authorization management, securely transmit and remotely control data, and visualize production and operation scenarios.

[0013] Preferably, in step 1, the data is divided into two categories: sensor data and image data; the transmission mode adopted includes 4G, 5G, serial communication and WiFi; and it is used for virtual-real linkage of digital twin platform;

[0014] The sensor data is directly transmitted to the intelligent hardware gateway, and then sent to the MQTT Broker after preliminary encoding processing;

[0015] Image data is collected regularly by fixed-point cameras and transmitted to the intelligent hardware gateway for processing, cleaning and handling.

[0016] Preferably, in step 2, the data processing includes image data processing and sensor data processing;

[0017] Image data processing specifically includes the following steps:

[0018] Perform image block processing on the collected complete image data, and decompose the large image into small sub-image blocks;

[0019] Applying a linear interpolation block segmentation algorithm to each sub-image block to smoothly segment the image;

[0020] The image data after the above processing is encoded and decoded by BASE64 to convert the invisible characters into visible characters.

[0021] Preferably, the image block processing includes decomposing the complete image into sub-images of N rows and M columns, and the sub-images overlap or connect with each other.

[0022] Preferably, the linear interpolation block segmentation algorithm specifically includes the following steps:

[0023] Calculate the global threshold: Use the maximum inter-class variance method to calculate the global threshold of each sub-image block;

[0024] Interpolation: Linear interpolation is performed between adjacent sub-image blocks according to the optimal segmentation threshold to achieve a smooth transition.

[0025] Preferably, the maximum inter-class variance method specifically includes the following steps:

[0026] Assume that the number of pixels with gray value i in the image is n, and the total number of pixels is as follows:

[0027]

[0028] Where:

[0029] L-1 represents the maximum gray level of the image;

[0030] The probability formula for each gray value is as follows:

[0031] and

[0032] Assume that the segmentation threshold is t, and the image is divided into two parts according to the grayscale, including the target part and the background part; the grayscale of the target part is A = {0, 1, ..., t}, and the grayscale of the background part is B = {t+1, t+2, ..., L-1}. The probability formulas of the two parts are as follows:

[0033]

[0034] The grayscale mean formulas of parts A and B are as follows:

[0035]

[0036] The total grayscale mean formula of the image is as follows:

[0037] u=P A u A +P B u B

[0038] The inter-class variance formula of parts A and B is as follows:

[0039] σ 2 =P A (u A -u) 2 +P B (u B -u) 2

[0040] Where:

[0041] (u A -u) 2 Indicates the degree of deviation between the grayscale mean of the target part and the grayscale mean of the entire image;

[0042] (u B -u) 2 Indicates the degree of discreteness of the background part relative to the grayscale mean of the entire image;

[0043] Traversing t from the minimum grayscale value to the maximum grayscale value, when t maximizes the inter-class variance formula of parts A and B, t is the optimal threshold for segmentation, and the formula is as follows:

[0044] t=ArgMax 0≤t≤L-1 σ 2 (t)

[0045] σ 2 (t) = P A (t)(u A (t)-u) 2 +P B (t)(u B (t)-u) 2

[0046] Where:

[0047] t represents the segmentation threshold, which is used to divide the image gray level into the target part and the background part;

[0048] ArgMax 0≤t≤L-1 It means to find the value of t in the range 0≤t≤L-1 such that σ 2 to the maximum value;

[0049] P A (t) represents the probability of the target part (grayscale range is 0, 1,…, t);

[0050] u A (t) represents the grayscale mean of the target part;

[0051] P B(t) represents the probability of the background part (grayscale range is t+1, t+2,…, L-1);

[0052] u B (t) represents the grayscale mean of the background part;

[0053] u represents the grayscale mean of the entire image.

[0054] Preferably, the interpolation includes threshold interpolation between each sub-image block by linear interpolation. Assuming that the thresholds of the four adjacent areas are T1, T2, T3, and T4, respectively, the directions of linear interpolation between adjacent thresholds are T1→T2, T1→T3, T2→T4, and T3→T4. After interpolation, there is a smooth transition between adjacent thresholds.

[0055] Preferably, in step 3, access control is established on entity attributes rather than user identity based on ABAC. In the ABAC model, access rights are granted based on attributes provided by the subject, and both the subject and the object are identified by attributes related to the feature.

[0056] Preferably, in step 3, the MQTT server based on ABAC access control capability includes an MQTT client, a WSO2 application server, a WOSO2 identity authentication server and an MQTT server;

[0057] The MQTT client establishes a data transmission channel with the MQTT server through the topic subscription and publishing methods. Before subscribing and publishing, it is necessary to establish a connection with the server. After applying for connection CONNECT and obtaining confirmation from the server, the client starts to subscribe to and publish topics.

[0058] The WSO2 application server is used to intercept the connection request sent by the client in the MQTT communication and check the client's specific authorization;

[0059] The WOSO2 authentication server is used to support the identity and authorization management server of OpenID and XACML. The policy decision point PDP is used to store attribute-based policies and check the authorization of requests to enter specific applications. Through the policy check mechanism, the authorization status of the client applying for connection is obtained and sent to the MQTT server.

[0060] The MQTT server's communication based on MQTT is to forward and store messages through the broker by publishing and subscribing to topics. The PEP in the application server captures the request sent by the MQTT user and forwards it to the policy decision point PDP of the identity server for policy matching to decide whether to authorize the MQTT client's request.

[0061] A second aspect of the present invention provides a digital twin image data transmission and safety control system in a substation project, including: a data acquisition module, a data processing and transmission module, and a data management and visualization module;

[0062] The data acquisition module is used to collect various data from the construction site through sensors and cameras, and transmit it to the intelligent hardware gateway after preliminary processing;

[0063] The data processing and transmission module is used to clean, compress and encode data in the intelligent hardware gateway and transmit it through the MQTT Broker;

[0064] The data management and visualization module is used to integrate and map field data on the digital twin platform, visualize and command construction progress, safety management and remote monitoring.

[0065] Compared with the prior art, the beneficial effects of the present invention include at least:

[0066] (1) High compression ratio transmission of image data based on MQTT protocol network is realized. A data transmission control solution is provided for the virtual-real synchronization of digital twin of substation infrastructure construction progress.

[0067] (2) The present invention can greatly reduce the layout of sensors on the construction site, especially in the process of construction progress management, the dynamic physical entity cannot be solved by setting fixed sensors to synchronize the digital twin. Through fixed-point and timed image acquisition and transmission, the back-end can realize the management of construction progress, safety risk identification and other functions through image recognition technology, and realize virtual-real linkage.

[0068] (3) Through the small-scale attribute-based access control authorization technology, the traditional MQTT protocol makes up for the security risk of no authorization mechanism in the state of multi-client asynchronous communication. It prevents illegal clients from invading the IoT system and causing data leakage or management risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 It is a flow chart of digital twin image data transmission and safety control in substation engineering provided by the present invention;

[0070] Figure 2 It is a digital twin data transmission control logic diagram provided by the present invention;

[0071] Figure 3 It is a diagram of the intelligent gateway architecture provided according to an embodiment of the present invention;

[0072] Figure 4 is a schematic diagram of the linear interpolation direction of adjacent thresholds provided according to an embodiment of the present invention;

[0073] Figure 5 It is a diagram of the MQTT protocol model provided according to an embodiment of the present invention;

[0074] Figure 6 It is a diagram of the MQTT protocol model based on ABAC access control capability provided in accordance with an embodiment of the present invention. DETAILED DESCRIPTION

[0075] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only part of the embodiments of the present invention, not all of them. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.

[0076] like Figure 1 As shown, embodiment 1 of the present invention provides a method for digital twin image data transmission and safety control in a substation project, comprising the following steps:

[0077] Step 1: Collect construction site equipment data and image data through sensors and cameras;

[0078] Preferably, in step 1, the data is divided into two categories: sensor data and image data; the transmission mode adopted includes 4G and 5G, serial communication and WiFi; and it is used for virtual-real linkage of digital twin platform;

[0079] The sensor data is directly transmitted to the intelligent hardware gateway, and then sent to the MQTT Broker (MQTT message server) after preliminary encoding processing;

[0080] Image data is collected regularly by fixed-point cameras and transmitted to the intelligent hardware gateway for processing, cleaning and processing. The image data needs to be processed, cleaned and processed before being sent to the MQTT Broker (MQTT message server).

[0081] Step 2: Process the collected data, compress the image data, and encode and transmit it to the MQTT (Message Queuing Telemetry Transport) server;

[0082] Preferably, in step 2, the image acquisition method of the infrastructure construction site is to use a fixed-point high-definition camera to take photos and collect them at fixed times, which is used for the virtual-real linkage of the digital twin platform, thereby realizing the functions of on-site construction progress, safe construction management, construction operation, etc. Since the amount of data collected by a single image is large, but the difference between the data of the two images before and after is small, the present invention adopts an image block segmentation algorithm based on linear interpolation to perform a method of differential transmission of images, which greatly compresses the amount of data transmitted by the image while ensuring that the image clarity is not distorted and the data is not lost;

[0083] The significant difference between the present invention and the prior art is that the trigger mechanism for compressing data is different. The prior art determines whether the size of the original data in the original data queue exceeds a preset data threshold. If so, the original data is compressed according to the current network status to obtain compressed data; while the present invention compares two static pictures obtained continuously before and after, continuously compresses the image data, has no threshold concept, and has a very high compression ratio.

[0084] The data processing includes image data processing and sensor data processing;

[0085] Image data processing specifically includes the following steps:

[0086] The collected complete image data is processed in blocks, and the large image is decomposed into small sub-image blocks;

[0087] Applying a linear interpolation block segmentation algorithm to each sub-image block to smoothly segment the image;

[0088] The image data after the above processing is encoded and decoded by BASE64 to convert the invisible characters into visible characters.

[0089] Preferably, the image segmentation process includes decomposing the complete image into N rows and M columns of sub-images, where the sub-images overlap or connect with each other. By segmenting the complete image into relatively small sub-images and segmenting them separately, the influence of shadows, lighting and complex background in the image on image segmentation can be significantly reduced.

[0090] Preferably, the linear interpolation block segmentation algorithm specifically includes the following steps:

[0091] Calculate the global threshold: Use the maximum inter-class variance method to calculate the global threshold of each sub-image block;

[0092] Interpolation: Linear interpolation is performed between adjacent sub-image blocks according to the optimal segmentation threshold to achieve a smooth transition.

[0093] Preferably, the maximum inter-class variance method specifically includes the following steps:

[0094] Assume that the number of pixels with gray value i in the image is n, and the total number of pixels is as follows:

[0095]

[0096] Where:

[0097] L-1 represents the maximum gray level of the image;

[0098] The probability formula for each gray value is as follows:

[0099] and

[0100] Assume that the segmentation threshold is t, and the image is divided into two parts according to the grayscale, including the target part and the background part; the grayscale of the target part is A = {0, 1, ..., t}, and the grayscale of the background part is B = {t+1, t+2, ..., L-1}. The probability formulas of the two parts are as follows:

[0101]

[0102] The grayscale mean formulas of parts A and B are as follows:

[0103]

[0104] The total grayscale mean formula of the image is as follows:

[0105] u=P A u A +P B u B

[0106] The inter-class variance formula of parts A and B is as follows:

[0107] σ 2 =P A (u A -u) 2 +P B (u B -u) 2

[0108] Traversing t from the minimum grayscale value to the maximum grayscale value, when t maximizes the inter-class variance formula of parts A and B, t is the optimal threshold for segmentation, and the formula is as follows:

[0109] t=ArgMax 0≤t≤L-1 σ 2 (t)

[0110] σ 2 (t) = P A (t)(u A (t)-u)2 +P B (t)(u B (t)-u) 2

[0111] Where:

[0112] t represents the segmentation threshold, which is used to divide the image gray level into the target part and the background part;

[0113] Argmax 0≤t≤L-1 It means to find the value of t in the range 0≤t≤L-1 such that σ 2 to the maximum value;

[0114] P A (t) represents the probability of the target part (grayscale range is 0, 1, ..., t);

[0115] u A (t) represents the grayscale mean of the target part;

[0116] P B (t) represents the probability of the background part (grayscale range is t+1, t+2, ..., L-1);

[0117] u B (t) represents the grayscale mean of the background part;

[0118] u represents the grayscale mean of the entire image.

[0119] Preferably, the interpolation includes performing threshold interpolation between sub-image blocks by linear interpolation in order to make the transition between the sub-images smooth. Assuming that the thresholds of the four adjacent regions are T1, T2, T3, and T4, the directions of linear interpolation between adjacent thresholds are T1→T2, T1→T3, T2→T4, and T3→T4. Figure 4 As shown, after interpolation, there is a smooth transition between adjacent thresholds.

[0120] The significant difference between the present invention and the prior art is that the prior art mainly targets the processing of audio data, such as compression, transmission, and storage; while the present invention mainly targets the processing of continuous static images, such as compression, transmission, and storage.

[0121] The significant difference between the present invention and the prior art lies in the different compression methods. The prior art does not clearly explain the compression method and compression algorithm; while the present invention elaborates on the compression transmission algorithm of continuous images: adopts an image block segmentation algorithm based on linear interpolation, extracts image feature values, divides two consecutive images into small images for comparison, and only transmits images of areas where the difference in regional pixel feature values ​​exceeds a threshold, and describes the image segmentation method in detail.

[0122] The beneficial effect achieved by the present invention over the prior art is that the present invention has superior effect advantages over the prior art in terms of data compression ratio, transmission security control mechanism, data file restoration and feature extraction, etc. for the MQTT protocol-based network transmission of continuous images. The prior art cannot be applied to the processing of image files and cannot compress and transmit continuous image files.

[0123] Preferably, BASE64 encoding and decoding: BASE64 converts invisible characters into visible characters to reduce errors caused by communication transmission. The complexity of the BASE64 algorithm is small and the efficiency is relatively high, but the security of BASE64 encoding is low. The image encoding reference code is as follows:

[0124] import base64

[0125] defiimgToBase64(url):#BASE64 encode the image file

[0126] image_base64=""

[0127] with open(url,'rb')as f:

[0128] image_base64=base64.b64encode(f.read())

[0129] return image_base64

[0130] def Base64ToImg(image_base64):#Convert BASE64 code to image file

[0131] data_Image=base64.b64decode(image_base64)

[0132] with open('rec.jpg','wb')as file:

[0133] file.write(data_Image)

[0134] It is understandable that the MQTT protocol is lightweight and efficient, has a high compression ratio and low latency. It performs many-to-many messaging through a publish / subscribe model, supports multiple quality levels (QoS), and provides persistent sessions, retained messages, and will messages. It also has a flexible topic structure and strong security, and can achieve high compression ratio transmission.

[0135] Step 3: Receive and decode the securely encoded data, establish an MQTT server based on ABAC (Attribute-Based Access Control), and effectively combine the digital twin-based scenario with the production data, equipment online monitoring data, and on-site construction progress image monitoring data collected at the infrastructure construction site, including construction operation, construction management, and safety and environmental protection information monitoring visualization, which can realize remote construction progress monitoring, safety management, command and dispatch, and realize the visualization of production and operation scenarios.

[0136] Preferably, traditional MQTT protocol data is transmitted in an unencrypted manner, and the identity confirmation of subscribers is based on the subscription method, which has a large granularity and cannot be used for refined permission control. Unlike traditional methods, ABAC establishes access control based on entity attributes rather than user identity. In the ABAC model, access rights are granted based on the attributes provided by the subject, and both the subject and the object are identified by attributes related to the characteristics.

[0137] Preferably, if Figure 6 As shown, in step 3, the MQTT server based on ABAC access control capability includes an MQTT client, a WSO2 application server, a WOSO2 identity authentication server and an MQTT server;

[0138] The MQTT client establishes a data transmission channel with the MQTT server through the topic subscription and publishing methods. Before subscribing and publishing, it is necessary to establish a connection with the server. After applying for connection CONNECT and obtaining confirmation from the server, the client starts to subscribe to and publish topics.

[0139] The WSO2 application server is used to intercept the connection request sent by the client in the MQTT communication and check the client's specific authorization;

[0140] The WOSO2 authentication server is used to support the identity and authorization management server of OpenID and XACML. The policy decision point PDP is used to store attribute-based policies and check the authorization of requests to enter specific applications. Through the policy check mechanism, the authorization status of the client applying for connection is obtained and sent to the MQTT server.

[0141] The MQTT server's communication based on MQTT is to forward and store messages through the broker by publishing and subscribing to topics. The PEP in the application server captures the request sent by the MQTT user and forwards it to the policy decision point PDP of the identity server for policy matching to decide whether to authorize the MQTT client's request.

[0142] The significant difference between the present invention and the prior art is that the security control mechanism is different. The prior art does not have a systematic security control mechanism, including solutions such as permission control and encrypted channels. The present invention is based on the ABAC security control strategy, which establishes access control on entity attributes rather than a system-level security control mechanism based on user identity. The security level is higher, the permission control is more flexible, and the adaptability is wider.

[0143] The beneficial effect achieved by the present invention over the prior art is that the present invention has a superior effect in terms of security control based on the MQTT network compared to the prior art. The ABAC access control scheme based on the MQTT protocol proposed by the present invention is to design an access control implementation mechanism on the MQTT protocol, without modifying the MQTT message agent or client, and can be smoothly integrated into any network deployment based on the MQTT protocol; the scheme selects the ABAC access control model because of its excellent flexibility and the dynamic and context-aware characteristics of the supported policies, which is very adaptable to dynamic environmental characteristics and reduces system overhead.

[0144] Example 2 of the present invention provides a digital twin image data transmission and safety control system in a substation project, including: a data acquisition module, a data processing and transmission module, and a data management and visualization module;

[0145] The data acquisition module is used to collect various data from the construction site through sensors and cameras, and transmit it to the intelligent hardware gateway after preliminary processing;

[0146] The data processing and transmission module is used to clean, compress and encode data in the intelligent hardware gateway and transmit it through the MQTT Broker;

[0147] The data management and visualization module is used to integrate and map field data on the digital twin platform, visualize and command construction progress, safety management and remote monitoring.

[0148] like Figure 2 As shown, Embodiment 3 of the present invention provides a digital twin data transmission control logic, which shows the data processing and transmission process from the physical entity scene to the digital twin: the physical sensor and image acquisition device collect data, perform preliminary processing through the intelligent edge computing gateway, and then use the MQTT protocol to transmit the data to the MQTT server (broker). The MQTT server receives and manages the data, and finally transmits it to the digital twin platform for further processing and analysis to generate a digital twin that reflects the state of the physical world in real time.

[0149] like Figure 3As shown, Embodiment 4 of the present invention provides an intelligent hardware gateway, which mainly collects equipment data at the construction site and performs cleaning, processing and storage. After the data acquisition module, data processing module and data communication module, the data is finally transmitted to the MQTT Broker;

[0150] The data acquisition module includes a perception interface layer and a protocol adaptation layer, which are used to acquire and convert data formats. The data processing module is divided into a non-image data processing layer and an image data processing layer, the latter of which is further subdivided into image data processing, encoding and compression layers;

[0151] The data communication module includes the MQTT protocol encoding layer and the communication layer, ensuring efficient data transmission through the MQTT protocol; the entire architecture uses a layered design to ensure efficient processing and management of data from collection to transmission.

[0152] like Figure 5 As shown, Embodiment 5 of the present invention provides a basic architecture of the MQTT communication protocol, in which a publisher sends a message to an MQTT Broker, and the MQTT Broker distributes the message to subscribers (Subscriber 1, Subscriber 2, Subscriber 3), thereby achieving efficient transmission and distribution of data.

[0153] The beneficial effects of the present invention include at least:

[0154] (1) High compression ratio transmission of image data based on MQTT protocol network is realized. A data transmission control solution is provided for the virtual-real synchronization of digital twin of substation infrastructure construction progress.

[0155] (2) The present invention can greatly reduce the layout of sensors on the construction site, especially in the process of construction progress management, the dynamic physical entity cannot be solved by setting fixed sensors to synchronize the digital twin. Through fixed-point and timed image acquisition and transmission, the back-end can realize the management of construction progress, safety risk identification and other functions through image recognition technology, and realize virtual-real linkage.

[0156] (3) Through the small-scale attribute-based access control authorization technology, the traditional MQTT protocol makes up for the security risk of no authorization mechanism in the state of multi-client asynchronous communication. It prevents illegal clients from invading the IoT system and causing data leakage or management risks.

[0157] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A digital twin image data transmission and safety control method in a substation project, characterized in that: The following steps are involved: Step 1: Collect construction site equipment data and image data at fixed points and at fixed times through sensors and cameras; Step 2: Process the collected data based on the MQTT protocol network, compress the image data volume, and encode and transmit it to the MQTT server; Step 3: Receive and decode securely encoded data, set up an MQTT server based on ABAC and encrypted channels to combine digital twin scenarios with construction site data, use WSO2 application servers and WSO2 identity authentication servers to perform identity and authorization management, securely transmit and remotely control data, and visualize production and operation scenarios.

2. According to the method for digital twin image data transmission and safety control in a substation project in claim 1, it is characterized by: In step 1, the data is divided into two categories: sensor data and image data; the transmission methods used include 4G, 5G, serial communication and WiFi; and the virtual-real linkage of the digital twin platform is used; The sensor data is directly transmitted to the intelligent hardware gateway, and then sent to the MQTT Broker after preliminary encoding processing; Image data is collected regularly by fixed-point cameras and transmitted to the intelligent hardware gateway for processing, cleaning and handling.

3. According to the method for digital twin image data transmission and safety control in a substation project in claim 1, it is characterized by: In step 2, the data processing includes image data processing and sensor data processing; Image data processing specifically includes the following steps: Perform image block processing on the collected complete image data, and decompose the large image into small sub-image blocks; Applying a linear interpolation block segmentation algorithm to each sub-image block to smoothly segment the image; The image data after the above processing is encoded and decoded by BASE64 to convert the invisible characters into visible characters.

4. According to the method for digital twin image data transmission and safety control in a substation project of claim 3, it is characterized by: The image block processing includes decomposing a complete image into sub-images of N rows and M columns, and the sub-images overlap or connect with each other.

5. According to claim 3, the method for digital twin image data transmission and safety control in a substation project is characterized in that: The linear interpolation block segmentation algorithm specifically includes the following steps: Calculate the global threshold: Use the maximum inter-class variance method to calculate the global threshold of each sub-image block; Interpolation: Linear interpolation is performed between adjacent sub-image blocks according to the optimal segmentation threshold to achieve a smooth transition.

6. According to claim 5, a digital twin image data transmission and safety control method in a substation project is characterized in that: The maximum between-class variance method, specifically The following steps are involved: Assume that the number of pixels with gray value i in the image is n, and the total number of pixels is as follows: Where: L-1 represents the maximum gray level of the image; The probability formula for each gray value is as follows: and Assume that the segmentation threshold is t, and the image is divided into two parts according to the grayscale, including the target part and the background part; the grayscale of the target part is A = {0, 1, ..., t}, and the grayscale of the background part is B = {t+1, t+2, ..., L-1}. The probability formulas of the two parts are as follows: The grayscale mean formulas of parts A and B are as follows: The total grayscale mean formula of the image is as follows: u=P A in A +P B in B The inter-class variance formula of parts A and B is as follows: σ 2 =P A (in A -in) 2 +P B (in B -in) 2 Where: (u A -u) 2 Indicates the degree of deviation between the grayscale mean of the target part and the grayscale mean of the entire image; (u B -u) 2 Indicates the degree of discreteness of the background part relative to the grayscale mean of the entire image; Traversing t from the minimum grayscale value to the maximum grayscale value, when t maximizes the inter-class variance formula of parts a and B, t is the optimal threshold for segmentation, and the formula is as follows: t=ArgMax 0≤t≤L-1 σ 2 (t) σ 2 (t)=P A (t)(u A (t)-u) 2 +P B (t)(u B (t)-u) 2 Where: t represents the segmentation threshold, which is used to divide the image gray level into the target part and the background part; ArgMax 0≤t≤L-1 It means to find the value of t in the range 0≤t≤L-1 such that σ 2 to the maximum value; P A (t) represents the probability of the target part (grayscale range is 0, 1,…, t); u A (t) represents the grayscale mean of the target part; P B (t) represents the probability of the background part (grayscale range is t+1, t+2,…, L-1); u B (t) represents the grayscale mean of the background part; u represents the grayscale mean of the entire image.

7. According to claim 3, a digital twin image data transmission and safety control method in a substation project is characterized by: The interpolation includes threshold interpolation between each sub-image block by linear interpolation. Assuming that the thresholds of four adjacent regions are T1, T2, T3, and T4, respectively, the directions of linear interpolation between adjacent thresholds are T1→T2, T1→T3, T2→T4, and T3→T4. After interpolation, there is a smooth transition between adjacent thresholds.

8. The method for digital twin image data transmission and safety control in a substation project according to claim 1 is characterized in that: In step 3, access control is established on entity attributes rather than user identity based on ABAC. In the ABAC model, access rights are granted based on the attributes provided by the subject, and both the subject and the object are identified by attribute-related attributes.

9. A digital twin image data transmission and safety control method in a substation project according to claim 1 or 8, characterized in that: In step 3, the MQTT server based on ABAC access control capability includes an MQTT client, a WSO2 application server, a WOSO2 identity authentication server and an MQTT server; The MQTT client establishes a data transmission channel with the MQTT server through topic subscription and publication; Before subscribing and publishing, you need to establish a connection with the server. After applying for CONNECT and getting confirmation from the server, the client starts to subscribe and publish to the topic. The WSO2 application server is used to intercept the connection request sent by the client in the MQTT communication and check the client's specific authorization; The WOSO2 authentication server is used to support the identity and authorization management server of OpenID and XACML. The policy decision point PDP is used to store attribute-based policies and check the authorization of requests to enter specific applications. Through the policy check mechanism, the authorization status of the client applying for connection is obtained and sent to the MQTT server. The MQTT server's communication based on MQTT is to forward and store messages through the broker by publishing and subscribing to topics. The PEP in the application server captures the request sent by the MQTT user and forwards it to the policy decision point PDP of the identity server for policy matching to decide whether to authorize the MQTT client's request.

10. A digital twin image data transmission and safety control system in a substation project, comprising: Data acquisition module, data processing and transmission module and data management and visualization module; characterized by: The data acquisition module is used to collect various data from the construction site through sensors and cameras, and transmit it to the intelligent hardware gateway after preliminary processing; The data processing and transmission module is used to clean, compress and encode data in the intelligent hardware gateway and transmit it through the MQTT Broker; The data management and visualization module is used to integrate and map field data on the digital twin platform, visualize and command construction progress, safety management and remote monitoring.

Citation Information

Patent Citations

  • Remote control industrial gateway system based on MQTT

    CN111327693A

  • Industrial gateway from UPC UA to MQTT and communication method thereof

    CN112769685A

  • Data transmission method and device, electronic equipment and storage medium

    CN112887429A

  • Real-time access method for time series data of nuclear power industry internet platform

    CN115776378A

  • Distributed energy power station data acquisition system based on MQTT protocol

    CN117376418A