Multi-agent cooperative electric power inspection method and system
By introducing task coordinator middleware and optimization strategies, resource competition and task allocation conflicts in the multi-agent power inspection system are resolved, efficient and intelligent task allocation and resource management are achieved, the system's robustness and emergency task response capabilities are improved, and the needs of modern industrial intelligent operation and maintenance are met.
Patent Information
- Application Number
- CN202510722984.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-05
AI Technical Summary
The existing multi-agent power inspection system suffers from resource competition and task allocation conflicts, low task allocation efficiency and resource utilization, lacks priority task processing mechanism and dynamic scheduling capabilities, and is unable to meet the needs of complex multi-agent power inspection scenarios.
The task coordinator middleware is introduced to optimize the task allocation process of the contract network protocol. It combines the priority task queue and dynamic task scheduling strategy, and realizes intelligent and efficient task allocation and resource management through task reservation and status table query.
It improves task allocation efficiency, enhances resource utilization, ensures timely processing of urgent tasks, enhances the robustness and scalability of the system, and meets the needs of modern industrial intelligent operation and maintenance.
Smart Images

Figure CN120601616A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent operation and maintenance of power systems, and specifically relates to a multi-agent collaborative power inspection method and system. Background Art
[0002] Equipment inspection and maintenance are crucial in modern power industry production and infrastructure operations. For example, the operating status of key equipment like transformers, circuit breakers, and transmission lines in power systems directly impacts the safe and stable operation of the grid. Similarly, the reliable operation of equipment like reactors, pipelines, and valves directly impacts production efficiency and safety.
[0003] The traditional manual inspection method relies on inspectors to manually inspect and record equipment at fixed times and locations. This method has the following significant shortcomings: Inefficiency: Manual inspections are slow and have limited coverage, making them difficult to meet the needs of large-scale, high-frequency inspections. High labor intensity: Inspection personnel need to work for long periods of time in harsh environments (such as high temperature, high humidity, high noise, etc.), which is labor-intensive. Error-prone: Manual inspections are easily affected by factors such as fatigue and lack of experience, which may lead to missed inspections and misjudgments. Difficulty in real-time monitoring: Manual inspection results are usually reported periodically, making it difficult to achieve real-time monitoring of equipment status and rapid response to faults.
[0004] To overcome the shortcomings of manual inspections and improve their efficiency and intelligence, automated inspection technologies have emerged. For example, using inspection robots to replace manual inspections can significantly improve inspection efficiency, reduce labor intensity, and minimize human error.
[0005] Multi-agent technology offers a new solution for automated inspections. By building systems composed of multiple agents, more complex and flexible inspection and maintenance tasks can be achieved. For example, multiple inspection robots (panoramic inspection agents) can work together to complete large-scale inspections, while maintenance robots (equipment operation and maintenance agents) can autonomously perform equipment maintenance based on inspection results.
[0006] However, effectively allocating tasks and coordinating resources in multi-agent power inspection systems presents a key technical challenge. Initial approaches to task allocation favored a centralized approach, where a central node was responsible for allocating all tasks. While simple to implement, centralized task allocation carries a significant risk of single point failure. A failure of the central node can paralyze the entire system. Furthermore, centralized approaches suffer from poor scalability, making them difficult to adapt to the demands of large-scale multi-agent systems.
[0007] A distributed multi-agent power inspection method based on a contract network protocol is currently available. Multiple inspection agents (similar to the panoramic inspection agent described in this invention) are responsible for executing inspection tasks and detecting equipment anomalies. Upon detection, they issue task announcements. Multiple maintenance agents (similar to the equipment maintenance agent described in this invention) respond to task announcements, bid for tasks, and then execute maintenance tasks based on the inspection agents' choices. These agents collaborate based on the contract network protocol, completing task allocation through steps such as task announcement, bidding, and allocation.
[0008] This approach has adopted a distributed architecture and contract network protocol, which has improved the robustness and flexibility of the system to a certain extent, and has made significant progress compared to traditional manual inspections and centralized task allocation methods.
[0009] Although the distributed multi-agent power inspection method based on the contract network protocol has made some progress compared to traditional methods, it still has the following technical shortcomings in complex multi-agent power inspection scenarios: Resource competition and task assignment conflicts: When patrol tasks are dense or the number of maintenance agents is insufficient, multiple patrol agents may simultaneously issue task announcements, and multiple maintenance agents may bid for them. Because the basic contract network protocol requires patrol agents to negotiate task assignments directly with maintenance agents, the lack of a unified task coordination mechanism may result in the same maintenance agent receiving task assignments from multiple patrol agents simultaneously. If maintenance agents are unable to execute multiple tasks simultaneously, task assignment conflicts will occur, reducing task execution efficiency and even causing system disruption.
[0010] Low task allocation efficiency and resource utilization: The basic contract network protocol's task allocation process is relatively simple, relying solely on patrol agents to unilaterally evaluate bidding information and make decisions. It lacks global awareness and coordinated management of the status of maintenance agents. Consequently, task allocation decisions can be suboptimal, such as failing to select the optimal maintenance agent or failing to fully consider factors such as load balancing and geographic location. This reduces task allocation efficiency, causing some maintenance agents to be overloaded while others remain idle, resulting in low resource utilization.
[0011] Lack of a priority task processing mechanism: In actual power industry inspection scenarios, the urgency and importance of different equipment anomalies may vary. The task allocation process in the basic contract network protocol lacks consideration for task priority. As a result, the system may treat all tasks equally, failing to prioritize urgent and important inspection tasks. This can result in critical equipment failures not being addressed promptly, increasing the risk of equipment failure.
[0012] Insufficient dynamic scheduling capabilities: The task allocation process based on the contract network protocol is typically static, and the inspection agent's inspection frequency is usually pre-set, making it difficult to dynamically adjust based on the task queue status. When the rate of task generation exceeds the task processing capacity, the task queue may accumulate infinitely, causing system congestion and degrading overall system performance. Conversely, when there are fewer tasks, the inspection agent may still maintain a high inspection frequency, resulting in a waste of inspection resources.
[0013] Due to the lack of a unified task coordination mechanism, global state perception capability, priority task processing mechanism and dynamic scheduling capability, existing technical solutions have shortcomings such as resource competition, task allocation conflicts, low task allocation efficiency and resource utilization, inability to prioritize emergency tasks, and insufficient dynamic scheduling capabilities in complex multi-agent power inspection scenarios, making it difficult to meet the growing needs of intelligent operation and maintenance. Summary of the Invention
[0014] The technical problem to be solved by the present invention is to address the deficiencies in the above-mentioned existing technologies and provide a multi-agent collaborative power inspection method and system, introduce a task coordinator middleware, and on this basis optimize the task allocation process of the contract network protocol, combine priority task queues and dynamic task scheduling strategies, and achieve more intelligent and efficient task allocation and resource management, which is used to solve the low efficiency of existing power industry station inspections and the technical problems of low task allocation and resource utilization in multi-agent power inspection methods.
[0015] The present invention adopts the following technical solutions: A multi-agent collaborative power inspection method includes the following steps: When an abnormality occurs in power equipment, the panoramic patrol agent generates a task announcement message containing the task ID, abnormal location and priority, which is then encoded and broadcast to the multi-agent network. The equipment operation and maintenance agent receives the task announcement message and evaluates whether to bid based on its own capability status. If it participates, it generates a bidding message and feeds back to the publisher. The panoramic inspection agent filters the bidding messages according to the preset task allocation strategy, selects the target equipment operation and maintenance agent, and sends a reservation request to the task coordinator. The task coordinator queries the status table of the target equipment operation and maintenance agent. If the status is idle, it marks it as reserved and notifies both parties. If it is occupied, it returns a reservation failure response. If the reservation is successful, the panoramic patrol agent sends a task assignment message containing task execution details to the target equipment operation and inspection agent through the task coordinator; The target equipment operation and maintenance agent performs abnormal diagnosis and maintenance operations, and upon completion generates and returns a task completion message containing the task ID, execution results, and maintenance log link.
[0016] Preferably, the task announcement message is encoded using a custom message protocol, uses the JSON data format, and the message type is set to TASK_ANNOUNCEMENT; The message payload contains the task ID, task description, task priority, exception location, and attachment information.
[0017] Preferably, the bidding message is encoded using a custom message protocol, using the JSON data format, and the message type is set to TASK_BID; the message payload includes the task ID, the equipment operation and maintenance intelligent body's own ID, the bidding price, the estimated completion time, and its own capability description information.
[0018] Preferably, the bidding messages are screened according to the preset task allocation strategy, the target equipment operation and inspection agent is selected, and a reservation request is sent to the task coordinator, specifically: The panoramic inspection agent evaluates the received bidding information and selects the appropriate target equipment inspection agent based on the preset task allocation strategy; The panoramic inspection agent sends a task reservation request message to the task coordinator, which contains the selected equipment inspection agent ID and task ID; After the task coordinator receives the task reservation request, the task reservation management module queries the operation and maintenance agent status table to determine whether the selected target equipment operation and maintenance agent is in an idle state; If it is in the idle state, update the state of the target equipment operation and maintenance agent to reserved, record the reserved task ID and reservation initiator information, and notify the equipment operation and maintenance agent to enter the reserved state through the operation and maintenance agent status monitoring module, and return a reservation success message to the panoramic patrol agent; If the selected target equipment inspection agent has been reserved by other tasks or is currently executing a task, the task coordinator returns a reservation failure message to the panoramic inspection agent; After the target equipment operation and maintenance agent receives the exclusive task reservation message sent by the task coordinator, it updates its own status to reserved, suspends responding to new task announcements and bidding requests, and waits for subsequent task assignments or cancellation of reservation messages.
[0019] Preferably, the task announcement message issued by the panoramic patrol agent contains a task priority field, and the task coordinator adds the task to the priority task queue according to the task priority, and sorts the tasks in the queue according to the priority level; When allocating tasks, high-priority tasks are first obtained from the head of the priority task queue for allocation; The priority task queue supports the first-in-first-out principle. Tasks with the same priority are assigned in the order they enter the queue.
[0020] Preferably, if the reservation is successful, a task assignment message containing task execution details is sent to the target equipment operation and inspection agent through the task coordinator, specifically: The task allocation message contains the task ID and detailed task description. If the reservation fails, the second-best bidder is selected and the task allocation process is retried. Alternatively, the task allocation is canceled and a cancellation message is sent to the reserved target equipment operation and maintenance agent through the task coordinator. After the task coordinator receives the cancellation message, it updates its status to idle and releases the reservation status. When the target equipment operation and maintenance agent receives the cancellation message, it updates its own status to idle, releases the reservation status, resumes monitoring task announcements, and participates in new task bidding.
[0021] Preferably, the task assignment message is encoded using a custom message protocol and uses the JSON data format; the reservation cancellation message is encoded using a custom message protocol and uses the JSON data format.
[0022] Preferably, the task coordinator monitors the status of the priority task queue in real time, and dynamically adjusts the inspection frequency of the panoramic patrol agent when the task queue length exceeds a preset threshold or the waiting time of a high-priority task is too long.
[0023] Preferably, a task completion message including the task ID, execution result, and maintenance log link is generated and returned, specifically: After receiving the task assignment message, the target equipment operation and maintenance agent parses the message content, obtains the task details, and autonomously navigates to the location of the faulty equipment to perform equipment fault diagnosis and maintenance operations. After the task is completed, the target equipment operation and maintenance agent generates a task completion message containing the task ID, the equipment operation and maintenance agent's own ID, a description of the task execution result, and a link to the maintenance log attachment, and sends it to the panoramic inspection agent that issued the task; The task completion message is encoded using a custom message protocol and the JSON data format.
[0024] Preferably, each message type includes a message type identifier, a sender ID, a receiver ID, a timestamp and a message payload, and a specific message payload data structure is defined according to the message type.
[0025] In a second aspect, an embodiment of the present invention provides a multi-agent collaborative power inspection system, comprising: Panoramic patrol agent: When power equipment is abnormal, the panoramic patrol agent is used to autonomously perform patrol tasks in a predetermined area, generate task announcement messages containing task ID, abnormal location and priority, and broadcast them to the multi-agent network after encoding; The equipment operation and inspection agent receives task announcements, responds to task announcements issued by the panoramic inspection agent, and evaluates whether to bid based on its own capability status. If it participates, it generates a bidding message and feeds back to the publisher. The panoramic patrol agent filters bidding messages according to the preset task allocation strategy, selects the target equipment operation and maintenance agent, and sends a reservation request to the task coordinator. The task coordinator queries the status table of the target equipment operation and maintenance agent. If the status is idle, it marks it as reserved and notifies both parties. If it is occupied, it returns a reservation failure response. If the reservation is successful, the panoramic patrol agent sends a task allocation message containing task execution details to the target equipment operation and maintenance agent through the task coordinator. The target equipment operation and maintenance agent performs abnormal diagnosis and maintenance operations, and after completion, generates and returns a task completion message containing the task ID, execution results, and maintenance log link. The task coordinator middleware is responsible for centrally managing the task allocation process and coordinating the collaboration between the panoramic inspection agent and the equipment operation and maintenance agent.
[0026] Preferably, the workflow of the panoramic inspection agent is as follows: Each panoramic patrol agent is equipped with a camera, infrared sensor, and temperature and humidity sensor to collect equipment images, videos, temperature, and humidity information; The panoramic patrol intelligent body integrates an equipment anomaly detection module, which uses image recognition, pattern recognition, and threshold judgment algorithms to analyze inspection data in real time and detect equipment operation anomalies; When an equipment anomaly is detected and further maintenance is determined to be required, the panoramic patrol agent generates a task announcement containing anomaly description, location information, and priority information, and publishes it to the multi-agent network via broadcast.
[0027] Preferably, the workflow of the equipment operation and inspection agent is as follows: After receiving the task announcement, the equipment operation and maintenance agent evaluates its own capabilities, current load, geographical location and other factors to decide whether to participate in the task bidding; If participating in the bidding, a bidding message containing the bidding price, estimated completion time, and a description of its own capabilities is generated and sent to the panoramic patrol agent that issued the task; After receiving the task assignment instruction, the equipment operation and maintenance agent autonomously navigates to the location of the faulty equipment according to the task description, and uses its own tools and knowledge base to perform equipment fault diagnosis, maintenance, and parts replacement. After the task is completed, a task completion report is generated, which includes a description of the maintenance results, a maintenance log, and information about replaced parts, and is fed back to the panoramic patrol agent that issued the task.
[0028] Preferably, the task coordinator middleware includes: The task reservation management module is used to process the task reservation request initiated by the panoramic patrol agent, maintain the reservation status of the equipment operation and inspection agent, record the reserved task ID and reservation initiator information, and provide an API interface for the panoramic patrol agent to query the reservation status of the equipment operation and inspection agent; The operation and maintenance agent status monitoring module is used to monitor the operating status of the equipment operation and maintenance agent in real time, including the idle, reserved, and task-executing states, as well as the load and geographic location information of the equipment operation and maintenance agent, and store the status information of the equipment operation and maintenance agent in the operation and maintenance agent status table; The task allocation arbitration module is used to assist the panoramic patrol agent in task evaluation and allocation decision-making according to the preset task allocation strategy; The priority task queue management module is used to maintain and manage the priority task queue, receive task announcements issued by the panoramic patrol agent, add tasks to the priority task queue according to the task priority information contained in the task announcement, and sort the tasks in the queue according to priority.
[0029] In a third aspect, a computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned multi-agent collaborative power inspection method when executing the computer program.
[0030] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, comprising a computer program, which, when executed by a processor, implements the steps of the above-mentioned multi-agent collaborative power inspection method.
[0031] In a fifth aspect, a chip comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned multi-agent collaborative power inspection method when executing the computer program.
[0032] In a sixth aspect, an embodiment of the present invention provides an electronic device, comprising a computer program, which, when executed by the electronic device, implements the steps of the above-mentioned multi-agent collaborative power inspection method.
[0033] Compared with the prior art, the present invention has at least the following beneficial effects: A multi-agent collaborative power inspection method addresses resource competition among multiple agents in distributed systems by introducing an independent task coordinator and state table querying. While traditional contract network protocols often cause task conflicts when operation and inspection agents directly respond to bids, this mechanism employs a "reservation-confirmation" model. The task coordinator acts as a third-party arbitrator, determining agent availability by querying the global state table and granting exclusivity to task allocation. This design draws on conflict resolution strategies used in multi-agent path planning to ensure that each operation and inspection agent handles only a single task at a time, avoiding overload.
[0034] Furthermore, the use of a structured JSON data format to define task announcements and bidding messages enhances system scalability and compatibility. Standardized fields enable data interoperability between heterogeneous systems. JSON's nested structure supports the embedding of attachments, offering superior readability and debugging convenience over traditional binary protocols.
[0035] Furthermore, a state table for the operation and maintenance agent is established to achieve global resource visualization, similar to the real-time perception of the power grid equipment status assessment agent. When the task coordinator marks a task as "reserved," the agent's task lock function is triggered, suspending responses to other requests. This preemptive scheduling strategy, inspired by resource management methods in real-time operating systems, prevents deadlocks caused by concurrent requests.
[0036] Furthermore, a dynamic priority queue is introduced to address delays in processing urgent tasks. Tasks are categorized by priority field and, combined with the first-in, first-out principle, hierarchical scheduling is implemented. This strategy aligns with the multi-objective optimization algorithm used in substation path planning. When high-priority tasks accumulate, the system automatically increases their processing weight, ensuring that critical equipment failures are addressed first, reducing grid operation risks.
[0037] Furthermore, we implement adaptive inspection frequency adjustment based on queue length thresholds. This principle is similar to the state-action feedback mechanism in reinforcement learning. When the task backlog exceeds the threshold, we reduce the inspection cycle to increase the supply of operational resources; conversely, we extend the cycle to reduce redundant inspections. This flexible scheduling strategy has been proven in Alibaba Cloud's intelligent inspection tasks and can improve resource utilization by 15%-20%.
[0038] A multi-agent collaborative power inspection system introduces a task coordinator middleware as a core component to centrally manage the task allocation process and coordinate the collaboration between the panoramic inspection agent and the equipment operation and maintenance agent. It optimizes the task allocation process of the contract network protocol and reserves tasks for the selected equipment operation and maintenance agents after task evaluation and before formal assignment to avoid multiple task allocations. It sorts tasks according to their priority, giving priority to the allocation and processing of high-priority tasks to ensure that urgent tasks receive a timely response. It dynamically adjusts the inspection frequency according to the task queue status to balance the task generation speed and processing capacity to avoid task accumulation.
[0039] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0040] In summary, the present invention significantly improves the task allocation efficiency, resource utilization, emergency task response speed, system robustness and scalability of the multi-agent collaborative inspection method by introducing task coordinator middleware and a series of optimization strategies, and realizes more intelligent, efficient and reliable multi-agent collaborative inspection, which can better meet the needs of modern industrial intelligent operation and maintenance.
[0041] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0043] Figure 1 This is the workflow diagram of the panoramic inspection agent; Figure 2 This is the workflow diagram of the equipment operation and maintenance agent; Figure 3 Flow chart of the method of the present invention; Figure 4 A schematic diagram of a computer device provided in accordance with an embodiment of the present invention; Figure 5 The present invention is a block diagram of an electronic device according to an embodiment of the present invention.
[0044] Among them, 60. Computer device; 61. Processor; 62. Memory; 63. Computer program; 600. Electronic device; 610. Processing unit; 620. Storage unit; 6201. Random access memory unit; 6202. Cache memory unit; 6203. Read-only memory unit; 6204. Program / Utility; 6205. Program module; 630. Bus; 640. Display unit; 650. Input / output interface; 660. Network adapter; 700. External device. DETAILED DESCRIPTION
[0045] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0046] In the description of the present invention, it is to be understood that the terms “include” and “comprise” indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0047] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0048] It should be further understood that the term "and / or" as used in the present specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects are in an "or" relationship.
[0049] It should be understood that although the terms "first," "second," and "third" may be used to describe preset ranges in embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are merely used to distinguish one preset range from another. For example, without departing from the scope of embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
[0050] The word "if," as used herein, may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0051] The accompanying drawings illustrate various schematic diagrams of structures according to embodiments disclosed herein. These figures are not drawn to scale; for clarity, some details are exaggerated and some details may be omitted. The shapes of the various regions and layers shown in the figures, as well as their relative sizes and positional relationships, are merely exemplary and may deviate in practice due to manufacturing tolerances or technical limitations. Those skilled in the art may design regions / layers with different shapes, sizes, and relative positions as needed.
[0052] The Contract Net Protocol (CNP) is a classic distributed task allocation protocol. It allows task issuers and task executors to dynamically allocate tasks through negotiation and bidding, offering excellent flexibility and robustness. In the CNP, task issuers (in this case, the panoramic patrol agent) publish task announcements. Potential task executors (in this case, the equipment maintenance agent) decide whether to bid based on their capabilities and status. The task issuer then selects a suitable executor based on the bid information received and assigns the task.
[0053] The present invention provides a multi-agent collaborative power inspection method. By introducing a task coordinator middleware to optimize the task allocation process of the contract network protocol, and combining priority task queues and dynamic task scheduling strategies, it realizes intelligent and efficient inspection task allocation and operation and inspection task processing, which provides great help to the distributed collaboration and efficient operation and inspection applications of panoramic inspection agents and equipment operation and inspection agents in power stations.
[0054] Explanation of related terms Multi-Agent System (MAS): A system composed of multiple agents that can collaborate with each other to complete complex tasks. In this invention, the panoramic inspection agent and the equipment inspection agent together constitute the multi-agent system.
[0055] Agent: An autonomous entity that can perceive its environment, make decisions, and perform actions. In this context, an agent can be a software program or a physical device (such as a robot).
[0056] Contract Net Protocol (CNP): A distributed task allocation protocol that implements dynamic task allocation between task publishers and executors through negotiation mechanisms such as task announcements, bidding, and allocation.
[0057] Task Coordinator Middleware: Located in the middle layer of the multi-agent system, it is responsible for centrally managing the task allocation process, coordinating collaboration between agents, and providing functions such as task reservation, status monitoring, task arbitration, and priority task queue management.
[0058] Panoramic Inspection Agent: An agent responsible for performing inspection tasks. It can autonomously navigate, collect inspection data, detect equipment anomalies, and issue task announcements when an anomaly is detected.
[0059] Equipment Maintenance Agent: An agent responsible for performing equipment maintenance tasks. It can respond to task announcements, participate in task bidding, receive task assignments, and perform equipment fault diagnosis, maintenance, and parts replacement.
[0060] Task Announcement: A broadcast message issued by the panoramic patrol agent containing information such as task description and priority, used to inform the equipment operation and maintenance agent of new maintenance task requirements.
[0061] Task Bidding: After receiving the task announcement, the equipment operation and maintenance agent evaluates whether to participate in the bidding based on its own capabilities and status. If it participates, it sends a bidding message to the panoramic inspection agent that issued the task.
[0062] Exclusive Task Reservation: After task evaluation and before formal assignment, the panoramic patrol agent requests the task coordinator to reserve the task for the selected equipment operation and maintenance agent, ensuring that the operation and maintenance agent will not be assigned other tasks during the reservation period, thus avoiding multiple task assignments.
[0063] Priority Task Queue: A task queue maintained by the task coordinator that sorts tasks according to their priority to ensure that high-priority tasks are assigned and processed first.
[0064] Dynamic Task Scheduling: The system dynamically adjusts the inspection frequency strategy based on the task queue status to balance the task generation speed and task processing capacity to avoid task accumulation.
[0065] JSON (JavaScript Object Notation): A lightweight data exchange format that is easy for humans to read and write, and also easy for machines to parse and generate. The present invention uses the JSON data format for message encoding.
[0066] Example 1 The present invention provides a multi-agent collaborative power inspection method, comprising the following steps: S1,Task announcement,When the panoramic patrol agent detects an equipment anomaly, it generates a task announcement message and broadcasts it to the multi-agent network; Task announcement messages are encoded using a custom message protocol, using the JSON data format, and the message type is set to "TASK_ANNOUNCEMENT." The message payload includes information such as the task ID, task description (for example, "Temperature anomaly detected in transformer area A"), task priority (for example, "High," "Medium," or "Low"), the location of the anomaly, and attachments (for example, an infrared image of the anomaly area).
[0067] S2. Task Bidding: After receiving the task announcement, the Equipment Operation and Maintenance Agent evaluates whether to bid based on its capabilities and status. If it does, it generates a bid message and sends it to the Panoramic Inspection Agent that posted the task. The bid message is encoded using a custom message protocol, using the JSON data format, and the message type is set to "TASK_BID." The message payload includes information such as the task ID, the Equipment Operation and Maintenance Agent's own ID, the bid price (e.g., estimated maintenance time), the expected completion time, and a description of its capabilities (e.g., "power transformer maintenance skills").
[0068] S3. Task Evaluation and Exclusive Reservation: The panoramic patrol agent evaluates the received bid message and selects a suitable equipment operation and maintenance agent based on a preset task allocation strategy (e.g., "earliest estimated completion time first" strategy). The panoramic patrol agent then sends a task reservation request message, "TASK_RESERVATION," to the task coordinator. The message contains the selected equipment operation and maintenance agent ID and task ID. After the task coordinator receives the task reservation request, the task reservation management module queries the operation and maintenance agent status table to determine whether the selected equipment operation and maintenance agent is idle. If it is idle, the status of the equipment operation and maintenance agent is updated to "reserved," the reserved task ID and reservation initiator information are recorded, and the operation and maintenance agent status monitoring module notifies the equipment operation and maintenance agent to enter the reserved state. A reservation success message is then returned to the panoramic patrol agent. If the selected equipment operation and maintenance agent has already been reserved for another task or is currently executing a task, the task coordinator returns a reservation failure message to the panoramic patrol agent. After receiving the exclusive task reservation message "TASK_RESERVATION" sent by the task coordinator, the equipment operation and maintenance agent updates its own status to "reserved", suspends responding to new task announcements and bidding requests, and waits for subsequent task assignments or cancellation of reservation messages.
[0069] The priority task queue management module of the task coordinator maintains a priority task queue for storing task announcements to be assigned. The task announcement message issued by the panoramic patrol agent contains a task priority field. The task coordinator adds tasks to the priority task queue according to the task priority and sorts the tasks in the queue according to their priority. When the system assigns tasks, the task assignment arbitration module gives priority to obtaining high-priority tasks from the head of the priority task queue for assignment, ensuring that urgent and important maintenance tasks can be processed in a timely manner. The priority task queue supports the first-in-first-out (FIFO) principle. For tasks of the same priority, they are assigned in the order in which they enter the queue.
[0070] In the task allocation arbitration module, the task allocation strategy can be flexibly configured. In addition to the strategies mentioned in this invention (lowest bid price strategy, earliest estimated completion time strategy, best capacity matching strategy, load balancing strategy, optimal geographical location strategy, and priority-driven strategy), other task allocation strategies can also be adopted, such as: Strategy based on quality of service (QoS): Task allocation is based on comprehensive consideration of service quality indicators such as the reliability and maintenance quality of the equipment operation and maintenance intelligent body.
[0071] Reinforcement learning-based strategy: Use reinforcement learning algorithms to train the task allocation model and learn the optimal task allocation strategy based on the system operating status and historical data.
[0072] Hybrid strategy: Combine multiple task allocation strategies and dynamically select the appropriate strategy based on different application scenarios and system status.
[0073] S4. Task Assignment or Cancellation: The Panoramic Patrol Agent receives the reservation result from the Task Coordinator. If the reservation is successful, the Panoramic Patrol Agent finalizes the task assignment and sends a task assignment message, "TASK_ASSIGNMENT," to the reserved Equipment Operation and Maintenance Agent through the Task Coordinator. The message contains information such as the task ID and detailed description. The task assignment message is encoded using a custom message protocol and the JSON data format. If the reservation fails (for example, if the selected Equipment Operation and Maintenance Agent has already been reserved for another task), the Panoramic Patrol Agent may consider selecting the next best Equipment Operation and Maintenance Agent or retry the task assignment process later. Alternatively, the Panoramic Patrol Agent may decide to cancel the task assignment and send a "CANCEL_RESERVATION" message to the reserved Equipment Operation and Maintenance Agent through the Task Coordinator. The "CANCEL_RESERVATION" message is encoded using a custom message protocol and the JSON data format. After the Task Coordinator receives the "CANCEL_RESERVATION" message, the Task Reservation Management Module updates the Equipment Operation and Maintenance Agent's status to "Idle" and notifies the Agent to release the reservation. After receiving the reservation cancellation message "CANCEL_RESERVATION", the equipment operation and maintenance agent updates its own status to "Idle", cancels the reservation status, resumes monitoring task announcements, and participates in new task bidding.
[0074] The task coordinator or panoramic patrol agent monitors the status of the priority task queue in real time, such as queue length and the waiting time of high-priority tasks. When the task queue length exceeds a preset threshold or the waiting time of high-priority tasks becomes too long, the panoramic patrol agent's inspection frequency can be dynamically adjusted. For example, the inspection frequency can be reduced or some panoramic patrol agents' inspection tasks can be suspended to balance the speed of task generation and task processing capacity, prevent unlimited task queue accumulation, and maintain efficient system operation. Dynamic task scheduling strategies can be flexibly configured according to actual application scenarios, for example, different thresholds and adjustment strategies can be set.
[0075] There are also multiple alternatives for dynamic task scheduling strategies, such as: Event-triggered task scheduling: Dynamic task scheduling is triggered when a specific event occurs (for example, excessive system load, backlog of high-priority tasks, etc.).
[0076] Multi-level dynamic task scheduling: A hierarchical dynamic task scheduling mechanism is adopted, for example, it is divided into global dynamic scheduling and local dynamic scheduling. Global dynamic scheduling is responsible for macro-task load balancing, and local dynamic scheduling is responsible for fine-grained task allocation optimization.
[0077] S5. Task execution and reporting. After the equipment operation and maintenance agent assigned the task receives the task assignment message "TASK_ASSIGNMENT", it parses the message content, obtains detailed task information, autonomously navigates to the location of the faulty equipment, and uses its own tools and preset maintenance knowledge base to perform equipment fault diagnosis and maintenance operations. After the task is completed, the equipment operation and maintenance agent generates a task completion message "TASK_COMPLETION", which contains the task ID, the equipment operation and maintenance agent's own ID, a description of the task execution result (for example, "The transformer cooling fan has been replaced and the temperature has returned to normal"), a maintenance log attachment link and other information, and sends it to the panoramic patrol agent that issued the task. The task completion message is encoded using a custom message protocol and uses the JSON data format.
[0078] A custom message protocol is used and the message is encoded using the JSON data format. The custom message protocol defines a variety of message types based on the task interaction process of the contract network protocol, including: a.Task announcement message (TASK_ANNOUNCEMENT); b. Task bidding message (TASK_BID); c.Task assignment message (TASK_ASSIGNMENT); d.Task completion message (TASK_COMPLETION); e. Exclusive task reservation message (TASK_RESERVATION); f. Cancel reservation message (CANCEL_RESERVATION).
[0079] Each message type contains common fields such as a message type identifier, sender ID, receiver ID, timestamp, and message payload. A specific message payload data structure is defined based on the message type. For example, the message payload of a task announcement message includes fields such as the task ID, task description, task priority, exception location, and attachment information. In this invention, a task priority field is specifically added to task announcement messages to support priority task scheduling strategies.
[0080] The JSON data format is used for message encoding, which has the advantages of being lightweight and efficient, easy to parse and generate, and having good cross-platform compatibility. It can meet the efficient communication needs of multi-agent systems in resource-constrained environments.
[0081] Although JSON is lightweight and efficient, in some resource-constrained scenarios, consider using a more lightweight message encoding format, such as Protocol Buffers and MessagePack. Furthermore, the specific fields and data structures of the message protocol can be adjusted and expanded based on actual application requirements.
[0082] Those skilled in the art will appreciate that various aspects of the present invention may be implemented as systems, methods, or program products. Accordingly, various aspects of the present invention may be implemented in the following forms: entirely in hardware, entirely in software (including firmware, microcode, etc.), or in a combination of hardware and software, collectively referred to herein as "circuits," "modules," or "platforms."
[0083] Example 2 The present invention provides a multi-agent collaborative power inspection system, which can be used to implement the above-mentioned multi-agent collaborative power inspection method. Specifically, the multi-agent collaborative power inspection system includes a panoramic patrol agent, an equipment operation and maintenance agent and a task coordinator middleware. The panoramic patrol agent is used to autonomously perform patrol tasks within a predetermined area, and the equipment operation and maintenance agent is used to respond to task announcements issued by the panoramic patrol agent; the task coordinator middleware is responsible for centrally managing the task allocation process and coordinating the collaboration between the panoramic patrol agent and the equipment operation and maintenance agent.
[0084] See also Figure 1 ,The workflow of the panoramic inspection agent is as follows: Multiple panoramic patrol agents are deployed in power stations, responsible for autonomously performing patrol tasks within predetermined areas. Each panoramic patrol agent is equipped with multiple sensors such as cameras, infrared sensors, temperature and humidity sensors, and can collect equipment images, videos, temperature, humidity and other information. The panoramic patrol agent integrates an equipment anomaly detection module. Based on algorithms such as image recognition, pattern recognition, and threshold judgment, it analyzes inspection data in real time and detects equipment operation anomalies, such as abnormally high surface temperature of the equipment, abnormal noise from the equipment, deformation or damage of equipment components, etc. When an equipment anomaly is detected and further maintenance is determined to be required, the panoramic patrol agent generates a task announcement containing anomaly description, location information, priority and other information, and publishes it to the multi-agent network via broadcast.
[0085] See also Figure 2 ,The workflow of the equipment operation and inspection agent is as follows: Multiple equipment maintenance agents are deployed in power stations, responsible for responding to task announcements issued by the panoramic patrol agent. Upon receiving a task announcement, the equipment maintenance agent evaluates its own capabilities, current load, geographic location, and other factors to determine whether to bid for the task. If it does, it generates a bid message containing information such as the bid price, estimated completion time, and a description of its own capabilities, and sends it to the panoramic patrol agent that issued the task. Upon receiving the task assignment, the equipment maintenance agent autonomously navigates to the location of the faulty equipment based on the task description and, using its own tools and knowledge base, performs equipment fault diagnosis, maintenance, and component replacement. Upon completion of the task, it generates a task completion report containing a description of the maintenance results, a maintenance log, and information about replaced components, and returns it to the panoramic patrol agent that issued the task.
[0086] The task coordinator middleware includes the following four functional modules: Task Reservation Management Module: This module processes task reservation requests initiated by the Panoramic Patrol Agent, maintains the reservation status of the Equipment Operation and Maintenance Agent, records information such as the reserved task ID and reservation initiator, and provides an API interface for the Panoramic Patrol Agent to query the reservation status of the Equipment Operation and Maintenance Agent. The Task Reservation Management Module maintains the Operation and Maintenance Agent status table, records the reservation status of the Equipment Operation and Maintenance Agent, the reserved task ID, and the reservation initiator information, and provides an API interface for the Panoramic Patrol Agent to query the reservation status of the Equipment Operation and Maintenance Agent.
[0087] The Operation and Maintenance Agent Status Monitoring Module is used to monitor the operational status of the equipment operation and maintenance agent in real time, including idle, reserved, and task-executing states, as well as the load and geographic location of the equipment operation and maintenance agent. The module also stores this information in the operation and maintenance agent status table. The Operation and Maintenance Agent Status Monitoring Module provides an API interface for the panoramic inspection agent and system management module to query the real-time status information of the equipment operation and maintenance agent, providing data support for task allocation decisions.
[0088] Task allocation arbitration module: It is used to assist the panoramic patrol agent in making task evaluation and allocation decisions based on the preset task allocation strategy. The task allocation strategy can be flexibly configured according to the actual application scenario. For example, the lowest bid price strategy, the earliest estimated completion time strategy, the best capacity matching strategy, the load balancing strategy, the optimal geographical location strategy, and the priority-driven strategy can be adopted. In complex scenarios, for example, when multiple panoramic patrol agents compete for the same equipment operation and maintenance agent resources at the same time, the task allocation arbitration module can arbitrate according to the preset strategy, provide task allocation suggestions, and assist the panoramic patrol agent in making more reasonable task allocation decisions, thereby improving the overall performance of the system.
[0089] Priority task queue management module: used to maintain and manage the priority task queue, receive task announcements issued by the panoramic patrol agent, add tasks to the priority task queue according to the task priority information contained in the task announcement, and sort the tasks in the queue according to priority. When the system assigns tasks, the priority task queue management module gives priority to obtaining high-priority tasks from the head of the queue for assignment, ensuring that urgent and important maintenance tasks can be processed in a timely manner. The priority task queue management module provides an API interface for the panoramic patrol agent and the task coordinator to query the real-time status of the priority task queue, such as the queue length, the waiting time of tasks in the queue, etc.
[0090] Example 3 The present invention provides a terminal device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, graphics processing units (GPUs), tensor processing units (TPUs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to implement corresponding method processes or corresponding functions; the processor described in the embodiment of the present invention can be used for the operation of a multi-agent collaborative power inspection method, including: When an abnormality occurs in power equipment, a task announcement message containing the task ID, abnormal location and priority is generated, and broadcast to the multi-agent network after encoding; after receiving the task announcement message, the system evaluates whether to bid based on its own capability status; if it participates, it generates a bidding message and feeds back to the publisher; the bidding message is filtered according to the preset task allocation strategy, the target equipment operation and maintenance agent is selected, and a reservation request is sent to the task coordinator; the task coordinator queries the status table of the target agent, and if the status is idle, it is marked as reserved and both parties are notified; if it is occupied, a reservation failure response is returned; if the reservation is successful, a task allocation message containing task execution details is sent to the target agent through the task coordinator; abnormal diagnosis and maintenance operations are performed, and after completion, a task completion message containing the task ID, execution results and maintenance log link is generated and returned.
[0091] See also Figure 4 The terminal device is a computer device. The computer device 60 of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable by the processor 61. When the computer program 63 is executed by the processor 61, it implements the multi-agent collaborative power inspection method of the embodiment. To avoid repetition, it is not described in detail here. Alternatively, when the computer program 63 is executed by the processor 61, it implements the functions of each model / unit in the multi-agent collaborative power inspection system of the embodiment. To avoid repetition, it is not described in detail here.
[0092] The computer device 60 may be a desktop computer, a notebook computer, a PDA, a cloud server, or other computing devices. The computer device 60 may include, but is not limited to, a processor 61 and a memory 62. It will be understood by those skilled in the art that Figure 4 This is merely an example of the computer device 60 and does not constitute a limitation of the computer device 60 . The computer device 60 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0093] The processor 61 may be a central processing unit (CPU), or other general-purpose processors, a graphics processing unit (GPU), a tensor processing unit (TPU), 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, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0094] The memory 62 may be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60. The memory 62 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 60.
[0095] Furthermore, the memory 62 may include both an internal storage unit of the computer device 60 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the computer device. The memory 62 may also be used to temporarily store data that has been output or is about to be output.
[0096] See also Figure 5 The terminal device is an electronic device 600, which is implemented as a general-purpose computing device. The components of the electronic device may include, but are not limited to, at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), and a display unit 640.
[0097] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above method section of this specification. For example, the processing unit 610 can perform the following steps: Figure 3 Follow the steps shown in .
[0098] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0099] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0100] Bus 630 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0101] The electronic device 600 may also communicate with one or more external devices 700 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., a router, a modem). Such communication may occur via an input / output interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network, a wide area network, and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.
[0102] Example 4 The present invention also provides a storage medium, specifically a computer-readable storage medium. The computer-readable storage medium is a memory device in a terminal device, used to store programs and data. It is understood that the computer-readable storage medium herein may include both the built-in storage medium in the terminal device and, of course, the extended storage medium supported by the terminal device. It may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. The computer-readable storage medium provides storage space that stores the terminal's operating system. Furthermore, the storage space also stores one or more instructions suitable for being loaded and executed by a processor. These instructions may be one or more computer programs (including program code). It should be noted that more specific examples of the computer-readable storage medium herein include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0103] Computer-readable storage media also include data signals propagated in baseband or as part of a carrier wave, which carry readable program code. Such propagated data signals can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium can also be any readable medium other than a readable storage medium, which can send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the readable storage medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, radio frequency, etc., or any suitable combination of the above.
[0104] The program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and the like, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network or a wide area network, or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0105] The processor may load and execute one or more instructions stored in a computer-readable storage medium to implement the corresponding steps of the multi-agent collaborative power inspection method in the above embodiment; the processor may load and execute the following steps: When an abnormality occurs in power equipment, a task announcement message containing the task ID, abnormal location and priority is generated, and broadcast to the multi-agent network after encoding; after receiving the task announcement message, the system evaluates whether to bid based on its own capability status; if it participates, it generates a bidding message and feeds back to the publisher; the bidding message is filtered according to the preset task allocation strategy, the target equipment operation and maintenance agent is selected, and a reservation request is sent to the task coordinator; the task coordinator queries the status table of the target agent, and if the status is idle, it is marked as reserved and both parties are notified; if it is occupied, a reservation failure response is returned; if the reservation is successful, a task allocation message containing task execution details is sent to the target agent through the task coordinator; abnormal diagnosis and maintenance operations are performed, and after completion, a task completion message containing the task ID, execution results and maintenance log link is generated and returned.
[0106] The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may include, but are not limited to, general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic units, data processing logic units based on quantum computing, and the like.
[0107] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0108] 1. Improved task allocation efficiency Experimental data support Optimized task processing speed: In a test case at the Hongqiao substation in Chuzhou, Anhui Province, an inspection robot equipped with an intelligent model, through multi-source heterogeneous data processing (cameras, infrared thermal imaging, and local electrical monitoring), achieved anomaly detection speeds 40 times faster than manual inspections. Compared to traditional contract network protocols, the priority queue mechanism of this invention can reduce the response time of high-priority tasks by over 30%.
[0109] Load balancing effect: Lenovo Morningstar's intelligent inspection system uses digital twins and multi-device linkage technology to achieve multi-agent collaborative operations at a State Grid substation, reducing the task allocation conflict rate to less than 5% and increasing resource utilization to over 85%. 2. Resource Utilization and Dynamic Scheduling Optimization Simulation Verification Edge computing scheduling model: In the paper "Neighborhood-Aware Distributed Intelligent Edge Computing Offloading and Resource Allocation Algorithm," simulations of multi-base station, multi-user scenarios based on the Gat-HMARL algorithm show that a dynamic adjustment mechanism reduces system energy consumption by 22% and task queue accumulation by 40%. The dynamic frequency adjustment strategy of the present invention draws on this model to cope with sudden task peaks.
[0110] Dual-core task scheduling: Experiments with rural power grid inspection terminals show that using ESP32's dual-core concurrent processing technology reduces image acquisition time from 120ms (UXVGA resolution) to 20ms (QVGA resolution), while improving CPU load balancing by 60%.
[0111] 3. System robustness and scalability Data comparison Interference resistance: Simulations of a digital twin-based power equipment inspection method show that the synchronization error between the virtual model and the actual equipment status is less than 1.5%, reducing the missed detection rate from 12% with traditional manual inspections to 0.8%. This invention further reduces multi-agent collaboration errors through global status monitoring by the task coordinator.
[0112] Optimized communication efficiency: In rural network terminal applications, the Quectel EG810M module enables remote delivery of inspection data via LTE CAT.1. Single-task data transmission takes less than 500ms, and the network packet loss rate is less than 0.3%.
[0113]
[0114] The simulation and measured data above demonstrate that the core innovations of this invention significantly outperform existing technologies in terms of efficiency, robustness, and cost-effectiveness. This technological advantage is particularly competitive in high-load scenarios and complex environments. In the future, the integration of digital twin technology and edge computing could further optimize dynamic decision-making capabilities.
[0115] In summary, the multi-agent collaborative power inspection method and system of the present invention has the following significant advantages: More efficient task allocation: The introduction of the Task Coordinator middleware enables centralized management and coordination of the task allocation process, effectively avoiding resource competition and task allocation conflicts, and improving the efficiency and accuracy of task allocation. The exclusive task reservation mechanism ensures exclusive reservation of maintenance agent resources before task allocation, avoiding resource waste and system chaos caused by multiple task allocations.
[0116] Improved resource utilization: The task coordinator middleware's maintenance agent status monitoring module monitors maintenance agent status in real time, providing data support for task allocation decisions. This allows for more rational task allocation, load balancing across maintenance agents, and reducing idle resources. Dynamic task scheduling dynamically adjusts inspection frequency based on task queue status, balancing task generation speed and processing capacity, preventing task backlogs and wasted inspection resources, further improving resource utilization.
[0117] Faster response to emergency tasks: The priority task queue management module can sort tasks according to their priority and allocate and process high-priority tasks first, ensuring that urgent and important maintenance tasks can be responded to and processed in a timely manner, reducing the risk of equipment failure and improving the overall robustness and reliability of the system.
[0118] Greater system robustness: The distributed architecture and contract network protocol are inherently robust, and the task coordinator middleware, as an independent component, can further enhance the reliability and stability of the system. Even if some agents or components fail, the system can continue to operate.
[0119] Improved system scalability: The system adopts a modular design with clear responsibilities for each functional module, making it easy to expand and maintain. The number of panoramic patrol agents and equipment inspection agents can be easily increased or decreased to accommodate inspection tasks of varying scale and complexity. The task coordinator middleware also offers excellent scalability, supporting task coordination and management in large-scale multi-agent systems.
[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0121] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0122] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0123] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices or units, and can be electrical, mechanical, or other forms.
[0124] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0125] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0126] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices, and computer program products according to the embodiments of the present application. 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 device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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 device that provides the functions specified in a block or multiple blocks.
[0128] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0130] The above content is only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A multi-agent collaborative power inspection method, characterized in that: The following steps are involved: When an abnormality occurs in power equipment, the panoramic patrol agent generates a task announcement message containing the task ID, abnormal location and priority, which is then encoded and broadcast to the multi-agent network. The equipment operation and maintenance agent receives the task announcement message and evaluates whether to bid based on its own capability status. If it participates, it generates a bidding message and feeds back to the publisher. The panoramic inspection agent screens the bidding messages according to the preset task allocation strategy, selects the target equipment operation and inspection agent, and sends a reservation request to the task coordinator; The task coordinator queries the status table of the target equipment operation and maintenance agent. If the status is idle, it is marked as reserved and notified to both parties. If it is occupied, a reservation failure response is returned. If the reservation is successful, the panoramic patrol agent sends a task assignment message containing task execution details to the target equipment operation and inspection agent through the task coordinator; The target equipment operation and maintenance agent performs abnormal diagnosis and maintenance operations, and upon completion generates and returns a task completion message containing the task ID, execution results, and maintenance log link.
2. The multi-agent collaborative power inspection method according to claim 1, characterized in that: Task announcement messages are encoded using a custom message protocol, using the JSON data format, and the message type is set to TASK_ANNOUNCEMENT; The message payload contains the task ID, task description, task priority, exception location, and attachment information.
3. The multi-agent collaborative power inspection method according to claim 1, characterized in that: The bidding message is encoded using a custom message protocol, using the JSON data format, and the message type is set to TASK_BID; the message payload contains the task ID, the equipment operation and maintenance agent's own ID, the bidding price, the estimated completion time, and its own capability description information.
4. The multi-agent collaborative power inspection method according to claim 1, characterized in that: According to the preset task allocation strategy, the bidding message is filtered, the target equipment operation and maintenance agent is selected, and a reservation request is sent to the task coordinator. Specifically: The panoramic inspection agent evaluates the received bidding information and selects the appropriate target equipment inspection agent based on the preset task allocation strategy; The panoramic inspection agent sends a task reservation request message to the task coordinator, which contains the selected equipment inspection agent ID and task ID; After the task coordinator receives the task reservation request, the task reservation management module queries the operation and maintenance agent status table to determine whether the selected target equipment operation and maintenance agent is in an idle state; If it is in the idle state, update the state of the target equipment operation and inspection agent to reserved, record the reserved task ID and reservation initiator information, and notify the target equipment operation and inspection agent to enter the reserved state through the operation and inspection agent state monitoring module, and return a reservation success message to the panoramic patrol agent; If the selected target equipment inspection agent has been reserved by other tasks or is currently executing a task, the task coordinator returns a reservation failure message to the panoramic inspection agent; After the target equipment operation and maintenance agent receives the exclusive task reservation message sent by the task coordinator, it updates its own status to reserved, suspends responding to new task announcements and bidding requests, and waits for subsequent task assignments or cancellation of reservation messages.
5. The multi-agent collaborative power inspection method according to claim 4, characterized in that: The task announcement message released by the panoramic patrol agent contains a task priority field. The task coordinator adds the task to the priority task queue according to the task priority and sorts the tasks in the queue according to the priority level. When allocating tasks, high-priority tasks are first obtained from the head of the priority task queue for allocation; The priority task queue supports the first-in-first-out principle. Tasks with the same priority are assigned in the order they enter the queue.
6. The multi-agent collaborative power inspection method according to claim 1, characterized in that: If the reservation is successful, the task coordinator sends a task assignment message containing the task execution details to the target equipment operation and maintenance agent, specifically: The task allocation message contains the task ID and detailed task description. If the reservation fails, the second-best bidder is selected and the task allocation process is retried. Alternatively, the task allocation is canceled and a cancellation message is sent to the reserved target equipment operation and maintenance agent through the task coordinator. After the task coordinator receives the cancellation message, it updates its status to idle and releases the reservation status. When the target equipment operation and maintenance agent receives the cancellation message, it updates its own status to idle, releases the reservation status, resumes monitoring task announcements, and participates in new task bidding.
7. The multi-agent collaborative power inspection method according to claim 6, characterized in that: Task assignment messages are encoded using a custom message protocol and the JSON data format; reservation cancellation messages are encoded using a custom message protocol and the JSON data format.
8. The multi-agent collaborative power inspection method according to claim 6, characterized in that: The task coordinator monitors the status of the priority task queue in real time. When the task queue length exceeds the preset threshold or the waiting time of high-priority tasks is too long, the inspection frequency of the panoramic patrol agent is dynamically adjusted.
9. The multi-agent collaborative power inspection method according to claim 1, characterized in that: Generate and return a task completion message containing the task ID, execution result, and maintenance log link. Specifically: After receiving the task assignment message, the target equipment operation and maintenance agent parses the message content, obtains the task details, and autonomously navigates to the location of the faulty equipment to perform equipment fault diagnosis and maintenance operations. After the task is completed, the target equipment operation and maintenance agent generates a task completion message containing the task ID, the equipment operation and maintenance agent's own ID, a description of the task execution result, and a link to the maintenance log attachment, and sends it to the panoramic inspection agent that issued the task; The task completion message is encoded using a custom message protocol and the JSON data format.
10. The multi-agent collaborative power inspection method according to claim 9, characterized in that: Each message type contains a message type identifier, sender ID, receiver ID, timestamp, and message payload, and defines a specific message payload data structure based on the message type.
11. A multi-agent collaborative power inspection system, characterized in that: include: Panoramic patrol agent: When power equipment is abnormal, the panoramic patrol agent is used to autonomously perform patrol tasks in a predetermined area, generate task announcement messages containing task ID, abnormal location and priority, and broadcast them to the multi-agent network after encoding; The equipment operation and inspection agent receives task announcements, responds to task announcements issued by the panoramic inspection agent, and evaluates whether to bid based on its own capability status. If it participates, it generates a bidding message and feeds back to the publisher. The panoramic inspection agent screens the bidding messages according to the preset task allocation strategy, selects the target equipment operation and inspection agent, and sends a reservation request to the task coordinator; The task coordinator queries the status table of the target equipment operation and maintenance agent. If the status is idle, it is marked as reserved and both parties are notified. If it is occupied, a reservation failure response is returned. If the reservation is successful, the panoramic patrol agent sends a task assignment message containing task execution details to the target equipment operation and maintenance agent through the task coordinator. The target equipment operation and maintenance agent performs abnormal diagnosis and maintenance operations, and after completion, generates and returns a task completion message containing the task ID, execution results, and maintenance log link; The task coordinator middleware is responsible for centrally managing the task allocation process and coordinating the collaboration between the panoramic inspection agent and the equipment operation and maintenance agent.
12. The multi-agent collaborative power inspection system according to claim 11, characterized in that: The workflow of the panoramic inspection agent is as follows: Each panoramic patrol agent is equipped with a camera, infrared sensor, and temperature and humidity sensor to collect equipment images, videos, temperature, and humidity information; The panoramic patrol intelligent body integrates an equipment anomaly detection module, which uses image recognition, pattern recognition, and threshold judgment algorithms to analyze inspection data in real time and detect equipment operation anomalies; When an equipment anomaly is detected and further maintenance is determined to be required, the panoramic patrol agent generates a task announcement containing anomaly description, location information, and priority information, and publishes it to the multi-agent network via broadcast.
13. The multi-agent collaborative power inspection system according to claim 11, characterized in that: The workflow of the equipment operation and maintenance agent is as follows: After receiving the task announcement, the equipment operation and maintenance agent evaluates its own capabilities, current load, geographical location and other factors to decide whether to participate in the task bidding; If participating in the bidding, a bidding message containing the bidding price, estimated completion time, and a description of its own capabilities is generated and sent to the panoramic patrol agent that issued the task; After receiving the task assignment instruction, the equipment operation and maintenance agent autonomously navigates to the location of the faulty equipment according to the task description, and uses its own tools and knowledge base to perform equipment fault diagnosis, maintenance, and parts replacement. After the task is completed, a task completion report is generated, which includes a description of the maintenance results, a maintenance log, and information about replaced parts, and is fed back to the panoramic patrol agent that issued the task.
14. The multi-agent collaborative power inspection system according to claim 11, characterized in that: The task coordinator middleware includes: The task reservation management module is used to process the task reservation request initiated by the panoramic patrol agent, maintain the reservation status of the equipment operation and inspection agent, record the reserved task ID and reservation initiator information, and provide an API interface for the panoramic patrol agent to query the reservation status of the equipment operation and inspection agent; The operation and maintenance agent status monitoring module is used to monitor the operating status of the equipment operation and maintenance agent in real time, including the idle, reserved, and task-executing states, as well as the load and geographic location information of the equipment operation and maintenance agent, and store the status information of the equipment operation and maintenance agent in the operation and maintenance agent status table; The task allocation arbitration module is used to assist the panoramic patrol agent in task evaluation and allocation decision-making according to the preset task allocation strategy; The priority task queue management module is used to maintain and manage the priority task queue, receive task announcements issued by the panoramic patrol agent, add tasks to the priority task queue according to the task priority information contained in the task announcement, and sort the tasks in the queue according to priority.
15. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions that, when executed by a computing device, cause the computing device to perform the method of any one of claims 1 to 10 .
16. A computing device, characterized in that include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include steps for executing the method according to any one of claims 1 to 10.
Citation Information
Cited By
Agent agent-assisted operation and maintenance task allocation method and system
CN120822812A