Intelligent bathing control method, device and storage medium

By combining voice and image data processing to generate machine instructions to control intelligent bathing equipment, it solves the problems of touch failure and dangerous leakage in the existing technology, and achieves a more convenient and safer bathing experience.

CN112309377BActive Publication Date: 2024-09-13TCL TECHNOLOGY GROUP CORPORATION
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN201910649042.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-18
Publication Date
2024-09-13
Estimated Expiration
2039-07-18

AI Technical Summary

Technical Problem

The existing smart bath control system relies on touch screens for adjustment, which can easily lead to touch failure, difficulty in accurately finding touch panel buttons, and potential leakage hazards.

Method used

By collecting voice data and image data in the bathing scene, using voice recognition and image analysis models for processing, machine instructions are generated to control the bathing equipment, and the combination of voice and image data is realized for equipment control.

Benefits of technology

It improves the user's control convenience during the bathing process, avoids the risk of touch failure and leakage, and improves the user experience and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112309377B
    Figure CN112309377B
Patent Text Reader

Abstract

The present invention discloses an intelligent bathing control method, device and storage medium, the method comprising: collecting voice data and image data of a user in a bathing scene; performing voice recognition and outputting machine instructions according to the voice data, and obtaining the classification result of the bathing scene according to the image data analysis; determining the device control instruction according to the machine instruction and the classification result of the bathing scene; and controlling the bathing device to perform a control operation according to the device control instruction. The present invention collects the voice data and image data of the user in the bathing scene at the same time, and then analyzes and processes the voice data and image data, outputs different device control instructions according to the machine instructions obtained and the bathing scene corresponding to the image data, controls the bathing device to perform the corresponding operation, realizes the user's control over the intelligent bathing device, and facilitates the user to control the bathing device during the bathing process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent bathing technology, and in particular to an intelligent bathing control method, device and storage medium. Background Art

[0002] At present, with the development of AI (Artificial Intelligence) technology, people's living standards are constantly improving, and at the same time, the requirements for bathing quality are getting higher and higher.

[0003] The user can set the setting time and temperature of smart bathing according to his actual application needs through the smart bathing setting button. After the user starts the smart bathing, the water heater starts to heat the water temperature to the set temperature before the user's scheduled time, so that the user can take a bath directly when the scheduled time arrives without waiting. After the user starts the smart bathing, the system automatically records the bathing time. During the recording period, the bathing time or the countdown time relative to the set time is displayed at the set time interval, or the bathing time or the countdown time relative to the set time is played by voice, so that the user can grasp the bathing time in real time during the bathing process, or the countdown time relative to the set time. How much time is left in the bathing time you set, and stop smart bathing after the set time is reached. For users, bathing at the set time can ensure that the user will not spend too much time in the bathroom and cause hypoxia and other conditions. Knowing the bathing time in real time can also control the progress of the bathing process to a certain extent. It is more suitable for users with tight schedules or limited requirements for bathing time. Display units such as touch screens and playback units such as speakers are integrated and installed on the water heater or installed in the bathroom as a separate smart bathing system module. The automated and intelligent smart bathing system provides a comfortable bathing experience for the family.

[0004] However, the adjustment terminal of the intelligent bathing control system in the prior art is mainly realized by a touch screen, which may cause touch failure and difficulty in accurately finding the touch panel button during the user's bathing, and there is a potential risk of leakage.

[0005] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0006] The main purpose of the present invention is to provide an intelligent bathing control method, device and storage medium, aiming to solve the problem that the adjustment terminal of the intelligent bathing control system in the prior art mainly relies on a touch screen, which easily leads to touch failure, difficulty in accurately finding the touch panel buttons and potential leakage hazards.

[0007] To achieve the above object, the present invention provides an intelligent bathing control method, which comprises the following steps:

[0008] Collect voice data and image data of users in the bathing scene;

[0009] Performing voice recognition to output machine instructions according to the voice data, and obtaining classification results of bathing scenes according to the image data analysis;

[0010] Determining a device control instruction according to the classification result of the machine instruction and the bathing scene;

[0011] According to the device control instruction, the bathing device is controlled to perform a control operation. Optionally, in the intelligent bathing control method, the step of performing voice recognition and outputting machine instructions according to the voice data, and obtaining a classification result of the bathing scene according to the image data analysis includes:

[0012] Inputting the speech data into a speech analysis model for speech recognition, the speech analysis model outputting a speech recognition result corresponding to the speech data, and converting the speech recognition result into a machine instruction;

[0013] The speech analysis model has been trained based on the correspondence between historical speech information and machine instructions;

[0014] Inputting the image data into an image analysis model for image analysis, obtaining a classification result of the bathing scene output by the image analysis model based on a judgment result of whether there is a user in the bathing scene;

[0015] The image analysis model has been trained based on the correspondence between historical image information and historical classification results.

[0016] Optionally, in the intelligent bathing control method, the step of inputting the image data into an image analysis model for image analysis, and obtaining the image analysis model to output a classification result of the bathing scene based on a judgment result of whether there is a user in the bathing scene comprises:

[0017] The image data is input into the trained image analysis model, and after the image data is processed by image denoising, image compression, image feature extraction and image classification in sequence, the image analysis model outputs a classification result of the bathing scene;

[0018] The image denoising comprises: processing through a convolution layer, a batch normalization layer and a linear rectification function so that the value of the processed image data is greater than 0;

[0019] The image compression includes: compressing high-dimensional image data into low-dimensional image data through a fully connected network;

[0020] The image feature extraction includes: extracting the position features and edge features of the human body in the low-dimensional image data through a convolution layer, and splicing the position features and the edge features to output the overall human body image features;

[0021] The step of processing the image data through the convolution layer, the batch normalization layer and the linear rectification function so that the value of the processed image data is greater than 0 includes:

[0022] Extracting overall features from the input image data through the convolution layer, and making the value of the processed image data greater than 0 through the linear rectification function;

[0023] Then it is processed by a four-layer structure, each layer of which includes a convolution layer, a batch normalization layer and a linear rectification function;

[0024] The image data processed by the linear rectification function is first processed by the convolution layer to extract the overall features of the image data, and then the image data after the convolution is normalized by the batch normalization layer, and finally the linear rectification function is passed to make the value of the processed image data greater than 0.

[0025] The image classification includes: compressing the dimensions of the human image features through a fully connected layer, and then obtaining a classification probability through a normalized exponential function, and judging the classification result as whether there is a person or no person according to the classification probability.

[0026] Optionally, in the intelligent bathing control method, the step of analyzing and processing the voice data and outputting different voice recognition results according to different voice instructions includes:

[0027] The speech data is input into the trained speech analysis model, and after the speech data is processed by speech data encoding, speech feature extraction and speech data decoding in sequence, the speech analysis model outputs a speech recognition result;

[0028] The speech data encoding comprises: encoding the input speech data into a speech data vector through a coding algorithm;

[0029] The speech feature extraction comprises: performing speech feature extraction on the speech data vector and outputting a feature vector of the speech data;

[0030] The voice data decoding includes: decoding the voice data into text through a fully connected neural network layer with a normalized exponential function.

[0031] Optionally, in the intelligent bathing control method, the step of converting the speech recognition result into a machine instruction comprises:

[0032] Converting user speech into text instructions, and encoding the text instructions through an encoder using a recurrent neural network;

[0033] After the encoding is completed, the encoding vector of each word in the text instruction is input into the decoder in turn for decoding to generate a machine instruction.

[0034] Optionally, in the intelligent bathing control method, the bathing scenes include: a scene with a user and voice commands, a scene with a user but no voice commands, a scene with no user and voice commands, and a scene with no user and no voice commands.

[0035] Optionally, in the intelligent bathing control method, when the bathing scene is a scene where the user has a voice command, a machine command is generated according to the analysis result of the voice data, and the bathing equipment switches to different states according to the machine command.

[0036] Optionally, in the intelligent bathing control method, when the bathing scene is a scene with a user but without a voice command, it is determined whether the bathing device is in an on state or an off state;

[0037] When the bathing device is in the on state, a first timer is activated, and a device state on time parameter is set inside the first timer. When the first timer exceeds the device state on time parameter, the user is asked whether the current bathing device state needs to be switched, and a corresponding bathing instruction is generated according to the user's answer to switch the state of the bathing device;

[0038] When the bathing device is in the off state, the second timer is activated. The second timer is internally set with a parameter of the continuous existence time of the user image. When the second timer exceeds the parameter of the continuous existence time of the user image, the user is asked whether he needs to turn on the bathing device. According to the user's answer, a corresponding bathing instruction is generated to switch the state of the bathing device.

[0039] Optionally, in the intelligent bathing control method, when the bathing scene is a scene where no user has a voice command, it is determined whether the bathing device is in an on state or an off state;

[0040] When the bathing device is in the on state, a corresponding machine instruction is generated according to the user's voice data, the bathing device switches to the corresponding state, and a third timer is activated. The third timer is internally set with a user's absence time parameter. When the third timer exceeds the user's absence time parameter, an instruction to close the bathing device is generated;

[0041] When the bathing device is in the off state, a corresponding machine instruction is generated according to the user's voice data, the bathing device is switched to the corresponding state, and the first timer is activated. When the first timer exceeds the device state on time parameter and the user image is still not detected, an instruction to turn off the bathing device is generated.

[0042] Optionally, in the intelligent bathing control method, when the bathing scene is a scene with no user and no voice command, it is determined whether the bathing device is in an on state or an off state;

[0043] When the bathing device is in the on state, the third timer is activated, and when the third timer exceeds the user's absence time parameter, an instruction to close the bathing device is generated;

[0044] When the bathing device is in a closed state, a machine instruction for keeping the state of the bathing device unchanged is generated according to the output results of the voice data and the image data.

[0045] In addition, to achieve the above-mentioned purpose, the present invention also provides an intelligent bathing control device, wherein the intelligent bathing control device comprises:

[0046] A data collection module, used for receiving the voice data collected by the audio collector and the image data collected by the infrared thermal imaging device, and inputting the voice data and the image data into the voice analysis module and the image analysis module respectively;

[0047] An image analysis module is used to analyze and process the image data, determine whether there is a user in the bathing scene, and classify the bathing scene according to the determination result of whether there is a user in the bathing scene;

[0048] A speech analysis module, used to analyze and process the speech data and output different speech recognition results according to different speech instructions;

[0049] An instruction generation module, used for converting text instructions in the speech recognition result into machine instructions;

[0050] An intelligent control module, used to receive the analysis results of the image analysis module and the voice analysis module, and output different equipment control instructions according to different bathing scenes;

[0051] A device control module, used to receive the device control instruction output by the intelligent control module, and control the bathing device to perform a control operation;

[0052] The intelligent bathing control device further includes: a memory, a processor, and an intelligent bathing control program stored in the memory and executable on the processor. When the intelligent bathing control program is executed by the processor, the steps of the intelligent bathing control method described above are implemented.

[0053] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium, wherein the storage medium stores an intelligent bathing control program, and when the intelligent bathing control program is executed by a processor, the steps of the intelligent bathing control method as described above are implemented.

[0054] The present invention simultaneously collects the voice data and image data of the user in the bathing scene, then analyzes and processes the voice data and image data, outputs different equipment control instructions according to the machine instructions obtained and the bathing scene corresponding to the image data, controls the bathing equipment to perform corresponding operations, realizes the user's control over the intelligent bathing equipment, and facilitates the user to control the bathing equipment during the bathing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a flow chart of a preferred embodiment of the intelligent bathing control method of the present invention;

[0056] Figure 2 is a flow chart of step S20 in a preferred embodiment of the intelligent bathing control method of the present invention;

[0057] Figure 3 It is a schematic diagram of the process of analyzing and processing image data in step S20 of a preferred embodiment of the intelligent bathing control method of the present invention;

[0058] Figure 4 It is a schematic diagram of the process of analyzing and processing voice data in step S20 of a preferred embodiment of the intelligent bathing control method of the present invention;

[0059] Figure 5 It is a schematic diagram of the principle of translating the user's instructions that have been converted into text into machine instructions that can be understood by the machine in step S20 of a preferred embodiment of the intelligent bathing control method of the present invention;

[0060] Figure 6 It is a flow chart of the entire execution process of the preferred embodiment of the intelligent bathing control method of the present invention;

[0061] Figure 7 It is a structural principle diagram of a preferred embodiment of the intelligent bathing control device of the present invention;

[0062] Figure 8 Schematic diagram of the operating environment of a preferred embodiment of the intelligent bathing control device of the present invention. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0064] The intelligent bathing control method described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the intelligent bathing control method comprises the following steps:

[0065] Step S10: Collect the voice data and image data of the user in the bathing scene.

[0066] In the present invention, the voice data of the user in the bathing scene can be collected by an audio collector, and the voice data can be input into a voice analysis model for voice recognition; the image data in the bathing scene can be collected by an infrared thermal imaging device, and the image data can be input into an image analysis model for image analysis.

[0067] Specifically, in the present invention, the voice data of users within a certain range (for example, 5 meters) is preferentially collected through the audio collector. Of course, the user's voice can also be collected through other voice recognition devices, such as collecting the user's voice through a microphone. After completing the voice data collection, the voice data is sent to the voice analysis model for the next step of analysis and processing.

[0068] In the present invention, the image data of the bathing environment is preferentially collected by the infrared thermal imaging device. Of course, other image collection devices can also be used to collect images of bathroom scenes. For example, a camera is used to collect images within the bathroom range. After completing the image data collection, the image data is sent to the image analysis model for the next step of analysis and processing.

[0069] Step S20: perform voice recognition according to the voice data to output machine instructions, and obtain classification results of bathing scenes according to the image data analysis.

[0070] For the specific process, please refer to Figure 2 , which is a flow chart of step S20 in the intelligent bathing control method provided by the present invention.

[0071] like Figure 2 As shown, the step S20 includes:

[0072] S21, inputting the voice data into a voice analysis model for voice recognition, the voice analysis model outputting a voice recognition result corresponding to the voice data, and converting the voice recognition result into a machine instruction;

[0073] S22, inputting the image data into an image analysis model for image analysis, and obtaining a classification result of the bathing scene output by the image analysis model based on a judgment result of whether there is a user in the bathing scene.

[0074] Among them, the speech analysis model has been trained based on the correspondence between historical speech information and machine instructions; the image analysis model has been trained based on the correspondence between historical image information and historical classification results.

[0075] Specifically, the image data is analyzed and processed, and the bathing scene is classified as to whether there is a user, and the classification results are: someone in the bathing scene and no one in the bathing scene; wherein a trained image analysis model is preset to process the image data.

[0076] Furthermore, if Figure 3 As shown, the image data is input into a trained image analysis model (the image analysis model is pre-trained based on a large amount of image data and the corresponding results of image processing), and then processed in sequence through image denoising, image compression, image feature extraction and image classification to output the classification results of the bathing scene.

[0077] The image denoising includes: processing through a convolution layer, a batch normalization layer and a linear rectification function so that the value of the processed image data is greater than 0.

[0078] Specifically, the overall features of the input image data are extracted through the convolution layer (each convolution layer in the convolutional neural network is composed of several convolution units, and the parameters of each convolution unit are optimized by the back propagation algorithm. The purpose of the convolution operation is to extract different features of the input. The first convolution layer may only be able to extract some low-level features such as edges, lines and corners. More layers of the network can iteratively extract more complex features from low-level features) and the linear rectification function (ReLU, Rectified Linear Unit, which is also called the rectified linear unit, is a commonly used activation function in artificial neural networks) is passed to make the value of the processed image data greater than 0 (only image data with a value greater than 0 needs to be obtained); and then processed through a four-layer structure, each layer of the four-layer structure includes a convolution layer (the structure of the convolution layer here can be the same as that of the above-mentioned convolution layer), a batch normalization layer (BN, Batch Normalization is a special function transformation method for logarithmic values, which converts the value before normalization to form a normalized value) and a linear rectification function (ReLU); the image data processed by the linear rectification function is first processed by the convolution layer to extract the overall features of the image, and then the image data after convolution is standardized by the batch normalization layer, and finally the value of the processed image data is made greater than 0 by the linear rectification function.

[0079] The reason for processing through a four-layer structure is to extract different image features, because each time a convolution layer (all convolution layers appearing in the present invention may be the same) is used to extract different image features.

[0080] Among them, the image compression includes: compressing high-dimensional image data into low-dimensional image data through a fully connected network (FCN); the size of the image data dimension can be specifically expressed as the different sizes of the image. Compressing the image data from high-dimensional data to low-dimensional data can effectively reduce the amount of calculation and improve the calculation time.

[0081] Among them, the image feature extraction includes: extracting the position features and edge features of the human body in the low-dimensional image data through a convolutional layer (the structure of the convolutional layer here can be the same as the above-mentioned convolutional layer), and splicing the position features and the edge features to output the overall human body image features.

[0082] The image classification includes: compressing the human image features through a fully connected layer (FCN, FCN can represent a fully connected network or a fully connected layer, which is a different way of expressing the same structure), and then obtaining the classification probability through a normalized exponential function (Softmax, which is actually the gradient logarithm normalization of a finite discrete probability distribution), and judging the classification result as someone or no one based on the classification probability. For example, the algorithm is used to calculate the classification score P1 for a bathroom image. When P1>0.5, the classification result is someone; when P1<0.5, the classification result is no one.

[0083] Specifically, the user's voice is analyzed, and different voice recognition results are output for different voice commands.

[0084] Furthermore, if Figure 4 As shown, the speech data is input into a trained speech analysis model, and the speech recognition result is output after speech data encoding, speech feature extraction and speech data decoding processing in sequence.

[0085] In the speech analysis model training phase, the input of the speech analysis model is speech data and the output is text. The feature extraction and recognition of the user's speech are mainly completed by Deep-FSMN (Deep Forward Skip Memory Network) + FCNN (Fully Connected Neural Network) deep learning model structure. Compared with other speech recognition models, this model can ensure that the high-level gradient of the network can be well passed to the low-level, so that the deeply trained network will not face the problem of gradient disappearance.

[0086] The speech data encoding includes: encoding the input speech data into a speech data vector through a coding algorithm, and the adopted coding algorithm is the Word2vec algorithm, which is used to generate a word vector.

[0087] The speech feature extraction includes: extracting speech features from the speech data vector and outputting the feature vector of the speech data; this part is a 10-layer FSMN (Forward Skip Memory Network) layer. The structure in the FSMN-layer is that the bidirectional GRU (Gated Recurrent Unit) obtains h from the encoding layer data. t 1 (represents the output of the encoding layer of the model at time t in the first layer), and then P is obtained through a single-layer full connection t 1 (represents the output of the fully connected layer of the model at the first layer at time t), P t1 Stored in the Memory block, then use the bidirectional GRU to get h from the Memory block t 1+1 (represents the output of GRU at the 1+1 layer of the model at time t). The input of this part is the speech data vector that has been encoded by the word2vec algorithm, and the output is the feature vector of the speech data.

[0088] The voice data decoding includes: decoding the voice data into text through a fully connected neural network layer with a normalized exponential function. The specific form of this step is to use a fully connected neural network layer with a Softmax activation function to decode and classify the voice data that has been processed by the first two steps.

[0089] Furthermore, the present invention also uses a back propagation algorithm to update model parameters.

[0090] In addition, translating the user's instructions that have been converted into text into machine instructions that can be understood by the machine specifically includes: converting the user's voice into text instructions, encoding the text instructions through an encoder using a recurrent neural network; after the encoding is completed, inputting the encoding vector of each word in the text instruction into the decoder in turn for decoding to generate machine instructions.

[0091] Specifically, Figure 5 As shown, a sequence-to-sequence (seq2seq) approach is used for translation. First, the user's text instructions are encoded, and the encoder here uses a recurrent neural network to complete the encoding.

[0092] Map each word in the sentence into an N-dimensional vector. The word vector is obtained using the Word2vec algorithm, and finally a T*N Embedding matrix is ​​obtained, where T is the length of the sentence.

[0093] Next, a single-layer LSTM (Long Short-Term Memory, a time recurrent neural network suitable for processing and predicting important events with relatively long intervals and delays in time series) structure is used as the encoder, and 128 units are used as the number of units in the single-layer LSTM.

[0094] After the Embedding matrix is ​​encoded, the output encoding vector of each word is 128-dimensional; the encoding vectors are input into the decoder in sequence. Here, the decoder uses the same model structure as the encoder.

[0095] During the training process, the decoder output is compared with the actual machine instruction label and then corrected to maximize the probability of outputting the correct machine instruction.

[0096] Step S30: Determine the device control instruction according to the classification result of the machine instruction and the bathing scene.

[0097] According to the machine instructions and in combination with the bathing scenes corresponding to the image data, device control instructions for different bathing scenes are output; and control operations are performed according to the device control instructions.

[0098] Specifically, the present invention mainly combines the results of voice data and image data, and then outputs different equipment control instructions according to different bathing scenes to complete the intelligent control of bathing equipment. The bathing scenes include: a scene with a user and a voice instruction, a scene with a user but no voice instruction, a scene with no user and a voice instruction, and a scene with no user and no voice instruction.

[0099] Three duration parameters are preset, namely, a device status on duration parameter, a user image continuous presence duration parameter, and a user leaving duration parameter.

[0100] The following are different processing methods for the four scenarios:

[0101] (1) Scenarios where users have voice commands

[0102] When the bathing scene is a scene where a user has a voice command, a machine command is generated according to the analysis result of the voice data, and the bathing device switches to different states according to the machine command.

[0103] (2) Scenario where there is a user but no voice command

[0104] When the bathing scene is a scene with a user but without a voice command, it is determined whether the bathing device is in an on state or an off state.

[0105] When the bathing device is in the on state, the first timer is activated. The first timer is internally provided with a device state on time parameter. When the first timer exceeds the device state on time parameter, the user is asked whether the current bathing device state needs to be switched. According to the user's answer, a corresponding bathing instruction is generated to switch the state of the bathing device. If no answer is received from the user, the current bathing device state continues to be executed.

[0106] When the bathing device is in the off state, the second timer is activated. The second timer is internally set with a parameter for the continuous existence of the user image. When the second timer exceeds the parameter for the continuous existence of the user image, the user is asked whether he needs to turn on the bathing device. According to the user's answer, a corresponding bathing instruction is generated to switch the state of the bathing device. If no answer is received from the user, the current state of the bathing device continues to be executed.

[0107] Among them, when the bathing equipment is in the closed state, its control system is still in the open state, that is, the control system is always in the open state after being started.

[0108] (3) No user has voice command scenario

[0109] When the bathing scene is a scene where no user has a voice command, it is determined whether the bathing device is in an on state or an off state.

[0110] When the bathing device is in the on state, a corresponding machine instruction is generated according to the user's voice data, the bathing device switches to the corresponding state, and the third timer is activated. The third timer is internally set with a user's absence duration parameter. When the third timer exceeds the user's absence duration parameter, an instruction to close the bathing device is generated.

[0111] When the bathing device is in the off state, a corresponding machine instruction is generated according to the user's voice data, the bathing device is switched to the corresponding state, and the first timer is activated. When the first timer exceeds the device state on time parameter and the user image is still not detected, an instruction to turn off the bathing device is generated.

[0112] (4) No user and no voice command scenario

[0113] When the bathing scene is a scene with no user and no voice command, it is determined whether the bathing device is in an on state or an off state.

[0114] When the bathing device is in the on state, the third timer is activated, and when the third timer exceeds the user absence time parameter, an instruction to close the bathing device is generated.

[0115] When the bathing device is in a closed state, a machine instruction for keeping the state of the bathing device unchanged is generated according to the output results of the voice data and the image data.

[0116] Step S40: Control the bathing device to perform a control operation according to the device control instruction.

[0117] The bathing device in the present invention will automatically perform corresponding operations after receiving the device control instruction. For example, if the user sends "raise the water temperature by 3°C", the bathing device will control the temperature to increase by 3°C according to the user's instruction. For another example, if the user sends "shut down" after bathing, the bathing device will automatically shut down according to the user's instruction, without the need for the user to perform manual operation, thus bringing convenience to the user in bathing.

[0118] Furthermore, if Figure 6 As shown in the figure, the implementation process of the intelligent bathing control method is introduced through the entire execution process:

[0119] Step S101, start;

[0120] Step S102: presetting three duration parameters, namely, a device status on duration parameter, a user image continuous presence duration parameter, and a user leaving duration parameter, as judgment conditions for subsequently generating related instructions;

[0121] Step S103: collecting the user's voice data, for example, by using an audio collector, and inputting the voice data into a voice analysis model;

[0122] Step S104, determine whether voice data is collected, if yes, execute step S105, if no, execute step S109;

[0123] Step S105, analyzing and processing the voice data, and outputting different voice recognition results according to different voice instructions;

[0124] Step S106, collecting image data of the bathing environment, for example, by using an infrared thermal imaging device, and inputting the image data into an image analysis model;

[0125] Step S107, analyzing and processing the image data to determine whether there is a user in the bathing scene, and classifying the bathing scene according to the determination result of whether there is a user in the bathing scene;

[0126] Step S108, judging whether the classification score P1 is greater than 0.5, that is, judging whether the classification result is someone or no one according to the classification probability. For example, the algorithm is used to calculate the classification score P1 for the bathroom image. When P1>0.5, the classification result is someone; when P1<0.5, the classification result is no one; when P1=0.5, the classification result is someone;

[0127] Step S109, translating the user's text-converted instructions into machine instructions that can be understood by the machine (in the case of voice data), and outputting device control instructions for different bathing scenes according to the machine instructions and the bathing scenes corresponding to the image data;

[0128] Step S110, determining whether the timer exceeds the corresponding duration parameter;

[0129] Step S111, executing a control operation according to the device control instruction;

[0130] The specific situations are as described above, so I will not go into details here.

[0131] Step S112, end.

[0132] The present invention uses an audio collector and an infrared thermal imaging device to collect voice data and image data of users in bathing scenarios, and completes the user's control of intelligent bathing equipment in the bathing state based on deep learning technology according to the collected voice data and image data. The present invention designs a complete set of intelligent control methods for different bathing scenarios. The method of the present invention can improve the user's control over the intelligent bathing equipment in the bathing scenario, improve the user's usage experience, and save energy and protect the environment.

[0133] It brings convenience to users in bathing, and its main advantages are as follows:

[0134] (1) Voice control can help avoid situations where you can’t find the touchpad due to unclear vision, press the wrong button, or the buttons don’t work due to wet fingers or the touchpad;

[0135] (2) Users can use voice interaction to reduce the complicated procedures of finger touch and improve the user's bathing experience;

[0136] (3) The use of infrared thermal imaging equipment can assist in making up for the fact that the bathing terminal system can still be controlled without voice commands.

[0137] Furthermore, if Figure 7 As shown, based on the above intelligent bathing control method, the present invention also provides an intelligent bathing control device, the intelligent bathing control device comprising:

[0138] The data collection module 100 is used to receive the voice data collected by the audio collector and the image data collected by the infrared thermal imaging device, and input the voice data and the image data into the voice analysis module 300 and the image analysis module 200 respectively;

[0139] The image analysis module 200 is used to analyze and process the image data, determine whether there is a user in the bathing scene, and classify the bathing scene according to the determination result of whether there is a user in the bathing scene;

[0140] The speech analysis module 300 is used to analyze and process the speech data and output different speech recognition results according to different speech instructions;

[0141] An instruction generation module 400, used to convert text instructions in the speech recognition result into machine instructions;

[0142] The intelligent control module 500 is used to receive the analysis results of the image analysis module 200 and the voice analysis module 300, and output different equipment control instructions according to different bathing scenes; that is, to receive the machine instructions sent by the instruction generation module 400 and output different equipment control instructions in combination with the bathing scenes corresponding to the image data;

[0143] The device control module 600 is used to receive the device control instruction output by the intelligent control module 500 and control the bathing device to perform control operations.

[0144] Furthermore, if Figure 8 As shown, the intelligent bathing control device further includes: a processor 10 , a memory 20 and a display 30 . Figure 8 Only some of the components of the device are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0145] In some embodiments, the memory 20 may be an internal storage unit of the intelligent bath control device, such as a hard disk or memory of the intelligent bath control device. In other embodiments, the memory 20 may also be an external storage device of the intelligent bath control device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the intelligent bath control device. Further, the memory 20 may also include both an internal storage unit and an external storage device of the intelligent bath control device. The memory 20 is used to store application software and various types of data installed in the intelligent bath control device, such as the program code of the installation device. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores an intelligent bath control program 40, which can be executed by the processor 10, thereby realizing the intelligent bath control method in the present application.

[0146] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, which is used to run the program code or process data stored in the memory 20, such as executing the intelligent bathing control method.

[0147] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the intelligent bathing control device and to display a visual user interface. The components 10-30 of the intelligent bathing control device communicate with each other via a system bus.

[0148] In one embodiment, when the processor 10 executes the intelligent bathing control program 40 in the memory 20, the following steps are implemented:

[0149] Collect voice data and image data of users in the bathing scene;

[0150] Performing voice recognition to output machine instructions according to the voice data, and obtaining classification results of bathing scenes according to the image data analysis;

[0151] Determining a device control instruction according to the classification result of the machine instruction and the bathing scene;

[0152] According to the device control instruction, the bathing device is controlled to perform a control operation.

[0153] The step of performing speech recognition according to the speech data to output machine instructions, and obtaining classification results of bathing scenes according to the image data analysis, comprises:

[0154] Inputting the speech data into a speech analysis model for speech recognition, the speech analysis model outputting a speech recognition result corresponding to the speech data, and converting the speech recognition result into a machine instruction;

[0155] The speech analysis model has been trained based on the correspondence between historical speech information and machine instructions;

[0156] Inputting the image data into an image analysis model for image analysis, obtaining a classification result of the bathing scene output by the image analysis model based on a judgment result of whether there is a user in the bathing scene;

[0157] The image analysis model has been trained based on the correspondence between historical image information and historical classification results. The steps of inputting the image data into the image analysis model for image analysis, and obtaining the image analysis model outputting the classification result of the bathing scene based on the judgment result of whether there is a user in the bathing scene include:

[0158] The image data is input into the trained image analysis model, and after the image data is processed by image denoising, image compression, image feature extraction and image classification in sequence, the image analysis model outputs a classification result of the bathing scene;

[0159] The image denoising comprises: processing through a convolution layer, a batch normalization layer and a linear rectification function so that the value of the processed image data is greater than 0;

[0160] The image compression includes: compressing high-dimensional image data into low-dimensional image data through a fully connected network;

[0161] The image feature extraction includes: extracting the position features and edge features of the human body in the low-dimensional image data through a convolution layer, and splicing the position features and the edge features to output the overall human body image features;

[0162] The image classification includes: compressing the dimensions of the human image features through a fully connected layer, and then obtaining a classification probability through a normalized exponential function, and judging the classification result as whether there is a person or no person according to the classification probability.

[0163] The step of processing the image data through the convolution layer, the batch normalization layer and the linear rectification function so that the value of the processed image data is greater than 0 includes:

[0164] Extracting overall features from the input image data through the convolution layer, and making the value of the processed image data greater than 0 through the linear rectification function;

[0165] Then it is processed by a four-layer structure, each layer of which includes a convolution layer, a batch normalization layer and a linear rectification function;

[0166] The image data processed by the linear rectification function is first processed by the convolution layer to extract the overall features of the image data, and then the image data after the convolution is normalized by the batch normalization layer, and finally the linear rectification function is passed to make the value of the processed image data greater than 0.

[0167] The step of analyzing and processing the voice data and outputting different voice recognition results according to different voice instructions includes:

[0168] The speech data is input into the trained speech analysis model, and after the speech data is processed by speech data encoding, speech feature extraction and speech data decoding in sequence, the speech analysis model outputs a speech recognition result;

[0169] The speech data encoding comprises: encoding the input speech data into a speech data vector through a coding algorithm;

[0170] The speech feature extraction comprises: performing speech feature extraction on the speech data vector and outputting a feature vector of the speech data;

[0171] The voice data decoding includes: decoding the voice data into text through a fully connected neural network layer with a normalized exponential function.

[0172] The step of translating the user's instructions that have been converted into text into machine instructions that can be understood by the machine includes:

[0173] Converting user speech into text instructions, and encoding the text instructions through an encoder using a recurrent neural network;

[0174] After the encoding is completed, the encoding vector of each word in the text instruction is input into the decoder in turn for decoding to generate a machine instruction.

[0175] The bathing scenes include: a scene with a user and voice command, a scene with a user but no voice command, a scene with no user and voice command, and a scene with no user and no voice command.

[0176] When the bathing scene is a scene where a user has a voice command, a machine command is generated according to the analysis result of the voice data, and the bathing device switches to different states according to the machine command.

[0177] When the bathing scene is a scene with a user but without a voice command, determining whether the bathing device is in an on state or an off state;

[0178] When the bathing device is in the on state, a first timer is activated, and a device state on time parameter is set inside the first timer. When the first timer exceeds the device state on time parameter, the user is asked whether the current bathing device state needs to be switched, and a corresponding bathing instruction is generated according to the user's answer to switch the state of the bathing device;

[0179] When the bathing device is in the off state, the second timer is activated. The second timer is internally set with a parameter of the continuous existence time of the user image. When the second timer exceeds the parameter of the continuous existence time of the user image, the user is asked whether he needs to turn on the bathing device. According to the user's answer, a corresponding bathing instruction is generated to switch the state of the bathing device.

[0180] When the bathing scene is a scene where no user has a voice command, determining whether the bathing device is in an on state or an off state;

[0181] When the bathing device is in the on state, a corresponding machine instruction is generated according to the user's voice data, the bathing device switches to the corresponding state, and a third timer is activated. The third timer is internally set with a user's absence time parameter. When the third timer exceeds the user's absence time parameter, an instruction to close the bathing device is generated;

[0182] When the bathing device is in the off state, a corresponding machine instruction is generated according to the user's voice data, the bathing device is switched to the corresponding state, and the first timer is activated. When the first timer exceeds the device state on time parameter and the user image is still not detected, an instruction to turn off the bathing device is generated.

[0183] When the bathing scene is a scene with no user and no voice command, determining whether the bathing device is in an on state or an off state;

[0184] When the bathing device is in the on state, the third timer is activated, and when the third timer exceeds the user's absence time parameter, an instruction to close the bathing device is generated;

[0185] When the bathing device is in a closed state, a machine instruction for keeping the state of the bathing device unchanged is generated according to the output results of the voice data and the image data.

[0186] The present invention also provides a storage medium, wherein the storage medium stores an intelligent bathing control program, and when the intelligent bathing control program is executed by a processor, the steps of the intelligent bathing control method as described above are implemented.

[0187] In summary, the present invention provides an intelligent bathing control method, device and storage medium, the method comprising: collecting voice data and image data of a user in a bathing scene; performing voice recognition to output machine instructions based on the voice data, and obtaining a classification result of the bathing scene based on the image data analysis; determining device control instructions based on the machine instructions and the classification result of the bathing scene; and controlling the bathing device to perform a control operation based on the device control instructions. The present invention simultaneously collects the voice data and image data of the user in the bathing scene, and then analyzes and processes the voice data and image data, outputs different device control instructions based on the machine instructions obtained and the bathing scene corresponding to the image data, controls the bathing device to perform corresponding operations, realizes the user's control of the intelligent bathing device, and facilitates the user's control of the bathing device during the bathing process.

[0188] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, an optical disk, etc.

[0189] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. An intelligent bathing control method, applied to bathing equipment, characterized in that: The intelligent bathing control method comprises: Collect voice data and image data of users in the bathing scene; Performing voice recognition to output machine instructions according to the voice data, and obtaining classification results of bathing scenes according to the image data analysis; Determining a device control instruction according to the classification result of the machine instruction and the bathing scene; According to the device control instruction, control the bathing device to perform a control operation; Determining a device control instruction according to the classification result of the machine instruction and the bathing scene; and controlling the bathing device to perform a control operation according to the device control instruction includes: When the bathing scene is a scene with a user but without a voice command, determine whether the bathing device is in an on state or an off state; when the bathing device is in an on state, activate a first timer, and when the first timer exceeds a device state on time parameter, ask the user whether to switch the current bathing device state, generate a corresponding bathing command according to the user's answer, and switch the state of the bathing device; When the bathing device is in the off state, the second timer is activated. When the second timer exceeds the continuous existence time parameter of the user image, the user is asked whether he needs to turn on the bathing device. According to the user's answer, a corresponding bathing instruction is generated to switch the state of the bathing device.

2. The intelligent bathing control method according to claim 1, characterized in that: The step of performing speech recognition according to the speech data to output machine instructions, and obtaining classification results of bathing scenes according to the image data analysis, comprises: Inputting the speech data into a speech analysis model for speech recognition, the speech analysis model outputting a speech recognition result corresponding to the speech data, and converting the speech recognition result into a machine instruction; The speech analysis model has been trained based on the correspondence between historical speech information and historical speech recognition results; Inputting the image data into an image analysis model for image analysis, obtaining a classification result of the bathing scene output by the image analysis model based on a judgment result of whether there is a user in the bathing scene; The image analysis model has been trained based on the correspondence between historical image information and historical classification results.

3. The intelligent bathing control method according to claim 2, characterized in that: The step of inputting the image data into an image analysis model for image analysis, and obtaining the image analysis model to output a classification result of the bathing scene according to a judgment result of whether there is a user in the bathing scene comprises: The image data is input into the trained image analysis model, and after the image data is processed by image denoising, image compression, image feature extraction and image classification in sequence, the image analysis model outputs a classification result of the bathing scene; The image denoising comprises: processing through a convolution layer, a batch normalization layer and a linear rectification function so that the value of the processed image data is greater than 0; The image compression includes: compressing high-dimensional image data into low-dimensional image data through a fully connected network; The image feature extraction includes: extracting the position features and edge features of the human body in the low-dimensional image data through a convolution layer, and splicing the position features and the edge features to output the overall human body image features; The image classification includes: compressing the dimensions of the human image features through a fully connected layer, and then obtaining a classification probability through a normalized exponential function, and judging the classification result as whether there is a person or no person according to the classification probability.

4. The intelligent bathing control method according to claim 3, characterized in that: The step of processing the image data through the convolution layer, the batch normalization layer and the linear rectification function so that the value of the processed image data is greater than 0 includes: Extracting overall features from the input image data through the convolution layer, and making the value of the processed image data greater than 0 through the linear rectification function; Then it is processed by a four-layer structure, each layer of which includes a convolution layer, a batch normalization layer and a linear rectification function; The image data processed by the linear rectification function is first processed by the convolution layer to extract the overall features of the image data, and then the image data after the convolution is normalized by the batch normalization layer, and finally the linear rectification function is passed to make the value of the processed image data greater than 0.

5. The intelligent bathing control method according to claim 2, characterized in that: The step of analyzing and processing the voice data and outputting different voice recognition results according to different voice instructions includes: The speech data is input into the trained speech analysis model, and after the speech data is processed by speech data encoding, speech feature extraction and speech data decoding in sequence, the speech analysis model outputs a speech recognition result; The speech data encoding comprises: encoding the input speech data into a speech data vector through a coding algorithm; The speech feature extraction comprises: performing speech feature extraction on the speech data vector and outputting a feature vector of the speech data; The voice data decoding includes: decoding the voice data into text through a fully connected neural network layer with a normalized exponential function.

6. The intelligent bathing control method according to claim 5, characterized in that: The step of converting the speech recognition result into a machine instruction comprises: Converting user speech into text instructions, and encoding the text instructions through an encoder using a recurrent neural network; After the encoding is completed, the encoding vector of each word in the text instruction is input into the decoder in turn for decoding to generate a machine instruction.

7. The intelligent bathing control method according to claim 1 or 2, characterized in that: The bathing scene includes: There are scenarios where there are users with voice commands, scenarios where there are users without voice commands, scenarios where there are no users with voice commands, and scenarios where there are no users without voice commands.

8. The intelligent bathing control method according to claim 7, characterized in that: When the bathing scene is a scene where a user has a voice command, a machine command is generated according to the analysis result of the voice data, and the bathing device switches to different states according to the machine command.

9. The intelligent bathing control method according to claim 1, characterized in that: When the bathing scene is a scene where no user has a voice command, determining whether the bathing device is in an on state or an off state; When the bathing device is in the on state, a corresponding machine instruction is generated according to the user's voice data, the bathing device switches to the corresponding state, and a third timer is activated. The third timer is internally set with a user's absence time parameter. When the third timer exceeds the user's absence time parameter, an instruction to close the bathing device is generated; When the bathing device is in the off state, a corresponding machine instruction is generated according to the user's voice data, the bathing device is switched to the corresponding state, and the first timer is activated. When the first timer exceeds the device state on time parameter and the user image is still not detected, an instruction to turn off the bathing device is generated.

10. The intelligent bathing control method according to claim 9, characterized in that: When the bathing scene is a scene with no user and no voice command, determining whether the bathing device is in an on state or an off state; When the bathing device is in the on state, the third timer is activated, and when the third timer exceeds the user's absence time parameter, an instruction to close the bathing device is generated; When the bathing device is in a closed state, a machine instruction for keeping the state of the bathing device unchanged is generated according to the output results of the voice data and the image data.

11. An intelligent bathing control device, characterized in that: The intelligent bathing control device comprises: A data collection module, used for receiving the voice data collected by the audio collector and the image data collected by the infrared thermal imaging device, and inputting the voice data and the image data into the voice analysis module and the image analysis module respectively; An image analysis module is used to analyze and process the image data, determine whether there is a user in the bathing scene, and classify the bathing scene according to the determination result of whether there is a user in the bathing scene; A speech analysis module, used to analyze and process the speech data and output different speech recognition results according to different speech instructions; An instruction generation module, used for converting text instructions in the speech recognition result into machine instructions; An intelligent control module, used to receive the analysis results of the image analysis module and the voice analysis module, and output different equipment control instructions according to different bathing scenes; A device control module, used to receive the device control instruction output by the intelligent control module, and control the bathing device to perform a control operation; The intelligent bathing control device also includes: a memory, a processor, and an intelligent bathing control program stored in the memory and executable on the processor. When the intelligent bathing control program is executed by the processor, the steps of the intelligent bathing control method as described in any one of claims 1 to 10 are implemented.

12. A storage medium, characterized in that: The storage medium stores an intelligent bathing control program, and when the intelligent bathing control program is executed by the processor, the steps of the intelligent bathing control method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Method and device for establishing linguistic model for voice recognition

    CN103187052A

  • Voice-based remote control method, device and system for terminals

    CN105100852A

  • Intelligent household electrical appliance voice control method and system

    CN106878118A

  • Method and apparatus of neural network based image signal processor

    CN106934426A

  • Intelligent type touch control switch system capable of automatically detecting environment and switch control method

    CN107087335A