Household appliance fault positioning method and device

By determining the process state, recalling candidate fault nodes, and generating a fault logic tree in home appliance fault location, the problem of inaccurate fault location in existing technologies is solved, and stable fault location and service response in multi-turn dialogue are achieved.

CN123159529APending Publication Date: 2026-11-24CHENGDU BOSS INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611297697.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In intelligent customer service, home appliance after-sales service, and remote operation and maintenance scenarios, existing technologies for home appliance fault location methods have limited adaptability to users' colloquial, abbreviated, and diverse expressions, resulting in inaccurate fault feature extraction and difficulty in continuously integrating new information in multi-round dialogues, which affects the accuracy of fault location and the stability of interaction.

Method used

By determining the current round of the process, a set of candidate fault nodes that match the query content is recalled, a fault logic tree is generated, and the fault location result is determined based on the prompt words. By utilizing the preset fault node library and node hierarchy relationship, a local fault path is constructed, realizing the synergistic effect of natural language query information and structured path.

Benefits of technology

It improves the accuracy of natural language fault description identification and mapping, achieves stable fault location in multi-round interactions, and ensures the continuity of fault paths and the stability of subsequent service responses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159529A_ABST
    Figure CN123159529A_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for locating faults in home appliances, relating to the field of large language model technology. The method includes: for any round of question-and-answer interaction in a home appliance fault location task, determining the current process state based on the query content input by the user in the current round; the home appliance fault location task includes multiple process states; when the current process state indicates continued fault location, recalling a set of candidate fault nodes matching the query content from a preset fault node library; wherein, the association data of each fault node in the preset fault node library includes node hierarchical relationships; generating a fault logic tree based on the node hierarchical relationships of each candidate fault node in the candidate fault node set; and determining the fault location result of the current process state based on the prompt words corresponding to the fault logic tree. This method aims to improve the accuracy of natural language fault description recognition and mapping, and achieve stable fault location in multi-round interactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of large language model technology, and in particular to a method and apparatus for locating faults in household appliances. Background Technology

[0002] In intelligent customer service, home appliance after-sales service and remote operation and maintenance scenarios, home appliance fault location is usually handled by keyword matching, rule judgment and preset fault process tree.

[0003] However, this type of method has limited adaptability to users' colloquial, abbreviated, and diverse expressions, and is prone to inaccurate fault feature extraction and insufficient differentiation of similar faults. In multi-turn dialogues, it is also difficult to continuously integrate new information and update the judgment path synchronously, resulting in limited fault location accuracy, interaction stability, and service response efficiency.

[0004] Therefore, improving the accuracy of natural language fault description identification and mapping, and achieving stable fault location in multi-round interactions, has become an urgent technical problem to be solved. Summary of the Invention

[0005] This application provides a method and apparatus for locating faults in home appliances, so as to improve the accuracy of natural language fault description recognition and mapping, and achieve stable fault location in multi-round interactions.

[0006] In a first aspect, embodiments of this application provide a method for locating faults in household appliances, including:

[0007] For any round of question and answer in the home appliance fault location task, the current process state is determined based on the query content entered by the user in the current round. The home appliance fault location task includes multiple process states.

[0008] If the current process indicates that fault location should continue, a set of candidate fault nodes matching the query content is recalled from the preset fault node library; wherein, the associated data of each fault node in the preset fault node library includes the node hierarchy relationship.

[0009] A fault logic tree is generated based on the node hierarchy relationship of each candidate fault node in the candidate fault node set.

[0010] Based on the prompts corresponding to the fault logic tree, determine the fault location result for the current process state.

[0011] In one possible embodiment, the associated data of each fault node in the preset fault node library also includes fault description data and slots for fault description data; recalling a set of candidate fault nodes matching the query content from the preset fault node library includes:

[0012] Retrieve several fault nodes whose vector distance is less than a first threshold from the preset fault node database to obtain the first candidate fault node set. The vector distance is determined based on the semantic vector of the query content and the semantic vector of the fault description data of each fault node in the fault node database.

[0013] Retrieve several fault nodes whose fault description data has a target slot from the fault node database to obtain a second set of candidate fault nodes, where the target slot is the same as at least one slot of the query content.

[0014] The candidate fault node set is determined by performing a union operation on the first candidate fault node set and the second candidate fault node set.

[0015] In one possible embodiment, the slot includes at least one of the following: component, location, fault phenomenon, trigger operation, executed operation, operation result, and audio-visual feedback; wherein, the component includes the constituent parts of the home appliance, the location includes the location of the component, the fault phenomenon represents the manifestation of the home appliance fault, the trigger operation represents the operation that caused the home appliance fault, the executed operation represents the recovery operation that has been completed for the home appliance fault, the operation result represents the result produced by the executed operation, and the audio-visual feedback represents the sound and / or light feedback generated due to the home appliance fault. In one possible embodiment, generating a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set includes:

[0016] For any candidate fault node, backtrack upwards to the root node and downwards to the leaf node according to the node hierarchy of the candidate fault node;

[0017] Based on the node hierarchy from the root node to the leaf node, a fault logic tree for candidate faulty nodes is generated.

[0018] In one possible embodiment, the association data of each fault node in the preset fault node library further includes conflict rules for indicating mutual exclusion between fault nodes; after generating a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set, the method further includes:

[0019] Based on the query content, historical dialogue data before the current round, and conflict rules, the fault logic tree is pruned and updated to obtain the updated fault logic tree.

[0020] In one possible embodiment, determining the fault location result of the current process state based on the prompt words corresponding to the fault logic tree includes:

[0021] Convert the fault logic tree into prompt words, or convert the fault logic tree and auxiliary data into prompt words;

[0022] The prompt words are input into the large language model to determine the fault location result of the current process state; wherein, the auxiliary data includes at least one of the following: query content, historical dialogue data before the current round, and format constraint data used to constrain the output format of the large language model.

[0023] In one possible embodiment, after determining the fault location result of the current process state based on the prompt words corresponding to the fault logic tree, the method further includes:

[0024] If the fault location result indicates the target fault node that caused the appliance malfunction, generate fault location response content matching the target fault node and / or trigger service actions based on the target fault node. The service actions include at least one of the following: transferring to human assistance, scheduling a repair appointment, outputting operation instructions, or connecting to remote guidance.

[0025] If the fault location results do not indicate a matching target fault node causing the appliance malfunction, a follow-up question response text is generated to clarify the follow-up questions and proceed to the next round of Q&A.

[0026] In one possible embodiment, determining the current process state based on the query content entered by the user in the current round includes:

[0027] The query content entered by the user in the current round is input into the classification model to determine the current process state. The classification model is used to classify the process state based on the query content. The process state includes continuing to locate the fault, the fault of the home appliance has been resolved, on-site repair or manual service is required, and the user intent is ambiguous. The ambiguity of the user intent is determined based on the query content.

[0028] In one possible embodiment, after determining the current process state based on the query content input by the user in the current round, the method further includes:

[0029] If the current process state indicates that the appliance malfunction has been resolved, output a closing response text to end the appliance malfunction localization task;

[0030] If the current process indicates that on-site repair or manual service is required, execute the repair appointment or transfer to manual service;

[0031] If the user's intent is unclear in the current process state, output follow-up response text to clarify the follow-up questions.

[0032] Secondly, embodiments of this application provide a fault location device for household appliances, comprising:

[0033] The process state determination module is used to determine the current process state based on the query content entered by the user in the current round of the question and answer for any round of the home appliance fault location task. The home appliance fault location task includes multiple process states.

[0034] The recall module is used to recall a set of candidate fault nodes that match the query content from a preset fault node library when the current process state indicates that fault location should continue; the associated data of each fault node in the preset fault node library includes the node hierarchy relationship.

[0035] The generation module is used to generate a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set.

[0036] The fault location module is used to determine the fault location result of the current process state based on the prompt words corresponding to the fault logic tree.

[0037] Thirdly, embodiments of this application provide an electronic device, including:

[0038] Memory, processor;

[0039] The memory stores instructions that the computer executes;

[0040] The processor executes computer execution instructions stored in memory, causing the processor to perform the methods described above.

[0041] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods provided above.

[0042] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described above.

[0043] The home appliance fault location method and apparatus provided in this application determine the current process state based on the query content input by the user in any round of question-and-answer for the home appliance fault location task. The home appliance fault location task includes multiple process states, which can provide the execution prerequisite for subsequent recall of candidate fault nodes. Furthermore, this application embodiment performs refined process state division for each round of question-and-answer to provide a basis for preparing to identify home appliance faults. When the current process state indicates to continue fault location, a set of candidate fault nodes matching the query content is recalled from a preset fault node library, which can provide input for subsequent organization of fault paths using node hierarchical relationships. By generating a fault logic tree based on the node hierarchical relationship of each candidate fault node in the candidate fault node set, the fault node recall result can be transformed into a fault path structure with diagnostic order and parent-child semantics, so that subsequent processing is limited to a local scope related to the current session. By determining the fault location result of the current process state based on the prompt words corresponding to the fault logic tree, the natural language query information and the structured fault path can work together to output a fault location result consistent with the current process state.

[0044] That is, in the embodiments of this application, by linking process state judgment, candidate fault node recall, node hierarchical relationship organization, fault logic tree generation and reasoning based on prompt words into a continuous processing link with the current round of question and answer as the processing unit, the user's colloquial, abbreviated and supplementary input can be stably mapped to the local fault path, and then the final reasoning result is constrained by the local fault path, thereby realizing stable positioning and subsequent service response for the fault location task of home appliances. Attached Figure Description

[0045] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0046] Figure 1 This is a schematic diagram of a system architecture to which the fault location method for home appliances in this application can be applied;

[0047] Figure 2 This is a flowchart of a home appliance fault location method according to an embodiment of this application;

[0048] Figure 3 A flowchart of a method for locating faults in household appliances according to another embodiment of this application;

[0049] Figure 4 A flowchart of a method for locating faults in household appliances according to another embodiment of this application;

[0050] Figure 5 A schematic diagram of the fault location device for household appliances provided in this application;

[0051] Figure 6 A schematic diagram of the structure of the electronic device provided in this application.

[0052] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0053] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.

[0054] Home appliance fault location technology is mainly applied in scenarios such as intelligent customer service, home appliance after-sales service, remote operation and maintenance support, and call centers. Users typically submit descriptions of fault symptoms through application programs (Apps), web pages, or voice interaction, and the system identifies the problems with the home appliances based on these descriptions and supports subsequent service responses.

[0055] In such scenarios, fault localization typically relies on the collaborative efforts of a customer service platform, a fault knowledge base, and a dialogue processing module. The system needs to parse the user's natural language input in single-round or multi-round question-and-answer sessions and map it into fault information that can be used for diagnosis, in order to support the continuous advancement of the online troubleshooting process.

[0056] In related technologies, fault location for home appliances often employs keyword matching, rule-based judgment, and pre-defined fault flow trees. Typically, it first extracts keywords such as "not cooling" or "cannot start" from user input, then matches corresponding fault nodes layer by layer within a fixed flow tree based on pre-configured fault classification relationships and branching rules, and provides the corresponding processing results.

[0057] While these solutions are relatively straightforward in their implementation, they are less adaptable to users' colloquial, abbreviated, and diverse expressions. When faced with information containing supplementary semantics, implicit conditions, or contextual dependencies, such as "the left stove won't light" or "replacing the battery still doesn't work," they are prone to incomplete fault feature extraction, inaccurate differentiation of similar faults, and insufficient recall. Especially during multi-turn dialogues, users often supplement fault symptoms, operation results, or troubleshooting information at different stages. Traditional solutions struggle to synchronously adjust existing judgment paths based on new inputs, leading to information fragmentation between rounds, resulting in misaligned fault location, repetitive interactions, and even impacting the efficiency of subsequent service processing.

[0058] Therefore, improving the accuracy of mapping natural language fault descriptions to fault nodes and achieving stable fault localization in multi-round interactions has become an urgent technical problem to be solved.

[0059] To address the aforementioned problems, this application provides a method and apparatus for locating faults in household appliances.

[0060] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0061] Figure 1 This is a schematic diagram of the system architecture to which the fault location method for home appliances in this application can be applied.

[0062] like Figure 1 As shown, the system architecture includes: home appliance 1, a first electronic device 2 and a second electronic device 3 that are communicatively connected to home appliance 1.

[0063] Home appliances 1 can be kitchen appliances, cleaning appliances, etc., without specific limitations. Taking kitchen appliances as an example, they can specifically include stoves, range hoods, dishwashers, steam ovens, ovens, etc., without specific limitations. The following will use stoves as an example to illustrate the concept.

[0064] The first electronic device 2 provides backend functional services for the home appliance 1. The second electronic device 3 supports user interaction. For example, the first electronic device 2 can be a server, and the second electronic device 3 can be a terminal device, specifically a smartphone, laptop, etc.

[0065] In one possible embodiment, the second electronic device 2 includes an application program for the home appliance 1. This application program displays an interactive interface in response to a user's triggering action. The interactive interface includes functional controls for receiving user queries and outputting results. The first electronic device 2 can execute the home appliance fault location method of this application embodiment, and the output results may include fault location results.

[0066] It should be noted that the above system architecture is merely an example. In some embodiments, the system architecture may further include a home appliance 1 and a second electronic device 2, wherein the second electronic device 2 can execute the home appliance fault location method of the embodiments of this application.

[0067] Figure 2 This is a flowchart illustrating a method for locating faults in household appliances according to an embodiment of this application. Figure 2 As shown, the method includes steps S201 to S204.

[0068] Combination Figure 1 The system architecture is such that the method can be executed by either a first electronic device 1 or a second electronic device 2. These will be collectively referred to as electronic devices.

[0069] S201. For any round of question and answer in the task of locating faults in home appliances, determine the current process state based on the query content entered by the user in the current round.

[0070] The task of locating faults in home appliances involves multiple process states.

[0071] The task of locating faults in home appliances can be understood as the entire process in a single conversation, from the user initiating a consultation, the electronic device understanding the fault phenomenon, continuously asking for supplementary information, outputting the fault location conclusion, and triggering subsequent service processing.

[0072] The process state indicates the processing status of the user's intent in the current round and serves as the basis for determining whether to continue fault localization. For example, process states include: appliance fault resolved, on-site repair or manual service required, user intent ambiguous, continue fault localization.

[0073] In this context, "Continue to locate the fault" indicates that the user has described certain fault information, and the electronic device needs to proceed to the next step. For example: "Can't start," "The left stove won't light," "I changed the battery but it still doesn't work."

[0074] Ambiguous user intent indicates that while the user has expressed a malfunction intent, they have not provided sufficient details. The electronic device should be clarified by asking follow-up questions. For example: "There's a problem with the stove," "This isn't working properly," or "The machine is broken."

[0075] "Requires on-site repair or manual service" indicates that the user explicitly requests that a repairman be arranged, a work order be dispatched, or the issue be handled at their home. For example: "Don't teach me, just arrange a repairman directly" or "Place an order for me."

[0076] A "resolved" message indicates that the user has reported the problem has been fixed and no further troubleshooting is needed. Examples include: "It's working now," or "It's fine, no need to fix it."

[0077] In addition, the process state can also include a troubleshooting invalid state. This indicates that the user has performed the troubleshooting operations as previously suggested, but explicitly stated that it was ineffective or refused to continue troubleshooting. For example: "I've tried everything and it still doesn't work" or "I don't want to try anymore."

[0078] The query content entered by the user in the current round can be text content or text content converted from speech through speech recognition. The input source can be the application mentioned above, or it can be a web customer service interface, a call center agent input interface, or other interactive entry points.

[0079] In one possible embodiment, the electronic device receives a session identifier, a round identifier, a user identifier, a home appliance type identifier, and a query content, and combines this with historical dialogue data from previous rounds to form the context of the current round's dialogue for subsequent processing.

[0080] In one possible embodiment, the electronic device can preprocess the query content input by the user in the current round and parse the query content of the current round in conjunction with historical dialogue data to determine the current process state. For supplementary descriptions that depend on context, such as "replacing the battery still doesn't work" or "pressing the restart button just now didn't work," the electronic device can extract the type of home appliance identified in the previous round, fault-related information, and performed operations from the historical dialogue data to form the context input for joint parsing with the current round.

[0081] S202. If the current process state indicates that fault location should continue, recall a set of candidate fault nodes that match the query content from the preset fault node library.

[0082] The associated data of each fault node in the preset fault node library includes the node hierarchy relationship.

[0083] The preset fault node library is a foundational data set used to support fault location. Multiple fault nodes can be organized in the preset fault node library according to the type of home appliance, component, fault mode, and specific phenomenon. Each fault node can be associated with at least a fault node identifier, node name, and node hierarchy. The node hierarchy is used to identify the parent node, child nodes, and other hierarchical relationships of the fault node in the fault logic tree. For example, "gas stove fault" is the upper-level node, with "ignition fault" as a sub-node, which is further subdivided into sub-nodes such as "left burner ignition failure," "right burner ignition failure," and "both burners cannot ignite." The candidate fault node set is a collection of several fault nodes that match the query content in the current round, serving as input for the subsequent generation of the fault logic tree.

[0084] In one possible embodiment, after the electronic device is in the current process state of continuing to locate the fault, it searches for several fault nodes that match the query content in the preset fault node library based on the query content of the current round and can combine it with historical dialogue data to obtain a set of candidate fault nodes.

[0085] In one possible embodiment, the electronic device may also sort candidate fault nodes based on the degree of matching in order to provide more suitable input for subsequent fault logic tree generation.

[0086] S203. Generate a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set.

[0087] The node hierarchy is used to represent the hierarchical relationships of faulty nodes within the fault logic tree, and can be used to construct local diagnostic paths. The fault logic tree is a tree-like fault path structure formed around the candidate faulty nodes in the current round. It reorganizes the originally discretely recalled faulty nodes into a local logical framework with diagnostic meaning. Through this local logical framework, electronic devices do not directly rely on a single faulty node to output conclusions, but rather compare the attribution and parallel relationships between multiple candidate faulty nodes within the hierarchical semantics.

[0088] In one possible embodiment, the electronic device reads the corresponding node hierarchy relationship data for each candidate fault node in the candidate fault node set, and organizes the related fault nodes based on the hierarchical association between the candidate fault nodes to generate a fault logic tree corresponding to the current round. If multiple candidate fault nodes belong to the same parent fault node, the electronic device can merge their shared parent nodes in the fault logic tree; if candidate fault nodes belong to different parent fault paths, the electronic device can retain the corresponding branches.

[0089] S204. Based on the prompt words corresponding to the fault logic tree, determine the fault location result of the current process state.

[0090] The prompt words are used to express the fault logic tree as input text or structured input suitable for reasoning processing. Based on the prompt words, the fault location result for the current round is output. The fault location result is the conclusion for locating the fault of the home appliance in the current round.

[0091] In one possible embodiment, the electronic device can also verify the fault location results to improve the consistency of the results with the current fault logic tree.

[0092] The home appliance fault location method in this application determines the current process state based on the query content input by the user in any round of question-and-answer for the home appliance fault location task. The home appliance fault location task includes multiple process states, which can provide the execution prerequisite for subsequent recall of candidate fault nodes. Furthermore, this application embodiment performs refined process state division for each round of question-and-answer to provide a basis for preparing to identify home appliance faults.

[0093] In real-world scenarios, users might directly request on-site repair, have already followed the suggested steps but explicitly stated they were ineffective, or only provide vague statements like "broken" or "there's a problem." If the current query content isn't first processed through a flow-state judgment, and instead, subsequent fault logic tree processing is initiated, it can easily lead to invalid recalls, invalid follow-up questions, or even erroneous flow.

[0094] When the current process state indicates continued fault localization, a set of candidate fault nodes matching the query content can be recalled from a pre-defined fault node library. This provides input for subsequent fault path organization using node hierarchy relationships. By generating a fault logic tree based on the node hierarchy relationships of each candidate fault node in the set, the fault node recall results can be transformed into a fault path structure with diagnostic order and parent-child semantics, limiting subsequent processing to a local scope relevant to the current session. By determining the fault localization result of the current process state based on the prompts corresponding to the fault logic tree, natural language query information and structured fault paths can work together to output a fault localization result consistent with the current process state.

[0095] In this embodiment, process-state judgment, candidate fault node recall, node hierarchy organization, fault logic tree generation, and prompt-based reasoning are chained together into a continuous processing link with the current round of question-and-answer as the processing unit. This allows user-generated, abbreviated, and supplementary inputs to be stably mapped to local fault paths. These local fault paths then constrain the final reasoning result, thereby achieving stable fault location and subsequent service response for home appliance fault location tasks. For example, when a user inputs "The left stove won't light," the process-state judgment determines "Continue troubleshooting," recalls the "One side won't light" node, generates a fault logic tree, and finally outputs "One side won't light" as the fault location result. This link allows newly added information (such as "Replacing the battery is ineffective") in multiple rounds of interaction to dynamically update the fault path, preventing path deviation and thus achieving stable location.

[0096] It should be understood that the above examples are merely illustrative and not limiting. In one possible embodiment, the specific organization of the current process state, the preset fault node library, the candidate fault node set, the fault logic tree, and the prompt words can be configured according to the home appliance category, business platform, and service strategy, but its processing logic still falls within the technical concept of this application.

[0097] In one possible embodiment, step S201, which determines the current process state based on the query content input by the user in the current round, includes step S2011.

[0098] S2011. Input the query content entered by the user in the current round into the classification model to determine the current process state.

[0099] The classification model is used to categorize process states based on query content. Process states include: continuing to locate the fault, appliance fault resolved, requiring on-site repair or manual service, and ambiguous user intent. Ambiguous user intent is determined based on the query content.

[0100] For example, the classification model can be a text classification model, which is trained on training samples. Each training sample can be historical query content and has one of the following classification labels: fault location, appliance fault resolved, on-site repair or manual service required, or ambiguous user intent. The classification model trained in this way can be directly used to classify the current process state.

[0101] In this embodiment, the electronic device first receives the query content input by the user in the current round, then sends it to a classification model for reasoning. After obtaining the current process state, it enters the corresponding processing branch for continuing troubleshooting, ending processing, transferring to human assistance, or clarifying follow-up questions, thereby achieving process control of the interactive task. Using this method, the electronic device can quickly distinguish between states such as fault investigation, fault resolved, offline service, and unclear intent based on the user's current expression, ensuring that subsequent fault location and service response remain consistent with the current semantics, thereby improving the accuracy of process switching and the stability of interactive processing.

[0102] For example, each fault node in the preset fault node library includes the following fields: fault identifier, fault name, fault description data, fault definition, slot, node hierarchy relationship, and appliance type.

[0103] The fault definition is used to supplement the fault name with any incomplete descriptions and to distinguish between different faults.

[0104] For example, the fault name "Cannot Ignite" corresponds to the following definition: one or both burners on the stove cannot ignite properly and cannot be used normally. The fault name "One Side Cannot Ignite" corresponds to the following definition: one burner on one side of the gas stove cannot produce a flame or ignite properly when the ignition knob is turned normally; the other burner ignites and burns normally, only one burner has an ignition failure. The fault name "Both Sides Cannot Ignite" corresponds to the following definition: both burners on the left and right sides of the gas stove cannot ignite properly; after turning the ignition knob, neither burner produces an electric spark, cannot ignite the gas, and cannot burn properly. The fault name "Still Cannot Ignite After Replacing Batteries" corresponds to the following definition: a brand new battery has been replaced, but both burners still cannot ignite properly.

[0105] In this embodiment, the root node is "cannot start", and the two child nodes of the root node are "cannot start on one side" and "cannot start on both sides". The child node of the root node is "cannot start on both sides" even after the battery has been replaced.

[0106] Fault description data is used to record the colloquial expressions, contextual descriptions, synonyms, and ellipsis of real users in conversations, enabling electronic devices to better cover the actual query content of users.

[0107] For example, a fault name of "cannot ignite" corresponds to fault descriptions such as: gas stove cannot ignite, gas stove cannot ignite, ignition is not sensitive, cannot ignite. A fault name of "one side cannot ignite" corresponds to fault descriptions such as: only one side of the gas stove can ignite, the left burner cannot ignite, the right burner works normally, one side makes a clicking sound but cannot ignite, one burner works, the other burner has no ignition response at all. A fault name of "both sides cannot ignite" corresponds to fault descriptions such as: neither burner on the gas stove can ignite, neither can be used, neither side of the stove responds, turning the knob makes no ignition sound, sparks are present on both sides, but it just won't ignite.

[0108] In the examples above, all fault description data are positive description data. In addition, fault descriptions can also include conflict rules with negative exclusion. Conflict rules are used to record conflicting conditions, negative expressions, and easily confused features that would lead to the exclusion or de-weighting of the fault node. For example, if the fault node is "one side won't start," and the user explicitly states "neither side works," then this information should be considered a conflict rule.

[0109] Slots are used to structure information that plays a discriminative role in fault descriptions in order to distinguish similar fault nodes.

[0110] For example, the slot may include elements such as component, location, fault phenomenon, triggering operation, executed operation, operation result, and accompanying sound or light feedback. Component includes the constituent parts of the home appliance, such as "burner head," "battery," and "ignition needle." Location includes the location of the component, such as "left side," "right side," or "both sides" of the burner head. Fault phenomenon indicates the specific manifestation of the home appliance malfunction, such as "failure to ignite" or "automatic flameout." Triggering operation indicates the operation that caused the home appliance malfunction, such as "turning a knob" or "pressing a button." Executed operation indicates a recovery operation that has been completed for the home appliance malfunction, such as "replacing the battery" or "restarting the device." Operation result indicates the result of the executed operation, such as "not recovered" or "briefly recovered." Sound and light feedback indicates the sound and / or light feedback caused by the home appliance malfunction, such as "clicking sound" or "indicator light flashing."

[0111] Because home appliance malfunctions manifest in various ways and multiple similar fault points exist, a high degree of accuracy in fault description is required. In this embodiment, the aforementioned slots allow for precise fault description from multiple dimensions, including external fault symptoms, executed operations, and feedback from the home appliance to those operations. This enables accurate differentiation of different fault points and improves the accuracy of fault matching and location.

[0112] For example, for "failure to start" type faults, electronic devices can accurately distinguish different fault nodes such as "failure to start on one side," "failure to start on both sides," and "failure to start after battery replacement" by using information from slots such as "left / right / both sides," "whether there is a clicking sound," "whether the battery has been replaced," and "whether it recovers after replacement." In this embodiment, through the aforementioned preset fault node library, each fault node simultaneously possesses standardized technical definitions and semantic coverage capabilities oriented towards real user expressions. Furthermore, even when the user's input query content is not completely consistent with standard terminology, the electronic device can still recall correct or similar candidate fault nodes based on fault definitions and fault descriptions, thereby improving the fault node recall hit rate.

[0113] If the current process indicates that fault location should continue, the electronic device can first recall candidate fault nodes based on the user's input query. The purpose is not to directly determine the final fault node, but to first map the user's current input to a set of the most relevant candidate fault nodes, thereby narrowing down the scope of subsequent fault tree determination.

[0114] Specifically, in one possible embodiment, the associated data of each fault node in the preset fault node library also includes fault description data and slots for the fault description data. Step S202, which involves recalling a set of candidate fault nodes matching the query content from the preset fault node library, includes steps S2021 to S2023.

[0115] S2021. Recall several fault nodes whose vector distance is less than the first threshold from the preset fault node library to obtain the first candidate fault node set.

[0116] The vector distance is determined based on the semantic vector of the query content and the semantic vector of the fault description data of each fault node in the fault node database.

[0117] S2022. Recall several fault nodes whose fault description data has target slots from the fault node library to obtain a second set of candidate fault nodes.

[0118] The target slot is the same as at least one slot in the query content.

[0119] In one possible implementation, when there is a conflict between the vector recall result and the slot recall result, the slot recall result can be prioritized as the final matching criterion. For example, when a user inputs "the left stove cannot be lit", the vector recall matches the node "one side cannot be lit", and the slot recall matches the condition "direction = left". Since they are consistent, they are directly merged into a candidate node set. If the vector recall matches "one side cannot be lit" and the slot recall matches "direction = both sides", then the slot recall result is prioritized to ensure that structured information dominates the final matching and to avoid interference from semantically similar nodes with conflicting structured conditions.

[0120] S2023. Perform a union operation on the first set of candidate fault nodes and the second set of candidate fault nodes to determine the set of candidate fault nodes.

[0121] In one possible embodiment, after receiving the query content input by the user, the electronic device first performs word segmentation, entity recognition, and slot extraction on the query content, and then maps it into a semantic vector. Additionally, the fault description data of each fault node in a pre-defined fault node library is also pre-vectorized and stored. The electronic device calculates the vector distance between the semantic vector of the query content and the semantic vectors of each fault description data, and selects several fault nodes with a distance less than a first threshold to form a first candidate fault node set. Subsequently, based on at least one slot extracted from the query content, the electronic device searches the fault node library for fault nodes whose fault description data has the same slot, forming a second candidate fault node set. Finally, the electronic device performs a union operation on the two sets, removes duplicate candidate fault nodes, and outputs a candidate fault node set for subsequent fault logic tree construction.

[0122] In this embodiment, a first set of candidate fault nodes is obtained by recalling a number of fault nodes whose vector distance is less than a first threshold from a preset fault node library, and a second set of candidate fault nodes is obtained by recalling a number of fault nodes whose fault description data has a target slot from the fault node library. The candidate fault node set can be accurately generated by using both query content recall and slot recall methods.

[0123] The query content retrieval process is based on the user's original query content and the rewritten query content obtained by rewriting the original query content. The original query content can retain detailed information from the user's original session. The rewritten query content is fault description data related to the original query content, used to convert colloquial, abbreviated, or non-standard expressions into standard expressions that are closer to the preset fault node database, thereby improving retrieval stability.

[0124] Slot recall is primarily used to enhance the ability to differentiate between similar fault nodes. For example, "one side won't start" and "both sides won't start" are similar in fault name and text description, but they differ in the "fault location" slot, so they can be distinguished through slot recall; "still won't start after battery replacement" has additional slots such as "operation performed = battery replacement" and "operation result = not recovered" compared to a regular "won't start" fault, thus allowing for the recall of more granular fault nodes.

[0125] In summary, the candidate fault nodes obtained through the embodiments of this application cover both fault nodes that are semantically similar to the query content and fault nodes that are consistent with the structured information of the query content. This allows the recall results to cover both the natural language information in the user's original expression and the distinguishing effect of key symptom conditions on fault nodes, further reducing missed recalls and improving recall accuracy, thus providing a more complete candidate basis for determining subsequent fault location results.

[0126] To further improve the stability of the final fault node determination, this embodiment of the application, after obtaining the candidate fault node set, does not directly perform the judgment on the full fault logic tree, but instead constructs a compressed fault logic tree based on the candidate node set. This fault logic tree is used to retain the fault paths and fault nodes most relevant to the current user's query content, thereby reducing the interference of irrelevant branches on subsequent judgments.

[0127] Figure 3 This is a flowchart illustrating a method for locating faults in household appliances according to another embodiment of this application. Figure 3 As shown, in one possible embodiment, step S203, which generates a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set, includes steps S2031 to S2032.

[0128] S2031. For any candidate fault node, backtrack upwards to the root node and downwards to the leaf node according to the node hierarchy relationship of the candidate fault node.

[0129] S2032. Based on the node hierarchy from the root node to the leaf node, generate a fault logic tree for candidate faulty nodes.

[0130] In one possible embodiment, the electronic device can configure each fault node as a node record in a tree structure through a node hierarchy. This node record includes at least a node identifier, a parent node identifier, and child node identifiers. The node identifier uniquely identifies the current node, the parent node identifier indicates the parent node to which the current node belongs, and the child node identifier indicates the corresponding lower-level branch. Once a candidate fault node is identified, the electronic device starts from that node, first reading its parent node identifier and connecting upwards layer by layer until a root node without a parent node identifier is detected. Then, it reads its child node identifiers and expands downwards layer by layer until all child nodes are final-level leaf nodes. The resulting fault logic tree preserves the complete context of the candidate fault node within the fault knowledge system, and the connections between its nodes can be directly used for subsequent prompt word generation and fault location result determination.

[0131] In this embodiment, the electronic device establishes a local tree structure based on any candidate fault node in the candidate fault node set, and outputs this local tree structure as a fault logic tree. Subsequent processing can match fault branches related to the current query content without traversing the entire preset fault node library, thereby improving the stability and efficiency of the final fault node hit. By organizing the hierarchical links from the root node to the leaf node, the fault logic tree can stably express the relationship between the upper-level fault category, the current candidate fault node, and the lower-level subdivided faults. This fault logic tree forms a judgment space with a relatively small scope but a complete hierarchy. Compared to performing open judgments directly in the entire fault logic tree, this method can reduce interference from irrelevant fault nodes, make the final fault location range more concentrated, and improve the path stability in the multi-round troubleshooting process.

[0132] Furthermore, upward traversal prevents candidate fault nodes from participating in the judgment process as isolated fault nodes. Instead, they are placed back into the original fault tree structure, enabling subsequent judgment processes to understand the fault category, superior scenario, and parent-child hierarchical relationship to which the candidate fault node belongs. Downward traversal preserves the subdivided fault branches required for subsequent judgment, allowing electronic devices to further distinguish different fault situations based on a broad pool of candidate fault nodes. In other words, the hierarchical boundaries of candidate fault nodes are clearly defined, and relevant fault branches are fully preserved. Subsequent fault location results generated based on prompt words can directly utilize this hierarchical structure for constraints, thereby improving the completeness of the expression of fault node relationships and the consistency of location results.

[0133] like Figure 3 As shown, in one possible embodiment, the association data of each fault node in the preset fault node library also includes conflict rules for indicating mutual exclusion between fault nodes. After generating the fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set in step S203, the method further includes: step S205.

[0134] S205. Based on the query content, historical dialogue data before the current round, and conflict rules, the fault logic tree is pruned and updated to obtain the updated fault logic tree.

[0135] The updated fault logic tree obtained after pruning serves as input for prompt word generation. For example, if historical dialogue data confirms that "the user has ruled out battery issues," the "replacing the battery was ineffective" branch is pruned, retaining only the "ignition needle malfunction" branch. Prompt words are generated based on the pruned fault logic tree, ensuring that the large language model only performs reasoning on the retained branches, avoiding mislocalization due to conflicting historical information.

[0136] In one possible embodiment, after receiving the query content for the current round, the electronic device uses the query content along with historical dialogue data from previous rounds for pruning. The electronic device also reads the conflict rules corresponding to each fault node in the fault logic tree to determine whether there is a reverse exclusion relationship between the fault node pointed to by the current query content and the fault nodes confirmed by the historical dialogue data. When a fault node corresponding to a branch is detected to conflict with confirmed information, the electronic device deletes, blocks, or downgrades the branch and its downstream nodes. When a fault node is compatible with historical dialogue data but conflicts with another candidate fault node, the branch with a higher matching degree to the query content is retained, and the node order and visibility range of that branch are updated synchronously, thereby generating an updated fault logic tree. If the historical dialogue data has clearly excluded a certain type of fault phenomenon, the mutually exclusive branch corresponding to that phenomenon will be directly pruned.

[0137] For example, when a user inputs "neither side works", the electronic device will cut off the "one side cannot start" branch and keep the "neither side can start" branch to ensure that the final positioning result is consistent with the user's latest input and avoid incorrect judgment due to conflicts in historical information.

[0138] In this embodiment, the fault logic tree is pruned and updated based on the query content, historical dialogue data prior to the current round, and conflict rules to obtain an updated fault logic tree. The fault logic tree can be continuously corrected based on the query content, historical dialogue data, and conflict rules, thereby timely pruning of irrelevant or mutually exclusive fault paths. The remaining branches are more relevant to the current context, improving the stability and consistency of fault location results. Furthermore, the updated fault logic tree carries the contextual constraints formed by the query content of the current round and historical dialogue data. When determining fault location results based on the prompts corresponding to this updated fault logic tree, matching and reasoning are only performed on the remaining branches, ensuring that the fault judgment corresponding to the current process state remains consistent with multi-round dialogue information.

[0139] The following will illustrate an example of a fault logic tree or an updated fault logic tree.

[0140] Fault Scenario 1: Failure to start. Specifically, fault node 1: Failure to start; fault node 2: Failure to start on one side.

[0141] Branching logic for fault scenario 1: Fault node 2 is a child node of fault node 1.

[0142] Fault Scenario 2: Failure to start. Fault Node 3: Failure to start on both sides.

[0143] Branching logic for fault scenario 2: Fault node 3 is a child node of fault node 1.

[0144] Fault Scenario 3: Automatic engine shutdown. Among them, fault node 4: Automatic engine shutdown; fault node 5: Engine shuts off when the knob is released (engine shuts off when the knob is released during ignition).

[0145] Branching logic for fault scenario 3: Fault node 5 is a child node of fault node 4.

[0146] In one possible embodiment, step S204, which determines the fault location result of the current process state based on the prompt words corresponding to the fault logic tree, includes steps S2041 to S2042.

[0147] S2041. Convert the fault logic tree into prompt words, or convert the fault logic tree and auxiliary data into prompt words.

[0148] S2042. Input the prompt words into the large language model to determine the fault location result of the current process state.

[0149] The auxiliary data includes at least one of the following: query content, historical dialogue data before the current round, and output format constraint data used to constrain the output format of the large language model.

[0150] In one possible embodiment, the electronic device can directly serialize the fault logic tree into a natural language description. For example, the hierarchical relationship between the root node, branch nodes, and leaf nodes can be converted into a text expression of "current candidate faults and their parent categories," and this text can be concatenated with the query content to form a prompt word. Alternatively, historical dialogue data can be appended to the prompt word by round, enabling the large language model to determine the effective fault range of the current round based on the preceding context. If the electronic device needs to output results in a fixed format, output format constraint data can be written into the prompt word, requiring the large language model to return preset field content, such as fault node name, matching criteria, and processing conclusion, so that the output result meets the preset requirements. Of course, for different fault scenarios, the prompt word can also only include the query content, only include historical dialogue data, or both, as well as the output format constraint data, to adapt to different positioning accuracy and output control requirements. No specific limitations are made here.

[0151] For example, the prompt words are "User's current input: The left stove cannot be lit; Historical dialogue: Replacing the battery is ineffective; Fault logic tree: Cannot be lit → One side cannot be lit; Output format: Fault node name + processing conclusion". Based on this, the large language model outputs "One side cannot be lit → It is recommended to check the ignition needle", ensuring that the output result conforms to the preset structure and matches the current context.

[0152] For example, the prompts include the following: the query content entered by the user in the current round and its standardized rewrite result, the historical dialogue context, the fault nodes that were hit in the previous round and the confirmed conditions, the set of candidate fault nodes, the relevance ranking result of the candidate fault nodes and the compressed fault logic tree, the set of optional service actions and the triggering operation corresponding to each service action, the restriction conditions or priority rules, and the output format constraints, which are used to require the large language model to return fault nodes, service action types, etc. in a structured result.

[0153] For example, the output of a large language model can indicate whether a fault node was hit or no fault nodes were hit.

[0154] In this embodiment, the above operations enable the large language model to perform fault node reasoning under the structured constraints provided by the fault logic tree, combined with auxiliary data, and output fault location results that match the current process state. Since the prompt words simultaneously carry the node hierarchy and the current dialogue context, the large language model can comprehensively judge the differences between candidate fault nodes, and the output results can maintain structural consistency, facilitating subsequent customer service interactions, work order transfers, or direct invocation by remote operation and maintenance systems.

[0155] In one possible embodiment, after determining the fault location result of the current process state based on the prompt words corresponding to the fault logic tree in step S204, the method further includes steps S206 to S207.

[0156] S206. If the fault location result indicates the target fault node that caused the appliance malfunction, generate fault location response content matching the target fault node and / or trigger service actions based on the target fault node.

[0157] Service actions include at least one of the following: transferring to human assistance, scheduling a repair appointment, providing operation instructions, and connecting to remote guidance. If the fault location results do not indicate a matching target fault node causing the appliance malfunction, a follow-up question response text is generated to clarify further inquiries, and the process proceeds to the next round of Q&A.

[0158] In one possible embodiment, after obtaining the fault location result of the current process state based on the prompt words corresponding to the fault logic tree, the electronic device compares the result with the target fault node. When the comparison result indicates that the target fault node has been located, the electronic device extracts the matching fault location response content from the response template library associated with the target fault node, and generates user-oriented output text by combining relevant information of the target fault node and user history dialogue content. If the target fault node corresponds to a situation requiring manual intervention, the electronic device triggers a transfer to human agent, synchronizing the current session context, the confirmed target fault node, and historical Q&A records to the human agent. If it corresponds to a situation requiring on-site handling, the electronic device generates repair appointment information and submits it to the after-sales service system. If it corresponds to a situation that can be handled remotely, the electronic device outputs operation instructions matching the target fault node, or establishes a connection with a remote guidance terminal, transmitting the current round of diagnostic results, user terminal device information, and other information to the remote assistance terminal.

[0159] S207. If the fault location result indicates that the target fault node causing the home appliance fault is not matched, generate a follow-up question response text for clarifying follow-up questions and proceed to the next round of question and answer.

[0160] In one possible embodiment, when the fault location result does not match the target fault node, the electronic device can generate a follow-up question response text for clarifying further inquiries based on the currently collected fault characteristics, historical dialogue information, and missing diagnostic elements. This follow-up question response text can issue supplementary inquiries for key locations and guide the user to supplement information such as the model of the home appliance, the fault symptoms, operating results, or environmental conditions. Subsequently, the follow-up question response text is sent to the user's terminal device to initiate the next round of questioning and answering to continue the subsequent location process.

[0161] In this embodiment, through the above operations, the electronic device can directly output the corresponding fault description and link service capabilities after identifying the target fault node. If the fault location is not completed, key information is supplemented through follow-up text queries, thus forming a closed loop between fault location and subsequent services. This reduces the number of invalid interactions and ensures that the fault location results of home appliances are consistent with service actions such as transferring to human assistance, scheduling repairs, providing operation guidance, and offering remote assistance.

[0162] The above embodiments have detailed the situation where the current process state indicates continued fault location. In addition, the current process state may also indicate other situations.

[0163] Specifically, in one possible embodiment, after determining the current process state based on the query content input by the user in the current round in step S201, the method further includes steps S208 to S210.

[0164] S208. If the current process state indicates that the appliance malfunction has been resolved, output a closing response text to end the appliance malfunction localization task. This allows you to terminate the session directly.

[0165] S209. If the current process indicates that on-site repair or manual service is required, schedule a repair appointment or transfer the customer to a human operator. This avoids the customer repeatedly describing the problem.

[0166] S210. If the user's intent is unclear in the current process state, output a follow-up question response text to clarify the follow-up question.

[0167] For example, when the process state is "user intent is ambiguous", the electronic device can generate follow-up question text based on the missing slots in the query content (such as "location" or "fault phenomenon"). For instance, when the user enters "there is a problem with the stove", the electronic device identifies the missing "location" and "fault phenomenon" slots and generates follow-up questions such as "Is it the left or right stove? What is the specific fault phenomenon?" to complete the information and ensure that the subsequent recall and location process is executed based on complete information.

[0168] For example, the closing reply text, follow-up question reply text, and transfer to human operator script can all be configured according to the business. Different types of home appliances can use different templates, and this application does not limit this.

[0169] In this embodiment, the above operations enable the process state to directly enter the termination, service acceptance, or follow-up inquiry branch after identification, and link with subsequent after-sales capabilities, thereby achieving rapid closure of the fault location task, manual intervention, and information completion. Since different process states correspond to different outputs or service actions, electronic devices can reduce unnecessary round-trip interactions and ensure that the fault location results of home appliances are consistent with subsequent service processing.

[0170] Figure 4 This is a flowchart of a method for locating faults in household appliances according to another embodiment of this application.

[0171] like Figure 4 As shown, the method includes steps S301 to S306.

[0172] S301. Obtain the query content input by the user.

[0173] S302, Context splicing.

[0174] For example, the electronic device can input the query content of the current round from the user and concatenate the query content of the current round with the query content of the previous n rounds. The concatenated result can be used as the input for step S303, where n is an integer greater than or equal to 1.

[0175] S303. Determine the current process state.

[0176] If the current process state indicates that fault location should continue, proceed to steps S304-1 to S304-5.

[0177] Among them, S304-1, recall candidate fault nodes from the preset fault node library to obtain a set of candidate fault nodes.

[0178] S304-2. Generate a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set.

[0179] S304-3. Generate a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set.

[0180] S304-4. Convert the fault logic tree and auxiliary data into prompt words and use a large language model to determine the fault location result of the current process state.

[0181] S304-5. If the fault location result indicates a target fault node, generate fault location response content and / or trigger service actions based on the target fault node.

[0182] In addition, if the fault location result indicates that the target fault node causing the home appliance fault is not matched, a follow-up question response text is generated to clarify the follow-up questions and the process proceeds to the next round of question and answer.

[0183] If the current process status indicates that the appliance malfunction has been resolved, proceed to step S305-1.

[0184] S305-1, Output the closing reply text.

[0185] If the current process status indicates that on-site repair or manual service is required, proceed to step S305-2.

[0186] S305-2, schedule a repair appointment or transfer to a human operator.

[0187] If the current process state indicates that the user's intent is ambiguous, proceed to step S305-3.

[0188] S305-3, Output the follow-up reply text.

[0189] S306, is a next round still needed?

[0190] For example, when a user's intent is ambiguous, it can be determined that a next round of questioning is necessary.

[0191] The above steps have been explained in detail above and will not be repeated here.

[0192] In summary, the embodiments of this application improve the accuracy, coverage, and interaction efficiency of fault location for home appliances through a collaborative processing mechanism that combines process-level diversion, semantic recall, and compressed fault logic tree determination. Specifically, this includes:

[0193] Semantic understanding enhancement: By using vectorized recall and slot matching technologies, we can cover diverse natural language expressions of users and improve the comprehensiveness of fault recall.

[0194] Stable multi-round interaction: By compressing the fault logic tree, the system dynamically integrates multi-round user input information (such as first describing "cannot start" and then adding "the left stove is normal") to avoid path deviation.

[0195] Action decision collaboration: By leveraging the contextual understanding capabilities of a large language model, fault node determination is bound to service actions (such as follow-up inquiries and maintenance appointments), reducing the risk of inconsistency between nodes and actions.

[0196] Service experience optimization: By generating standardized responses (such as "Does the ignition needle make a clicking sound?"), we ensure user-friendly interaction and accurate service actions, thereby improving user satisfaction.

[0197] Figure 5 This is a schematic diagram of the structure of the home appliance fault location device provided in this application, such as... Figure 5 As shown, the home appliance fault location device provided in this embodiment includes:

[0198] The process state determination module 410 is used to determine the current process state based on the query content entered by the user in the current round of the home appliance fault location task for any round of question and answer. The home appliance fault location task includes multiple process states.

[0199] The recall module 420 is used to recall a set of candidate fault nodes that match the query content from a preset fault node library when the current process state indicates that fault location should continue; wherein, the associated data of each fault node in the preset fault node library includes the node hierarchy relationship.

[0200] The generation module 430 is used to generate a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set.

[0201] The fault location module 440 is used to determine the fault location result of the current process state based on the prompt words corresponding to the fault logic tree.

[0202] In one possible embodiment, the associated data of each fault node in the preset fault node library further includes fault description data and slots for the fault description data; the recall module is specifically used for:

[0203] Retrieve several fault nodes whose vector distance is less than a first threshold from the preset fault node database to obtain the first candidate fault node set. The vector distance is determined based on the semantic vector of the query content and the semantic vector of the fault description data of each fault node in the fault node database.

[0204] Retrieve several fault nodes whose fault description data has a target slot from the fault node database to obtain a second set of candidate fault nodes, where the target slot is the same as at least one slot of the query content.

[0205] The candidate fault node set is determined by performing a union operation on the first candidate fault node set and the second candidate fault node set.

[0206] In one possible embodiment, the slot includes at least one of the following: component, orientation, fault phenomenon, trigger operation, executed operation, operation result, and audio-visual feedback; wherein, component includes constituent parts of the home appliance, orientation includes the orientation of the component, fault phenomenon indicates the manifestation of the home appliance fault, trigger operation indicates the operation that caused the home appliance fault, executed operation indicates the recovery operation that has been completed for the home appliance fault, operation result indicates the result of the executed operation, and audio-visual feedback indicates the sound and / or light feedback generated due to the home appliance fault.

[0207] In one possible embodiment, the generation module is specifically used to: for any candidate fault node, backtrack upwards to the root node and traverse downwards to the leaf node according to the node hierarchy relationship of the candidate fault node; and generate a fault logic tree for the candidate fault node based on the node hierarchy relationship from the root node to the leaf node.

[0208] In one possible embodiment, the associated data of each fault node in the preset fault node library also includes conflict rules indicating mutual exclusion between fault nodes. The device further includes a pruning module for pruning and updating the fault logic tree based on the query content, historical dialogue data prior to the current round, and conflict rules, to obtain an updated fault logic tree.

[0209] In one possible embodiment, the fault location module is specifically used to: convert the fault logic tree into prompt words, or convert the fault logic tree and auxiliary data into prompt words; input the prompt words into the large language model to determine the fault location result of the current process state; wherein, the auxiliary data includes at least one of the following: query content, historical dialogue data before the current round, and format constraint data used to constrain the output format of the large language model.

[0210] In one possible embodiment, the device further includes: an action module, configured to, when the fault location result indicates a target fault node causing the appliance malfunction, generate a fault location response content matching the target fault node and / or trigger a service action, the service action including at least one of the following: transferring to human assistance, scheduling a repair appointment, outputting operation instructions, or connecting to remote guidance; and when the fault location result indicates that no target fault node causing the appliance malfunction was matched, generate a follow-up question response text for clarifying follow-up questions and proceed to the next round of question and answer.

[0211] In one possible embodiment, the process state determination module is specifically used to: input the query content entered by the user in the current round into a classification model to determine the current process state, wherein the classification model is used to classify the process state based on the query content; the process state includes continuing to locate the fault, the fault of the home appliance has been resolved, on-site repair or manual service is required, and the user intent is ambiguous; the ambiguity of the user intent is determined based on the query content.

[0212] In one possible embodiment, the action module is further configured to: output a closing reply text to end the appliance fault location task when the current process state indicates that the appliance fault has been resolved; execute a repair appointment or transfer to a human agent when the current process state indicates that on-site repair or manual service is required; and output a follow-up reply text to clarify any questions when the current process state indicates that the user's intent is ambiguous.

[0213] The home appliance fault location device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0214] Figure 6 A schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the electronic device further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus 504.

[0215] In the specific implementation process, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to execute the above-mentioned home appliance fault location method.

[0216] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0217] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0218] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0219] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0220] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method for locating faults in home appliances.

[0221] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the aforementioned method for locating faults in home appliances.

[0222] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0223] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0224] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0225] The units described as separate components may or may not be physically separate. 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 units can be selected to achieve the purpose of this embodiment according to actual needs.

[0226] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0227] If a function is implemented as 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 technical solution of this invention, 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, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0228] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0229] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.

Claims

1. A method for locating faults in household appliances, characterized in that, include: For any round of question and answer in the home appliance fault location task, the current process state is determined based on the query content entered by the user in the current round. The home appliance fault location task includes multiple process states. If the current process state indicates to continue locating the fault, a set of candidate fault nodes that match the query content is recalled from a preset fault node library; wherein, the associated data of each fault node in the preset fault node library includes node hierarchical relationships. A fault logic tree is generated based on the node hierarchy relationship of each candidate fault node in the candidate fault node set. Based on the prompt words corresponding to the fault logic tree, the fault location result of the current process state is determined.

2. The method according to claim 1, characterized in that, The associated data of each fault node in the preset fault node library also includes fault description data and slots for the fault description data. The step of recalling a set of candidate fault nodes that match the query content from a preset fault node database includes: A set of first candidate fault nodes is obtained by recalling several fault nodes whose vector distance is less than a first threshold from the preset fault node database. The vector distance is determined based on the semantic vector of the query content and the semantic vector of the fault description data of each fault node in the fault node database. Retrieve several fault nodes whose fault description data has a target slot from the fault node database to obtain a second candidate fault node set, wherein the target slot is the same as at least one slot of the query content. The candidate fault node set is determined by performing a union operation on the first candidate fault node set and the second candidate fault node set.

3. The method according to claim 2, characterized in that, The slot includes at least one of the following: component, location, fault phenomenon, trigger operation, executed operation, operation result, and audio-visual feedback; wherein, the component includes the constituent parts of the home appliance, the location includes the location of the component, the fault phenomenon indicates the manifestation of the home appliance fault, the trigger operation indicates the operation that caused the home appliance fault, the executed operation indicates the recovery operation that has been completed for the home appliance fault, the operation result indicates the result produced by the executed operation, and the audio-visual feedback indicates the sound and / or light feedback generated due to the home appliance fault.

4. The method according to claim 1, characterized in that, The step of generating a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set includes: For any candidate fault node, backtrack upwards to the root node and downwards to the leaf node according to the node hierarchy relationship of the candidate fault node; Based on the node hierarchy from the root node to the leaf node, a fault logic tree for the candidate fault nodes is generated.

5. The method according to claim 3, characterized in that, The associated data of each fault node in the preset fault node library also includes conflict rules used to indicate mutual exclusion between fault nodes; after generating a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set, the method further includes: Based on the query content, the historical dialogue data before the current round, and the conflict rules, the fault logic tree is pruned and updated to obtain the updated fault logic tree.

6. The method according to claim 1, characterized in that, The step of determining the fault location result of the current process state based on the prompt words corresponding to the fault logic tree includes: Convert the fault logic tree into prompt words, or convert the fault logic tree and auxiliary data into prompt words; The prompt words are input into the large language model to determine the fault location result of the current process state; wherein, the auxiliary data includes at least one of the following: the query content, historical dialogue data before the current round, and format constraint data used to constrain the output format of the large language model.

7. The method according to any one of claims 1-6, characterized in that, After determining the fault location result of the current process state based on the prompt words corresponding to the fault logic tree, the method further includes: If the fault location result indicates a target fault node that caused the fault of the home appliance, generate fault location response content matching the target fault node and / or trigger service actions based on the target fault node. The service actions include at least one of the following: transferring to human assistance, scheduling a repair appointment, outputting operation instructions, and connecting to remote guidance. If the fault location result indicates that no target fault node causing the fault of the home appliance is matched, a follow-up question response text is generated to clarify the follow-up questions and proceed to the next round of question and answer.

8. The method according to any one of claims 1-6, characterized in that, Determining the current process state based on the query content entered by the user in the current round includes: The query content input by the user in the current round is input into the classification model to determine the current process state. The classification model is used to classify the process state based on the query content. The process state includes continuing to locate the fault, the appliance fault has been resolved, on-site repair or manual service is required, and the user intent is ambiguous. The ambiguous user intent is determined based on the query content.

9. The method according to claim 8, characterized in that, After determining the current process state based on the query content input by the user in the current round, the method further includes: If the current process state indicates that the appliance malfunction has been resolved, output a closing response text to end the appliance malfunction location task; If the current process state indicates that on-site repair or manual service is required, a repair appointment will be made or the call will be transferred to a human operator. If the current process state indicates that the user's intent is ambiguous, output a follow-up response text to clarify the follow-up question.

10. A fault location device for household appliances, characterized in that, include: The process state determination module is used to determine the current process state based on the query content entered by the user in the current round of the question and answer for any round of the home appliance fault location task. The home appliance fault location task includes multiple process states. The recall module is used to recall a set of candidate fault nodes that match the query content from a preset fault node library when the current process state indicates to continue locating the fault; wherein, the associated data of each fault node in the preset fault node library includes node hierarchical relationships. The generation module is used to generate a fault logic tree based on the node hierarchy relationship of each candidate fault node in the candidate fault node set. The fault location module is used to determine the fault location result of the current process state based on the prompt words corresponding to the fault logic tree.