A logistics full-link dynamic diagnosis method and device fusing group intelligence

By creating IM emergency groups in the logistics system, aligning alarm information with timestamps, and using graph neural networks and large language models for fault reasoning, the inefficiency and lack of intelligence in fault handling in the logistics system are solved. This achieves efficient multimodal data fusion and automated diagnosis, improving fault response speed and system continuity.

CN123140808APending Publication Date: 2026-11-20ZHEJIANG NUMBER CHAIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611557803.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2026-06-24
Filing Date
2026-10-09
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Fault handling in logistics systems suffers from high reliance on manual labor, low efficiency, easy omission of key data, delayed information synchronization, severe information fragmentation, insufficient intelligence and automation, lack of dynamic reasoning and contextual association, and existing LLM solutions are limited to local diagnosis. Traditional rule engines lack dynamic reasoning capabilities and cannot generate end-to-end automated fault diagnosis and handling reports.

Method used

A dynamic diagnostic approach for the entire logistics chain, which integrates group intelligence, is adopted. By detecting abnormalities in logistics operations or system-level failures, alarm information is generated, IM emergency groups are created, alarm information is timestamped and aligned, operation and maintenance communication text is parsed and structured, and fault reasoning is performed using graph neural networks and large language models to generate handling opinions, thereby realizing multimodal data fusion and automated closed-loop processing.

Benefits of technology

It achieves multimodal data fusion, intelligent correlation reasoning and automated closed-loop processing, dynamic collaborative diagnosis and root cause localization, shortens fault handling time, improves fault response speed and decision-making efficiency, reduces manual intervention, and improves operation and maintenance efficiency and system continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140808A_ABST
    Figure CN123140808A_ABST
Patent Text Reader

Abstract

The application discloses a logistics full-link dynamic diagnosis method and device fusing group intelligence. The method pushes alarm information through automatic detection, obtains structured information, reasons to form a cause, generates disposal opinions, generates operation and maintenance logs, realizes multi-modal data fusion, intelligent correlation reasoning and automatic closed-loop processing mechanism, full-link intelligent correlation and multi-modal evidence aggregation, dynamic collaborative diagnosis and root cause positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to dynamic diagnosis of the entire logistics chain, and in particular to a method and apparatus for dynamic diagnosis of the entire logistics chain that integrates group intelligence. Background Technology

[0002] Distributed microservice architecture, as a core paradigm for building resilient and agile applications, is widely used in core logistics business systems, such as logistics services, order management, warehouse scheduling, transportation optimization, and delivery management. Currently, fault handling processes in logistics systems, regardless of whether they are supported by some automation tools, generally suffer from the following significant drawbacks: 1. High reliance on manual labor and low efficiency: Time-consuming manual information collection and organization: When a failure occurs, operations and maintenance personnel need to spend a lot of time on manual operations, including manually creating emergency groups, collecting scattered log data and server status indicators from different monitoring systems and log platforms, and manually forwarding screenshots and text messages in IM groups. Subsequently, this information also needs to be manually organized, which is time-consuming and inefficient.

[0003] Key data is easily overlooked and information synchronization is delayed: During manual processing, due to the complexity of information sources and the need for manual correlation, maintenance personnel are prone to overlooking key data, such as potential correlations between server metrics, or crucial discussions and instructions that flash by in IM groups. Furthermore, decentralized systems and manual operations lead to delays in information synchronization, affecting fault response speed and decision-making efficiency.

[0004] 2. Severe information fragmentation and semantic gap: Multimodal data is difficult to integrate: alarm logs (structured / semi-structured), server status metrics (time-series data), and manually processed records in IM groups (such as unstructured text, screenshots, and other image data) are scattered across multiple heterogeneous platforms such as monitoring systems and IM groups. Existing technologies lack unified semantic integration capabilities, resulting in a severe "semantic gap" between these different modalities of data, making it difficult to form a comprehensive and coherent view of the fault.

[0005] Inefficient Fault Review and Knowledge Accumulation: Due to the lack of unified semantic integration of information, fault review requires maintenance personnel to spend a significant amount of time tracing and manually linking data across systems and platforms. This not only greatly reduces review efficiency, but more importantly, real-time interactive data in IM groups (such as feedback from responsible parties, real-time decision-making context, and repair steps) is difficult to effectively and automatically accumulate into the maintenance knowledge base. This results in a lag in knowledge base updates, making it impossible to form effective prevention strategies and hindering the transformation of "experience" into "knowledge" and "intelligence."

[0006] 3. Insufficient level of intelligence and automation: Traditional IM alerts are limited to notifications: the main function of existing IM alert systems is still limited to one-way notifications. They have not been able to deeply integrate with advanced AI technologies such as Large Language Models (LLM), and cannot perform real-time structured analysis and semantic understanding of unstructured text (such as fault descriptions and processing instructions) in IM groups.

[0007] Existing LLM solutions are limited to localized diagnostics: even when some AIOps solutions attempt to incorporate LLM, they are often limited to localized diagnostic functions (such as log summaries and simple Q&A), lacking the ability to automatically integrate real-time interactive data from IM groups (such as feedback from responsible parties on faults, real-time remedial steps, and verification results) into the diagnostic process. This results in LLM's inability to generate end-to-end automated fault diagnosis and handling reports, requiring maintenance personnel to spend a significant amount of time manually filling in report templates, leading to insufficient real-time performance, accuracy, and completeness of the reports.

[0008] Lack of dynamic reasoning and contextual understanding: Traditional rule engines can only match predefined failure patterns and lack the ability to perform dynamic reasoning based on context. For example, they cannot automatically associate historical cases or effectively parse semantic information. This makes it difficult for the system to cope with complex, unknown, or sudden failures and to proactively discover deep causal relationships. Summary of the Invention

[0009] To address the aforementioned problems, this invention provides a method and apparatus for dynamic diagnosis of the entire logistics chain that integrates group intelligence.

[0010] This invention provides the following technical solution: a dynamic diagnosis method for the entire logistics chain that integrates swarm intelligence, comprising the following steps: S1. Detect abnormalities in logistics operations or system-level failures and generate alarm information; S2. Create an IM emergency group. Based on the alarm information, add the maintenance personnel to the IM emergency group and push the timestamp-aligned alarm information to the top of the IM emergency group. S3. Analyze the alarm information with timestamp alignment and extract key fault data; S4. Use a text parsing model to convert the unstructured message text generated by the communication of alarm information between the operation and maintenance personnel in the IM emergency group into analyzable structured information. S5. Based on the key fault data and structured information, the system uses graph neural network reasoning to input the key fault data, structured information and reasoning results into the large language model to obtain the cause of logistics business anomalies or system-level faults and generate handling opinions. The cause and handling opinions are then communicated to the operation and maintenance personnel, who then handle the situation and generate operation and maintenance logs.

[0011] Furthermore, the logistics business anomalies include delivery delays, lost packages, damaged packages, incorrect or missing deliveries, abnormal receipts, warehouse order backlogs, duplicate waybill numbers, and abnormal vehicle trajectories.

[0012] Furthermore, the detection mechanism for logistics business anomalies is as follows: by monitoring core business indicators and operating status, and combining them with a preset business rule engine to perform real-time logical judgment and interception.

[0013] Furthermore, the detection of system-level faults adopts a real-time data stream monitoring mechanism. By integrating an Agent or standard data interface into the microservice nodes and underlying infrastructure, monitoring indicator stream data is obtained from the time-series database in real time. The monitoring indicator stream data includes resource indicators reflecting the health status of the infrastructure, as well as application indicators reflecting the middleware and code-level operating status.

[0014] Furthermore, the alarm information is structured and specifically includes: core classification information, key business entity information, fault location context information, and detailed technical data; the core classification information includes alarm type and alarm level; the key business entity information includes logistics tracking number, business-related ID, and associated user or customer ID; the fault location context information includes affected business process, affected area or location information, fault occurrence time, name of the system or microservice that triggered the alarm, and alarm source IP; the detailed technical data includes specific error code and application layer exception stack.

[0015] Furthermore, the maintenance personnel include technical personnel, team leaders, on-duty personnel, customer service teams, and business operations personnel.

[0016] Furthermore, the implementation of the IM emergency group adopts a technology stack based on the open-source project Open-IM-Server.

[0017] Furthermore, the key fault data includes: core classification information, key business entity information, fault location context information, and detailed technical data; the core classification information includes alarm type and alarm level; the key business entity information includes logistics tracking number, business-related ID, and associated user or customer ID; the fault location context information includes the affected business process, the affected area or location, the fault occurrence time, the name of the system or microservice that triggered the alarm, and the alarm source IP; the detailed technical data includes the specific error code and application layer exception stack.

[0018] Furthermore, the text parsing model in step S4 is obtained by fine-tuning a corpus from the operations and maintenance domain based on RoBERTa or an open-source large language model.

[0019] A dynamic diagnostic device for the entire logistics chain that integrates swarm intelligence, comprising at least: The detection module is used to detect abnormalities in logistics operations or system-level failures and generate alarm information. The creation module is used to create IM emergency groups. Based on alarm information, it adds maintenance personnel to the IM emergency group and pushes timestamp-aligned alarm information to the top of the IM emergency group. The parsing module is used to parse timestamp-aligned alarm information and extract key fault data; The conversion module is used to convert unstructured message text generated by the communication of alarm information between operation and maintenance personnel in the IM emergency group into analyzable structured information using a text parsing model. The generation module is used to infer the causes of logistics business anomalies or system-level failures by inputting the key fault data and structured information into a large language model through graph neural network reasoning, and to generate handling opinions. The causes and handling opinions are then communicated to the operation and maintenance personnel, who will then handle the issues and generate operation and maintenance logs.

[0020] An electronic device, comprising: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors perform the methods described above.

[0021] A computer-readable storage medium having computer instructions stored thereon, characterized in that the instructions, when executed by a processor, implement the steps of the method described above.

[0022] The beneficial effects of this invention are as follows: By automatically detecting and pushing alarm information, structured information is obtained, the causes are inferred, handling opinions are generated, and operation and maintenance logs are generated. This enables multimodal data fusion, intelligent correlation reasoning, and automated closed-loop processing mechanisms, achieving full-link intelligent correlation and multimodal evidence aggregation, dynamic collaborative diagnosis, and root cause localization. Attached Figure Description

[0023] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a block diagram of the device of the present invention. Detailed Implementation

[0024] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below.

[0025] This invention pushes alarm information through automated detection, obtains structured information, infers the cause, generates handling opinions, generates operation and maintenance logs, realizes multimodal data fusion, intelligent correlation reasoning and automated closed-loop processing mechanism, full-link intelligent correlation and multimodal evidence aggregation, dynamic collaborative diagnosis and root cause localization.

[0026] The embodiments of the present invention will be further described below with reference to several examples.

[0027] Example 1 like Figure 1 A dynamic diagnostic method for the entire logistics chain that integrates swarm intelligence includes the following steps: S1. Detect abnormalities in logistics operations or system-level failures and generate alarm information; Logistics anomalies include delivery delays, lost or damaged packages, incorrect or missing shipments, abnormal signatures, warehouse order backlogs, duplicate waybill numbers, and abnormal vehicle tracking.

[0028] The mechanism for detecting logistics business anomalies is as follows: by monitoring core business indicators and operational status, and combining them with a preset business rule engine to perform real-time logical judgment and interception.

[0029] System-level fault detection is achieved by integrating agents or data interfaces to obtain server performance metrics streaming data in real time from various time-series databases.

[0030] System-level fault detection employs a real-time data stream monitoring mechanism. By integrating an Agent or standard data interface into microservice nodes and underlying infrastructure, monitoring indicator stream data is obtained from a time-series database in real time. The monitoring indicator stream data includes resource indicators reflecting the health status of the infrastructure, as well as application indicators reflecting the middleware and code-level operational status.

[0031] The alarm information is structured and includes: core classification information, key business entity information, fault location context information, and detailed technical data. The core classification information includes the alarm type and alarm level. The key business entity information includes the logistics tracking number, business-related ID, and associated user or customer ID. The fault location context information includes the affected business process, the affected area or location, the time of the fault, the name of the system or microservice that triggered the alarm, and the IP address of the alarm source. The detailed technical data includes the specific error code and the application layer exception stack.

[0032] Specifically: 1. Detect logistics operation anomalies or system-level failures. The detection mechanism of this invention adopts a layered and hybrid reasoning strategy. For "known deterministic logic" and "unknown implicit topological association", a rule engine is first used to quickly determine the cause of logistics business anomalies and system-level failures. When the rule engine cannot determine the cause, a graph neural network is used to reason about the cause. Explicit logic judgment based on the rule engine: The rule engine is responsible for processing explicit rules that have clear causal relationships, occur frequently, and are structured. Through preset conditional expressions and actions, it performs millisecond-level real-time matching and interception of the data stream. Logistics business anomaly rule matching: Monitor core business indicators such as order processing volume, order failure, vehicle GPS trajectory, and business outbound delays to determine delivery delays, lost packages, damaged packages, incorrect or missing shipments, abnormal receipts, warehouse order backlog, duplicate waybill numbers, and abnormal vehicle trajectories; Example of outbound delay: IF (Package.Status == 'Received' AND Current Time - Package.Received Time > 48 hours) THEN Trigger 'Critical - Warehouse Stall' alert; Specific rules for judging abnormal logistics operations can be set by those skilled in the art based on actual business conditions; System-level fault rule matching: Based on standard diagnostic strategies encapsulated from expert operation and maintenance experience, it accurately captures system logs and application errors; Example of database transaction lock conflict: IF (Application runtime exception stack contains "Lock wait timeoutexceeded; try restarting transaction" AND error component == "Message consumer module (such as TfMessageListener)") THEN Trigger a 'system-level - database deadlock' alert and automatically associate the relevant transaction ID. The rule engine ensures that regular exceptions at the system's underlying layer and the business's surface layer can be quickly identified and distributed by executing these fixed logics.

[0033] Specific system-level fault diagnosis rules can be set by those skilled in the art based on the actual system.

[0034] 2. Generation of alarm information After detecting logistics operational anomalies or system-level failures, the rules engine generates highly detailed alarm messages that have undergone formatting and standardization to provide high-quality data input for subsequent steps. The alarm messages strictly include the following fields: (1) Core classification information includes: alarm level, which is divided into four dimensions according to the business impact: "urgent", "high", "medium" and "low"; alarm type is divided into alarm type of logistics business abnormality and alarm type of system-level failure. Alarm type of logistics business abnormality includes delivery delay, package loss, package damage, wrong delivery or missing delivery, abnormal signing, warehouse entry / exit delay, warehouse stagnation timeout, duplicate waybill number, abnormal vehicle trajectory, etc.; alarm type of system-level failure includes CPU surge, memory exhaustion, JVM heap memory overflow, database deadlock or lock wait timeout, API response timeout, database connection pool exhaustion, message queue consumer crash, etc. (2) Key business entity information (ID) is used to associate logistics tracking numbers, business-related IDs and associated user or customer IDs with logistics business anomalies or system-level failures; (3) Fault location context, providing a topological environment for subsequent hybrid inference mechanisms, including the affected business process, affected area or location information, fault occurrence time, name of the system or microservice that triggered the alarm, and alarm source IP: Affected business process: clearly define the business domain where the anomaly occurred, such as warehouse management, trunk transportation, last-mile delivery, order center, financial settlement system, etc. Affected area or location information: physical space location, such as "Shanghai warehouse" or "Hangzhou distribution center". Alarm occurrence time: the time when the logistics business anomaly or system-level fault was detected; Name of the system or microservice that triggered the alarm: the specific logistics business process or system indicator of the alarm; Alarm source IP: the specific microservice name that triggered the alarm, the source IP address, container Pod name, or server hostname; (4) Detailed technical data, which is the specific error information: including the specific error code and the complete application layer exception stack.

[0035] The alarm information includes the above four types of information, which are used by the text parsing model in step S4 to extract key features.

[0036] S2. Create an IM emergency group. Based on the alarm information, add the maintenance personnel to the IM emergency group and push the timestamp-aligned alarm information to the top of the IM emergency group. Operations and maintenance personnel include technical staff, team leaders, on-call staff, customer service team members, and business operations staff.

[0037] The IM emergency group is implemented using a technology stack based on the open-source project Open-IM-Server. The IM (Instant Messenger) emergency group is used for the top display of timestamp-aligned alarm information and for information exchange among operations and maintenance personnel.

[0038] This step aims to establish an efficient collaborative operational environment by eliminating communication barriers in the initial stages of fault response through automated group management and precise information distribution. Specifically: (1) IM Emergency Group Creation and Structured Naming: After an alarm message is generated, the system immediately creates a new IM emergency group by calling the backend instant messaging service (e.g., calling Open-IM-Server via API / group / create_group). To ensure the group's identifiability and the retrievability of subsequent fault reports, the system automatically generates the group name using structured rules. The specific structured naming format is configured as: "[Alarm Level]-[Affected Business or System Domain]-[Fault Feature Summary]-[Date and Timestamp of Occurrence]". As a specific scenario example, it can be named: "[Emergency]-[TMS Transportation System]-[Vehicle GPS Track Reporting Delay]-[0713-14:05]". This standardized naming paradigm can effectively reduce information noise, enabling maintenance personnel to identify the highest priority event group and the event group most relevant to their core responsibilities at a glance when faced with multiple concurrent IM emergency groups, thereby accelerating emergency response; (2) Intelligent personnel invitation and retrieval based on responsibility matrix: An intelligent routing mechanism based on responsibility matrix and dynamic rules is adopted to synchronously call the invitation interface (e.g., via API / group / invite_user_to_group) to retrieve maintenance personnel into the group. The specific implementation mechanism includes: Responsibility matrix configuration: The system pre-maintains a multi-dimensional responsibility matrix, which accurately maps specific "service components", "business processes", and "geographical regions" to specific responsibility roles (such as SRE, DBA, regional manager, fleet dispatcher, etc.). Precise routing and multi-role coverage: First, the metadata in the alarm information (such as the affected business process, trigger source System=OrderService, etc.) is parsed, and the above responsibility matrix is ​​automatically queried; then, combined with the core classification information and the alarm occurrence time, the real-time enterprise duty scheduling system is queried to accurately locate the specific personnel currently on duty (matching the responsibility role). This mechanism ensures that the IM emergency response group includes all the necessary roles for resolving the issue. For example, for a logistics anomaly like "warehouse order backlog," the following roles are automatically added: R&D engineers (to investigate underlying bugs), WMS operations engineers (to check system status), warehouse managers (to check on-site operations), and relevant product managers (to assess the overall business impact). In some embodiments, when the alarm level is determined to be "urgent" or the fault duration exceeds a preset threshold, an escalation and addition strategy is triggered, automatically adding relevant high-level management teams (such as business directors or technical leads) to the IM emergency response group to participate in joint analysis and command. The specific responsibility matrix and dynamic rules can be set by those skilled in the art based on the logistics business module or system module. (3) Timestamp Alignment and Top-Pushing of Alarm Information To ensure that all maintenance personnel added to the group can align the context immediately, a "rich media" diagnostic card is constructed and forcibly pinned to the top of the IM emergency group. The content of the rich media diagnostic card includes the alarm information generated in the aforementioned steps (including 4 types of information). Strict Timestamp Alignment: The alarm information in the rich media diagnostic card is no longer a scattered log, but a pre-processed, time-ordered stream of key events. For example, the "CPU spike moment" of the underlying infrastructure and the "first order timeout moment" of the business manifestation are displayed side by side on the timeline, intuitively presenting the causal sequence of logistics business anomalies or system-level failures. Top-Push Display: Using the pinning function of the IM emergency group, this rich media diagnostic card is fixed at the top of the chat window. No matter how many messages are generated in the subsequent group discussion, the maintenance personnel who join later can directly see the most core, timestamp-aligned alarm information at the top. This mechanism effectively avoids the inefficiency of personnel "climbing stairs" to search for historical records, ensuring that the maintenance personnel in the entire IM emergency group always focus on the same rich media diagnostic card.

[0039] (4) Implementation of underlying technologies To ensure the rapid response, high availability, and cross-platform consistency of the entire IM emergency group under high-concurrency failure scenarios, the underlying communication architecture and front-end rendering engine have been deeply processed. The specific technical implementation methods are as follows: Server-side high-concurrency communication architecture and core API calls: The core instant messaging and group collaboration logic of the server is entirely built on Open-IM-Server. This server is written in Go, fully leveraging the native advantages of Go's high concurrency and lightweight goroutines. In actual operation, when logistics business anomalies or system-level failures are detected, the server achieves closed-loop interaction at the underlying level through the following core API combination calls: 1. Automated group creation in seconds: Calling the group creation interface ( / group / create_group) quickly builds an independent emergency collaboration space on the server. 2. Operations personnel pull: Calling the invite-to-group interface ( / group / invite_user_to_group) locks on-duty operations personnel based on the responsibility matrix and dynamic rules, instantly and forcibly pulling multi-role full-stack personnel into the IM emergency group. 3. Forcefully pin the rich media diagnostic card to the top: First, call the advanced message sending interface ( / msg / send_message) to deliver the constructed rich media diagnostic card to the group in the form of a custom message; then call the set group pinned message interface ( / group / set_group_pinned_message) to force the group message ID (ClientMsgID) of the rich media diagnostic card to be locked at the top of the IM emergency group chat window, ensuring that messages are delivered instantly and aligned with the context in high-concurrency failure scenarios.

[0040] Specifically: Client-side cross-platform rich media customization and core chart rendering: The system's client-side front-end presentation layer (covering web, desktop, and mobile apps) is customized using the Flutter cross-platform framework in conjunction with the Open-IM-SDK, specifically adapted to the rendering logic of the "fault diagnosis card". Through Flutter's high-performance pixel-level dual-layer canvas rendering engine, the "cross-modal fault timeline" and "multi-dimensional IT / business indicator charts" within the card have undergone the following in-depth customization: Detailed Implementation of the Cross-Modal Fault Timeline: The front-end uses a custom streaming timeline component (CustomTimeline Widget), driven by non-linear spatiotemporally aligned data. Vertical or horizontal axes represent absolute time progression lines, with different highlighted status nodes distributed along them. For underlying technical events (such as the moment a database deadlock error code is thrown, or a CPU spike inflection point), the component renders them as red "Technical Fault" square nodes, which can be clicked to expand and view the underlying stack information. For conversational events identified in group chat text (such as when operations personnel report "the system is slowing down" in IM, or when the command to "restart the service" is executed), the component renders them as blue "Human Perception / Action" circular labels, directly displaying the speaker's role and operational intent. Through the parallel arrangement and connection of nodes on the timeline, the causal evolution sequence from the implicit occurrence of the fault to human intervention and response, and finally to metric recovery, is visually presented.

[0041] Detailed Implementation of Multidimensional Indicator Charts: The rich media diagnostic card integrates a lightweight time-series dynamic chart component deeply customized based on FlutterCustomPainter, specifically designed for rendering high-density monitoring and telemetry data. The charts employ a dual Y-axis or multi-layer overlay design. The left Y-axis corresponds to the IT resource dimension (e.g., CPU utilization curves, JVM heap memory change curves, and queue backlog trends of the TfMessageListener), while the right Y-axis corresponds to the logistics business dimension (e.g., the frequency of abnormal order status fluctuations, and the storage timeout rate of specific warehouses). The X-axis is strictly aligned with the fault timeline above at the millisecond level. The chart component supports viewport zooming and panning, and includes a built-in red dashed line indicator for cross-modal data alignment. When operations and maintenance personnel click on a specific human communication node on the timeline, a vertical red dotted line will automatically project onto the indicator chart below, penetrating all fluctuating CPU or business curves. This allows operations and maintenance personnel in the IM emergency group to see at a glance whether the underlying core monitoring indicators have started to decline when a "restart" command is issued manually, thereby achieving the aggregation and display of multimodal evidence across the entire chain.

[0042] S3. Analyze the alarm information with timestamp alignment and extract key fault data; Key fault data includes: core classification information, key business entity information, fault location context information, and detailed technical data; core classification information includes alarm type and alarm level; key business entity information includes logistics tracking number, business-related ID, and associated user or customer ID; fault location context information includes affected business process, affected area or location information, fault occurrence time, name of the system or microservice that triggered the alarm, and alarm source IP; detailed technical data includes specific error code and application layer exception stack.

[0043] In this embodiment, Qwen3.6-27B is used in conjunction with prompt words to parse timestamp-aligned alarm information, thereby extracting key fault data. The prompt words are: "As a text parsing node in the intelligent logistics operation and maintenance system, your core task is to perform deep semantic parsing and feature extraction on the input alarm information that has been timestamped and aligned, and transform it into standard structured key fault data."

[0044] The input alarm information already possesses the following technical characteristics and implicit structured hierarchy: Core classification information: includes alarm type and alarm level.

[0045] Key business entity information: including logistics tracking number, business-related ID, and associated user or customer ID.

[0046] Fault location context information includes the affected business process, the affected area or location, the time of the fault, the name of the system or microservice that triggered the alarm, and the IP address of the alarm source.

[0047] Detailed technical data: including specific error codes and application-layer exception stack traces.

[0048] Please accurately extract, reorganize, and align the following 12 key fault data fields. If a field is not mentioned at all in the input text and cannot be reasonably inferred from the context, please set its value to null: Alarm type: Determine whether it is a system-level failure (such as database deadlock, lock wait timeout, CPU spike) or a logistics business anomaly (such as abnormal order status, warehouse standby timeout).

[0049] Alarm levels: “Emergency”, “High”, “Medium”, “Low”.

[0050] Specific error codes: Standard ErrorCodes thrown by the system, middleware, and database (such as the specific error code corresponding to MySQL's Lockwait timeout exceeded).

[0051] Detailed error information: A detailed text description of the application-layer exception stack trace, error log summary, or specific exception behavior.

[0052] Affected business processes include warehousing, transportation, distribution, order fulfillment, and message consumption.

[0053] Affected area or location information: The specific distribution center, warehouse number, station or transportation route mentioned in the alarm text.

[0054] Associated user ID or customer ID: The shipper ID, customer ID, fleet ID, or user identifier affected by this fault.

[0055] The name of the system or service that triggered the alarm: the name of the core system, microservice or middleware component that triggered the exception (such as TMS transportation system, message listener TfMessageListener, WMS system, etc.).

[0056] Business-related ID: The logistics tracking number, business-related ID, order number, or dispatch number directly linked to the fault.

[0057] Fault occurrence time: Absolute timestamp of the alarm source (standardized format: YYYY-MM-DD HH:mm:ss).

[0058] Alarm source IP: The source IP address of the server, container instance, or node that triggered the alarm.

[0059] Server information includes hostname, host cluster information, virtualization instance ID, or underlying server hardware identifier.

[0060] Output format requirements: The response must be in standard JSON format, and must not contain any Markdown code block shells, prefixes, suffixes, introductions, or explanatory comments, so that the downstream rule engine and graph neural network model can directly and seamlessly parse it. The above are the prompt words.

[0061] This step aims to standardize and refine timestamp-aligned alarm information using a large language model and specific prompt engineering to extract key fault data. This is achieved through deep parsing techniques.

[0062] S4. Use a text parsing model to convert the unstructured message text generated by the communication of alarm information between the operation and maintenance personnel in the IM emergency group into analyzable structured information. The text parsing model in step S4 is obtained by fine-tuning the corpus in the operation and maintenance field based on RoBERTa or an open-source large language model.

[0063] This step aims to transform fragmented, non-standardized natural language communication and multimedia information in IM emergency groups into standardized structured data that can be processed by computers, providing high-quality input for subsequent automated reasoning. Specific implementation includes: (1) Semantic understanding and intent classification based on RoBERTa: The RoBERTa model is a text parsing model obtained by fine-tuning the corpus in the operation and maintenance domain. It performs deep semantic analysis on unstructured message text generated in the IM emergency group.

[0064] The acquisition channels for the corpus in the field of operations and maintenance include: 1) historical operations and maintenance logs; 2) the open source project named loghub by user logpai on the GitHub website; 3) the open source project named GAIA-DataSet by user CloudWise-OpenSource on the GitHub website.

[0065] The specific implementation of the fine-tuning is as follows: using the labeling tool (Label Studio) to perform supervised data labeling and structured information processing on the collected corpus of operations and maintenance to form a training set; using this training set to fine-tune the initial RoBERTa model, the fine-tuning parameters include the learning rate, batch size, gradient accumulation steps, L2 regularization weights, training epochs, and gradient clipping threshold, max grad_norm, to form a text parsing model.

[0066] In this embodiment, the initial RoBERTa model is RoBERTa-wwm-ext, with learning_rate of 2e-5, batch_size of 64, gradient_accumulation_steps of 2, weight_decay of 0.01, num_train_epochs of 3, and max_grad_norm of 1.0.

[0067] The finely tuned text parsing model can achieve accurate structuring of unstructured message text, forming structured information.

[0068] In this embodiment, for multimedia information such as images, voice, and video circulating in IM emergency groups, the system adopts a combined analysis strategy of "OCR + OpenCV" to mine key clues in visual data: 1) Extracting text information from image files using OCR, and using high-precision optical character recognition technology to extract text from error screenshots, such as specific error codes in error pop-ups, exception stack information in log screenshots (such as the Lockwait timeout exceeded exception log thrown by the message listener TfMessageListener), and values ​​on monitoring dashboard screenshots; 2) Visual content analysis (OpenCV): Combining computer vision technology to recognize text in images and video frames; 3) Converting speech into text using the iFlytek Cloud Recognition Engine. The text obtained in the above steps is input into a text parsing model to form structured information.

[0069] S5. Based on the key fault data and structured information, the system uses graph neural network reasoning to input the key fault data, structured information and reasoning results into the large language model to obtain the cause of logistics business anomalies or system-level faults and generate handling opinions. The cause and handling opinions are then communicated to the operation and maintenance personnel, who then handle the situation and generate operation and maintenance logs.

[0070] This step is the core component for achieving intelligent diagnosis and decision support. The key fault data and structured information preprocessed and generated in the preceding steps are used as input. A graph neural network (GNN) is then used for deep analysis to output accurate root causes and actionable suggestions, guiding manual closure of the process. Both approaches handle different dimensions of fault diagnosis logic, complementing each other's strengths.

[0071] The causes and proposed solutions were generated using a large language model combined with prompt words. The prompt words are: "System Role Setting: You are a senior AIOps (Intelligent Operations and Maintenance) and SRE (Site Reliability Engineering) expert assisting the system. Your core task is to translate the inference results (root causes of failures, which are structured graph paths that show the propagation path of failures) calculated by graph neural networks (GNNs) into easily understandable and action-oriented causes and solutions for operations and maintenance personnel."

[0072] Please analyze the causes based on the dynamic input data from the following three dimensions and generate proposed solutions: (1) Fault context information: The key fault data and structured information parsed in step S4 are automatically inserted here, such as: alarm level: emergency; affected service: message listener TfMessageListener; error message: Lock waittimeout exceeded.

[0073] (2) Root cause path: The “structured fault root cause path” of the neural network inference in step S5 is automatically inserted here, such as: Node (underlying database transaction table lock) — Trigger — Node (distributed message queue blocking) — Affect — Node (TfMessageListener consumption blockage).

[0074] Rules and Constraints: When generating disposal recommendations, you must strictly adhere to the following rules: Absolutely faithful to the input: No room for speculation, guesswork, or "hallucinations".

[0075] Structured and action-oriented: The language style must be professional and concise, conforming to the "second-level" reading habits in IM emergency groups.

[0076] Layered output: Recommendations must be strictly divided into three levels: “Root cause explanation in layman’s terms (understandable to non-technical personnel)”, “Emergency hemostasis operation (action to be performed immediately)”, and “Subsequent investigation recommendations”.

[0077] Clearly define the action entity: The specific component name or identifier to be operated on must be clearly specified (such as a specific IP address, microservice name, or database table).

[0078] Output formatting guidelines: Do not include any unnecessary explanatory text. The above are the prompt words.

[0079] In this step, the Graph Neural Network (GNN) is not only a static inference tool, but also a dynamic model with the ability to perform initial full learning and continuous incremental learning. Its complete training lifecycle includes graph structure data construction and offline supervised training. The specific implementation methods for constructing and training the Graph Neural Network (GNN) are as follows: (1) Construction of graph structure data (training data) and feature initialization: Before training begins, the historical operation and maintenance corpus (including key fault data, structured information and corresponding root causes of resolved operation and maintenance events) is first abstracted into a homogeneous or heterogeneous graph data structure suitable for deep learning. Node and Feature Vector Initialization: Nodes represent key entities in the entire logistics chain (such as database instances, message listeners TfMessageListener, microservice Pods, distribution centers, etc.). Using representation learning (such as Word2Vec's Embedding layer), the attributes of each entity (such as node type, historical failure frequency, resource configuration size) are concatenated into a high-dimensional feature vector, which serves as the initial hidden layer state of the node.

[0080] Edge and topology relationship definition: An edge represents the physical or logical connection relationship between nodes (such as network call relationship, data flow direction, physical deployment affiliation).

[0081] Temporal feature fusion: Dynamic indicators on the cross-modal fault time axis (such as CPU utilization at a certain moment, response latency of a specific interface) are added as dynamic features to the corresponding node or edge features to form spatiotemporal graph data with time series attributes.

[0082] (2) Initial offline training phase (model training based on graph attention mechanism): During the model initialization phase, the system adopts a model architecture based on Graph Attention Networks (GAT) and uses labeled graph data structures for supervised offline training of all parameters.

[0083] Information aggregation and feature propagation (forward propagation): During training, graph neural networks aggregate features by calculating the attention coefficients between the central node and its first- or multi-order neighbor nodes. For example, when processing the "abnormal order status" node, the graph neural network adaptively learns to assign higher attention weights to the neighbor nodes "message listener stuck" and "underlying database deadlock," while assigning very low weights to irrelevant nodes (such as normally functioning image storage services).

[0084] Loss Function Design: The training objective of a graph neural network is to infer the root causes of failures. The system employs a focal loss function to calculate the error between the root cause nodes / paths predicted by the graph neural network and the actual historical operational data. Using a focal loss function effectively addresses the technical challenge of severe sample imbalance in operational scenarios, characterized by "massive amounts of normal indicators and very few abnormal indicators."

[0085] To verify the effectiveness of this invention in actual logistics system deployment, a series of comparative experiments were conducted, comparing the fully automated mode implemented by this invention with the commonly used "threshold-triggered manual review mode" and "fully manual mode" in the prior art. The experimental results are shown in the table below:

[0086] The fault analysis accuracy rate of this invention (fully automatic mode) is 82%. Although slightly lower than the two modes requiring manual intervention (99%) in terms of pure accuracy, this precisely reflects the balance between automation and efficiency. In high-concurrency, fast-paced logistics scenarios, a small number of false alarms will automatically trigger manual review, ensuring the accuracy of critical faults. For the vast majority of routine faults, an accuracy rate of 82% is sufficient to effectively cover them, and significantly reduces the frequency and time cost of manual judgment.

[0087] Average processing latency: This is the most significant advancement of the invention. The invention boasts an overwhelming advantage in average processing time (MTTR) of only 3.2 minutes, far lower than the 10 minutes for threshold-triggered manual review and the 47 minutes for a fully manual mode. This directly demonstrates the invention's immense capabilities in automated diagnostics, rapid decision-making, and automated execution. In the logistics industry, a reduction in average processing time (MTTR) means: Minimize business losses: Faster fault recovery directly reduces business losses caused by system outages, such as order backlogs, delivery delays, and customer complaints.

[0088] Service continuity enhancement: Ensure the continued high availability of logistics services, improve user experience and corporate competitiveness.

[0089] Improved emergency response efficiency: The ability to respond within minutes rather than hours after a failure occurs greatly improves the efficiency of the emergency response team.

[0090] Human resource optimization: It greatly frees up the energy of operations and maintenance personnel, allowing them to focus on more complex issues, system optimization, and strategic work, thereby enhancing the value of human resources.

[0091] Example 2 like Figure 2 A dynamic diagnostic device for the entire logistics chain that integrates swarm intelligence, comprising at least: Detection module 1 is used to detect abnormalities in logistics operations or system-level faults and generate alarm information; Create module 2 to create IM emergency groups. Based on alarm information, add maintenance personnel to the IM emergency group and push the timestamp-aligned alarm information to the top of the IM emergency group. Parsing module 3 is used to parse timestamp-aligned alarm information and extract key fault data; Transformation module 4 is used to convert unstructured message text generated by the communication of alarm information among operation and maintenance personnel in the IM emergency group into analyzable structured information using a text parsing model. The generation module 5 is used to obtain the cause of logistics business anomalies or system-level failures by inputting the key fault data and structured information into the large language model through graph neural network reasoning based on the key fault data and structured information, and to generate handling opinions. The cause and handling opinions are then communicated to the operation and maintenance personnel, who then handle the issues and generate operation and maintenance logs.

[0092] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0093] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. 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 the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0094] Accordingly, this application also provides an electronic device, including: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors perform the methods described above.

[0095] Accordingly, this application also provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of any of the above methods.

[0096] In the embodiments provided in this application, it should be understood that the disclosed methods and systems can also be implemented in other ways. The method and system embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0097] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0098] On the other hand, a computer-readable storage medium stores computer instructions thereon, which, when executed by a processor, implement the steps of the above-described method. When the computer program is executed by the processor, it implements the method as described in any of the first aspects above. If the functionality is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0099] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A dynamic diagnostic method for the entire logistics chain that integrates swarm intelligence, characterized in that, Includes the following steps: S1. Detect abnormalities in logistics operations or system-level failures and generate alarm information; S2. Create an IM emergency group. Based on the alarm information, add the maintenance personnel to the IM emergency group and push the timestamp-aligned alarm information to the top of the IM emergency group. S3. Analyze the alarm information with timestamp alignment and extract key fault data; S4. Use a text parsing model to convert the unstructured message text generated by the communication of alarm information between the operation and maintenance personnel in the IM emergency group into analyzable structured information. S5. Based on the key fault data and structured information, the system uses graph neural network reasoning to input the key fault data, structured information and reasoning results into the large language model to obtain the cause of logistics business anomalies or system-level faults and generate handling opinions. The cause and handling opinions are then communicated to the operation and maintenance personnel, who then handle the situation and generate operation and maintenance logs.

2. The method according to claim 1, characterized in that, The logistics service anomalies include delivery delays, lost or damaged packages, incorrect or missing deliveries, abnormal signatures, warehouse order backlogs, duplicate waybill numbers, and abnormal vehicle trajectories.

3. The method according to claim 1, characterized in that, The mechanism for detecting logistics business anomalies is as follows: by monitoring core business indicators and operational status, and combining them with a preset business rule engine to perform real-time logical judgment and interception.

4. The method according to claim 1, characterized in that, The system-level fault detection adopts a real-time data stream monitoring mechanism. By integrating an Agent or standard data interface into the microservice node and underlying infrastructure, monitoring indicator stream data is obtained from the time-series database in real time. The monitoring indicator stream data includes resource indicators reflecting the health status of the infrastructure, as well as application indicators reflecting the middleware and code-level running status.

5. The method according to claim 1, characterized in that, The alarm information is structured and includes: core classification information, key business entity information, fault location context information, and detailed technical data. The core classification information includes alarm type and alarm level. The key business entity information includes logistics tracking number, business-related ID, and associated user or customer ID. The fault location context information includes affected business process, affected area or location information, fault occurrence time, name of the system or microservice that triggered the alarm, and alarm source IP. The detailed technical data includes specific error code and application layer exception stack.

6. The method according to claim 1, characterized in that, The maintenance personnel include technical staff, team leaders, on-duty personnel, customer service team members, and business operations personnel.

7. The method according to claim 1, characterized in that, The implementation of the IM emergency group adopts a technology stack based on the open-source project Open-IM-Server.

8. The method according to claim 1, characterized in that, The key fault data includes: core classification information, key business entity information, fault location context information, and detailed technical data; core classification information includes alarm type and alarm level; key business entity information includes logistics tracking number, business-related ID, and associated user or customer ID; fault location context information includes affected business process, affected area or location information, fault occurrence time, name of the system or microservice that triggered the alarm, and alarm source IP; detailed technical data includes specific error code and application layer exception stack.

9. The method according to claim 1, characterized in that, The text parsing model in step S4 is obtained by fine-tuning a corpus from the operations and maintenance domain based on RoBERTa or an open-source large language model.

10. A dynamic diagnostic device for the entire logistics chain integrating swarm intelligence, characterized in that, At least including: The detection module is used to detect abnormalities in logistics operations or system-level failures and generate alarm information. The creation module is used to create IM emergency groups. Based on alarm information, it adds maintenance personnel to the IM emergency group and pushes timestamp-aligned alarm information to the top of the IM emergency group. The parsing module is used to parse timestamp-aligned alarm information and extract key fault data; The conversion module is used to convert unstructured message text generated by the communication of alarm information between operation and maintenance personnel in the IM emergency group into analyzable structured information using a text parsing model. The generation module is used to infer the causes of logistics business anomalies or system-level failures by inputting the key fault data and structured information into a large language model through graph neural network reasoning, and to generate handling opinions. The causes and handling opinions are then communicated to the operation and maintenance personnel, who will then handle the issues and generate operation and maintenance logs.

11. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-9.

12. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-9.