A business scene image matching method and system for substation

By calculating the information integrity of substation images and multi-scale reconstructed spatial models, combined with time characteristics, the problem of low recognition rate of business scenarios caused by high similarity of complex scenes and equipment in substations is solved, and more accurate matching is achieved.

CN117690016BActive Publication Date: 2024-10-11INFORMATION & TELECOMM COMPANY SICHUAN ELECTRIC POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311470381.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2024-10-11
Estimated Expiration
2043-11-07

AI Technical Summary

Technical Problem

The complex scenarios and high similarity of equipment in the substation lead to a low business scenario recognition rate and the inability to accurately match the correct business scenario.

Method used

By calculating the information integrity of the images to be matched, multiple alternative power business scenarios are determined, and based on multi-scale reconstruction of spatial models and temporal features, the spatial and temporal similarities of the images are comprehensively considered to improve matching accuracy.

Benefits of technology

It improves the recognition accuracy of business scenarios, can match the correct business scenarios more reliably, and solves the problem of low recognition rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117690016B_ABST
    Figure CN117690016B_ABST
Patent Text Reader

Abstract

The present application discloses a business scene image matching method and system for a substation, and relates to the field of image processing technology. The method includes: obtaining an image to be matched, and calculating the information completeness of the image to be matched, and when the information completeness is less than or equal to a preset first threshold, determining multiple alternative power business scenes of the image to be matched, constructing a multi-scale reconstruction space model based on the image to be matched, and obtaining the actual spatial model and time characteristics of each alternative power business scene, calculating the spatial similarity between the multi-scale reconstruction space model and the actual spatial model, calculating the temporal similarity between the temporal characteristics of the image to be matched and the temporal characteristics of the alternative power business scene, and determining the target power business scene from multiple alternative power business scenes based on the spatial similarity and temporal similarity. The problem of being unable to match the correct business scene due to the low recognition rate of the business scene in the substation is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a business scene image matching method and system for a substation. Background Art

[0002] Substation inspection is a key activity to ensure the normal operation, safety and reliability of substation equipment and systems. For unmanned substations, inspection robots are usually used to complete the inspection work. However, inspection robots cannot accurately and quickly identify the potential risks in the current scenario like humans, so different business scenarios need to be effectively identified and matched. By identifying these scenarios, patrol robots can take appropriate safety measures and develop emergency plans to reduce accident risks.

[0003] In the related art, since there are complex scenes and a huge number of devices in the substation, and the devices have a high similarity, the recognition rate of business scenes is low, resulting in the inability to match the correct business scenes. Summary of the invention

[0004] The present invention provides a business scene image matching method and system for a substation, which solve the problems existing in the above-mentioned background technology.

[0005] In a first aspect, an embodiment of the present invention provides a business scene image matching method for a substation, the method comprising:

[0006] Obtaining the image to be matched, and calculating the information completeness of the image to be matched, wherein the information completeness is used to characterize the amount of information contained in the image to be matched;

[0007] When the information completeness is less than or equal to a preset first threshold, determining a plurality of candidate power business scenarios of the image to be matched;

[0008] A multi-scale reconstruction spatial model is constructed based on the image to be matched, and the actual spatial model and time characteristics of each alternative power business scenario are obtained;

[0009] Calculate the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model, and calculate the temporal similarity between the temporal features of the image to be matched and the temporal features of the alternative power business scenario;

[0010] According to spatial similarity and temporal similarity, a target power business scenario is determined from multiple alternative power business scenarios.

[0011] The business scene image matching method of the substation provided by the present disclosure, first, the scheme of the present application calculates the information completeness of the image to be matched, which can better understand the amount of information contained in the image. This step helps to identify whether the image to be matched contains enough key information for business scene matching. Secondly, when the information completeness is less than or equal to the preset first threshold, the scheme of the present application will not give up matching immediately, but further determine multiple alternative power business scenes. This helps to solve the problem of complex scenes and high equipment similarity in the substation, because even if the information is incomplete, multiple alternative scenes can be tried to improve the accuracy of matching. By constructing a multi-scale reconstruction space model based on the image to be matched, the scheme of the present application considers different dimensions of the image, including spatial and temporal features. This helps to describe the image content more comprehensively, especially when dealing with complex scenes in the substation, which may involve multiple devices and dynamic processes. Finally, by calculating the spatial similarity between the multi-scale reconstruction space model and the actual space model and the temporal similarity between the temporal features of the image to be matched and the temporal features of the alternative power business scene, the scheme of the present application comprehensively considers multiple aspects of the image. This makes the matching more accurate because it not only focuses on the information completeness, but also considers the relevance and consistency of the content.

[0012] In summary, the advantage of the solution of this application is that it adopts a comprehensive approach to handle complex scenarios and equipment in substations, not only relying on information completeness, but also combining multi-scale reconstruction of spatial models and consideration of time characteristics. This comprehensive approach improves the recognition accuracy of business scenarios, thereby solving the problem of low recognition rate and enabling more reliable matching of correct business scenarios.

[0013] In an optional embodiment, the method further includes:

[0014] When the information completeness is greater than a preset first threshold, the information of the image to be matched is completed to obtain a corrected image, and the target power business scenario is determined based on the corrected image.

[0015] In an optional implementation, the information completeness includes the position information completeness and the device parameter information completeness, and calculating the information completeness of the image to be matched includes:

[0016] Determine the number of location information features and device parameter information features contained in the image to be matched;

[0017] The information completeness of the image to be matched is determined according to the proportional relationship between the number of location information features and the number of device parameter information features and a preset second threshold.

[0018] In an optional implementation, completing information of the image to be matched to obtain a corrected image includes:

[0019] Using the position information contained in the image to be matched as an index, traversing the first database to determine the missing position information of the image to be matched, wherein the first database is used to store the plane image of the substation;

[0020] Using the device parameter information contained in the image to be matched as an index, traverse the second database to determine the missing device parameter information of the image to be matched, wherein the second database is used to store the device parameters of the substation;

[0021] According to the missing position information and the missing device parameter information, the information of the image to be matched is completed to obtain the corrected image.

[0022] In an optional implementation, determining a target power business scenario according to the corrected image includes:

[0023] Extract key location features and key equipment parameter features of the target power business scenario;

[0024] Calculate the similarity with each alternative power business scenario based on key location features and key equipment parameter features;

[0025] According to the similarity calculation results, the target power business scenario is determined.

[0026] In an optional implementation, constructing a multi-scale reconstruction space model based on the image to be matched includes:

[0027] Determine a multi-scale pyramid model of the image to be matched;

[0028] Based on the multi-scale pyramid model, feature extraction is performed on the matching image to obtain multiple image separation scales;

[0029] Based on each image separation scale, a spatial model is constructed based on the image to be matched to obtain a reconstructed spatial model at the corresponding scale;

[0030] The reconstructed spatial models at different scales are fused to obtain a multi-scale reconstructed spatial model.

[0031] In an optional implementation, calculating the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model includes:

[0032] According to the multi-scale reconstructed space model and the actual space model, a first space matrix and a second space matrix are constructed respectively;

[0033] The spatial similarity is calculated according to the first spatial matrix and the second spatial matrix.

[0034] In an optional implementation, determining a target power business scenario from a plurality of candidate power business scenarios according to spatial similarity and temporal similarity includes:

[0035] According to the spatial similarity, the spatial similarity score between the image to be matched and the alternative power business scene is calculated;

[0036] According to the time similarity, the time similarity score between the image to be matched and the alternative power business scene is calculated;

[0037] The alternative power business scenario with the highest spatial similarity score and temporal similarity score is determined as the target power business scenario.

[0038] In a second aspect, an embodiment of the present invention provides a substation business scene image matching system, the system comprising:

[0039] A first calculation module is used to obtain the image to be matched and calculate the information completeness of the image to be matched, wherein the information completeness is used to characterize the amount of information contained in the image to be matched;

[0040] A screening module, used to determine a plurality of candidate power business scenarios of the image to be matched when the information completeness is less than or equal to a preset first threshold;

[0041] A construction module, used to construct a multi-scale reconstruction space model based on the image to be matched, and obtain the actual space model and time characteristics of each alternative power business scenario;

[0042] The second calculation module is used to calculate the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model, and calculate the temporal similarity between the temporal features of the image to be matched and the temporal features of the alternative power business scenario;

[0043] The first matching module is used to determine a target power business scenario from a plurality of candidate power business scenarios according to spatial similarity and temporal similarity.

[0044] In an optional embodiment, the system further includes:

[0045] The second matching module is used to complete the information of the image to be matched to obtain a corrected image when the information completeness is greater than a preset first threshold, and determine the target power business scenario according to the corrected image.

[0046] In an optional implementation, the information integrity includes location information integrity and device parameter information integrity, and the calculation module includes:

[0047] A feature quantity determination submodule is used to determine the number of location information features and the number of device parameter information features contained in the image to be matched;

[0048] The information completeness determination submodule is used to determine the information completeness of the image to be matched based on the proportional relationship between the number of location information features and the number of device parameter information features and a preset second threshold.

[0049] In an optional implementation, the second matching module includes:

[0050] A first traversal submodule is used to traverse the first database using the position information contained in the image to be matched as an index to determine the missing position information of the image to be matched, wherein the first database is used to store the plane image of the substation;

[0051] A second traversal submodule is used to traverse the second database using the device parameter information contained in the image to be matched as an index to determine the missing device parameter information of the image to be matched, wherein the second database is used to store the device parameters of the substation;

[0052] The correction submodule is used to complete the information of the image to be matched according to the missing position information and the missing device parameter information to obtain the corrected image.

[0053] In an optional implementation, the second matching module further includes:

[0054] A feature extraction submodule is used to extract key location features and key equipment parameter features of the target power business scenario;

[0055] A calculation submodule, used to calculate the similarity with each alternative power business scenario based on key location features and key equipment parameter features;

[0056] The matching submodule is used to determine the target power business scenario based on the similarity calculation results.

[0057] In an optional embodiment, the building block includes:

[0058] A scale determination submodule, used to determine a multi-scale pyramid model of the image to be matched;

[0059] An image segmentation submodule is used to extract features of the matching image based on a multi-scale pyramid model to obtain multiple image segmentation scales;

[0060] A model building submodule is used to separate the scales of each image and build a spatial model based on the image to be matched to obtain a reconstructed spatial model at a corresponding scale;

[0061] The model fusion submodule is used to fuse the reconstructed spatial models at different intervals to obtain a multi-scale reconstructed spatial model.

[0062] In an optional implementation, the second calculation module includes:

[0063] A matrix construction submodule, used to construct a first space matrix and a second space matrix respectively according to the multi-scale reconstructed space model and the actual space model;

[0064] The similarity calculation submodule is used to calculate the spatial similarity according to the first spatial matrix and the second spatial matrix.

[0065] In an optional implementation, the first matching module includes:

[0066] A first scoring submodule is used to calculate the spatial similarity score between the image to be matched and the candidate power business scene according to the spatial similarity;

[0067] The second scoring submodule is used to calculate the time similarity score between the image to be matched and the alternative power business scene according to the time similarity;

[0068] The target power business scenario determination submodule is used to determine the candidate power business scenario with the highest spatial similarity score and temporal similarity score as the target power business scenario.

[0069] A third aspect of an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0070] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method proposed in the first aspect of the embodiment of the present invention.

[0071] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect of the embodiment of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 A schematic diagram of the structure of an electronic device of a hardware operating environment involved in an embodiment of the present invention;

[0073] Figure 2 It is a flowchart of the steps of a business scene image matching method for a substation provided by an embodiment of the present invention;

[0074] Figure 3 It is a functional module diagram of a substation business scene image matching system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0075] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0076] In the related art, substations usually contain a variety of equipment, components and structures, which may present complex layouts and combinations at different times and states. This complexity makes it difficult for recognition algorithms to accurately extract useful information from images.

[0077] Equipment in substations usually have similar appearance and structure, such as transformers, switchgear, cables, etc. This equipment similarity increases the difficulty of recognition because the algorithm needs to be able to distinguish different equipment types and states. Substations are usually located outdoors, and the lighting and environmental conditions may change constantly, such as sunlight, shadows, rain and snow. This change may cause image quality fluctuations, thus affecting recognition performance. Based on the above factors, the recognition rate of business scenes is low, resulting in the inability to match the correct business scenes.

[0078] Based on this, the inventor proposed the inventive concept of this application: select different matching methods according to the information contained in the image to be matched, and use other information in the image to be matched to complete the missing information when the image to be matched has high information. When the image to be matched has low information, construct a spatial model and a temporal model of the image to be matched, and comprehensively evaluate the image to be matched from different dimensions, so as to build the closest business scenario for the image to be matched.

[0079] The scheme of the present invention is further described below in conjunction with the accompanying drawings.

[0080] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present invention.

[0081] like Figure 1As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage system independent of the aforementioned processor 1001.

[0082] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0083] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an electronic program.

[0084] exist Figure 1 In the electronic device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the substation business scene image matching system stored in the memory 1005 through the processor 1001, and executes the substation business scene image matching method provided in the embodiment of the present invention.

[0085] Reference Figure 2 The embodiment of the present invention provides a business scene image matching method for a substation, which may specifically include the following steps:

[0086] S201: Acquire the image to be matched, and calculate the information completeness of the image to be matched.

[0087] In this embodiment, the image to be matched can come from a surveillance camera, a drone, an inspection robot and other equipment, and the image to be matched can be static, such as a photo, or dynamic, such as a video frame. Information completeness is used to evaluate the amount of effective information contained in the image. The higher the information completeness, the more useful information is contained in the image. The calculation of information completeness can be performed in a quantitative or qualitative manner to generate a score or indicator to describe the degree of information contained in the image.

[0088] Specifically, the specific steps of calculating the information completeness of the image to be matched may include:

[0089] S2011: Determine the number of location information features and the number of device parameter information features contained in the image to be matched.

[0090] In this embodiment, information completeness is divided into two main aspects, location information completeness and device parameter information completeness. Location information completeness characterizes the degree of information about the location of the scene or object contained in the image to be matched, and device parameter information completeness characterizes the degree of information about the characteristics, status or parameters of the device contained in the image to be matched. The number of location information features refers to the number of unique features in the image that can be used to describe the location of the object or scene. Features can be pixels, corners, edges, contours, etc. For example, if an image contains location information features of multiple substation equipment, such as the outline or key points of the equipment, then this number of features will be higher. The number of device parameter information features refers to the number of unique features in the image that can be used to describe the characteristics, status or parameters of the equipment. For substation equipment, these features may include parameters such as the nameplate, appearance, and logo of the equipment.

[0091] S2012: Determine the information completeness of the image to be matched based on the proportional relationship between the number of location information features and the number of device parameter information features and a preset second threshold.

[0092] In this embodiment, the image information completeness is evaluated by analyzing the proportional relationship between the number of location information features and the number of device parameter information features in the image to be matched. Specifically, if the number of location information features is relatively large and the ratio to the number of device parameter information features is close to the preset second threshold, then it can be considered that the information of the image to be matched is relatively complete and may be easier to match successfully. Conversely, if this proportional relationship is lower than the threshold, then the image information may not be complete, and it may be necessary to adopt a stricter matching strategy or collect more information to improve the accuracy of the match.

[0093] Exemplarily, in the image to be matched, a set of location-related features are extracted from the image, such as the center coordinates, bounding box, and number of corner points of the device. Assume that 5 location information features are extracted from the image. For each device type, there is a set of parameter information related to it, such as the model of the transformer, the shape of the switchgear, and the size of the cable. Assume that there are 3 device parameter information features. For an image to be matched, at least 10 location information features and 4 device parameter information features are required to accurately meet the requirements of information completeness, that is, which features must be included in advance.

[0094] Calculate the proportional relationship between the number of location information features and the second threshold: number of location information features / second threshold = 5 / 10 = 0.5. Calculate the proportional relationship between the number of device parameter information features and the second threshold: number of device parameter information features / second threshold = 3 / 4 = 0.75. Then calculate the information completeness of the image to be matched based on the weights of the device parameter information features and the location information features.

[0095] S202: When the information completeness is less than or equal to a preset first threshold, determine a plurality of candidate power business scenarios for the image to be matched.

[0096] When the completeness of the image information is less than or equal to the first threshold, it means that the image to be matched may not be sufficient to determine a specific power business scenario alone. In this case, in order to ensure the accuracy and reliability of the match, it is necessary to select multiple alternatives from a set of possible power business scenarios. First, the key position features and key equipment parameter features related to the power business scenario are extracted from the image to be matched through image processing technology and feature extraction methods. Next, these extracted features are compared or matched with known power business scenarios. This operation can be performed using pattern recognition algorithms, deep learning models, or other matching technologies. Each known power business scenario has a specific set of features or patterns, and the matching degree of each scenario can be calculated by comparing with the extracted features. Then, the power business scenarios with a matching degree higher than a preset threshold are regarded as alternative scenarios.

[0097] In a feasible implementation manner, the method further includes:

[0098] S2021: When the information completeness is greater than a preset first threshold, the information of the image to be matched is completed to obtain a corrected image, and the target power business scenario is determined based on the corrected image.

[0099] In this embodiment, if the information completeness is higher than the first threshold, it indicates that the image contains sufficient key information to determine the target power business scenario. In this case, the following steps are taken to determine the target power business scenario. First, the information of the image to be matched is completed to ensure that the image contains sufficient data to clarify the business scenario. Next, using the corrected image, image matching, classification or recognition methods can be used to determine the target power business scenario. By analyzing and comparing the corrected image, the system can accurately identify the power equipment, state or scene represented in the image and match it with the known power business scenario.

[0100] The information completion for the matching image specifically includes:

[0101] S20211: Using the location information contained in the image to be matched as an index, traverse the first database to determine the missing location information of the image to be matched, wherein the first database is used to store the planar image of the substation.

[0102] S20212: Using the device parameter information contained in the image to be matched as an index, traverse the second database to determine the missing device parameter information of the image to be matched, wherein the second database is used to store the device parameters of the substation.

[0103] S20213: Complete the information of the image to be matched according to the missing position information and the missing device parameter information to obtain a corrected image.

[0104] In the implementation of S20211 to S20213, firstly, the position information contained in the image to be matched is used as an index.

[0105] Then, the first database is traversed, which stores the plane image of the substation. In this process, the position information of the image to be matched is attempted to be matched with the plane image in the first database. If a match is found, it means that the position information of the image to be matched is complete and does not need to be supplemented. If no match is found, it means that there is missing position information. The device parameter information contained in the image to be matched is used as an index to traverse the second database, which stores the device parameter information of the substation. In this process, the device parameter information of the image to be matched is matched with the device parameter information in the second database. If a match is found, it means that the device parameter information of the image to be matched is complete and does not need to be supplemented. If no match is found, it means that there is missing device parameter information. Once the missing position information and the missing device parameter information in the image to be matched are determined, corresponding information supplementation measures are taken. For the missing position information, it may be necessary to extract the corresponding position information from the plane image in the first database and supplement it. For the missing device parameter information, it may be necessary to obtain the corresponding parameter information from the second database based on the known device type or position information and supplement it. The supplemented image is called a corrected image, which contains more complete information and can be used for subsequent analysis, matching or other applications. The purpose of the above steps is to ensure that the position and device parameter information in the image to be matched is complete enough to improve the accuracy and reliability of subsequent processing.

[0106] The target power business scenarios are determined, including:

[0107] S20214: Extract key location features and key equipment parameter features of the target power business scenario.

[0108] S20215: Calculate the similarity with each alternative power business scenario based on key location features and key equipment parameter features.

[0109] S20216: Determine the target power business scenario based on the similarity calculation results.

[0110] In the implementation of S20214 to S20216, key location features are extracted from the target power business scenario, and these key location features include information on the location, layout, connection relationship, etc. of the power equipment. At the same time, key equipment parameter features are extracted, which may include information such as the model, status, parameter value, etc. of the equipment. The extracted key location features and key equipment parameter features are then compared or matched with the alternative power business scenarios. For each alternative power business scenario, the system calculates its similarity score with the target feature to measure the degree of similarity between them. This can be achieved using various similarity metrics, such as cosine similarity, Euclidean distance, etc. The last step is to determine the target power business scenario based on the calculation results of the similarity. Generally, the system selects the alternative power business scenario with the highest similarity score with the target feature as the final target scenario. The higher the similarity score, the more consistent the alternative scenario is with the target scenario.

[0111] S203: construct a multi-scale reconstruction space model based on the image to be matched, and obtain the actual space model and time characteristics of each candidate power business scenario.

[0112] In this embodiment, when the information completeness is less than or equal to the preset first threshold, a multi-scale spatial model is first created for the image to be matched. Multi-scale means that the image will be analyzed at different spatial resolutions, from coarse to fine. Multi-scale reconstruction usually involves constructing an image pyramid for the image. For each alternative power business scenario, its actual three-dimensional or two-dimensional spatial model needs to be established to reflect the actual equipment and structural layout in the substation.

[0113] The actual space model can help the system better understand the physical layout and composition of the power system. The power system is dynamic, so time characteristics need to be considered. This includes the time evolution of the equipment status, such as the switch status of the equipment, the current value, etc. Time characteristics can also include event logs, historical data, equipment maintenance records, etc. to help the model understand the history and evolution trend of the system.

[0114] Specifically, the above steps include:

[0115] S2031: Determine a multi-scale pyramid model of the image to be matched.

[0116] S2032: Based on the multi-scale pyramid model, feature extraction is performed on the image to be matched to obtain multiple image separation scales.

[0117] S2033: Based on each image separation scale, a spatial model is constructed based on the image to be matched to obtain a reconstructed spatial model at a corresponding scale.

[0118] S2034: Fusing the reconstructed spatial models at different intervals to obtain a multi-scale reconstructed spatial model.

[0119] In the implementation of S2031 to S2034, a multiscale pyramid model is first created for the image to be matched, and the model includes different resolution versions of the image. The multiscale pyramid is constructed by scaling (upsampling) or enlarging (downsampling) the image at different scales. Typically, the bottom of the pyramid contains the original image, while the top contains a highly reduced version. The multiscale pyramid model is used to capture different scale features in the image for subsequent analysis and processing. A feature extraction operation is performed on each scale version of the image in the multiscale pyramid model. Feature extraction can use various computer vision algorithms, such as convolutional neural networks (CNNs) or local feature descriptors to capture image features at each scale. This process generates multiple image separation scales, each scale having a feature representation corresponding to it. For each image separation scale, a spatial model construction operation is performed. This may involve restoring a three-dimensional or two-dimensional spatial model at the corresponding scale from the image features. A reconstructed spatial model is obtained at each separation scale. Finally, the reconstructed spatial models at different separation scales are fused to create a multiscale reconstructed spatial model. Fusion can use various methods, such as weight fusion, feature fusion, or model fusion, to integrate information at each scale. The multi-scale reconstruction space model will contain information from multiple scales, which helps to more fully understand the spatial locations in the images to be matched.

[0120] S204: Calculate the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model, and calculate the temporal similarity between the temporal features of the image to be matched and the temporal features of the candidate power business scenario.

[0121] In this embodiment, the spatial similarity between the multi-scale reconstruction spatial model and the actual spatial model is measured first. This is to determine the degree of spatial matching between the multi-scale reconstruction model and the layout and structure of the actual power system. The second is to measure the temporal similarity between the temporal characteristics of the image to be matched and the temporal characteristics of the alternative power business scene. This is to determine the degree of matching between the temporal characteristics of the image and the dynamic characteristics of the alternative scene. The calculation method of temporal similarity usually varies according to the application requirements. For example, time series similarity metrics such as correlation coefficient, Euclidean distance, or more complex methods such as dynamic time warping (DTW) can be used.

[0122] The results of these two steps are spatial similarity and temporal similarity metrics, which are used to measure the matching degree between the multi-scale reconstructed spatial model and the actual spatial model, and the matching degree between the temporal characteristics of the image to be matched and the temporal characteristics of the alternative power business scenarios.

[0123] Specifically, the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model is calculated, including:

[0124] S2041: Construct a first space matrix and a second space matrix respectively according to the multi-scale reconstructed space model and the actual space model.

[0125] S2042: Calculate spatial similarity according to the first spatial matrix and the second spatial matrix.

[0126] In the implementation of S2041 to S2042, a first spatial matrix and a second spatial matrix are constructed respectively according to the multi-scale reconstruction spatial model and the actual spatial model, and two spatial matrices, namely the first spatial matrix and the second spatial matrix, are constructed respectively using the multi-scale reconstruction spatial model and the actual spatial model. These spatial matrices are generally used to represent the layout, position, connection and other information of the power system or equipment of the substation in three-dimensional or two-dimensional space. The elements of each matrix represent the attributes of a specific location or equipment. Using the first spatial matrix and the second spatial matrix, the spatial similarity between them is calculated. Spatial similarity is generally calculated by different similarity measurement methods to evaluate the similarity between two spatial matrices. These measurement methods may include cosine similarity, Euclidean distance, structural similarity index, etc.

[0127] S205: Determine a target power business scenario from a plurality of candidate power business scenarios according to spatial similarity and temporal similarity.

[0128] In this embodiment, based on the previously calculated spatial similarity and temporal similarity metrics. For each candidate power business scenario, its corresponding spatial similarity value and temporal similarity value are considered together to comprehensively evaluate its matching degree. Different decision strategies can be used, such as weighted average, rule filtering, multi-condition decision-making and other methods, to determine the final target power business scenario according to specific application requirements and weights. The candidate scene with the highest comprehensive similarity score is selected as the final target scene, because it means that it best matches the image to be matched in space and time.

[0129] Specifically include:

[0130] S2051: Calculating a spatial similarity score between the image to be matched and the candidate power business scenario according to the spatial similarity;

[0131] S2052: Calculating a time similarity score between the image to be matched and the candidate power business scenario according to the time similarity;

[0132] S2053: Determine the alternative power business scenario with the highest spatial similarity score and temporal similarity score as the target power business scenario.

[0133] In the implementation of S2051 to S2053, the spatial similarity metric value calculated previously is used to calculate the spatial similarity score between the image to be matched and each alternative power business scene. Each alternative scene will have a corresponding spatial similarity score, which measures the degree of spatial matching between the image to be matched and the scene. A higher score indicates a better match. The temporal similarity score between the image to be matched and each alternative power business scene is calculated based on temporal similarity. Each alternative scene will have a corresponding temporal similarity score, which measures the degree of temporal matching between the image to be matched and the scene. A higher score indicates a better match. Based on the spatial similarity score and the temporal similarity score calculated in S2051 and S2052, the alternative power business scene with the highest comprehensive score is selected as the final target scene. The comprehensive score is usually based on a weighted combination of the two similarity scores, and the weight is determined according to the application requirements and importance. The alternative scene with the highest final score is determined as the target power business scene.

[0134] The result of this process is the identification of the best matching power business scenario, which is decided by comprehensively considering both spatial similarity and temporal similarity scores.

[0135] The business scene image matching method of the substation provided by the present disclosure, first, the scheme of the present application calculates the information completeness of the image to be matched, which can better understand the amount of information contained in the image. This step helps to identify whether the image to be matched contains enough key information for business scene matching. Secondly, when the information completeness is less than or equal to the preset first threshold, the scheme of the present application will not give up matching immediately, but further determine multiple alternative power business scenes. This helps to solve the problem of complex scenes and high equipment similarity in the substation, because even if the information is incomplete, multiple alternative scenes can be tried to improve the accuracy of matching. By constructing a multi-scale reconstruction space model based on the image to be matched, the scheme of the present application considers different dimensions of the image, including spatial and temporal features. This helps to describe the image content more comprehensively, especially when dealing with complex scenes in the substation, which may involve multiple devices and dynamic processes. Finally, by calculating the spatial similarity between the multi-scale reconstruction space model and the actual space model and the temporal similarity between the temporal features of the image to be matched and the temporal features of the alternative power business scene, the scheme of the present application comprehensively considers multiple aspects of the image. This makes the matching more accurate because it not only focuses on the information completeness, but also considers the relevance and consistency of the content.

[0136] The embodiment of the present invention also provides a substation business scene image matching system, referring to Figure 3 , shows a functional module diagram of a substation business scene image matching system 300 of the present invention, which may include the following modules:

[0137] The first calculation module 301 is used to obtain the image to be matched and calculate the information completeness of the image to be matched, wherein the information completeness is used to characterize the amount of information contained in the image to be matched;

[0138] A screening module 302, configured to determine a plurality of candidate power business scenarios of the image to be matched when the information completeness is less than or equal to a preset first threshold;

[0139] A construction module 303 is used to construct a multi-scale reconstruction space model based on the image to be matched, and obtain the actual space model and time characteristics of each candidate power business scenario;

[0140] The second calculation module 304 is used to calculate the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model, and calculate the temporal similarity between the temporal characteristics of the image to be matched and the temporal characteristics of the candidate power business scene;

[0141] 305, used to determine a target power business scenario from a plurality of candidate power business scenarios according to spatial similarity and temporal similarity.

[0142] In an optional embodiment, the system further includes:

[0143] The second matching module is used to complete the information of the image to be matched to obtain a corrected image when the information completeness is greater than a preset first threshold, and determine the target power business scenario according to the corrected image.

[0144] In an optional implementation, the information integrity includes location information integrity and device parameter information integrity, and the calculation module includes:

[0145] A feature quantity determination submodule is used to determine the number of location information features and the number of device parameter information features contained in the image to be matched;

[0146] The information completeness determination submodule is used to determine the information completeness of the image to be matched based on the proportional relationship between the number of location information features and the number of device parameter information features and a preset second threshold.

[0147] In an optional implementation, the second matching module includes:

[0148] A first traversal submodule is used to traverse the first database using the position information contained in the image to be matched as an index to determine the missing position information of the image to be matched, wherein the first database is used to store the plane image of the substation;

[0149] A second traversal submodule is used to traverse the second database using the device parameter information contained in the image to be matched as an index to determine the missing device parameter information of the image to be matched, wherein the second database is used to store the device parameters of the substation;

[0150] The correction submodule is used to complete the information of the image to be matched according to the missing position information and the missing device parameter information to obtain the corrected image.

[0151] In an optional implementation, the second matching module further includes:

[0152] A feature extraction submodule is used to extract key location features and key equipment parameter features of the target power business scenario;

[0153] A calculation submodule, used to calculate the similarity with each alternative power business scenario based on key location features and key equipment parameter features;

[0154] The matching submodule is used to determine the target power business scenario based on the similarity calculation result.

[0155] In an optional embodiment, the building block includes:

[0156] A scale determination submodule, used to determine a multi-scale pyramid model of the image to be matched;

[0157] An image segmentation submodule is used to extract features of the matching image based on a multi-scale pyramid model to obtain multiple image segmentation scales;

[0158] A model building submodule is used to separate the scales of each image and build a spatial model based on the image to be matched to obtain a reconstructed spatial model at a corresponding scale;

[0159] The model fusion submodule is used to fuse the reconstructed space models of different separation sizes to obtain a multi-scale reconstructed space model.

[0160] In an optional implementation, the second calculation module includes:

[0161] A matrix construction submodule, used to construct a first space matrix and a second space matrix respectively according to the multi-scale reconstructed space model and the actual space model;

[0162] The similarity calculation submodule is used to calculate the spatial similarity according to the first spatial matrix and the second spatial matrix.

[0163] In an optional implementation, the first matching module includes:

[0164] A first scoring submodule is used to calculate the spatial similarity score between the image to be matched and the candidate power business scene according to the spatial similarity;

[0165] The second scoring submodule is used to calculate the time similarity score between the image to be matched and the alternative power business scene according to the time similarity;

[0166] The target power business scenario determination submodule is used to determine the candidate power business scenario with the highest spatial similarity score and temporal similarity score as the target power business scenario.

[0167] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus, and the memory is used to store computer programs; the processor is used to implement the business scene image matching method of the substation of the present invention when executing the program stored in the memory.

[0168] The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above terminal and other devices. The memory may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. Optionally, the memory may also be at least one storage system located away from the aforementioned processor.

[0169] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0170] In addition, to achieve the above-mentioned purpose, an embodiment of the present invention further proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the business scene image matching method of the substation of the embodiment of the present invention.

[0171] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable vehicles (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0172] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or multiple boxes.

[0173] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0174] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0175] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. "" and / or "" indicate that either one of the two can be selected, or both can be selected. Moreover, the terms "" include "" "" contain "" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "" include a..."" does not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0176] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A business scene image matching method for a substation, characterized in that: The method comprises: Acquire an image to be matched, and calculate the information completeness of the image to be matched, wherein the information completeness is used to characterize the amount of information contained in the image to be matched; When the information completeness is less than or equal to a preset first threshold, determining a plurality of candidate power business scenarios of the image to be matched; Constructing a multi-scale reconstruction space model based on the image to be matched, and obtaining the actual space model and time characteristics of each of the candidate power business scenarios; Calculating the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model, and calculating the temporal similarity between the temporal features of the image to be matched and the temporal features of the candidate power business scenario; Determining a target power business scenario from the multiple candidate power business scenarios according to the spatial similarity and the temporal similarity; The information completeness includes the location information completeness and the device parameter information completeness, and the calculating the information completeness of the image to be matched includes: Determine the number of location information features and the number of device parameter information features contained in the image to be matched; Determining the information completeness of the image to be matched according to a proportional relationship between the number of the location information features and the number of the device parameter information features and a preset second threshold; The constructing of a multi-scale reconstruction space model based on the image to be matched includes: Determine a multi-scale pyramid model of the image to be matched; Based on the multi-scale pyramid model, feature extraction is performed on the image to be matched to obtain multiple image separation scales; Based on each of the image separation scales, constructing a spatial model based on the image to be matched to obtain a reconstructed spatial model at a corresponding scale; The reconstructed spatial models at different intervals are fused to obtain the multi-scale reconstructed spatial model.

2. The business scene image matching method of a substation according to claim 1 is characterized in that: The method further comprises: When the information completeness is greater than a preset first threshold, the information of the image to be matched is completed to obtain a corrected image, and the target power business scenario is determined based on the corrected image.

3. The business scene image matching method of a substation according to claim 1 is characterized in that: Completing the information of the image to be matched to obtain a corrected image includes: Using the position information contained in the image to be matched as an index, traversing a first database to determine the missing position information of the image to be matched, wherein the first database is used to store the planar image of the substation; Taking the device parameter information contained in the image to be matched as an index, traversing the second database to determine the missing device parameter information of the image to be matched, wherein the second database is used to store the device parameters of the substation; According to the missing position information and the missing device parameter information, the image to be matched is completed to obtain a corrected image.

4. The business scene image matching method of a substation according to claim 2 is characterized in that: Determining a target power business scenario according to the corrected image includes: Extracting key location features and key equipment parameter features of the target power business scenario; Calculate the similarity with each alternative power business scenario according to the key location characteristics and key equipment parameter characteristics; The target power business scenario is determined according to the calculation result of the similarity.

5. The business scene image matching method of a substation according to claim 1, characterized in that: The calculating the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model comprises: Constructing a first space matrix and a second space matrix respectively according to the multi-scale reconstructed space model and the actual space model; The spatial similarity is calculated according to the first spatial matrix and the second spatial matrix.

6. The business scene image matching method of a substation according to claim 1, characterized in that: The determining the target power business scenario from the multiple candidate power business scenarios according to the spatial similarity and the temporal similarity includes: Calculating a spatial similarity score between the image to be matched and the candidate power business scenario according to the spatial similarity; Calculating a time similarity score between the image to be matched and the candidate power business scenario according to the time similarity; The candidate power business scenario with the highest spatial similarity score and the highest temporal similarity score is determined as the target power business scenario.

7. A substation business scene image matching system, characterized in that: The system comprises: A first calculation module is used to obtain the image to be matched and calculate the information completeness of the image to be matched, wherein the information completeness is used to characterize the amount of information contained in the image to be matched; A screening module, configured to determine a plurality of candidate power business scenarios of the image to be matched when the information completeness is less than or equal to a preset first threshold; A construction module, used to construct a multi-scale reconstruction space model based on the image to be matched, and obtain the actual space model and time characteristics of each of the candidate power business scenarios; A second calculation module is used to calculate the spatial similarity between the multi-scale reconstructed spatial model and the actual spatial model, and calculate the temporal similarity between the temporal features of the image to be matched and the temporal features of the candidate power business scenario; A first matching module, configured to determine a target power business scenario from the plurality of candidate power business scenarios according to the spatial similarity and the temporal similarity; The information integrity includes location information integrity and device parameter information integrity, and the first calculation module includes: A feature quantity determination submodule is used to determine the number of location information features and the number of device parameter information features contained in the image to be matched; An information completeness determination submodule, used to determine the information completeness of the image to be matched based on the proportional relationship between the number of location information features and the number of device parameter information features and a preset second threshold; The building blocks include: A scale determination submodule, used to determine a multi-scale pyramid model of the image to be matched; An image segmentation submodule is used to extract features of the matching image based on a multi-scale pyramid model to obtain multiple image segmentation scales; A model building submodule is used to separate the scales of each image and build a spatial model based on the image to be matched to obtain a reconstructed spatial model at a corresponding scale; The model fusion submodule is used to fuse the reconstructed spatial models at different intervals to obtain a multi-scale reconstructed spatial model.

8. The substation business scene image matching system according to claim 7, characterized in that: The system further comprises: The second matching module is used to complete the information of the image to be matched to obtain a corrected image when the information completeness is greater than a preset first threshold, and determine the target power business scenario based on the corrected image.