Washing machine control method, device, washing machine and storage medium
By realizing offline voice recognition and historical program information analysis in the washing machine, recommending and executing laundry programs and parameters corresponding to user intentions, the problem of not responding to unspecified voice commands in the prior art is solved, and fast and low-cost voice control is achieved Effect.
Patent Information
- Application Number
- CN202010877165.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-27
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-08-27
AI Technical Summary
The offline voice control of existing washing machines can only be used to make simple command matching, and cannot respond to situations where the laundry program and parameters are not clearly specified in the user's voice command, resulting in the inability to effectively respond to user intentions.
By realizing offline voice recognition in the washing machine, if the user's voice command does not contain program information, the target programs and parameters corresponding to the user's intention are recommended, and the washing machine runs after the user confirms, and the most commonly used program information is used to calculate the historical program information and weight value. programs and parameters.
It realizes that without relying on the network and backend servers, quickly responds to user voice commands, reduces costs, makes full use of washing machine processing capabilities, avoids computing pressure, and improves user experience.
Smart Images

Figure CN114108227B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention belong to the field of smart home technology, and specifically relate to a control method and device for a washing machine, a washing machine, and a storage medium. Background Art
[0002] With the popularity of washing machines, more and more people use washing machines to wash clothes. Some washing machines on the market can achieve offline voice control.
[0003] Offline voice control usually means that the chip has a local voice recognition algorithm but does not have interactive capabilities. The control is imperative control, which usually only performs command matching. When the command is matched, the program is selected and executed.
[0004] Existing offline voice control can only perform simple command matching. When the user's voice command is relatively simple, for example, the user's voice command does not include clear washing programs and parameters, it usually fails to hit the target, resulting in the washing machine being unable to respond to the user's voice command. Summary of the invention
[0005] Embodiments of the present invention provide a control method and device for a washing machine, a washing machine, and a storage medium, so as to respond to a user's voice command when the washing machine only has offline voice recognition and the user's voice command does not specify a washing program and parameters.
[0006] A first aspect of an embodiment of the present invention is to provide a method for controlling a washing machine, the method comprising:
[0007] Receive a user's voice command and perform offline voice recognition on the voice command; determine the user's intention based on the offline voice recognition result;
[0008] If the user intention does not include program information, recommending a target program and target program parameters corresponding to the user intention to the user;
[0009] After receiving the user's confirmation instruction, the washing machine is controlled to run according to the target program and the target program parameters.
[0010] In a possible implementation, the recommending to the user a target program and target program parameters corresponding to the user intention includes:
[0011] Acquire historical program information of the user within a preset time range in the past;
[0012] According to the user intention and the historical program information, a program and program parameters corresponding to the user intention and most frequently used by the user are determined as the target program and the target program parameters.
[0013] In a possible implementation, determining, according to the user intention and the historical program information, the program and program parameters that correspond to the user intention and are most frequently used by the user includes:
[0014] Obtaining the historical usage count of each candidate program within a preset time range in the past from the historical program information;
[0015] Obtaining a weight score for each candidate program according to the number of times each candidate program has been used in the past within a preset time range, a preset weight value for each candidate program type, and a weight value corresponding to the completeness of execution of each candidate program;
[0016] The candidate program with the highest weight score is used as the program that corresponds to the user's intention and is most frequently used by the user, and the program parameters most frequently used by the user for the candidate program are obtained according to the historical program information.
[0017] In a possible implementation, the method further includes:
[0018] The weight value of each candidate program type and the weight value corresponding to the execution completeness of each candidate program are set, wherein different weight values are configured for the same candidate program type under different user intentions, and different weight values are configured for different execution completeness.
[0019] In a possible implementation manner, after determining the user intention according to the offline speech recognition result, the method further includes:
[0020] If the user intention includes program information, controlling the operation of the washing machine according to the program information, and storing the program information as the historical program information; or
[0021] The program information input by the user through the control panel is received, the operation of the washing machine is controlled according to the program information, and the program information is stored as the historical program information.
[0022] In a possible implementation manner, storing the program information as the historical program information includes:
[0023] Determining whether the program information is program information corresponding to a preset candidate program;
[0024] If so, the program information is stored as the historical program information.
[0025] A second aspect of an embodiment of the present invention provides a control device for a washing machine, comprising:
[0026] A collection module, used to receive voice commands from users;
[0027] An offline speech recognition module, used to perform offline speech recognition on the voice command; and determine the user intention according to the offline speech recognition result;
[0028] A recommendation module, configured to recommend a target program and target program parameters corresponding to the user's intention to the user if the user's intention does not contain program information;
[0029] The control module is used to control the operation of the washing machine according to the target program and the target program parameters after receiving the user's confirmation instruction.
[0030] In a possible implementation, when the recommendation module recommends the target program and target program parameters corresponding to the user's intention to the user, it is configured to:
[0031] Acquire historical program information of the user within a preset time range in the past;
[0032] According to the user intention and the historical program information, the program and program parameters most frequently used by the user corresponding to the user intention are determined as the target program and the target program parameters.
[0033] In a possible implementation, when the recommendation module determines the program and program parameters that correspond to the user intention and are most commonly used by the user according to the user intention and the historical program information, it is configured to:
[0034] Obtaining the historical usage count of each candidate program within a preset time range in the past from the historical program information;
[0035] Obtaining a weight score for each candidate program according to the number of times each candidate program has been used in the past within a preset time range, a preset weight value for each candidate program type, and a weight value corresponding to the completeness of execution of each candidate program;
[0036] The candidate program with the highest weight score is used as the program that corresponds to the user's intention and is most frequently used by the user, and the program parameters most frequently used by the user for the candidate program are obtained according to the historical program information.
[0037] In a possible implementation, the recommendation module is further used for:
[0038] The weight value of each candidate program type and the weight value corresponding to the execution completeness of each candidate program are set, wherein different weight values are configured for the same candidate program type under different user intentions, and different weight values are configured for different execution completeness.
[0039] In a possible implementation manner, the control module is further used for:
[0040] If the user intention includes program information, controlling the operation of the washing machine according to the program information, and storing the program information as the historical program information; or
[0041] The program information input by the user through the control panel is received, the operation of the washing machine is controlled according to the program information, and the program information is stored as the historical program information.
[0042] In a possible implementation manner, when storing the program information as the historical program information, the control module is used to:
[0043] Determining whether the program information is program information corresponding to a preset candidate program;
[0044] If so, the program information is stored as the historical program information.
[0045] A third aspect of an embodiment of the present invention provides a washing machine, comprising:
[0046] Memory for storing computer programs;
[0047] A processor is used to run the computer program stored in the memory to implement the method as described in the first aspect.
[0048] A fourth aspect of an embodiment of the present invention is to provide a computer-readable storage medium having a computer program stored thereon;
[0049] When the computer program is executed by a processor, the method according to the first aspect is implemented.
[0050] The control method, device, washing machine and storage medium provided in the embodiment of the present invention receive the user's voice command and perform offline voice recognition on the voice command; determine the user's intention according to the offline voice recognition result; if the user's intention does not contain program information, recommend the target program and target program parameters corresponding to the user's intention to the user; after receiving the user's confirmation instruction, control the operation of the washing machine according to the target program and the target program parameters. In the embodiment of the present invention, when the washing machine only has offline voice recognition and the washing program and parameters are not specified in the user's voice command, the target program and target program parameters are recommended to the user in an offline manner, without relying on the network and the background server, with faster response speed and lower cost, and can fully utilize the processing power of the washing machine without generating excessive computing pressure on the washing machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0052] Figure 1 A scene diagram of a method for controlling a washing machine provided by an embodiment of the present invention;
[0053] Figure 2 A flow chart of a control method for a washing machine provided by an embodiment of the present invention;
[0054] Figure 3 A flow chart of a control method for a washing machine provided by another embodiment of the present invention;
[0055] Figure 4 A flow chart of a control method for a washing machine provided by another embodiment of the present invention;
[0056] Figure 5 A structural diagram of a control device for a washing machine provided by an embodiment of the present invention;
[0057] Figure 6 This is a structural diagram of a washing machine provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present invention.
[0059] The existing offline voice control of washing machines can only perform simple command matching. When the user's voice command is relatively simple, for example, the user's voice command does not include clear washing programs and parameters, it usually fails to match, resulting in the washing machine being unable to respond to the user's voice command.
[0060] In response to the above problems, an embodiment of the present invention considers recommending programs and program parameters to the user in response to the user's voice instructions when the washing machine only has offline voice recognition and the washing program and parameters are not specified in the user's voice instructions, so as to facilitate the user to determine the required programs and program parameters and control the operation of the washing machine.
[0061] Specifically, the washing machine receives the user's voice command and performs offline voice recognition on the voice command; determines the user's intention based on the offline voice recognition result; if the user's intention does not contain program information, recommends the target program and target program parameters corresponding to the user's intention to the user; after receiving the user's confirmation command, controls the operation of the washing machine based on the target program and target program parameters. In the embodiment of the present invention, the target program and target program parameters can be recommended to the user in an offline manner, without relying on the network and the background server, with faster response speed, lower cost, and can fully utilize the processing power of the washing machine without generating excessive computing pressure on the washing machine.
[0062] The application scenarios of the washing machine control method provided by the embodiment of the present invention are as follows: Figure 1 As shown, the user issues a voice command, and the washing machine can collect the user's voice command through a microphone and other devices, and perform offline voice recognition on the voice command, and determine the user's intention based on the offline voice recognition result; if the user's intention does not contain program information, the target program and target program parameters corresponding to the user's intention are determined and recommended to the user, where the recommendation method is not limited to voice broadcast, control panel display, etc.; the user can issue a confirmation command, and after receiving the confirmation command, the washing machine controls the operation of the washing machine according to the target program and target program parameters.
[0063] The control process of the washing machine is explained and illustrated in detail below in conjunction with specific embodiments.
[0064] Figure 2 This is a flow chart of a control method for a washing machine provided by an embodiment of the present invention. This embodiment provides a control method for a washing machine, and the specific steps of the method are as follows:
[0065] S201, receiving a user's voice command, performing offline voice recognition on the voice command; and determining the user's intention according to the offline voice recognition result.
[0066] In this embodiment, when the user needs to use the washing machine, he can issue a voice command. The washing machine can collect the voice command issued by the user through a microphone or other collection devices, and then process the voice command through offline voice recognition. Offline voice recognition is that the washing machine recognizes the voice command locally through a specific voice recognition algorithm or an offline voice recognition chip. It does not need to rely on the network or upload to the server to complete the voice recognition with the help of a background server. Therefore, offline voice recognition has a faster response speed, lower cost, and smaller size.
[0067] In this embodiment, since offline voice does not support semantic understanding, the user's intention can be determined by matching the voice command with the local preset command, that is, the voice command includes what specific program to select and what parameters to set, or the user can only express the intention to wash clothes without specifying a specific program. For example, if the user only issues the voice command "I want to wash clothes", it can be determined that the user's intention does not contain program information.
[0068] S202: If the user intention does not include program information, recommending a target program and target program parameters corresponding to the user intention to the user.
[0069] In this embodiment, when it is determined that the user intention does not include program information, the target program and target program parameters corresponding to the user intention can be recommended to the user. For example, in the above example, the user intention only expresses the intention to wash clothes but does not include program information. The user's most commonly used washing program can be determined as the target program based on the user's historical data, and the most commonly used program parameters when using the washing program can be used as the target program parameters, and recommended to the user; similarly, if the user intention only expresses the intention to dehydrate but does not include specific information, the user's most commonly used dehydration program can be determined as the target program based on the user's historical data, and the most commonly used program parameters when using the dehydration program can be used as the target program parameters, and recommended to the user.
[0070] S203: After receiving a confirmation instruction from the user, control the operation of the washing machine according to the target program and the target program parameters.
[0071] In this embodiment, when the target program and target program parameters are recommended to the user in the above steps, voice may be used, or displayed on the control panel screen, or recommended to the user in other ways. If the user determines to use the recommended target program or target program parameters, a confirmation instruction is issued. The confirmation instruction can be a voice instruction, or the user confirms on the control panel, etc., which is not limited here. After receiving the user's confirmation instruction, the washing machine can control the operation of the washing machine according to the target program and target program parameters.
[0072] Of course, the user can also refuse to use the target program or target program parameters, or modify the target program and target program parameters, where the modification method is not limited to voice commands or control panel operations, so that the washing machine can be controlled according to the modified program and program parameters.
[0073] The control method of the washing machine provided in this embodiment receives the user's voice command and performs offline voice recognition on the voice command; determines the user's intention according to the offline voice recognition result; if the user's intention does not contain program information, recommends the target program and target program parameters corresponding to the user's intention to the user; after receiving the user's confirmation instruction, controls the operation of the washing machine according to the target program and the target program parameters. In this embodiment, when the washing machine only has offline voice recognition and the washing program and parameters are not specified in the user's voice command, the target program and target program parameters are recommended to the user in an offline manner, which does not rely on the network and the background server, has a faster response speed, lower cost, and can fully utilize the processing power of the washing machine without generating excessive computing pressure on the washing machine.
[0074] As a further improvement of the above embodiment, Figure 3 As shown, the recommendation of the target program and target program parameters corresponding to the user's intention to the user in S202 may specifically include:
[0075] S301, obtaining historical program information of the user within a preset time range in the past;
[0076] S302: According to the user intention and the historical program information, determine the program and program parameters that correspond to the user intention and are most frequently used by the user as the target program and the target program parameters.
[0077] In this embodiment, during the user's normal use of the washing machine, the programs and program parameters selected by the user can be collected as historical program information. Specifically, when the user issues a voice command, the voice command is subjected to offline voice recognition, and after the user's intention is determined based on the offline voice recognition result, it is found that the user's intention contains program information, then the washing machine is controlled to run according to the program information, and the program information is stored as historical program information; alternatively, the user can also input program information through the control panel, and when the washing machine receives the program information input by the user through the control panel, the washing machine is controlled to run according to the program information, and the program information is stored as historical program information. Of course, in this embodiment, the user can also input program information through other means, and the washing machine can also store it as historical program information after obtaining the program information.
[0078] It should be noted that in this embodiment, only the historical program information of certain specific alternative programs can be collected, for example, only the historical program information of alternative programs such as washing, drying, dehydration, and rinsing can be collected, while for some special programs, such as drum self-cleaning, it is not necessary to collect the historical program information. Based on this, in this embodiment, after receiving the voice command containing program information input by the user or receiving the program information input by the user through the control panel, it can first be determined whether the program information is the program information corresponding to the preset alternative program, that is, whether it belongs to the program information of alternative programs such as washing, drying, dehydration, and rinsing; if so, the program information is stored as the historical program information; otherwise, if it is a special program such as drum self-cleaning, the program information may not be collected.
[0079] In this embodiment, when it is necessary to recommend to the user a target program and target program parameters corresponding to the user's intention, considering that the programs and program parameters most commonly used by users in different seasons and stages may change, when obtaining historical program information in this embodiment, only the historical program information within a preset time range in the past is obtained, such as the historical program information within the most recent month, and then based on the historical program information within the preset time range in the past and the user's intention, the program and program parameters corresponding to the user's intention and most commonly used by the user are determined as the target program and the target program parameters, so as to better adapt to changes in the user's washing machine usage habits.
[0080] Based on the above embodiments, Figure 4 As shown, the step of determining the program and program parameters that correspond to the user's intention and are most frequently used by the user according to the user's intention and the historical program information in S302 may specifically include:
[0081] S401: Obtain the historical usage count of each candidate program within a preset time range in the past from the historical program information.
[0082] In this embodiment, the historical usage times of each alternative program within the past preset time range can be counted from the historical program information within the past preset time range of the user. The alternative programs include washing, drying, dehydration, rinsing, air washing, etc. The historical usage times of each alternative program within the past preset time range can be counted.
[0083] S402: Obtain a weight score for each candidate program according to the number of times each candidate program has been used in the past within a preset time range, a preset weight value for each candidate program type, and a weight value corresponding to the completeness of execution of each candidate program.
[0084] In this embodiment, the weight value of each alternative program type can be set in advance, for example, corresponding weight values are set for alternative programs such as air washing, dehydration, washing, rinsing, and drying, for example, air washing>dehydration>washing>rinsing>drying. Optionally, different weight values are configured for the same alternative program type under different user intentions. For example, the weight values under the drying intention are drying>air washing>dehydration>washing>rinsing, and the weight values under the dehydration intention are dehydration>air washing>washing>rinsing>drying, so that the most commonly used programs corresponding to the user intentions can be recommended; in addition, considering that the user may make a wrong selection when setting the program, that is, the selected program may be terminated before it is completed, the corresponding weight value can also be set for the completeness of the execution of each alternative program. Specifically, different weight values can be configured for different execution completeness. For example, the weight value is 1 when the alternative program executes a complete cycle, the weight value is 0.6 when it is canceled when half of the execution is executed, the weight value is 0.2 when it is canceled within 10 minutes of execution, and the weight value is 0.1 when it is canceled within 5 minutes of execution, and so on.
[0085] Furthermore, in this embodiment, after obtaining the historical usage times of each candidate program within the preset time range in the past in S401, the weight score of each candidate program can be obtained in S402 according to the historical usage times of each candidate program within the preset time range in the past, the preset weight values of each candidate program type, and the weight value corresponding to the completeness of each candidate program being executed. Specifically, for a certain candidate program, its historical usage times within the preset time range in the past can be multiplied by the weight value of the candidate program type and the weight value corresponding to the completeness of the execution of the candidate program, and finally the weight score of the candidate program can be obtained. Of course, other methods can also be used to obtain the weight score of the candidate program, and the rules for obtaining the weight score of the candidate program here can be set according to actual needs.
[0086] S403: taking the candidate program with the highest weight score as the program that corresponds to the user's intention and is most frequently used by the user, and acquiring the program parameters most frequently used by the user for the candidate program according to the historical program information.
[0087] In this embodiment, after obtaining the weight score of each alternative program, they can be sorted according to the weight score, and the alternative program with the highest weight score in the sorting can be selected as the program corresponding to the user's intention and most frequently used by the user, and recommended to the user as the target program. In addition, for the alternative program, the program parameters most commonly used by the user in the process of using the alternative program can be obtained based on the user's historical program information within a preset time range in the past, and are used as target program parameters and also recommended to the user.
[0088] Figure 5The structure diagram of the control device of the washing machine provided by the embodiment of the present invention. The control device of the washing machine provided by this embodiment can execute the processing flow provided by the control method of the washing machine, such as Figure 5 As shown, the control device 50 of the washing machine includes a collection module 51 , an offline speech recognition module 52 , a recommendation module 53 and a control module 54 .
[0089] The acquisition module 51 is used to receive the user's voice command;
[0090] The offline speech recognition module 52 is used to perform offline speech recognition on the speech instruction and determine the user intention according to the offline speech recognition result;
[0091] A recommendation module 53, configured to recommend a target program and target program parameters corresponding to the user's intention to the user if the user's intention does not include program information;
[0092] The control module 54 is used to control the operation of the washing machine according to the target program and the target program parameters after receiving the user's confirmation instruction.
[0093] In a possible implementation manner, when recommending the target program and target program parameters corresponding to the user's intention to the user, the recommendation module 53 is configured to:
[0094] Acquire historical program information of the user within a preset time range in the past;
[0095] According to the user intention and the historical program information, the program and program parameters most frequently used by the user corresponding to the user intention are determined as the target program and the target program parameters.
[0096] In a possible implementation, when the recommendation module 53 determines the program and program parameters that correspond to the user's intention and are most commonly used by the user according to the user's intention and the historical program information, it is configured to:
[0097] Obtaining the historical usage count of each candidate program within a preset time range in the past from the historical program information;
[0098] Obtaining a weight score for each candidate program according to the number of times each candidate program has been used in the past within a preset time range, a preset weight value for each candidate program type, and a weight value corresponding to the completeness of execution of each candidate program;
[0099] The candidate program with the highest weight score is used as the program that corresponds to the user's intention and is most frequently used by the user, and the program parameters most frequently used by the user for the candidate program are obtained according to the historical program information.
[0100] In a possible implementation manner, the recommendation module 53 is further configured to:
[0101] The weight value of each candidate program type and the weight value corresponding to the execution completeness of each candidate program are set, wherein different weight values are configured for the same candidate program type under different user intentions, and different weight values are configured for different execution completeness.
[0102] In a possible implementation manner, the control module 54 is further configured to:
[0103] If the user intention includes program information, controlling the operation of the washing machine according to the program information, and storing the program information as the historical program information; or
[0104] The program information input by the user through the control panel is received, the operation of the washing machine is controlled according to the program information, and the program information is stored as the historical program information.
[0105] In a possible implementation manner, when storing the program information as the historical program information, the control module 54 is configured to:
[0106] Determining whether the program information is program information corresponding to a preset candidate program;
[0107] If so, the program information is stored as the historical program information.
[0108] The control device of the washing machine provided in the embodiment of the present invention can be specifically used to perform the above Figure 2-4 The specific functions of the provided method embodiment will not be repeated here.
[0109] The control device of the washing machine provided in the embodiment of the present invention receives the voice command of the user and performs offline voice recognition on the voice command; determines the user's intention according to the offline voice recognition result; if the user's intention does not contain program information, recommends the target program and target program parameters corresponding to the user's intention to the user; after receiving the user's confirmation instruction, controls the operation of the washing machine according to the target program and the target program parameters. In this embodiment, when the washing machine only has offline voice recognition and the washing program and parameters are not specified in the user's voice command, the target program and target program parameters are recommended to the user in an offline manner, without relying on the network and the background server, and the response speed is faster, the cost is lower, and the processing power of the washing machine can be fully utilized without generating excessive computing pressure on the washing machine.
[0110] Figure 6The washing machine provided by the embodiment of the present invention can execute the processing flow provided by the control method of the washing machine, such as Figure 6 As shown, the washing machine 60 includes a memory 61, a processor 62, and a computer program; wherein the computer program is stored in the memory 61 and is configured so that the processor 62 executes the control method of the washing machine described in the above embodiment. In addition, the washing machine 60 may also have a communication interface 63 for receiving control instructions.
[0111] Figure 6 The washing machine of the illustrated embodiment can be used to implement the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0112] In addition, this embodiment further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the control method of the washing machine described in the above embodiment.
[0113] In the several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0116] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0117] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the embodiments of the present invention have been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling a washing machine, characterized in that: include: Receiving a user's voice command and performing offline voice recognition on the voice command; Determine user intent based on offline speech recognition results; If the user intention does not include program information, recommending a target program and target program parameters corresponding to the user intention to the user; After receiving the user's confirmation instruction, controlling the operation of the washing machine according to the target program and the target program parameters; The recommending to the user a target program and target program parameters corresponding to the user intention includes: Acquire historical program information of the user within a preset time range in the past; According to the user intention and the historical program information, determining the program and program parameters that correspond to the user intention and are most frequently used by the user as the target program and the target program parameters; The determining, according to the user intention and the historical program information, the program and program parameters that correspond to the user intention and are most frequently used by the user includes: Obtaining the historical usage count of each candidate program within a preset time range in the past from the historical program information; Obtaining a weight score for each candidate program according to the number of times each candidate program has been used in the past within a preset time range, a preset weight value for each candidate program type, and a weight value corresponding to the completeness of execution of each candidate program; The candidate program with the highest weight score is used as the program that corresponds to the user's intention and is most frequently used by the user, and the program parameters most frequently used by the user for the candidate program are obtained according to the historical program information.
2. The method according to claim 1, characterized in that Also includes: The weight value of each candidate program type and the weight value corresponding to the execution completeness of each candidate program are set, wherein different weight values are configured for the same candidate program type under different user intentions, and different weight values are configured for different execution completeness.
3. The method according to claim 1, characterized in that After determining the user intention according to the offline speech recognition result, the method further includes: If the user intention includes program information, controlling the operation of the washing machine according to the program information, and storing the program information as the historical program information; or The program information input by the user through the control panel is received, the operation of the washing machine is controlled according to the program information, and the program information is stored as the historical program information.
4. The method according to claim 3, characterized in that: The storing the program information as the historical program information includes: Determining whether the program information is program information corresponding to a preset candidate program; If so, the program information is stored as the historical program information.
5. A control device for a washing machine, characterized in that: include: A collection module, used to receive voice commands from users; An offline speech recognition module, used for performing offline speech recognition on the speech command; Determine user intent based on offline speech recognition results; A recommendation module, configured to recommend a target program and target program parameters corresponding to the user's intention to the user if the user's intention does not contain program information; A control module, configured to control the operation of the washing machine according to the target program and the target program parameters after receiving a confirmation instruction from the user; When recommending the target program and target program parameters corresponding to the user's intention to the user, the recommendation module is used to: obtain historical program information of the user within a preset time range in the past; determine the program and program parameters most commonly used by the user corresponding to the user's intention and according to the user's intention and the historical program information as the target program and the target program parameters; When the recommendation module determines the program and program parameters that correspond to the user's intention and are most frequently used by the user according to the user's intention and the historical program information, the recommendation module is used to obtain the number of historical uses of each candidate program from the historical program information in the past preset time range; and obtain the weight score of each candidate program according to the number of historical uses of each candidate program in the past preset time range, the preset weight value of each candidate program type, and the weight value corresponding to the completeness of execution of each candidate program; The candidate program with the highest weight score is used as the program that corresponds to the user's intention and is most frequently used by the user, and the program parameters most frequently used by the user for the candidate program are obtained according to the historical program information.
6. A washing machine, characterized in that: include: Memory for storing computer programs; A processor, configured to run the computer program stored in the memory to implement the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: A computer program is stored thereon; When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
