Electric switching operation linkage deduction method and device
By building the power system topology through graphical modeling and natural language parsing modules, generating structured scripts and performing real-time error-proofing, the problems of manual transcription and non-intuitive graphic model construction in traditional electrical switching operations are solved, and the intuitive display and error-proofing of electrical paths are achieved, which reduces the risk of incorrect operation and improves the automation of operations and the efficiency of simulation training.
Patent Information
- Application Number
- CN202510958678.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2025-10-21
AI Technical Summary
Traditional electrical switching operations rely on manual transcription and preset diagrams. They are unable to recognize natural language instructions, lack current path logic, have static anti-error rules, and have no graphical feedback, resulting in a high risk of incorrect operation.
Build power system topology through graphical modeling modules, receive natural language instructions and generate structured scripts, perform real-time error prevention checks, simulate electrical conduction paths and record operation logs, and support permission control.
It realizes direct recognition of natural language commands, intuitive display of electrical paths and anti-error verification, reduces the risk of misoperation, and improves the automation of operations and the efficiency of simulation training.
Smart Images

Figure CN120824918A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power system dispatching and intelligent operation assistance, and particularly relates to a method and device for deducing linkage of electrical switching operations. Background Art
[0002] Electrical switching operations are a core task in power system operation and maintenance, and their safety is directly linked to the reliability of grid equipment and the safety of personnel. Traditional switching operations rely on a dispatcher issuing a single instruction. On-site personnel then perform the operation based on the dispatch instruction, operational diagrams, and operating procedures, and manually verify whether there are any risks of misoperation. However, in actual operations, factors such as misunderstanding the diagrams, inaccurate status judgments, and incorrect operation sequences can still lead to serious accidents.
[0003] To improve the automation and error prevention capabilities of switching operations, patent CN114744617A has proposed a "simulated operation error prevention verification method based on primary instructions." This method constructs a distribution network topology model and inputs structured primary instructions. It then simulates the operation and compares the results in a simulation environment to indicate potential error risks. This method improves the automation level of error prevention verification to a certain extent, but still has the following shortcomings:
[0004] It lacks natural language processing capabilities and cannot directly identify the operation statements issued by the dispatcher in natural language, and needs to be manually transcribed into structured commands; the graphic modeling method is closed, and the equipment connection relationship is preset by the program, which does not support users to freely build complex primary systems based on the graphical interface; it lacks current path calculation logic, and only matches rules based on the operation intention and equipment status, which cannot reflect the actual electrical conduction path; the anti-error rules are relatively static and do not have the ability to determine the dynamic path, and cannot cope with complex situations such as "through grounding" or "ground knife closing path conduction"; there is no graphical feedback process for operation, and users cannot intuitively perceive the impact of each operation step and its electrical transmission effect. Summary of the Invention
[0005] To this end, the present invention provides a method and device for the linkage deduction of electrical switching operations to solve the problems of difficult instruction structuring, non-intuitive graphic model construction, weak electrical path deduction, static anti-error rules and no graphic feedback in traditional switching operations, thereby improving the level of intelligent assistance and simulation training efficiency.
[0006] In order to achieve the above object, the present invention provides the following technical solution: a method for deducing linkage of electrical switching operation, comprising the following steps:
[0007] The server constructs the primary power system topology through a graphical modeling module. Users can add circuit breakers, disconnectors, earth switches, busbars, transformers, generators, transmission lines, capacitors, and reactors by dragging and dropping them through a graphical interface. The server also supports operations such as adsorption alignment, path adjustment, element combination, and automatic numbering and naming. It also supports automatic connection of element ports by adsorption, establishes port connection relationships between elements, and automatically generates a visual electrical network diagram.
[0008] The server receives switching operation instructions in natural language format through the natural language parsing module. It extracts the device name, action type, and target state slot information from the instructions by combining keyword extraction and rule matching to generate a structured operation script.
[0009] The server drives the device graphics to execute state changes based on the structured operation script, including the opening and closing operations of switches, circuit breakers, and earth switches, the switching of primary equipment operation, hot standby, cold standby, and maintenance status, and the activation and deactivation of charging protection functions;
[0010] Before each operation is executed, the server calls the anti-error verification module to make a legal judgment based on the rules prohibiting live earthing switches and load-bearing operation of knife switches, intercepts any illegal operations and issues an alarm.
[0011] After the operation is completed, the server uses the current topology deduction module to recursively propagate the device's energized state from the starting point of the power generation equipment based on the closed state of the graphic element and the port connection relationship, simulate the electrical conduction path, and display the simulation state results in a graphical form;
[0012] The server uses the operation log recording module to log the entire operation process, including operation time, device name, starting status, target status, and five-prevention verification result information, and saves the script as a standard format file for export and playback.
[0013] As a preferred solution for the method of joint deduction of electrical switching operation, the graphical modeling module is equipped with graphic element combination, mirroring, adsorption alignment, path adjustment and automatic numbering and naming;
[0014] The server builds a general topology model, maintains the graph structure information of the equipment and connection relationships, exports the topology structure into the JSON standard data format, accepts the user's manual adjustment of the scale and shape of the electrical structure through the graphical interface, and completes the equipment numbering and wiring layout.
[0015] As the preferred solution for the linkage deduction method of electrical switching operations, the server integrates the permission control and authorization encryption module. By obtaining the fingerprint of the client device, combined with the key generation algorithm and the authorization file mechanism, it realizes user identity binding verification, performs local verification before executing the operation script and modifying key parameters, and reserves the permission level control mechanism.
[0016] As a preferred solution for the linkage deduction method of electrical switching operations, the server triggers the primitive state linkage logic when the device status changes. When the status of a specified device switches from cold standby to operation, the linkage triggers the action of some adjacent devices to assist in achieving the target state switching;
[0017] After receiving the target device and target status specified by the user, the server analyzes the current topology, electrical status and five-defense rules, reversely deduces feasible operation paths, generates and executes operation scripts, and achieves intelligent goal achievement.
[0018] As an optimal solution for the method of linkage deduction of electrical switching operations, the server processes common complex sentences and fuzzy instruction expressions in the dispatcher's oral expressions through the natural language parsing module, and generates a structured script including operation targets, action types, and sequences through keyword slot extraction, rule matching, and semantic context judgment.
[0019] As the preferred solution for the linkage deduction method of electrical switching operations, after a successful operation, the server uses the current topology deduction module to recursively determine the energized status of the equipment based on the principles of equipment closure status, port connection on / off, and connection line conductivity, starting from the generator. The energized status is highlighted with a red border and small dot graphic identifier.
[0020] As a preferred solution for the linkage deduction method of electrical switching operations, the server exports the operation records into CSV files or tables for visual presentation through the operation log recording module. The record content includes the UUID number of the operation object, the substation to which it belongs, and the initial and execution result fields;
[0021] The server automatically replays the operation process based on historical log records, simulates the state changes of the steps in the original order, and visualizes the entire operation process in an animated manner in the graphical interface for teaching demonstrations and behavior auditing;
[0022] The server uses the node admittance matrix and Newton-Raphson method to calculate the voltage amplitude and phase angle of the specified node, as well as the magnitude and direction of the line current. The calculation results are written into the status parameters of the device graphics element to assist in determining the impact of the switching operation on the system electrical safety.
[0023] Graphic elements support the configuration of voltage, current, resistance, reactance, capacity, line length, and conductor model physical electrical parameters, and participate in calculation and display in graphic modeling and power flow calculations, supporting simulation modeling and result analysis.
[0024] The present invention also provides an electrical switching operation linkage deduction device, comprising:
[0025] The graphical modeling module is used to construct the topology of the primary power system. Users can add circuit breakers, disconnectors, earth switches, busbars, transformers, generators, transmission lines, capacitors, and reactors by dragging and dropping them through a graphical interface. The module supports operations such as adsorption alignment, path adjustment, element combination, and automatic numbering and naming. It also supports automatic connection of element ports by adsorption, establishes port connection relationships between elements, and automatically generates a visual electrical network diagram.
[0026] The natural language parsing module is used to receive switching operation instructions in natural language format. It uses a combination of keyword extraction and rule matching to extract the device name, action type, and target state slot information from the instructions to generate a structured operation script.
[0027] A script execution module is used to drive the execution state changes of equipment graphics based on the structured operation script, including the opening and closing operations of switches, circuit breakers, and earth switches, the switching of primary equipment operation, hot standby, cold standby, and maintenance status, and the activation and deactivation of charging protection functions;
[0028] The anti-error verification module is used to judge the legality of each operation before executing it according to the rules prohibiting the operation of live earthing switches and knife switches with load, and intercept any illegal operations and issue an alarm.
[0029] The current topology deduction module is used to recursively propagate the energized state of the equipment from the starting point of the power generation equipment based on the closed state of the graphic elements and the port connection relationship, simulate the electrical conduction path, and display the simulation state results in a graphical form;
[0030] The operation log recording module is used to log the entire operation process, including operation time, device name, starting status, target status, and five-prevention verification results. The script can be saved as a standard format file and exported and replayed.
[0031] As a preferred solution for the electrical switching operation linkage deduction device, the graphical modeling module is equipped with graphic element combination, mirroring, adsorption alignment, path adjustment and automatic numbering and naming;
[0032] In the graphical modeling module, a general topology model is constructed, the graphical structure information of the equipment and connection relationships is maintained, the topology structure is exported into the JSON standard data format, and the user manually adjusts the scale and shape of the electrical structure through the graphical interface to complete the equipment numbering and wiring layout;
[0033] The script execution module is also used to trigger the primitive state linkage logic when the device state changes. When the specified device state switches from cold standby to operation, it triggers the actions of some adjacent devices to assist in achieving the target state switch. After receiving the target device and target state specified by the user, the server analyzes the current topology, electrical state and five-prevention rules, reversely derives a feasible operation path, generates and executes the operation script, and achieves intelligent target achievement.
[0034] The natural language parsing module is also used to process complex sentences and fuzzy instruction expressions commonly seen in dispatchers' verbal expressions, and generate structured scripts including operation targets, action types, and sequences through keyword slot extraction, rule matching, and semantic context judgment.
[0035] After the operation is successful, the current topology deduction module takes the generator as the starting point and recursively determines the device's energized state according to the device's closed state, port connection on / off, and connection line conduction principles, and highlights the energized state by highlighting the color or graphic mark.
[0036] The operation log recording module exports the operation records as a CSV file or a table for visual presentation. The record content includes the UUID number of the operation object, the substation to which it belongs, and the execution result field. The server automatically replays the operation process based on the historical log records, simulates the step state change process in the original order, and visually reproduces the entire operation process in an animated manner in the graphical interface for teaching demonstration and behavior auditing.
[0037] As the preferred solution for the electrical switching operation linkage simulation device, it also includes:
[0038] The electrical safety impact analysis module uses the node admittance matrix and Newton-Raphson method to numerically calculate the voltage amplitude and phase angle at specified nodes, as well as the magnitude and direction of line currents. The module then writes the results into the status parameters of the device graphics element, assisting in determining the impact of switching operations on system electrical safety. Graphic elements support configuration of physical electrical parameters such as voltage, current, resistance, reactance, capacity, line length, and conductor type, and these parameters are calculated and displayed in graphical modeling and power flow calculations, supporting simulation modeling and results analysis.
[0039] The permission control and authorization encryption module obtains the fingerprint of the client device and combines the key generation algorithm and authorization file mechanism to implement user identity binding verification, performs local verification before executing the operation script and modifying key parameters, and reserves the permission level control mechanism.
[0040] The present invention has the following advantages:
[0041] First, by dragging and dropping device elements into a graphical interface and establishing port connections, a visual electrical network is automatically formed. This changes the closed model of traditional programs that pre-set connection relationships, allowing users to intuitively build complex primary systems and avoid operational errors caused by misunderstanding the diagram model. Features such as element combination, mirroring, and snap-to-align support batch copying of typical wiring modules and automatic numbering and naming, improving the efficiency of drawing large-scale power grid topologies.
[0042] Second, it directly recognizes natural language commands, extracting information such as device names and action types to generate structured scripts, eliminating manual transcription and reducing the risk of command conversion errors. Commands are parsed based on the dispatcher's verbal expression habits, eliminating the need to change operator communication methods and improving system usability.
[0043] Third, before any operation, real-time verification is performed based on the five preventative measures, such as "no earthing switches with power on." Any violations are immediately intercepted and an alarm is issued to prevent common operational errors. After the operation, the live state is recursively propagated through current topology deduction, and the electrical conduction path is graphically displayed to help users understand the impact of the operation.
[0044] Fourth, a complete log of operation time, equipment status, and verification results is recorded, supported by export and visualization, meeting the requirements of scheduling training and auditing. Operation scripts support save, rollback, and jump functions, which can be used for training drills and solution verification, improving simulation efficiency.
[0045] Fifth, the general topology model can be exported to a standard format, laying the foundation for cross-platform sharing and system integration, and enhancing engineering application capabilities. Identity verification is achieved by combining device fingerprints with authorization files, subdividing operation permission levels, preventing unauthorized operations, and improving system security. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are merely exemplary, and those skilled in the art can, without inventive effort, derive other implementation drawings based on the provided drawings.
[0047] Figure 1 A schematic flow chart of a method for deducing a linkage of electrical switching operations provided in an embodiment of the present invention;
[0048] Figure 2 A schematic diagram of a graphical modeling interface provided in an embodiment of the present invention;
[0049] Figure 3 A natural language parsing flowchart provided in an embodiment of the present invention;
[0050] Figure 4 A flowchart of the linkage of switching steps and five-prevention judgment provided in an embodiment of the present invention;
[0051] Figure 5 This is a diagram of the script execution and log recording interface provided in an embodiment of the present invention;
[0052] Figure 6 Schematic diagram of the architecture of the electrical switching operation linkage deduction device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following describes the implementation of the present invention using specific embodiments. Those skilled in the art will readily understand the other advantages and benefits of the present invention from the disclosure herein. Obviously, the embodiments described are only a portion of the present invention, not all of it. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without inventive effort are intended to fall within the scope of protection of the present invention.
[0054] Example 1
[0055] See also Figure 1 、 Figure 2 、 Figure 3 、 Figure 4 and Figure 5 Embodiment 1 of the present invention provides a method for deducing a linkage of electrical switching operations, comprising the following steps:
[0056] S1. The server constructs the topology of the primary power system through a graphical modeling module. Users can add circuit breakers, disconnectors, ground switches, busbars, transformers, generators, transmission lines, capacitors, and reactors by dragging and dropping them through a graphical interface. The server also supports operations such as adsorption alignment, path adjustment, element combination, and automatic numbering and naming. It also supports automatic connection of element ports by adsorption, establishes port connection relationships between elements, and automatically generates a visual electrical network diagram.
[0057] Specifically, the graphical modeling module is based on visual interactive technology, which abstracts electrical equipment such as circuit breakers and disconnectors into graphic elements with port attributes (graphic elements are graphic objects that represent electrical equipment in the system canvas, and have graphic display, status attributes, port information, etc.). Users place graphic elements in the canvas by dragging and dropping, and the system automatically identifies and maintains the device connection relationship through the "port binding" mechanism to form a topological network. In this process, the port of the graphic element serves as the logical interface of the electrical connection, and a physical conduction path is established through the connecting line, and finally an electrical network model that can be displayed intuitively is generated, realizing the graphical modeling of a system. The graphical modeling module supports graphic element combination, mirroring, adsorption alignment, path adjustment and automatic numbering and naming functions, which can improve modeling efficiency.
[0058] Among them, the server builds a general topology model, maintains the graph structure information of equipment and connection relationships, and can export the topology structure into standard data formats such as JSON. It supports users to manually adjust the scale and shape of the electrical structure through a graphical interface, and automatically completes equipment numbering and wiring layout.
[0059] S2. The server receives the switching operation instruction in natural language format through the natural language parsing module, and extracts the device name, action type, and target state slot information from the instruction by combining keyword extraction and rule matching to generate a structured operation script.
[0060] Specifically, the natural language parsing module uses NLP technology to pre-define slots such as "device name", "action type", and "target state", and can identify dispatcher instructions such as "turn the XXX switch into operation to close the circuit breaker and supply power" and "exit protection of XXX equipment". By matching keywords in the instructions (such as "close the circuit breaker" and "exit protection", etc.) through regular expressions, the semantics of the instructions are parsed in combination with grammatical rules to convert natural language into a structured script in JSON format. For example, when parsing "exit XXX equipment protection", the device name "XXX", action type "exit", and target state "protection disabled" are extracted to generate an operation script that can be executed by the system.
[0061] S3. The server drives the device graphics to execute state changes based on the structured operation script, including the opening and closing operations of switches, circuit breakers, and earth switches, the switching of primary equipment between operation, hot standby, cold standby, and maintenance states, and the activation and deactivation of charging protection functions.
[0062] Specifically, the script execution module calls the graphics element state driver interface based on the device identifiers and action instructions in the structured script. For switches, circuit breakers, and earth switches, state transitions are achieved by modifying their "open / closed" properties. For primary equipment, state identifiers are updated based on state transition rules such as "operation-cold standby-maintenance." For charging protection, the "on / off" flag is manipulated to activate or deactivate the protection function. Whenever the state changes, the system simultaneously updates the graphics element's visual display, linking the operation instructions with the graphical state.
[0063] S4. Before executing each operation, the server calls the anti-error verification module to make a legal judgment based on the rules prohibiting live earthing switches and load-bearing operation of knife switches, intercepts any illegal operations, and issues an alarm.
[0064] Specifically, the error prevention module has a built-in "five-prevention" rule library, including logic such as "Do not close the earthing switch while energized," "Do not operate the switch while under load," "Do not close the earthing switch after closing the earthing switch," "Do not operate the switch at non-equipotential potentials," and "Do not operate the through-grounding operation incorrectly." Before any operation, the system obtains the current energized state of the device and the target state of the operation, and uses the rule engine to determine whether there is a violation. If the device is energized and the earthing switch is closed, the error prevention module immediately intercepts the operation and prompts a pop-up window to indicate the reason. It also records the interception log to ensure that the operation complies with power safety regulations.
[0065] S5. After the operation is completed, the server uses the current topology deduction module to recursively propagate the device's energized state from the starting point of the power generation device based on the closed state of the graphic element and the port connection relationship, simulates the electrical conduction path, and displays the simulation state results in a graphical form;
[0066] Specifically, the current topology deduction module uses graph theory algorithms, treating graph elements as nodes and port connections as edges to construct an electrical topology diagram. Starting with the generator, the module recursively traverses all connected devices based on their closed state and port connection relationships to determine their energized state. Energized devices are visualized with graphic symbols such as red borders and small dots, intuitively illustrating the current conduction path and simulating real-world electrical characteristics.
[0067] S6. The server uses the operation log recording module to log the entire operation process, including operation time, device name, starting state, target state, and five-prevention verification results. The script is saved as a standard format file and can be exported and replayed;
[0068] Specifically, the logging module captures operational events in real time, generating log entries based on fields such as operation time, device name, device type, UUID number, substation, operation type, starting state, target state, execution result, and five-prevention verification results, and stores them in the database. Structured scripts can be saved as .opjson standard format files, with export and playback support. Users can replay the operation process step by step, meeting the traceability requirements of dispatch operations.
[0069] In this embodiment, in step S1, the graphical modeling module is configured with primitive combination, mirroring, adsorption alignment, path adjustment and automatic numbering and naming;
[0070] The server builds a general topology model, maintains the graph structure information of the equipment and connection relationships, exports the topology structure into the JSON standard data format, accepts the user's manual adjustment of the scale and shape of the electrical structure through the graphical interface, and completes the equipment numbering and wiring layout.
[0071] Specifically, the graphical modeling module supports combining multiple graphics elements (such as circuit breakers and switches on both sides) into functional units, and quickly generates symmetrical wiring structures (such as mirror copying of double busbar wiring) through mirroring operations, reducing the workload of repetitive modeling. The combined graphics elements can be moved or copied as a whole, improving the efficiency of complex topology construction. When dragging the connection line, it automatically adsorbs adjacent ports and aligns them to avoid manual connection deviations; users can insert path relay points to adjust the connection path to make the topology layout more regular. This function uses geometric algorithms to realize port coordinate capture and connection Bezier curve adjustment to ensure beautiful graphics and clear logic. The system automatically generates numbers (such as "5001 switch" and "#1 main transformer") according to the type of graphics element (such as switches, transformers) and location, in accordance with the power industry specifications to avoid manual naming errors. The numbering rules can be customized and support logical generation according to voltage level, interval order, etc.
[0072] The server abstracts the elements and their connections into a node-edge graph model. Each element is assigned a unique UUID, and port connections are stored as edge attributes. The model can be exported in JSON format for cross-platform sharing or integration with SCADA and GIS systems. Users can add or delete elements or modify connections, and the system updates the topology in real time, automatically recalculating device numbers and wiring layouts (for example, when adjusting busbar segments, adjacent switch numbers are automatically updated), reducing manual intervention.
[0073] In a possible embodiment, the server integrates a permission control and authorization encryption module, obtains the fingerprint of the client device, combines the key generation algorithm and the authorization file mechanism to implement user identity binding verification, performs local verification before executing the operation script and modifying key parameters, and reserves the permission level control mechanism.
[0074] Specifically, the permission control and authorization encryption module collects the client hardware information (hard disk serial number, motherboard number, MAC address, etc.), and generates a unique device fingerprint through a hash algorithm to ensure that the hardware-level identity cannot be tampered with. The server generates an encrypted authorization file (key.txt) based on the device fingerprint, which contains the hardware fingerprint hash value and permission level information. The user needs to import the authorization file when logging in for the first time. Before subsequent operations, the system compares the local fingerprint with the hash value in the file, and can only be executed after verification. A reserved permission interface can define different operation levels (for example, ordinary users can only perform switching operations, and administrators can modify the topology model). Critical operations (such as deleting busbars and switching protection on and off) require specific permissions to prevent unauthorized operations.
[0075] In one possible embodiment, the server triggers the primitive state linkage logic when the device state changes. When the specified device state switches from cold standby to operation, the linkage triggers the actions of some adjacent devices to assist in achieving the target state switching. After receiving the target device and target state specified by the user, the server analyzes the current topology, electrical state and five-prevention rules, reversely deduces a feasible operation path, generates and executes the operation script, and achieves intelligent goal achievement.
[0076] Specifically, the system presets the logical path of the device state transition (such as "cold standby → operation" requires closing the bus side knife switch, line side knife switch, and switch in sequence), which is stored in the rule base. When the user operates the main device state switch, the system parses the rule base and automatically generates a linkage action sequence for adjacent devices. For example, when the line is changed from "cold standby" to "operation", the system automatically triggers the sequential action of "closing the bus side knife switch → closing the line side knife switch → closing the switch", reducing the number of manual operation steps. During the linkage process, the anti-error verification module is synchronously called to ensure that each step of the action complies with the five-prevention rules and avoid erroneous operations due to sequence errors.
[0077] In a possible embodiment, the server processes common complex sentences and fuzzy instruction expressions in the dispatcher's oral expressions through the natural language parsing module, and generates a structured script including operation goals, action types, and sequences through keyword slot extraction, rule matching, and semantic context judgment.
[0078] Specifically, the natural language parsing module has a built-in dispatch instruction corpus, supports the recognition of synonymous expressions (such as "close the switch" and "close the switch" both correspond to opening and closing actions), and timely matches different expressions with extended regular expressions through NLP slots and intent recognition technology. Adopting the "keyword matching + context semantic analysis" strategy, the device name (such as "XXX switch"), action type (such as "transfer to operation" and "exit protection"), and target state (such as "operation" and "cold standby") are extracted from the instruction to generate a structured JSON script. If the instruction is ambiguous (such as the device type is not clear), the system will pop up a window to prompt to complete the information to ensure the accuracy of the parsing.
[0079] In a possible embodiment, after the operation is successful, the server uses the current topology deduction module to recursively determine the power status of the device based on the device closed state, port connection on / off, and connection line conduction principles, starting from the generator, and highlighting the power status with a red border and small dot graphic identifier.
[0080] Specifically, electrical equipment is abstracted as graph nodes, port connections are formed as edges, and a directed graph model is established. Each node records the closed state of the device (closed / open), and the edge records the on / off properties of the connection. Taking the generator as the root node, a depth-first search (DFS) is used to traverse all closed devices and connected ports and mark them as "live". For example, when the switch is closed and the knife switches on both sides are turned on, the connected busbars and lines are recursively marked as live. The appearance of the live equipment is modified through CSS styles (such as red borders and red dots on nodes), and the non-live equipment is displayed in gray or green to intuitively distinguish the equipment status. The connection line is displayed as a solid line (on) or a dotted line (off) according to the conduction state.
[0081] In a possible embodiment, the server exports the operation records as a CSV file or a table for visual presentation through the operation log recording module. The record content includes the UUID number of the operation object, the substation to which it belongs, and the execution result field; the server automatically replays the operation process based on the historical log records, simulates the step state change process in sequence according to the original order, and visually reproduces the entire operation process in an animated manner in a graphical interface for teaching demonstration and behavior auditing.
[0082] Specifically, logs are stored in a relational database by field, including information such as operation time, device UUID, device type, substation to which it belongs, operation type, starting state, target state, five-prevention verification results, and execution results, to ensure data traceability. Logs are converted to CSV format or generated into HTML tables through the data interface, supporting filtering by time, substation, equipment type, and other conditions. The table can intuitively display the operation sequence and verification results, facilitating auditing and training review. When the operation script is executed, the log module records the execution status of each operation in real time. During playback, the script steps and corresponding log records can be displayed synchronously to form a closed-loop verification.
[0083] In one possible embodiment, the server uses the node admittance matrix and Newton-Raphson method to numerically solve the voltage amplitude and phase angle of the specified node, the magnitude and direction of the line current, and writes the calculation results into the status parameters of the equipment graphic element to assist in judging the impact of the switching operation on the electrical safety of the system; the graphic element supports the configuration of voltage, current, resistance, reactance, capacity, line length, and conductor model physical electrical parameters, and participates in calculation and display in graphic modeling and power flow calculation, supporting simulation modeling and result analysis.
[0084] Specifically, each electrical device is abstracted into a primitive object, each containing several ports for establishing connections. By collecting all valid connections, a directed graph is constructed and a node number index table is generated. Parameters such as impedance, voltage, current, power, capacity, and line length are extracted for all primitives in the topology, including buses, lines, transformers, and generators. Based on this information, the node admittance matrix Ybus is automatically generated, with generator nodes set as balancing nodes and other nodes as PQ nodes or PV nodes.
[0085] During the power flow calculation process, the Newton-Raphson method is used to iteratively update node voltages. Each iteration includes steps such as calculating power imbalance, constructing the Jacobian matrix, and solving the linear equation system until the error convergence condition is met. The final node voltage result is written back to the extra_params["voltage"] field of the corresponding element, and the branch current is written to the extra_params["current"] field. This is visualized on the canvas using arrows, current values, or color codes. Current flow direction can also be used to assist in determining the current system operating mode and identify risks such as current reversal, power flow backflow, and node voltage limit violations that may be caused by switching operations.
[0086] The graphical element parameter configuration interface allows users to set or import device electrical parameters, such as generator voltage amplitude, frequency, and power, transformer impedance parameters, line length, and conductor type. All parameters are included in the simulation modeling calculation. The system supports project saving and reloading, and power flow calculation results can be exported as JSON or CSV structures for subsequent analysis, printing, or integration into other power grid analysis systems.
[0087] The application scenarios of the present invention are as follows:
[0088] Power grid operation training and simulation
[0089] New employee training: By building a typical substation topology through graphical modeling, trainees can simulate various switching operations. The system verifies the legality of the operations in real time and provides visual feedback to help trainees quickly master the operating procedures.
[0090] Emergency drills: Simulate the switching operation recovery plan after a power grid failure, such as the operation process of switching to a backup bus after a bus failure, to improve the emergency response capabilities of dispatchers.
[0091] Electrical operation scheme verification
[0092] Substation maintenance plan: Before equipment maintenance, the system simulates the switching operation steps to verify whether the plan has the risk of misoperation (such as closing the earth switch under power) to avoid on-site operation errors.
[0093] Commissioning of new equipment: For newly built substations or renovated electrical main connections, verify the feasibility and safety of switching operations through graphical modeling and operational simulation.
[0094] Intelligent switching decision support
[0095] Automatic parsing of dispatch instructions: Converts the dispatcher's natural language instructions into structured operation scripts, reducing manual transcription errors and improving instruction execution efficiency.
[0096] Operation path optimization: When the device status switches (such as from "cold standby" to "operation"), the system automatically triggers the actions of adjacent devices to generate the optimal operation sequence and reduce operation complexity.
[0097] Power System Simulation and Analysis
[0098] Topology verification before power flow calculation: By exporting the topology structure in JSON format, an accurate electrical network model is provided for power flow calculation, short-circuit current calculation, etc.
[0099] Dynamic simulation of equipment status: Combined with current topology deduction, it simulates the electrical conduction path under different operating modes and provides visual support for grid operation mode analysis.
[0100] Permission control and security management
[0101] Training scenario permission classification: In the training center, the permissions of trainees and instructors are differentiated. Trainees can only perform switching operations, while instructors can modify the topology model or skip some verification steps.
[0102] On-site operation authority management: At the substation site, the operation terminal is bound to the device fingerprint and authorization file to prevent unauthorized devices from accessing the system and ensure operational safety.
[0103] The specific practice of the present invention is as follows:
[0104] Implementation of power system dispatch training scenarios
[0105] In a training program at a provincial power company's dispatching training center, the system used a graphical modeling module to construct a 500kV substation dual-busbar with bypass topology. Trainees could drag and drop elements such as circuit breakers and disconnectors, and connect them through ports to form an electrical network. When a dispatch instructor issued a natural language command, "Turn switch 5012 to operation and check the protection on status," the system used a natural language parsing module to extract the device name (5012 switch), action type (Turn to operation), and target status (Protection on). This generated a structured script to drive the element state change. A pre-operation error prevention module automatically intercepted illegal "live earthing switch" operations. After the operation was completed, the current topology deduction module identified live equipment with a red border, helping trainees intuitively understand the current path. During training, an operation log recorded every step in real time, supporting post-class review and assessment. Compared to traditional training methods, trainees' understanding of switching operations improved by approximately 30%.
[0106] Substation operation plan verification and implementation
[0107] When a 220kV substation was shutting down its main transformer for maintenance, the operation and maintenance personnel used this system to simulate the switching operation of "main transformer No. 1 switching from operation to maintenance." First, the main transformer and related interval topology were constructed on a graphical interface, and the natural language command "open the 5011 switch and the knife switches on both sides on the high-voltage side of main transformer No. 1, and close the grounding knife switch" was input. After analysis, the system generated an operation script, and executed the switch opening, knife switch disconnection, and grounding knife closing actions in sequence. Before each operation, the anti-mischeck module verified the risk of "operating the knife switch with load." After the operation was completed, the current topology deduction showed that the high-voltage side of the main transformer was not energized, confirming that the operation plan was safe and feasible. This implementation shortened the time of the traditional manual verification plan from 2 hours to 30 minutes, avoiding the risk of misoperation due to omissions in the plan.
[0108] Intelligent scheduling aids decision implementation
[0109] In a certain area's power grid dispatching center, the system accesses real-time SCADA data and synchronizes the status of substation equipment in real time. When the dispatcher needs to perform a "line power outage for maintenance" operation, he or she inputs "switch the XX line from operation to cold standby" through natural language, and the system automatically parses and generates an operation script. At the same time, based on the current equipment status (such as the line switch is in the closed position), it drives the graphics element to perform the opening operation and confirms the power outage of the line through current topology deduction. The anti-error verification module intercepts the illegal step of "closing the ground switch before disconnecting the knife switch" before the operation to ensure that the operation complies with the five-prevention rules. This implementation realizes the automated conversion of dispatch instructions from natural language to structured operations, reduces human intervention errors, and improves dispatch decision-making efficiency by about 40%.
[0110] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied in a distributed scenario, where multiple devices cooperate with each other to complete the method. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method for the linkage deduction of electrical switching operations.
[0111] It should be noted that the above description is limited to some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in an order different from that described in the above embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0112] Example 2
[0113] See also Figure 6 Embodiment 2 of the present invention further provides an electrical switching operation linkage deduction device, comprising:
[0114] The graphical modeling module 100 is used to construct the topology of the primary power system. It accepts users to add circuit breakers, disconnectors, earth switches, busbars, transformers, generators, transmission lines, capacitors, and reactors by dragging and dropping them through a graphical interface. It supports operations such as adsorption alignment, path adjustment, element combination, and automatic numbering and naming. It also supports adsorption and automatic connection of element ports, establishes port connection relationships between elements, and automatically generates a visual electrical network diagram.
[0115] The natural language parsing module 200 is used to receive switching operation instructions in natural language format, extract the device name, action type, and target state slot information from the instructions by combining keyword extraction and rule matching, and generate a structured operation script;
[0116] The script execution module 300 is used to drive the device primitive execution state changes based on the structured operation script, including the opening and closing operations of switches, circuit breakers, and earth switches, the switching of primary equipment between operation, hot standby, cold standby, and maintenance states, and the activation and deactivation of charging protection functions;
[0117] The anti-error check module 400 is used to judge the legality of each operation before it is executed according to the rules prohibiting the operation of the earth switch with power on and the operation of the switch with load, and intercept any illegal operation and issue an alarm;
[0118] The current topology deduction module 500 is used to recursively propagate the device's energized state from the power generation device's starting point based on the closed state of the graphic element and the port connection relationship, simulate the electrical conduction path, and display the simulation state results in a graphical form;
[0119] The operation log recording module 600 is used to log the entire operation process, including operation time, device name, starting state, target state, and five-prevention verification result information, save the script as a standard format file, and export and replay it.
[0120] In this embodiment, the graphical modeling module 100 is configured with primitive combination, mirroring, adsorption alignment, path adjustment and automatic numbering and naming;
[0121] In the graphical modeling module 100, a general topology model is constructed, the graph structure information of the equipment and connection relationship is maintained, the topology structure is exported to the JSON standard data format, and the user's manual adjustment of the scale and shape of the electrical structure through the graphical interface is received to complete the equipment numbering and wiring layout.
[0122] In this embodiment, the script execution module 300 is also used to trigger the graphic element state linkage logic when the device state changes. When the specified device state switches from cold standby to operation, the linkage triggers the action of some adjacent devices to assist in achieving the target state switching; after receiving the target device and target state specified by the user, the server analyzes the current topology structure, electrical state and five-defense rules, reversely deduces a feasible operation path, generates and executes the operation script, and realizes intelligent goal achievement.
[0123] In this embodiment, the natural language parsing module 200 is also used to process complex sentences and fuzzy instruction expressions commonly seen in the dispatcher's oral expressions, and to generate a structured script including operation targets, action types, and sequences through keyword slot extraction, rule matching, and semantic context judgment.
[0124] In this embodiment, after a successful operation, the current topology deduction module 500 uses the generator as the starting point and recursively determines the device's energized state based on the device's closed state, port connection on / off, and connection line conduction principles. The energized state is highlighted with a red border and a small dot graphic icon. The operation log recording module 600 exports the operation record as a CSV file or a table for visual presentation. The record content includes the UUID number of the operation object, the substation to which it belongs, and the execution result field.
[0125] The server automatically replays the operation process based on historical log records, simulates the state change process of the steps in the original order, and visualizes the entire operation process in an animated manner in the graphical interface for teaching demonstrations and behavior audits.
[0126] In this embodiment, it also includes:
[0127] The permission control and authorization encryption module 700 obtains the fingerprint of the client device and implements user identity binding verification by combining the key generation algorithm and the authorization file mechanism. It performs local verification before executing the operation script and modifying key parameters, and reserves the permission level control mechanism;
[0128] The electrical safety impact analysis module 800 uses the node admittance matrix and Newton-Raphson method to calculate the voltage amplitude and phase angle of the specified node, the magnitude and direction of the line current, and writes the calculation results into the status parameters of the equipment graphic element to assist in judging the impact of the switching operation on the electrical safety of the system; the graphic element supports the configuration of voltage, current, resistance, reactance, capacity, line length, and conductor model physical electrical parameters, and participates in calculation and display in graphical modeling and power flow calculation, supporting simulation modeling and result analysis.
[0129] It should be noted that the information interaction, execution process, etc. between the above-mentioned device modules are based on the same concept as the method embodiment in Example 1 of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the present application, and will not be repeated here.
[0130] Example 3
[0131] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, in which a program code for a method for deducing the linkage of electrical switching operations is stored. The program code includes instructions for executing a method for deducing the linkage of electrical switching operations of embodiment 1 or any possible implementation thereof.
[0132] Computer-readable storage media can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
[0133] Example 4
[0134] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;
[0135] The processor and the memory communicate with each other through a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute an electrical switching operation linkage deduction method of embodiment 1 or any possible implementation method thereof.
[0136] Specifically, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading software code stored in a memory. The memory can be integrated into the processor or located outside the processor and exist independently.
[0137] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable systems. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode.
[0138] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing system. They can be centralized on a single computing system or distributed across a network of multiple computing systems. Alternatively, they can be implemented using program code executable by a computing system, and thus, they can be stored in a storage system and executed by the computing system. In some cases, the steps shown or described herein can be performed in a different order than that shown, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0139] Although the present invention has been described in detail above using general descriptions and specific embodiments, it will be apparent to those skilled in the art that modifications and improvements may be made thereto. Therefore, such modifications and improvements, without departing from the spirit of the present invention, are intended to be within the scope of protection claimed herein.
Claims
1. A method for deducing linkage of electrical switching operations, characterized in that: The following steps are involved: The server constructs the primary power system topology through a graphical modeling module. Users can add circuit breakers, disconnectors, earth switches, busbars, transformers, generators, transmission lines, capacitors, and reactors by dragging and dropping them through a graphical interface. The server also supports operations such as adsorption alignment, path adjustment, element combination, and automatic numbering and naming. It also supports automatic connection of element ports by adsorption, establishes port connection relationships between elements, and automatically generates a visual electrical network diagram. The server receives switching operation instructions in natural language format through the natural language parsing module. It extracts the device name, action type, and target state slot information from the instructions by combining keyword extraction and rule matching to generate a structured operation script. The server drives the device graphics to execute state changes based on the structured operation script, including the opening and closing operations of switches, circuit breakers, and earth switches, the switching of primary equipment operation, hot standby, cold standby, and maintenance status, and the activation and deactivation of charging protection functions; Before each operation is executed, the server calls the anti-error verification module to make a legal judgment based on the rules prohibiting live earthing switches and load-bearing operation of knife switches, intercepts any illegal operations and issues an alarm. After the operation is completed, the server uses the current topology deduction module to recursively propagate the device's energized state from the starting point of the power generation equipment based on the closed state of the graphic element and the port connection relationship, simulate the electrical conduction path, and display the simulation state results in a graphical form; The server uses the operation log recording module to log the entire operation process, including operation time, device name, starting status, target status, and five-prevention verification result information, and saves the script as a standard format file for export and playback.
2. The method for deducing linkage of electrical switching operations according to claim 1, characterized in that: The graphical modeling module is equipped with graphic element combination, mirroring, adsorption alignment, path adjustment and automatic numbering and naming; The server builds a general topology model, maintains the graph structure information of the equipment and connection relationships, exports the topology structure into the JSON standard data format, accepts the user's manual adjustment of the scale and shape of the electrical structure through the graphical interface, and completes the equipment numbering and wiring layout.
3. The method for deducing linkage of electrical switching operations according to claim 1, characterized in that: The server integrates permission control and authorization encryption modules. By obtaining the fingerprint of the client device and combining the key generation algorithm and authorization file mechanism, it implements user identity binding verification, performs local verification before executing the operation script and modifying key parameters, and reserves a permission level control mechanism.
4. The method for deducing linkage of electrical switching operations according to claim 1, characterized in that: The server triggers the primitive state linkage logic when the device state changes. When the specified device state switches from cold standby to running, the linkage triggers some adjacent devices to act, assisting in achieving the target state switch. After receiving the target device and target status specified by the user, the server analyzes the current topology, electrical status and five-defense rules, reversely deduces feasible operation paths, generates and executes operation scripts, and achieves intelligent goal achievement.
5. The method for deducing linkage of electrical switching operations according to claim 1, characterized in that: The server processes the common complex sentences and fuzzy instruction expressions in the dispatcher's oral expressions through the natural language parsing module, and generates a structured script including operation goals, action types, and sequences through keyword slot extraction, rule matching, and semantic context judgment.
6. The method for deducing linkage of electrical switching operations according to claim 1, characterized in that: After the operation is successful through the current topology deduction module, the server takes the generator as the starting point and recursively determines the power status of the equipment according to the device closed state, port connection on / off, and connection line conductivity principles. The power status is highlighted with a red border and small dot graphic icon.
7. The method for deducing linkage of electrical switching operations according to claim 1, characterized in that: The server exports the operation records into a CSV file or a table for visual presentation through the operation log recording module. The record content includes the UUID number of the operation object, the substation to which it belongs, the initial value, and the execution result fields; The server automatically replays the operation process based on historical log records, simulates the state changes of the steps in the original order, and visualizes the entire operation process in an animated manner in the graphical interface for teaching demonstrations and behavior auditing; The server uses the node admittance matrix and Newton-Raphson method to calculate the voltage amplitude and phase angle of the specified node, as well as the magnitude and direction of the line current. The calculation results are written into the status parameters of the device graphics element to assist in determining the impact of the switching operation on the system electrical safety. Graphic elements support the configuration of voltage, current, resistance, reactance, capacity, line length, and conductor model physical electrical parameters, and participate in calculation and display in graphic modeling and power flow calculations, supporting simulation modeling and result analysis.
8. An electrical switching operation linkage deduction device, characterized in that: Including those deployed on the server: The graphical modeling module is used to construct the topology of the primary power system. Users can add circuit breakers, disconnectors, earth switches, busbars, transformers, generators, transmission lines, capacitors, and reactors by dragging and dropping them through a graphical interface. The module supports operations such as adsorption alignment, path adjustment, element combination, and automatic numbering and naming. It also supports automatic connection of element ports by adsorption, establishes port connection relationships between elements, and automatically generates a visual electrical network diagram. The natural language parsing module is used to receive switching operation instructions in natural language format. It uses a combination of keyword extraction and rule matching to extract the device name, action type, and target state slot information from the instructions to generate a structured operation script. A script execution module is used to drive the execution state changes of equipment graphics based on the structured operation script, including the opening and closing operations of switches, circuit breakers, and earth switches, the switching of primary equipment operation, hot standby, cold standby, and maintenance status, and the activation and deactivation of charging protection functions; The anti-error verification module is used to judge the legality of each operation before executing it according to the rules prohibiting the operation of live earthing switches and knife switches with load, and intercept any illegal operations and issue an alarm. The current topology deduction module is used to recursively propagate the energized state of the equipment from the starting point of the power generation equipment based on the closed state of the graphic elements and the port connection relationship, simulate the electrical conduction path, and display the simulation state results in a graphical form; The operation log recording module is used to log the entire operation process, including operation time, device name, starting status, target status, and five-prevention verification results. The script can be saved as a standard format file and exported and replayed.
9. The electrical switching operation linkage deduction device according to claim 8, characterized in that: The graphical modeling module is equipped with graphic element combination, mirroring, adsorption alignment, path adjustment and automatic numbering and naming; In the graphical modeling module, a general topology model is constructed, the graphical structure information of the equipment and connection relationships is maintained, the topology structure is exported into the JSON standard data format, and the user manually adjusts the scale and shape of the electrical structure through the graphical interface to complete the equipment numbering and wiring layout; The script execution module is also used to trigger the primitive state linkage logic when the device state changes. When the specified device state switches from cold standby to running, the linkage triggers the actions of some adjacent devices to assist in achieving the target state switching; After receiving the target device and target status specified by the user, the server analyzes the current topology, electrical status and five-prevention rules, reversely derives feasible operation paths, generates and executes operation scripts, and achieves intelligent target achievement; The natural language parsing module is also used to process complex sentences and fuzzy instruction expressions commonly seen in dispatchers' verbal expressions, and generate structured scripts including operation targets, action types, and sequences through keyword slot extraction, rule matching, and semantic context judgment. After the operation is successful, the current topology deduction module takes the generator as the starting point and recursively determines the device's energized state according to the device's closed state, port connection on / off, and connection line conduction principles, and highlights the energized state by highlighting the color or graphic mark. The operation log recording module exports the operation record as a CSV file or a table for visual presentation. The record content includes the UUID number of the operation object, the substation to which it belongs, and the execution result field; The server automatically replays the operation process based on historical log records, simulates the state change process of the steps in the original order, and visualizes the entire operation process in an animated manner in the graphical interface for teaching demonstrations and behavior audits.
10. The electrical switching operation linkage deduction device according to claim 8, characterized in that: Also includes: The electrical safety impact analysis module uses the node admittance matrix and Newton-Raphson method to numerically calculate the voltage amplitude and phase angle at specified nodes, as well as the magnitude and direction of line currents. The module then writes the results into the status parameters of the device graphics element, assisting in determining the impact of switching operations on system electrical safety. Graphic elements support configuration of physical electrical parameters such as voltage, current, resistance, reactance, capacity, line length, and conductor type, and these parameters are calculated and displayed in graphical modeling and power flow calculations, supporting simulation modeling and results analysis. The permission control and authorization encryption module obtains the fingerprint of the client device and combines the key generation algorithm and authorization file mechanism to implement user identity binding verification, performs local verification before executing the operation script and modifying key parameters, and reserves the permission level control mechanism.