Equipment control method and device based on health state recognition and electronic equipment
Automatically detects the health status of users in the vehicle and controls the equipment through voice and expression recognition technology, solving the problem of delayed auxiliary operations when the health status is abnormal in the mobile space, improving the convenience of user symptom relief and the automation of equipment operations.
Patent Information
- Application Number
- CN202410376437.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-08-23
AI Technical Summary
In mobile spaces such as vehicles or ships, when a person's health status is abnormal due to bumps and shaking, existing technology is difficult to quickly and automatically identify the user's health status and provide appropriate assistance, resulting in delayed symptom relief or inability to obtain needed items in time.
Using a health status detection method based on voice and expression recognition, through pre-trained voice health recognition model and expression health recognition model, it automatically obtains the target user's voice signal and facial image, identifies its health status, and controls the corresponding device (e.g. power windows, storage devices) perform health assistance operations.
It realizes automatic identification and auxiliary operations when the user's health status is abnormal, improves the convenience and timeliness of symptom relief, and eliminates the need for users to manually control the device, ensuring that users can obtain the items they need in a timely manner.
Smart Images

Figure CN118534796A
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation control technology, and in particular to a device control method, apparatus and electronic device based on health status identification. Background Art
[0002] When people are in some special spaces, due to differences in individual physiques, people in these spaces sometimes have abnormal physical health. For example, people in moving spaces such as the interior of a vehicle or ship will experience strong stimulation to the organs responsible for balance due to bumps and shaking. When these stimuli exceed the tolerance limit of the organs responsible for balance, a series of abnormal body functions will be caused, such as dizziness, pale complexion, nausea and vomiting.
[0003] In order to deal with the above phenomenon, it is usually necessary for people with abnormal health status to open windows by themselves or with the assistance of others, and to take items such as paper towels and garbage bags. In some cases, it is inconvenient for people with abnormal health status to open windows and other operations by themselves, or there are no other people in the space, or other people are too far away to assist people with abnormal health status to open windows and other operations, resulting in the symptoms of people with abnormal health status not being relieved as soon as possible, or not being able to get the required items as soon as possible. Therefore, how to automatically identify the health status of users in some spaces and control auxiliary equipment to respond to the user's symptoms is a problem that needs to be solved. Summary of the invention
[0004] In view of this, in order to solve some or all of the above-mentioned technical problems, the embodiments of the present application provide a device control method, apparatus, electronic device and computer-readable storage medium based on health status identification.
[0005] In a first aspect, an embodiment of the present application provides a device control method based on health status recognition, the method comprising: acquiring a voice signal collected from a target user in a target space; using a feature extraction module included in a pre-trained voice health recognition model to extract features from the voice signal to obtain voice feature data; using a classification module included in the voice health recognition model to identify the voice feature data to obtain first health status information, wherein the first health status information indicates whether the voice signal is issued by the target user in a healthy state; based on the first health status information, determining whether the target user is currently in a healthy state; if the target user is currently in an unhealthy state, controlling the target controlled device to perform corresponding health assistance operations.
[0006] In one possible implementation, based on the first health status information, determining whether the target user is currently in a healthy state includes: obtaining a facial image taken of the target user's face; using a pre-trained expression health recognition model to recognize the facial image to obtain second health status information, wherein the second health status information indicates whether the expression of the target user is an expression in a healthy state; if the first health status information indicates that the voice signal is issued by the target user in an unhealthy state, and the second health status information indicates that the expression of the target user is an expression in an unhealthy state, it is determined that the target user is currently in an unhealthy state.
[0007] In one possible implementation, obtaining a voice signal collected from a target user in a target space includes: obtaining an initial audio signal collected by a microphone in the target space; filtering the initial audio signal to obtain a voice signal; locating the sound source of the voice signal to obtain a sound source position corresponding to the voice signal, and determining the user at the sound source position as the target user.
[0008] In a possible implementation, controlling the target controlled device to perform a corresponding health assistance operation includes: determining that a controlled storage device in the target space is the target controlled device, and controlling the controlled storage device to open.
[0009] In one possible implementation, controlling the target controlled device to perform a corresponding health assistance operation includes: determining the location of the target user, and determining the target electric window closest to the location as the target controlled device; outputting prompt information for prompting the target user whether it is necessary to control the movement of the target electric window; in response to receiving feedback information issued by the target user in response to the prompt information, determining whether the feedback information contains a control instruction for the target electric window; if it contains a control instruction, controlling the target electric window to perform a movement operation corresponding to the control instruction.
[0010] In one possible implementation, in response to receiving feedback information sent by the target user in response to the prompt information, determining whether the feedback information includes control instructions for the target electric window includes: in response to receiving voice feedback information sent by the target user in response to the prompt information, recognizing the voice feedback information to obtain a voice recognition result; and determining whether the voice recognition result includes control instructions for the target electric window.
[0011] In one possible implementation, the facial expression health recognition model is pre-trained according to the following steps: obtaining a sample facial image and the corresponding annotated second health status information; using a preset initial facial expression health recognition model to recognize the sample facial image to obtain predicted second health status information; based on a preset first loss function, determining a first loss value representing the error between the annotated second health status information and the predicted second health status information; based on the first loss value, adjusting the parameters of the initial facial expression health recognition model; in response to the initial facial expression health recognition model after adjusting the parameters meeting the preset training end conditions, determining the initial facial expression health recognition model after adjusting the parameters as the trained facial expression health recognition model.
[0012] In one possible implementation, the speech health recognition model is pre-trained according to the following steps: obtaining a sample speech signal and a corresponding annotated first health status information; utilizing a feature extraction module included in a preset initial speech health recognition model to perform feature extraction on the sample speech signal to obtain sample speech feature data; utilizing a classification module included in the initial speech health recognition model to identify the sample speech feature data to obtain predicted first health status information; determining a second loss value representing the error between the annotated first health status information and the predicted first health status information based on a preset second loss function; adjusting the parameters of the initial speech health recognition model based on the second loss value; and in response to the initial speech health recognition model after adjusting the parameters meeting a preset training end condition, determining the initial speech health recognition model after adjusting the parameters as the trained speech health recognition model.
[0013] In the second aspect, an embodiment of the present application provides a device control device based on health status recognition, which includes: an acquisition module for acquiring a voice signal collected from a target user in a target space; an extraction module for performing feature extraction on the voice signal using a feature extraction module included in a pre-trained voice health recognition model to obtain voice feature data; an identification module for identifying the voice feature data using a classification module included in the voice health recognition model to obtain first health status information, wherein the first health status information indicates whether the voice signal is emitted by the target user in a healthy state; a determination module for determining whether the target user is currently in a healthy state based on the first health status information; and a control module for controlling the target controlled device to perform corresponding health assistance operations if the target user is currently in an unhealthy state.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, it implements the method of any embodiment of the device control method based on health status identification of the above-mentioned first aspect of the present application.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the device control method based on health status identification as described in the first aspect above is implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code runs on a device, the processor in the device implements a method as in any embodiment of the device control method based on health status identification of the first aspect mentioned above.
[0017] The device control method, apparatus, electronic device and computer-readable storage medium based on health status recognition provided by the embodiments of the present application pre-train a voice health recognition model, use the model to obtain and recognize the voice signal of the target user in the target space, and determine whether the target user is currently in a healthy state based on the first health status information output by the model. If it is in an unhealthy state, the target controlled device is controlled to perform the corresponding health assistance operation. The embodiments of the present application realize automatic identification of the user's health status in the target space, and automatically control the target controlled device to perform health assistance operations to respond to the user's current symptoms. The user does not need to manually control the target controlled device, and the necessary health assistance is provided to the user in a timely manner, which improves the convenience of the user in responding to the symptoms generated when the user is in an unhealthy state. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0021] Figure 1 A flow chart of a device control method based on health status identification provided in an embodiment of the present application;
[0022] Figure 2A flowchart of another device control method based on health status identification provided in an embodiment of the present application;
[0023] Figure 3 A flowchart of another device control method based on health status identification provided in an embodiment of the present application;
[0024] Figure 4 A flowchart of another device control method based on health status identification provided in an embodiment of the present application;
[0025] Figure 5 A flowchart of another device control method based on health status identification provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the training process of the facial expression health recognition model provided in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of the training process of the speech health recognition model provided in the embodiment of the present application;
[0028] Figure 8 A schematic diagram of the structure of a device control device based on health status recognition provided in an embodiment of the present application;
[0029] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0031] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0032] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0033] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0034] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0035] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0036] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0037] Technologies, circuits, and devices known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, circuits, and devices should be considered as part of the specification.
[0038] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0039] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0040] In order to solve the technical problem that the prior art cannot efficiently provide health assistance to users within the target space when their health status is abnormal, the present application provides a device control method based on health status recognition, which can automatically identify the user's health status and automatically control the target controlled device according to the health status to provide health assistance to the user, thereby improving the convenience of dealing with the user's symptoms.
[0041] Figure 1A flow chart of a device control method based on health status identification provided for an embodiment of the present application. This method can be applied to scenes containing space that can accommodate personnel, such as vehicles (e.g., smart driving vehicles) and ships. This method can be performed by one or more electronic devices such as a vehicle controller, a ship controller, a server, a smart phone, a laptop computer, a desktop computer, a portable computer, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or a plurality of electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. It is not specifically limited here.
[0042] like Figure 1 As shown, the method specifically includes:
[0043] Step 101: Acquire a speech signal collected from a target user in a target space.
[0044] In this embodiment, the target space may be various types of spaces, such as the interior space of a vehicle, the interior space of a ship, a room, etc. At least one microphone may be provided in the target space, and the microphone collects voice signals emitted by each user. The target user may be a user at a certain position in the target space. For example, a microphone is provided on each seat in the interior space of the vehicle. If the volume of the voice signal collected by a certain microphone exceeds a threshold, or the source of the voice signal is determined to be the seat where the microphone is located according to the sound source localization method, the user in the seat may be determined to be the target user.
[0045] Step 102, using the feature extraction module included in the pre-trained speech health recognition model, extract features from the speech signal to obtain speech feature data.
[0046] In this embodiment, the feature extraction module can execute various feature extraction methods to extract features from the speech signal. Specifically, according to different methods of extracting parameters, the feature extraction methods can be divided into time domain feature extraction, frequency domain feature extraction, inverse frequency domain feature extraction, etc. As an example, a voiceprint feature extraction method can be used to extract voiceprint features as the above-mentioned speech feature data. The extracted speech feature data can include Spectrogram feature data, Fbank feature data, MFCC feature data, etc.
[0047] Step 103: Use the classification module included in the voice health recognition model to recognize the voice feature data to obtain the first health status information.
[0048] In this embodiment, the first health status information indicates whether the voice signal is sent by the target user in a healthy state.
[0049] The above-mentioned classification module can be used to classify the health status of the voice feature data to determine whether the voice signal is emitted by the target user in a healthy state. The voice health recognition model can be a machine learning model for binary classification, which can be pre-trained using sample voice signals and annotated actual health status information. The classification module may also include a pre-constructed unhealthy state voice feature library, which contains voice feature data obtained by feature extraction of voices emitted by a large number of unhealthy users. The electronic device can compare the voice feature data obtained in step 102 with the voice feature data in the unhealthy state voice feature library. If the similarity with a certain voice feature data in the library exceeds a threshold, the first health status information indicating that the voice signal is emitted by the target user in an unhealthy state is generated.
[0050] Step 104: Determine whether the target user is currently in a healthy state based on the first health status information.
[0051] In this embodiment, the first health status information can be used as reference information to determine whether the target user is currently in a healthy state. For example, if the first health status information indicates that the above voice signal is sent by the target user in an unhealthy state, that is, if the target user is identified to have made groaning, vomiting, coughing, etc., it is determined that the target user is currently in an unhealthy state.
[0052] In addition, the first health status information may be verified in combination with other information to determine whether the target user is currently in a healthy state. For example, the target user's facial expression may be recognized, and if the target user's expression is recognized as an expression in an unhealthy state, that is, the user generates expressions such as closing eyes, frowning, and pale face while sending a voice signal, it is determined that the user is currently in a healthy state.
[0053] Step 105: If the target user is currently in an unhealthy state, control the target controlled device to perform a corresponding health assistance operation.
[0054] In this embodiment, the target controlled device can be various types of devices pre-set in the target space. For example, the target controlled device can include electric windows, electric storage boxes, electric fans, air conditioners and other devices. The execution subject of this embodiment can send a control signal to the target controlled device to enable the target controlled device to perform a health-assisting operation. The operation mode of the health-assisting operation can be pre-set to automatically respond to the unhealthy state of the target user.
[0055] As an example, when this method is applied in a vehicle, if the target user is currently in an unhealthy state caused by motion sickness, the window closest to the target user's location can be automatically controlled to open to alleviate the target user's motion sickness symptoms; or the storage box closest to the target user's location can be controlled to open so that the user can take out items such as paper towels and garbage bags from it.
[0056] The device control method based on health status recognition provided in the embodiment of the present application pre-trains a voice health recognition model, uses the model to obtain and recognize the voice signal of the target user in the target space, and determines whether the target user is currently in a healthy state based on the first health status information output by the model. If the target user is in an unhealthy state, the target controlled device is controlled to perform the corresponding health assistance operation. The embodiment of the present application realizes automatic identification of the user's health status in the target space, and automatically controls the target controlled device to perform health assistance operations to respond to the user's current symptoms. The user does not need to manually control the target controlled device, and the necessary health assistance is provided to the user in a timely manner, which improves the convenience of the user in responding to the symptoms generated when the user is in an unhealthy state.
[0057] In some optional implementations of this embodiment, such as Figure 2 As shown, step 104 includes:
[0058] Step 1041, obtaining a facial image of the target user's face.
[0059] The facial image can be obtained by taking a camera arranged near the target user. For example, a camera can be arranged in front of a seat in a vehicle, and the camera can take a picture of the user in the seat, and the facial image of the target user can be obtained according to the seat where the target user is located.
[0060] Step 1042, using the pre-trained facial expression health recognition model to recognize the facial image and obtain the second health status information.
[0061] The second health status information indicates whether the expression of the target user is in a healthy state.
[0062] The facial health recognition model can be constructed based on neural networks of various structures, such as convolutional neural networks (CNN), deep convolutional generative adversarial networks (DCGAN), long short-term memory networks (LSTM), facial landmark detection networks, etc. The facial health recognition model can extract facial features from facial images and classify the facial features to determine whether the target user's expression is in a healthy state.
[0063] The facial expression health recognition model can be trained in advance using sample facial images and annotated actual health status information using machine learning methods.
[0064] Step 1043, if the first health status information indicates that the voice signal is sent by the target user in an unhealthy state, and the second health status information indicates that the expression of the target user is an expression in an unhealthy state, it is determined that the target user is currently in an unhealthy state.
[0065] That is, when the first health status information and the second health status information both indicate that the target user is in an unhealthy state, it is determined that the target user is currently in an unhealthy state.
[0066] This embodiment recognizes the expression of the target user by setting up an expression health recognition model, and can judge the user's health status based on the expression. Combined with the voice health recognition model, the first health status information can be verified, further improving the accuracy of judging the health status of the target user, and helping to more accurately assist the target user in an unhealthy state.
[0067] In some optional implementations of this embodiment, such as Figure 3 As shown, step 101 includes:
[0068] Step 1011: Acquire an initial audio signal collected by a microphone in the target space.
[0069] The number of the microphones may be one or more. For example, the initial audio signal may be collected by a microphone array disposed at multiple positions in the target space.
[0070] Step 1012: Filter the initial audio signal to obtain a speech signal.
[0071] Specifically, the noise and speech signal components with a small volume in the initial audio signal can be filtered according to parameters such as the signal-to-noise ratio, carrier amplitude, and volume of the initial audio signal to obtain a high-quality speech signal.
[0072] Step 1013: localize the sound source of the speech signal to obtain the sound source position corresponding to the speech signal, and determine the user at the sound source position as the target user.
[0073] Specifically, various sound source localization methods related to the art can be used to determine the sound source position of the speech signal. For example, the sound source localization method based on the microphone array can include a controllable beamforming localization method based on maximum output power, a localization method based on high-resolution spectrum estimation, and a localization method based on time difference of arrival.
[0074] This embodiment can obtain a high-quality voice signal and accurately determine the position of the target user by filtering the initial audio signal and locating the sound source, thereby helping to improve the accuracy of health status recognition of the target user.
[0075] In some optional implementations of this embodiment, step 105 includes:
[0076] The controlled storage device in the target space is determined to be the target controlled device, and the controlled storage device is controlled to open.
[0077] The above-mentioned controlled storage device can perform corresponding operations by receiving an opening instruction or a closing instruction, that is, when it is determined that the target user is currently in an unhealthy state, the execution subject of this embodiment can send an opening instruction to the controlled storage device, and the controlled storage device opens, so that the user can take out items such as paper towels and garbage bags from it. In the vehicle driving scenario, the above-mentioned execution subject can send an instruction signal to the body control system, and the body control system further controls the controlled storage device to open.
[0078] Optionally, after controlling the controlled storage device to open, the above-mentioned execution entity can also output reminder information in the form of voice, light, image, etc., to facilitate the user to take the items.
[0079] Optionally, the number of controlled storage devices may be one or more. When there are multiple controlled storage devices, the controlled storage device closest to the target user may be opened based on the positional relationship between each controlled storage device and the target user, thereby further improving the convenience for the user to access items.
[0080] This embodiment controls the controlled storage device to open when it is determined that the target user is in an unhealthy state, thereby providing the user with the items needed to cope with the unhealthy state in a timely manner, thereby improving the convenience of the user in taking out the items.
[0081] In some optional implementations of this embodiment, such as Figure 4 As shown, step 105 includes:
[0082] Step 1051, determine the location of the target user, and determine the target electric window closest to the location as the target controlled device.
[0083] Specifically, the position of the target user can be determined by sound source positioning, image monitoring, etc. The target electric window can receive a control instruction sent by the execution subject of this embodiment, and perform an opening or closing operation according to the control instruction.
[0084] Optionally, in some scenarios, if there are multiple electric windows closest to the target user, all of these electric windows can be used as target electric windows, or one or more can be selected (eg, randomly selected, or prompted to select by the user) as target electric windows.
[0085] Step 1052: outputting prompt information for prompting the target user whether to control the movement of the target electric window.
[0086] There are multiple ways to output the prompt information, for example, voice prompt information can be output, or prompt text or prompt image can be displayed on the screen.
[0087] Step 1053 , in response to receiving feedback information sent by the target user in response to the prompt information, determining whether the feedback information includes a control instruction for the target electric window.
[0088] The feedback information may be various types of information, such as voice feedback information, gesture feedback information, key feedback information, etc. The execution subject may parse the feedback information to determine whether the feedback information indicates that the target electric window performs a moving operation.
[0089] Step 1054 , if a control instruction is included, the target electric window is controlled to execute a movement operation corresponding to the control instruction.
[0090] Among them, the types of control instructions may include a fully closed instruction, a partially closed instruction, a fully open instruction, a partially open instruction, etc., and the corresponding moving operations may include a fully closed operation, a partially closed operation, a fully open operation, a partially open operation, etc.
[0091] As an example, in a scenario where the target space is the interior space of a vehicle, if it is detected that the target user is in an unhealthy state, a voice prompt message "Do you need to open the window?" can be output. If the user's feedback information includes a control instruction indicating full opening (for example, including the voice "fully open"), the target electric window is controlled to be fully opened; if the user's feedback information includes a control instruction indicating partial opening (for example, including the voice "open a little"), the target electric window is controlled to open a gap of a corresponding width according to the preset opening width.
[0092] This embodiment outputs prompt information to interact with the target user and controls the target electric window to perform movement operations when it is determined that the target user is in an unhealthy state. This achieves the control of air exchange with the outside world based on the position of the target user, helps to alleviate the symptoms of the target user, and further improves the pertinence and effectiveness of responding to the health status of the target user.
[0093] In some optional implementations of this embodiment, such as Figure 5 As shown, step 1053 includes:
[0094] Step 10531, in response to receiving voice feedback information sent by the target user in response to the prompt information, the voice feedback information is recognized to obtain a voice recognition result.
[0095] Specifically, this step may use a pre-trained speech recognition model (eg, a model based on a recurrent neural network, a long short-term memory network, etc.) to recognize the speech feedback information. The speech recognition result may be in text form.
[0096] Step 10532, determining whether the voice recognition result includes a control instruction for the target electric window.
[0097] As an example, the above prompt information may be a voice message "The passenger is not feeling well, do you need to open the window?" Then, the target user sends a voice feedback message. If the voice recognition result obtained after the voice feedback message is recognized is an affirmative answer such as "OK", "OK", "Open a little", etc., it can be determined that the voice recognition result includes a control instruction, and then an instruction signal can be sent to the body control system, and the body control system further controls the target electric window to open; if the voice recognition result obtained after the voice feedback message is recognized is a negative answer such as "No", "Don't open", etc., no control operation is performed.
[0098] This embodiment can make the process of controlling the electric window more convenient by determining whether the target electric window needs to be controlled through voice interaction when it is determined that the target user is in an unhealthy state, and can more accurately judge whether the target user needs to control the electric window, thereby improving the targeted response to the user's unhealthy state.
[0099] Figure 6 The above-mentioned embodiments provided in this application Figure 2 Schematic diagram of the training process of the facial expression health recognition model in the corresponding embodiment. The facial expression health recognition model can be pre-trained on the execution subject of the above method, or can be trained on other electronic devices, and the trained facial expression health recognition model can be set on the execution subject of the above method.
[0100] like Figure 6 As shown, the above facial expression health recognition model is pre-trained according to the following steps:
[0101] Step 601, obtaining a sample facial image and corresponding annotated second health status information.
[0102] The sample facial images may be included in a pre-collected sample library, and the labeling personnel may label the sample facial images in the sample library to generate the labeled second health status information. The labeled second health status information indicates the real health status of the user corresponding to the sample facial image. For example, if the labeled second health status information is 1, it indicates that the corresponding user is in an unhealthy state, and the corresponding sample facial image is a positive sample; if the labeled second health status information is 0, it indicates that the corresponding user is in a healthy state, and the corresponding sample facial image is a negative sample.
[0103] Step 602: Use a preset initial facial expression health recognition model to recognize the sample facial image to obtain predicted second health status information.
[0104] The initial expression health recognition model can be a model that has been initialized with parameters or a model after the last parameter adjustment. The initial expression health recognition model can be constructed based on neural networks of various structures, such as CNN, DCGAN, LSTM, etc. The initial expression health recognition model can extract expression features from facial images, classify the expression features, and obtain the predicted second health status information.
[0105] Step 603: Determine a first loss value representing an error between the labeled second health status information and the predicted second health status information based on a preset first loss function.
[0106] The first loss function may be a loss function for classification, such as a cross entropy loss function. The loss value calculated using the loss function is the first loss value. The predicted second health status information may be a probability value, which indicates the probability that the health status of the corresponding user is an unhealthy state. The error between the probability value and the above-mentioned annotated second health status information may be calculated using the first loss function.
[0107] Step 604: Adjust the parameters of the initial expression health recognition model based on the first loss value.
[0108] Specifically, the gradient descent method and the back propagation method can be used to iteratively update the parameters of the initial speech expression health recognition model so that the above-mentioned first loss value is gradually reduced. Usually, each iteration requires executing the above-mentioned steps 601 to 604 once, that is, iteratively training the model using multiple sets of training samples. The adjusted model obtained after each iteration is used as the initial speech expression health recognition model for the next iteration, and the iteration is repeated multiple times until the adjusted initial speech expression health recognition model meets the preset training end condition.
[0109] Step 605 , in response to the initial expression health recognition model after adjusting parameters meeting a preset training end condition, determining the initial expression health recognition model after adjusting parameters as the trained expression health recognition model.
[0110] The above training end conditions may include but are not limited to at least one of the following: the training time exceeds the preset duration; the number of training times exceeds the preset number of times; the calculated loss value converges; the recognition accuracy obtained by testing the model using the test sample exceeds the accuracy threshold.
[0111] This embodiment obtains sample facial images and annotation information corresponding to the actual scene in advance, and trains the initial expression health recognition model using a sampling machine learning method to make the model parameters more closely match the actual scene, thereby helping to obtain an expression health recognition model with high prediction accuracy.
[0112] Figure 7 The above-mentioned embodiments provided in this application Figure 1 Schematic diagram of the training process of the speech health recognition model in the corresponding embodiment. The speech health recognition model can be pre-trained on the execution subject of the above method, or can be trained on other electronic devices, and the trained speech health recognition model can be set on the execution subject of the above method.
[0113] like Figure 7 As shown, the above-mentioned voice health recognition model is pre-trained according to the following steps:
[0114] Step 701: Obtain a sample voice signal and corresponding annotated first health status information.
[0115] Among them, the sample voice signal may be included in a pre-collected sample library, and the labeling personnel may label the sample voice signal in the sample library to generate the labeled first health status information. Labeling the first health status information indicates the true health status of the user corresponding to the sample voice signal. For example, if the labeled first health status information is 1, it means that the corresponding user is in an unhealthy state, and the corresponding sample voice signal is a positive sample; if the labeled first health status information is 0, it means that the corresponding user is in a healthy state, and the corresponding sample voice signal is a negative sample.
[0116] Step 702: extract features from the sample speech signal using a feature extraction module included in the preset initial speech health recognition model to obtain sample speech feature data.
[0117] The feature extraction method is the same as that of step 102 above, and will not be repeated here.
[0118] Step 703: Use the classification module included in the initial voice health recognition model to recognize the sample voice feature data to obtain predicted first health status information.
[0119] The initial voice health recognition model can be a model that has been initialized with parameters, or a model after the parameters have been adjusted last time. The classification module can be a machine learning model for binary classification. The classification module can classify the sample voice feature data to obtain the predicted second health status information.
[0120] Step 704: Determine a second loss value representing an error between the labeled first health status information and the predicted first health status information based on a preset second loss function.
[0121] The second loss function may be a loss function for classification, such as a cross entropy loss function. The loss value calculated using the loss function is the second loss value. The predicted first health status information may be a probability value, which indicates the probability that the corresponding user's health status is an unhealthy state. The error between the probability value and the above-mentioned annotated first health status information may be calculated using the second loss function.
[0122] Step 705: Adjust the parameters of the initial speech health recognition model based on the second loss value.
[0123] Specifically, the gradient descent method and the back propagation method can be used to iteratively update the parameters of the initial speech health recognition model so that the above-mentioned second loss value is gradually reduced. Usually, each iteration requires executing the above-mentioned steps 701 to 705 once, that is, iteratively training the model using multiple sets of training samples. The adjusted model obtained after each iteration is used as the initial speech health recognition model for the next iteration, and the iteration is repeated multiple times until the adjusted initial speech health recognition model meets the preset training end condition.
[0124] Step 706: In response to the initial speech health recognition model after adjusting parameters meeting a preset training end condition, the initial speech health recognition model after adjusting parameters is determined as a trained speech health recognition model.
[0125] The above training end conditions may include but are not limited to at least one of the following: the training time exceeds the preset duration; the number of training times exceeds the preset number of times; the calculated loss value converges; the recognition accuracy obtained by testing the model using the test sample exceeds the accuracy threshold.
[0126] This embodiment obtains sample speech signals and annotation information corresponding to the actual scene in advance, and trains the initial speech health recognition model using a sampling machine learning method to make the model parameters more closely match the actual scene, thereby helping to obtain a speech health recognition model with high prediction accuracy.
[0127] Figure 8 A schematic diagram of the structure of a device control device based on health status recognition provided in an embodiment of the present application. Specifically comprising: an acquisition module 801, for acquiring a voice signal collected from a target user in a target space; an extraction module 802, for extracting features from a voice signal using a feature extraction module included in a pre-trained voice health recognition model to obtain voice feature data; an identification module 803, for identifying voice feature data using a classification module included in a voice health recognition model to obtain first health status information, wherein the first health status information indicates whether the voice signal is emitted by the target user in a healthy state; a determination module 804, for determining whether the target user is currently in a healthy state based on the first health status information;
[0128] The control module 805 is used to control the target controlled device to perform a corresponding health assistance operation if the target user is currently in an unhealthy state.
[0129] In some optional implementations of the present embodiment, the determination module includes: a first acquisition unit, used to acquire a facial image taken of the target user's face; a recognition unit, used to use a pre-trained expression health recognition model to recognize the facial image to obtain second health status information, wherein the second health status information indicates whether the expression of the target user is an expression in a healthy state; a first determination unit, used to determine that the target user is currently in an unhealthy state if the first health status information indicates that the voice signal is issued by the target user in an unhealthy state, and the second health status information indicates that the expression of the target user is an expression in an unhealthy state.
[0130] In some optional implementations of this embodiment, the acquisition module includes: a second acquisition unit, used to acquire the initial audio signal collected by the microphone in the target space; a filtering unit, used to filter the initial audio signal to obtain a speech signal; a positioning unit, used to locate the sound source of the speech signal, obtain the sound source position corresponding to the speech signal, and determine the user at the sound source position as the target user.
[0131] In some optional implementations of this embodiment, the control module includes: a first control unit, configured to determine that a controlled storage device in a target space is a target controlled device, and control the controlled storage device to open.
[0132] In some optional implementations of the present embodiment, the control module includes: a second determination unit, used to determine the location of the target user, and determine the target electric window closest to the location as the target controlled device; an output unit, used to output prompt information for prompting the target user whether it is necessary to control the movement of the target electric window; a third determination unit, used to determine whether the feedback information contains control instructions for the target electric window in response to feedback information received from the target user in response to the prompt information; and a second control unit, used to control the target electric window to execute the movement operation corresponding to the control instruction if the control instruction is contained.
[0133] In some optional implementations of this embodiment, the third determination unit includes: an identification subunit, used to identify the voice feedback information in response to receiving the voice feedback information issued by the target user in response to the prompt information, and obtain a voice recognition result; a determination subunit, used to determine whether the voice recognition result includes a control instruction for the target electric window.
[0134] In some optional implementations of the present embodiment, the expression health recognition model is pre-trained according to the following steps: obtaining a sample facial image and the corresponding annotated second health status information; using a preset initial expression health recognition model to recognize the sample facial image to obtain predicted second health status information; based on a preset first loss function, determining a first loss value representing the error between the annotated second health status information and the predicted second health status information; based on the first loss value, adjusting the parameters of the initial expression health recognition model; in response to the initial expression health recognition model after adjusting the parameters meeting the preset training end conditions, determining the initial expression health recognition model after adjusting the parameters as the trained expression health recognition model.
[0135] In some optional implementations of the present embodiment, the speech health recognition model is pre-trained according to the following steps: obtaining a sample speech signal and the corresponding annotated first health status information; utilizing a feature extraction module included in a preset initial speech health recognition model to perform feature extraction on the sample speech signal to obtain sample speech feature data; utilizing a classification module included in the initial speech health recognition model to recognize the sample speech feature data to obtain predicted first health status information; determining a second loss value representing the error between the annotated first health status information and the predicted first health status information based on a preset second loss function; adjusting the parameters of the initial speech health recognition model based on the second loss value; in response to the initial speech health recognition model after adjusting the parameters meeting a preset training end condition, determining the initial speech health recognition model after adjusting the parameters as the trained speech health recognition model.
[0136] The device control device based on health status recognition provided in this embodiment can be as follows Figure 8 The equipment control device based on health status recognition shown in can execute all steps of the above equipment control methods based on health status recognition, and thus achieve the technical effects of the above equipment control methods based on health status recognition. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0137] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Fig. 9 The electronic device 900 shown includes: at least one processor 901, a memory 902, at least one network interface 904 and other user interfaces 903. The various components in the electronic device 900 are coupled together via a bus system 905. It is understood that the bus system 905 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 905 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 905 is not described in detail. Fig. 9 Various buses are labeled as bus system 905.
[0138] The user interface 903 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0139] It can be understood that the memory 902 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 902 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0140] In some implementations, the memory 902 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 9021 and an application program 9022 .
[0141] The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 9022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method of the embodiment of the present application can be included in the application 9022.
[0142] In this embodiment, by calling the program or instruction stored in the memory 902, specifically, the program or instruction stored in the application 9022, the processor 901 is used to execute the method steps provided by each method embodiment, for example, including:
[0143] Acquire a voice signal collected from a target user in a target space; use a feature extraction module included in a pre-trained voice health recognition model to extract features from the voice signal to obtain voice feature data; use a classification module included in the voice health recognition model to identify the voice feature data to obtain first health status information, wherein the first health status information indicates whether the voice signal is sent by the target user in a healthy state; based on the first health status information, determine whether the target user is currently in a healthy state; if the target user is currently in an unhealthy state, control the target controlled device to perform corresponding health assistance operations.
[0144] The method disclosed in the above embodiment of the present application can be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 901. The above processor 901 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902 and completes the steps of the above method in combination with its hardware.
[0145] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0146] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0147] The electronic device provided in this embodiment may be Fig. 9 The electronic device shown in can execute all the steps of the above-mentioned device control methods based on health status identification, and thus achieve the technical effects of the above-mentioned device control methods based on health status identification. Please refer to the above relevant description for details. For the sake of brevity, it will not be repeated here.
[0148] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0149] When one or more programs in the storage medium can be executed by one or more processors, the device control method based on health status identification executed on the electronic device side can be implemented.
[0150] The processor is used to execute the program stored in the memory to implement the following steps of the device control method based on health status identification performed on the electronic device side:
[0151] Acquire a voice signal collected from a target user in a target space; use a feature extraction module included in a pre-trained voice health recognition model to extract features from the voice signal to obtain voice feature data; use a classification module included in the voice health recognition model to identify the voice feature data to obtain first health status information, wherein the first health status information indicates whether the voice signal is sent by the target user in a healthy state; based on the first health status information, determine whether the target user is currently in a healthy state; if the target user is currently in an unhealthy state, control the target controlled device to perform corresponding health assistance operations.
[0152] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different circuits to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0153] The steps of the circuits or algorithms described in conjunction with the embodiments disclosed herein may be implemented using hardware, software modules executed by a processor, or a combination of the two. The software modules may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0154] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The circuit steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0155] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A device control method based on health status recognition, characterized in that: The method comprises: Acquire a voice signal collected from a target user in a target space; Using a feature extraction module included in a pre-trained voice health recognition model, extract features from the voice signal to obtain voice feature data; Using the classification module included in the voice health recognition model, the voice feature data is recognized to obtain first health status information, wherein the first health status information indicates whether the voice signal is sent by the target user in a healthy state; Based on the first health status information, determining whether the target user is currently in a healthy state; If the target user is currently in an unhealthy state, the target controlled device is controlled to perform a corresponding health assistance operation.
2. The method according to claim 1, characterized in that The determining, based on the first health status information, whether the target user is currently in a healthy state includes: Acquire a facial image captured of the target user's face; Using a pre-trained expression health recognition model, the facial image is recognized to obtain second health status information, wherein the second health status information indicates whether the expression of the target user is in a healthy state; If the first health status information indicates that the voice signal is sent by the target user in an unhealthy state, and the second health status information indicates that the expression of the target user is an expression in an unhealthy state, it is determined that the target user is currently in an unhealthy state.
3. The method according to claim 1, characterized in that The acquiring of the voice signal collected from the target user in the target space includes: Acquire an initial audio signal collected by a microphone in the target space; Filtering the initial audio signal to obtain a speech signal; The voice signal is localized to obtain a sound source position corresponding to the voice signal, and a user at the sound source position is determined as a target user.
4. The method according to claim 1, characterized in that: The controlling target controlled device performs a corresponding health assistance operation, including: The controlled storage device in the target space is determined to be a target controlled device, and the controlled storage device is controlled to open.
5. The method according to claim 1, characterized in that The controlling target controlled device performs a corresponding health assistance operation, including: Determine the location of the target user, and determine the target electric window closest to the location as the target controlled device; outputting prompt information for prompting the target user whether to control the movement of the target electric window; In response to receiving feedback information sent by the target user in response to the prompt information, determining whether the feedback information includes a control instruction for the target electric window; If the control instruction is included, the target electric window is controlled to execute a movement operation corresponding to the control instruction.
6. The method according to claim 5, characterized in that In response to receiving feedback information sent by the target user in response to the prompt information, determining whether the feedback information includes a control instruction for the target electric window includes: In response to receiving voice feedback information sent by the target user in response to the prompt information, recognizing the voice feedback information to obtain a voice recognition result; It is determined whether the speech recognition result includes a control instruction for the target electric window.
7. The method according to claim 2, characterized in that The facial expression health recognition model is pre-trained according to the following steps: Obtaining a sample facial image and corresponding annotated second health status information; Using a preset initial expression health recognition model, the sample facial image is recognized to obtain predicted second health status information; Based on a preset first loss function, determining a first loss value representing an error between the annotated second health status information and the predicted second health status information; Based on the first loss value, adjusting the parameters of the initial speech expression health recognition model; In response to the initial expression health recognition model after adjusting parameters meeting a preset training end condition, the initial expression health recognition model after adjusting parameters is determined as the trained expression health recognition model.
8. The method according to any one of claims 1 to 7, characterized in that: The speech health recognition model is pre-trained according to the following steps: Acquire a sample voice signal and corresponding annotated first health status information; Using a feature extraction module included in a preset initial voice health recognition model, extract features from the sample voice signal to obtain sample voice feature data; Using the classification module included in the initial voice health recognition model, the sample voice feature data is recognized to obtain predicted first health status information; Based on a preset second loss function, determining a second loss value representing an error between the annotated first health status information and the predicted first health status information; Based on the second loss value, adjusting parameters of the initial speech health recognition model; In response to the initial speech health recognition model after adjusting parameters meeting a preset training end condition, the initial speech health recognition model after adjusting parameters is determined as a trained speech health recognition model.
9. A device control device based on health status recognition, characterized in that: The device comprises: An acquisition module, used to acquire a voice signal collected from a target user in a target space; An extraction module, used to extract features from the speech signal using a feature extraction module included in a pre-trained speech health recognition model to obtain speech feature data; a recognition module, configured to recognize the voice feature data using the classification module included in the voice health recognition model to obtain first health status information, wherein the first health status information indicates whether the voice signal is sent by the target user in a healthy state; A determination module, configured to determine whether the target user is currently in a healthy state based on the first health state information; The control module is used to control the target controlled device to perform corresponding health assistance operations if the target user is currently in an unhealthy state.
10. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the device control method based on health status identification described in any one of claims 1 to 8 is implemented.
