Device control method and apparatus, electronic device, and storage medium
By acquiring and analyzing the action status of the target object in the target space, flexible control of the device is achieved, which solves the problem of a single device control method in the existing technology and improves control accuracy and user experience.
Patent Information
- Application Number
- PCT/CN2024/088450
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-18
- Filing Date
- 2024-04-17
- Publication Date
- 2024-10-24
AI Technical Summary
The existing device control method is single, unable to achieve flexible control of the device, the user experience is not high, and it can only be limited to some devices.
By obtaining the target characteristics of each target object in each monitoring area of the target space, the action state of the target object is obtained according to the target characteristics, the target control plan corresponding to the action state of the target object is determined, and the corresponding target device is instructed to execute the target control plan.
The flexibility and accuracy of device control are improved, and the action status of the target object in the monitoring area can be controlled to control the target device corresponding to the monitoring area, thus improving the user experience.
Smart Images

Figure CN2024088450_24102024_PF_FP_ABST
Abstract
Description
Device control method, device, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 18, 2023, with application number 202310438320.4 and invention name “Device Control Method, Device, Electronic Device and Storage Medium”, the entire contents of which are incorporated by reference into the application. Technical Field
[0002] The present application relates to the field of signal processing technology, and in particular to a device control method, apparatus, electronic device, and storage medium. Background Art
[0003] With the progress of today's society, various devices are emerging in offices, homes and public places. The emergence of these devices has facilitated people's work, living and travel.
[0004] For example, smart doors, lamps, air conditioners, refrigerators, televisions, sweeping robots, range hoods and other equipment in homes have made people's lives more convenient.
[0005] Existing technologies can achieve basic automated control of devices. For example, in a human infrared sensor lamp, when a person or warm object enters the module's sensing range, the sensor module outputs a high-level pulse signal or a high-level delayed signal to power the sensor lamp. However, this device control method is limited to certain devices and regulates the device based on whether a person or warm object enters or leaves the module's sensing range, resulting in poor control accuracy. Technical Solutions
[0006] A device control method, executed by an electronic device, comprising:
[0007] Obtain the target features corresponding to each target object in each monitoring area of the target space;
[0008] Performing state detection on target features of each target object to obtain the action state of each target object;
[0009] According to the action state of each target object, a target control scheme corresponding to the action state of each target object is determined to instruct the corresponding target device to execute the target control scheme.
[0010] The present application also provides a method for monitoring an area, which is performed by an electronic device, and the method includes:
[0011] Displaying a regional monitoring page; the regional monitoring page includes monitoring areas corresponding to the target space;
[0012] In the corresponding monitoring area of the area monitoring page, the action status of each target object is displayed in real time; the action status of each target object is obtained based on the identification of the target features corresponding to each target object; the action status of each target object is used to instruct the corresponding target device to execute the target control plan corresponding to the action status.
[0013] The present application also provides a device control apparatus, the apparatus comprising:
[0014] The target feature acquisition module is used to obtain the target features corresponding to each target object in each monitoring area of the target space;
[0015] An action state acquisition module is used to perform state detection on target features of each target object to obtain the action state of each target object;
[0016] The scheme determination module is used to determine the target control scheme corresponding to the action state of each target object according to the action state of each target object, so as to instruct the corresponding target device to execute the target control scheme.
[0017] The present application also provides a regional monitoring device, comprising:
[0018] A page display module, configured to display a region monitoring page; the region monitoring page includes monitoring regions corresponding to a target space;
[0019] An action status display module is used to display the action status of each target object in real time in the corresponding monitoring area of the area monitoring page; the action status of each target object is obtained based on the identification of the target features corresponding to each target object; the action status of each target object is used to instruct the corresponding target device to execute the target control scheme corresponding to the action status.
[0020] The present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the device control method and / or area monitoring method as described above.
[0021] The present application also provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the device control method and / or area monitoring method described above are implemented.
[0022] The present application also provides a computer program product, comprising computer-readable instructions, which, when executed by a processor, implement the device control method and / or area monitoring method described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] To more clearly illustrate the technical solutions provided by this application, the following briefly introduces the drawings required for describing the various embodiments of this application. Obviously, the drawings described below are only some embodiments of this application, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0024] FIG1 is an exemplary diagram of an implementation environment in one embodiment.
[0025] FIG2 is a flow chart of a device control method in one embodiment.
[0026] FIG3 is a schematic diagram of a Doppler-time spectrum in an embodiment.
[0027] FIG4 is a schematic diagram of the area type division of a monitoring area in one embodiment.
[0028] FIG5 is a schematic flow chart of a regional monitoring method in one embodiment.
[0029] FIG6 is a schematic diagram of a region monitoring page in one embodiment.
[0030] FIG7 is a schematic structural diagram of a device control apparatus in one embodiment.
[0031] FIG8 is a schematic structural diagram of a region monitoring device in one embodiment.
[0032] FIG9 is a schematic structural diagram of an electronic device in one embodiment.
[0033] Implementation Methods of the Application
[0034] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0035] Before explaining the technical solutions of the embodiments of the present application, the application scenarios of the embodiments of the present application are first exemplified.
[0036] At present, the automatic control method for equipment is relatively simple, and the opening or closing of the equipment is usually controlled by identifying whether there is a person or a warm object. Moreover, this control method can only be limited to some equipment. Moreover, the opening or closing of the equipment is judged by whether there is a person or a warm object, and the control method of the equipment is single, and flexible control of the equipment cannot be achieved, and the user experience is not high. In view of this, the embodiment of the present application provides a device control method, which obtains the target characteristics of each target object under each monitoring area, obtains the action state of the target object according to the target characteristics, and determines the target control scheme corresponding to the action state of the target object according to the target action state, and then instructs the target device corresponding to the monitoring area where the target object is located to execute the target control scheme. The technical solution of the embodiment of the present application realizes the control of the target device corresponding to the monitoring area according to the action state of the target object in the monitoring area, thereby improving the flexibility and accuracy of the control.
[0037] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0038] Figure 1 is a schematic diagram of an implementation environment involved in a device control method. In one embodiment, the implementation environment is applicable to a smart home scenario and includes a sensor 10, a terminal device 11, a cloud 12, a gateway device 13, a router 14, and a device 15.
[0039] Specifically, terminal device 11 can be any intelligent device with communication and storage capabilities, such as a smartphone, tablet computer, laptop computer, desktop computer, or other electronic device with network connectivity, without limitation. Cloud 12 can be a network access server, database server, cloud server, etc. In one embodiment, gateway device 13 can be built based on the ZigBee protocol, and device 15 can be controlled by sensor 10, terminal device 11, or cloud 12. Device 15 can be pre-installed in gateway device 13. For example, device 15 can be a device included in the gateway device 13's factory kit, or it can be a device that is subsequently connected to gateway device 13 through user operation.
[0040] In one embodiment, a client capable of managing the device 15 is installed in the terminal device 11. The client may be an application client (such as an APP on a mobile phone) or a web client, which is not limited here.
[0041] In one embodiment, the sensor 10 may establish a network connection with the gateway device 13 based on the ZigBee protocol, thereby joining the ZigBee network.
[0042] In one embodiment, the sensor 10, the terminal device 11, and the device 15 can all be connected to the Ethernet via the gateway device 13. The gateway device 13 can be connected to the cloud 12 via a wired or wireless communication connection. For example, the gateway device 13 and the terminal device 11 can store acquired information in the cloud 12. In one embodiment, the terminal device 11 can also establish a network connection with the cloud 12 via 2G / 3G / 4G / 5G, WiFi, etc., thereby obtaining data sent from the cloud 12.
[0043] In one embodiment, the terminal device 11, the gateway device 13, and the sensor 10 may be in the same local area network, or in the same wide area network as the cloud 12. When the terminal device 11 and the gateway device 13 are in the same local area network, the terminal device 11 may interact with the gateway device 13 and the sensor 10 connected to the gateway device 13 via a local area network path; or may interact with the gateway device 13 and the sensor 10 connected to the gateway device 13 via a wide area network path. When the terminal device 11 and the gateway device 13 are not in the same local area network, the terminal device 11 may interact with the gateway device 13 and the sensor 10 connected to the gateway device 13 via a wide area network path. Devices 15 may include, but are not limited to, smart home products such as smart lamps, automatic curtains, and air conditioners.
[0044] The target control scheme refers to a linkage application scheme established between the gateway device 13 or the device 15 connected to the gateway device 13; the target control scheme includes trigger conditions, the controlled target device and the execution action. The device that realizes the automated scene control includes the trigger device and the controlled target device (controlled device), and the two can be connected to each other through the gateway device 13. When the action state of the target object obtained by the trigger device meets the trigger condition, the gateway device 13 controls the controlled device to perform the corresponding execution action. Among them, the trigger device can be various sensors such as radar sensors, pressure sensors, etc. For example, the controlled device can be various switches, televisions, sockets, electric lights and other devices 15.
[0045] Assume that the Internet of Things system has set up an automatic control scheme: within a certain monitoring area of the target space, the action state of the target object is detected, and when the action state is static, the lamps corresponding to the monitoring area are turned off. Based on this application scenario, a radar sensor can be set as a triggering device, and a smart switch connected to the lamp can be set as a controlled device. The specific execution principle is: if the automation is performed locally on the gateway through a local area network path, the radar sensor detects the action state of the target object located in the monitoring area and reports this event to the gateway. After receiving the action state of the target object, the gateway determines that the action state is static based on the stored automation configuration information, that is, the trigger condition is met, and finds the device 15 corresponding to the monitoring area, which is the smart switch in this embodiment, and notifies the smart switch to perform the target action, that is, turn off the lights. This realizes an automated linkage in which the lamps corresponding to the monitoring area are automatically turned off when the action state of the target object is detected to be static within the monitoring area of the target space. If the automatic execution is performed in the cloud through a wide area network path, the radar sensor detects the action status of the target object and reports the event to the gateway. After the gateway receives the event of detecting the action status of the target object, it reports the event to the cloud. The cloud finds the device 15 corresponding to the monitoring area based on the stored scene configuration information, which is a smart switch in this embodiment, and notifies the smart switch through the gateway to execute the light-off action.
[0046] As shown in Figure 2, an embodiment of the present application provides a device control method, which can be executed by an electronic device. It is understood that the electronic device can specifically be the sensor in Figure 1 or a gateway device.
[0047] As shown in FIG2 , the device control method of the embodiment of the present application specifically includes the following steps:
[0048] S110: Obtain target features corresponding to each target object in each monitoring area of the target space.
[0049] Among them, the target space refers to a space with a boundary range, and some areas are customized to be divided out in the target space as monitoring areas. The target space can include multiple monitoring areas. For example, the target space includes the entire house, and the monitoring areas are the rooms in the house. The target objects include but are not limited to humans or living animals. The target feature refers to the feature corresponding to the target object, such as the position feature of a body part or the motion feature of a limb, etc. For example, if the target object is a human body, the target feature can be the position feature of the head or the position feature of the buttocks. For example, if the head is on the ground and / or the buttocks are on the ground within the preset fall time, the action state is a fall. By obtaining the target features, the foundation can be laid for the subsequent acquisition of the action state of the target object based on the target features.
[0050] Specifically, the electronic device obtains target features corresponding to each target object in each monitoring area in the target space. The electronic device can obtain electromagnetic wave signals of the target object through electromagnetic waves and determine the target features based on the electromagnetic wave signals.
[0051] S120: Perform state detection on target features of each target object to obtain the action state of each target object.
[0052] Among them, the action state refers to the state of movement of the target object, including walking, falling, stillness, micro-movement and running, etc. For example, walking: the target object moves horizontally within the preset walking time, and falling: part of the body features of the target object touch the ground within the preset falling time. Stillness: the target object remains still at a certain position within the preset stillness time. Micro-movement: the target object moves within a preset distance range within the preset micro-movement time. It should be understood that there can be one or more target objects in each monitoring area, or there may be no target object.
[0053] Specifically, the electronic device performs state detection on the target characteristics of each target object to obtain the action state of each target object, so as to subsequently obtain a target control scheme based on the action state of the target object, and then control the target device corresponding to the monitoring area where the target object is located according to the target control scheme.
[0054] S130 : Determine a target control scheme corresponding to the action state of each target object according to the action state of each target object, and instruct the corresponding target device to execute the target control scheme.
[0055] Target devices are devices corresponding to the monitoring area, including air conditioners, refrigerators, lights, robot vacuums, range hoods, and so on. For example, if the monitoring area is the kitchen, target devices include kitchen lights, range hoods, and dishwashers. Target control schemes are schemes used to control the target devices within the monitoring area and perform corresponding actions / operations.
[0056] The target control scheme includes trigger conditions, controlled target devices, and execution actions. When the action state of the target object in the monitoring area meets the trigger conditions, the electronic device executes the target action on the target device corresponding to the monitoring area to realize the automated operation of the target device. The target device controlled by the target control scheme can be within the monitoring area. For example, if the monitoring area is a rest area, the target control scheme is to control the brightness of the lights in the rest area according to the action state of at least one target object in the rest area. Of course, the target device controlled by the target control scheme can also be outside the monitoring area. For example, if the monitoring area is a porch, the target control scheme corresponding to the monitoring area is to adjust the brightness of the porch lights and control the switch of the air conditioner in the living room according to the action state of at least one target object in the porch.
[0057] Specifically, the electronic device determines a target control scheme corresponding to the action state of each target object according to the action state of each target object, and then instructs the corresponding target device to execute the target control scheme according to the target control scheme.
[0058] The embodiments of the present application implement a control scheme for target devices corresponding to a monitoring area based on the motion state of at least one target object within the monitoring area, thereby enabling control of the target devices. For example, if the monitoring area is a rest area and the motion state of each target object is static, the target control scheme corresponding to the static state is to dim the brightness of the lights in the rest area. This eliminates the need for users to manually adjust the brightness of the lights, improving the user experience.
[0059] The technical solution of the embodiment of the present application is that the electronic device obtains the target features corresponding to each target object under each monitoring area of the target space, performs state detection on the target features of each target object, obtains the action state of each target object, and determines the target control scheme corresponding to the action state of each target object according to the action state of each target object. Then, the target device corresponding to the monitoring area is controlled according to the target control scheme to achieve control of the target device. The technical solution of the embodiment of the present application achieves control of the target device corresponding to the monitoring area according to the action state of at least one target object in the monitoring area, thereby improving the flexibility of target device control. Since the target control scheme is determined according to the action state of the target object, the accuracy of target device control is improved.
[0060] In another embodiment, target features corresponding to each target object in each monitoring area of the target space are obtained, including: obtaining target signals corresponding to each target object in each monitoring area of the target space; performing feature extraction on the target signals to obtain target features corresponding to each target object; performing state detection on the target features of each target object to obtain the action state of each target object, including: performing state classification processing on the target features of each target object respectively to obtain the action state of each target object.
[0061] The target signal may refer to a radar electromagnetic wave signal, and the target feature refers to a feature obtained based on the radar electromagnetic wave signal.
[0062] Specifically, the electronic device acquires target signals from each target object within each monitoring area and performs feature extraction on the target signals to obtain target features corresponding to each target object. If the target signals are radar electromagnetic wave signals, the electronic device converts the radar electromagnetic wave signals into micro-Doppler signals and extracts features from the converted micro-Doppler signals to obtain target features. The target features of each target object are then classified and processed to determine their motion status.
[0063] In one embodiment, the electronic device uses a pre-trained classification model to classify the target features of each target object to obtain the motion state of each target object. The classification model can be a naive Bayesian classifier, a logistic regression model, a decision tree classification model, a random forest classification model, a K-nearest neighbor classification model, a support vector machine model, or the like. The radar electromagnetic wave signal of the target object acquired via radar electromagnetic waves can more accurately describe the target object, enriching the information subsequently obtained about the target feature of the target object, thereby improving the accuracy of the motion state determined based on the target feature.
[0064] In one embodiment, the target signal includes a radar signal; and the step of extracting features from the target signal to obtain target features corresponding to each target object may include: extracting Doppler features from the radar signal corresponding to each target object to obtain Doppler features corresponding to the radar signal; the Doppler features include at least one of motion intensity, frequency, motion period, Doppler bandwidth, and Doppler offset; and obtaining target features corresponding to each target object based on the Doppler features.
[0065] In one embodiment, a millimeter-wave radar sensor is used to acquire radar electromagnetic wave signals within each monitoring area of the target space. The frequency band and structure of the millimeter-wave radar are not limited. Upon detecting a target object entering the monitoring area, the electronic device extracts the radar electromagnetic wave signal of the target object to obtain at least the horizontal and vertical coordinates of the target object. The radar electromagnetic wave signal of each target object is converted into a micro-Doppler signal, and feature extraction is performed on the micro-Doppler signal.
[0066] For example, within a detection cycle of t seconds, the electronic device obtains the location information of the target object, marked as (x, y), and continues to calculate the speed Doppler of the radar electromagnetic wave signal of the target object, recorded as S1. After continuing to count for a period of T seconds, the speed Doppler accumulates from S1 to SN to obtain the Doppler-time spectrum, that is, the micro-Doppler spectrum.
[0067] As shown in Figure 3, the maximum value of each column of data is taken to form the waveform curve Q2 in the figure, which represents the main frequency change of the target object, expressed as S(n). One data is obtained every t seconds, and N points of data are accumulated in T seconds. Discrete Fourier transform (FFT) operation is performed on the accumulated data. The intensity P1 and the corresponding frequency F1 corresponding to the maximum value of the spectrum signal are taken, and the intensity of the second largest peak is taken as P2 and F2, and the motion period of the target object ΔF = |F1-F2| can be obtained.
[0068] The peaks of waveform curve Q2 are taken to form the upper envelope curve Q1, and the troughs of waveform curve Q2 are taken to form the lower envelope curve Q3. The peaks of upper envelope curve Q1 correspond to Doppler frequency F11, and the troughs correspond to Doppler frequency F12. The peaks of lower envelope curve Q3 correspond to Doppler frequency F31, and the troughs correspond to Doppler frequency F32. The total Doppler signal bandwidth of the target object is calculated as B1 = |F11 - F12|, and the total Doppler offset of the target object is calculated as O1 = |F31 - F32| / 2.
[0069] The characteristic vectors in the micro-Doppler map of the target object include: 1. the intensity P1 and frequency F1 of the target's main motion Doppler; 2. the target's motion period ΔF; 3. the target's total Doppler bandwidth B1; 4. the target's total Doppler offset O1.
[0070] The above eigenvectors are eigenvectors for each action state. The target features obtained through the micro-Doppler signal, that is, the eigenvectors, are more informative, which can make the subsequent acquisition of the action state more accurate.
[0071] In another embodiment, state detection is performed on the target features of each target object to obtain the action state of each target object, including: for the target features corresponding to each target object, state classification processing is performed on the target features corresponding to each target object through a trained state detection model to obtain the probability corresponding to each action state; based on the probability of each action state, the action state of each target object is determined.
[0072] Among them, the state detection model is a pre-trained model that realizes the classification of target features.
[0073] Specifically, the electronic device performs state classification processing on the target features corresponding to each target object through the trained state detection model, obtains the probability corresponding to each action state, and determines the action state of each target object based on the probability of each action state. In one embodiment, the electronic device uses the action state with the highest probability value among the probability values of the target feature belonging to each action state as the action state of the target object corresponding to the target feature. In this way, the action state of each target object is obtained respectively. In the embodiment of the present application, the target feature of the target object is processed by means of a pre-trained model to obtain the action state of the target object, thereby improving the accuracy of determining the action state of the target object.
[0074] In another embodiment, the state detection model is obtained through a model training step, which includes: obtaining sample target features for the sample target object in different action states, and generating sample sets corresponding to each action state based on each sample target feature; each sample set includes positive samples for the current action state and negative samples for other than the current action state, as well as corresponding sample labels; the sample labels include sample labels for positive samples and sample labels for negative samples; through each branch model in the initial model, state detection is performed on the sample target features in the sample set corresponding to each action state, and sample state results are obtained respectively; based on the difference between each sample state result and the corresponding sample label, the model parameters of each branch model in the initial model are adjusted and training is continued until the training conditions are met and the training is stopped to obtain a trained state detection model.
[0075] The initial model meets the classification conditions, including but not limited to support vector machines. The training conditions may refer to the model parameters converging and fluctuating within a preset parameter range for several times, or the model parameters reaching a preset threshold.
[0076] Specifically, the electronic device obtains sample target features for the sample target object in different motion states, and generates sample sets corresponding to each motion state based on each sample target feature. Each sample set includes a positive sample of the current motion state and a negative sample other than the current motion state, as well as a corresponding sample label. For example, if the current motion state is falling, the positive sample is the sample target feature of falling. The negative sample is the sample target feature of other motion states except falling. The negative sample has a unique corresponding sample label, and the positive sample has a unique corresponding sample label.
[0077] The electronic device performs state detection on the sample target features in the sample set corresponding to each action state through each branch model in the initial model, and obtains the sample state results respectively. For each sample state result, the model parameters of each branch model of the initial model are adjusted according to the difference between each sample state result and the corresponding sample label, and then the training is repeated. When the training conditions are met, the training is stopped to obtain the state detection model. The method of the embodiment of the present application realizes the training of the state detection model, and the branch model is trained according to the sample set corresponding to the action state, and finally the state detection model is obtained, which improves the accuracy of the state detection model in classifying various action states.
[0078] For example, using the human body as the target object, radar electromagnetic wave signals are collected while the target object is in motion, stationary, slightly moving, and falling. The electronic device calculates the micro-Doppler signal under each motion state, including intensity, frequency, period, bandwidth, and offset. The sample set includes sample labels for the four motion states and a feature vector consisting of the micro-Doppler characteristics corresponding to each sample label.
[0079] The labels may include {movement, stillness, slight movement, fall}. The feature vector may include {Doppler intensity and frequency of the target object's motion, the target object's motion period, the target object's total Doppler bandwidth, and the target object's total Doppler shift}. The sample set is divided into a training set and a test set. In one embodiment, 80% of the sample set is used as the training set, and 20% of the sample set is used as the test set.
[0080] The electronic device extracts part of the training set according to the label and trains the branch model. For example, if the labels include movement, stillness, slight movement, and fall, the extraction of part of the training set is divided into four times.
[0081] The feature vector corresponding to the movement label extracted for the first time is the positive sample set, and the feature vectors corresponding to stillness, slight movement, and falling are the negative sample set; the feature vector corresponding to the stillness label extracted for the first time is the positive sample set, and the feature vectors corresponding to movement, slight movement, and falling are the negative sample set; the feature vector corresponding to the slight movement label extracted for the first time is the positive sample set, and the feature vectors corresponding to stillness, movement, and falling are the negative sample set; the feature vector corresponding to the fall label extracted for the first time is the positive sample set, and the feature vectors corresponding to stillness, slight movement, and movement are the negative sample set.
[0082] The electronic device determines the number of branch models of the initial model according to the number of motion labels, and trains the branch models using a portion of the training set corresponding to each motion label. After the training of each branch model is completed, a state detection model is obtained.
[0083] Exemplarily, the initial model is an SVM classifier, and the expression of the SVM classifier includes:
[0084] w T X i +b-1≥+1, if y i =+1
[0085] w T X i +b-1≤-1, if y i =-1
[0086] Among them, X i represents the eigenvector, y iRepresents the label result, w and b represent parameters. w represents the normal vector of the classifier model, T represents the transpose operation of this normal vector, and this normal vector is a matrix.
[0087] In order to prevent the SVM classifier from overfitting and affecting its generalization ability, a loss function is added, and the model training is terminated when the training result meets the preset fitting degree.
[0088] The loss function can be expressed as:
[0089] Among them, X i represents the eigenvector, y i Indicates the label result, (w T x i +b) represents the output of the model (i.e., the predicted classification result), w and b represent the normal vector and intercept of the hyperplane, N represents the number of samples, and λ is an adjustable parameter used to balance empirical risk and structural risk in order to increase the penalty for a certain item. It is usually agreed that the model training will end with a probability of 95%.
[0090] In order to improve the accuracy of the SVM classifier, a nonlinear kernel function, namely the Gaussian kernel function, is used, and the expression is:
[0091] X1 represents the eigenvector in the positive sample set, X2 represents the eigenvector in the negative sample set, k() represents the Gaussian kernel function, σ represents the variance of the eigenvector of the positive sample set and the eigenvector of the negative sample set, and exp represents the probability of obtaining the category of the positive sample set and the category of the negative sample set on the Gaussian distribution.
[0092] SVM classifiers include linear and nonlinear classifiers. The Gaussian kernel function is a kernel function used in SVM classifier training. This kernel function can accommodate nonlinear classification and can be used as a training model to convert nonlinear classification into linear classification. This helps to better fit the classifier.
[0093] That is, if the training of the branching model requires input, the Gaussian kernel function, loss function, feature vector and sample label are all input items for the purpose of training the branching model. After the training is completed, we can get y = w T X i +b model, w and b are the parameters of the model. Input feature vector X i You can get his category y.
[0094] When acquiring the action state of the target object, the electronic device obtains the radar electromagnetic wave signal of the target object, and obtains the micro-Doppler signal based on the radar electromagnetic wave signal, extracts the target features in the micro-Doppler signal, that is, the feature vector, and processes the feature vector through the state detection model, that is, the feature vector is processed through four trained branch models to obtain four results. The action state corresponding to the result with the highest probability value is used as the action state of the target object.
[0095] In the embodiments of the present application, a loss function is added to the initial model during training to prevent overfitting of the initial model from affecting generalization ability. Furthermore, the initial model uses a nonlinear kernel function, the Gaussian kernel function, to improve the accuracy of the classifier. During training, a branch model is trained using a sample set under each action state, thereby making the resulting state detection model more targeted and improving the accuracy of action state determination when determining the action state of the target object.
[0096] In another embodiment, the target control scheme corresponding to the action state of each target object is determined according to the action state of each target object, including: if the action state of each target object under the monitoring area of the target space meets the trigger condition in the target control scheme corresponding to the monitoring area, then the corresponding target device is instructing to execute the target action in the target control scheme.
[0097] Among them, the trigger conditions can be set according to the characteristics of the monitoring area. For example, in a rest area, when the action state of all target objects is static, the corresponding electrical equipment is instructed to execute the target action in the target control scheme, that is, the corresponding lights are dimmed and / or the TV volume is turned down, etc.
[0098] Of course, before instructing the corresponding electrical device to perform the target action, the electronic device first determines whether the target device meets the conditions for performing the target action. For example, first determine whether the light is on. If it is on, adjust the brightness or color of the light. For example, determine whether the TV is on. If it is on, determine whether the volume of the TV is greater than a preset volume threshold. If it is greater than the preset volume threshold, the electronic device adjusts the volume to the bass volume threshold, etc. The target action is determined according to the state of the target device, including turning on, off, and adjusting the power. For example, if the target device is an air conditioner, the target action can be turning off, turning on, adjusting the temperature, or adjusting the mode.
[0099] Specifically, in an embodiment of the present application, the electronic device determines whether the action state of each target object in each monitoring area of the target space meets the trigger conditions in the target control scheme corresponding to the monitoring area. If so, the electronic device instructs the corresponding target device to execute the target action in the target control scheme. The technical solution in the embodiment of the present application determines the target action based on whether the action state meets the trigger conditions, thereby improving the flexibility of the target control scheme and making the control of the target device corresponding to the monitoring area more flexible.
[0100] In another embodiment, each monitoring area of the target space includes a corresponding area type; if the action status of each target object under the monitoring area of the target space meets the trigger condition in the target control scheme corresponding to the monitoring area, the corresponding electrical equipment is instructed to perform the target action in the target control scheme, including: if the area type of the monitoring area, and the action status of each target object meet the trigger condition in the target control scheme corresponding to the monitoring area, the corresponding target device is instructed to perform the target action in the target control scheme.
[0101] The zone type can be customized based on the target space. For example, if the target space is a factory, zone types include office, workshop, and corridor. If the target space is a residential building, zone types include rest area, entryway, kitchen, washroom, and balcony.
[0102] Specifically, if the area type and the target object's motion state within the monitored area meet the trigger conditions of the target control solution corresponding to the monitored area, the electronic device instructs the target device to execute the target action. By determining the target action in the target control solution based on the area type and the motion state of the target object within the monitored area, the target action is more targeted and the control accuracy of the target device is improved.
[0103] Exemplarily, as shown in FIG4 , in an embodiment of the present application, each monitoring area in the target space 005 is divided into three area types: a wash area 004, a porch 003, and a rest area 002. The trigger conditions include: the area type of the monitoring area is a wash area 004, and the action state is a fall. The target device corresponding to the wash area 004 includes an alarm device, such as an indicator light, an audio device, and a communication device. The communication device is used to send a message about the fall of the target object to a pre-bound user terminal. The trigger conditions also include: the area type of the monitoring area is a porch 003, and the action state is motion. If the area type of the monitoring area is a porch 003, and the action state of at least one target object in the porch 003 is motion, the electronic device turns on or off the indicator light and issues a door closing prompt voice.
[0104] In one embodiment, the action state includes an action category and a motion direction; the step of determining the target control scheme corresponding to the action state of each target object according to the action state of each target object may include: determining the target control scheme corresponding to the action state of each target object according to the action category and motion direction of each target object.
[0105] It can be understood that the action state may include specific action categories and movement directions. The action category may refer to the category of the current action of the target object, such as walking, running, jumping, falling, micro-movement, stillness and other action categories. The movement direction may be the direction in which the target object is currently moving, for example, forward, backward, left, right, in place, etc., or with reference to a specific monitoring area, for example, the monitoring area includes multiple sub-monitoring areas, such as sub-monitoring area 1, sub-monitoring area 2, sub-monitoring area 3, etc. The movement direction may include moving toward the monitoring area, sub-monitoring area 1 to sub-monitoring area 2, sub-monitoring area 1 to sub-monitoring area 3, and so on.
[0106] The electronic device determines whether the action category and movement direction of each target object in each monitoring area of the target space meet the trigger conditions in the target control scheme corresponding to the monitoring area. If so, the electronic device instructs the corresponding target device to execute the target action in the target control scheme.
[0107] In this embodiment, the target action is determined by judging whether the trigger condition is met according to the action type and the movement direction, thereby improving the flexibility of the target control scheme and making the control of the target device corresponding to the monitoring area more flexible.
[0108] In one embodiment, when the electronic device detects that the direction of movement of at least one target object is toward the room, the indicator light turns on and the audio device is controlled to issue a voice prompt for closing the door. When the electronic device detects that the direction of movement of at least one target object is toward the door, the indicator light turns off and the audio device is controlled to issue a voice prompt for closing the door. The triggering conditions also include: the area type of the monitoring area is rest area 002, and the action state is static. The target devices corresponding to rest area 002 include a television, lights in rest area 002, air conditioners, and audio equipment. When the action state of all target objects in rest area 002 is static, the target objects are controlled to reduce power. For example, the volume of the television is reduced, the air conditioner wind speed is reduced, the volume of the audio device is reduced, and the brightness of the lights is reduced.
[0109] The solution of the embodiment of the present application can achieve targeted response to the action status of target objects in various area types, and control the target device corresponding to the monitoring area when the action status meets the trigger condition.
[0110] The embodiments of the present application provide a method for regional monitoring. The method can display the monitoring status of the target space area, provide an interactive interface for the above-mentioned device control method, and facilitate the user to observe the regional monitoring status. This embodiment uses the method as an example of an electronic device. It is understood that the electronic device can specifically be the terminal device 11 in Figure 1, or a device with computing and display functions, such as an intelligent control panel.
[0111] As shown in FIG5 , the area monitoring method according to an embodiment of the present application includes the following steps:
[0112] S210: Display the regional monitoring page.
[0113] The area monitoring page includes monitoring areas corresponding to the target space.
[0114] Specifically, the area monitoring page is displayed on a terminal device for easy viewing by the user. The terminal includes a mobile terminal, a computer, or a tablet computer.
[0115] S220 : Display the action status of each target object in real time in the corresponding monitoring area of the area monitoring page.
[0116] The action state of each target object is obtained based on the identification of the target features corresponding to each target object; the action state of each target object is used to instruct the corresponding target device to execute the target control scheme corresponding to the action state.
[0117] Specifically, the electronic device displays the action status of each target object in the corresponding monitoring area on the area monitoring page in real time, so that the user can check the action status of the target object at any time. For example, the action status of the target object can be displayed by representing the target object with an object identifier and displaying a status identifier of the action status next to the object identifier.
[0118] It is understandable that the object identifiers of different target objects can be the same or different. For example, "●" is used as the object identifier, and the action status is identified in the form of text. As shown in Figure 6, in the area monitoring page 001, the action status corresponding to the target object is displayed below "●". The action status of the target object 01 located in the rest area 002 is moving, the action status of the target object 02 located in the rest area 002 is stationary, and the action status of the target object 03 located in the washing area 004 is falling. There is no target object in the entrance 003.
[0119] According to the technical solution of the embodiment of the present application, the electronic device displays the action status of each target object in real time by displaying the area monitoring page and the corresponding monitoring area in the area monitoring page. The user can check the area monitoring page at any time to see whether there is a target object in the monitoring area and what the action status of the target object is, thereby improving the user experience.
[0120] In another embodiment, the area monitoring method further includes: displaying an area editing page; the area editing page is used to customize the monitoring area of the target space; and generating a customized monitoring area in response to any area selected on the area editing page.
[0121] Specifically, the region editing page can be used to customize the monitoring region of the target space.
[0122] The electronic device generates a custom monitoring area in response to any area in the area editing page. The area editing page has a one-to-one correspondence with the target space, and the custom monitoring area is generated in the area editing page. When the electronic device detects a selection operation of any area in the area editing page, it responds to the selection operation and generates a custom monitoring area. Of course, the location of the monitoring area in the target space and the size of the area can also be customized.
[0123] In one embodiment, the relationship between each target device in the target space and the monitoring area, the electronic device can respond to the relationship setting in the area editing page, for example, device A, monitoring area A, in response to associating device A with monitoring area A, that is, monitoring area A corresponds to device A.
[0124] The technical solution of the embodiment of the present application enables custom configuration of monitoring areas on the area editing page, thereby increasing the flexibility of monitoring area configuration and improving user experience.
[0125] In another embodiment, the regional monitoring method further includes: obtaining the execution status of the target device after executing the target control scheme corresponding to the action state; and displaying the execution status of the target control scheme of each monitoring area on the regional monitoring page.
[0126] The execution status includes the completion status of the target action executed by the target device corresponding to the monitoring area, for example, the light corresponding to the sofa area is adjusted from white to yellow.
[0127] Specifically, the electronic device obtains the execution status of the target device after executing the target control scheme corresponding to the action state, and displays the execution status of the target control scheme in each monitoring area on the regional monitoring page. Of course, if there is a target device that does not execute the target control scheme, the electronic device will display the reason for not executing the target control scheme on the regional monitoring page. For example, if the light in the sofa area is not adjusted from white to yellow, the regional monitoring page will display: Not executed, the light is off. This is just an example and does not limit the execution status display scheme of this scheme. It is convenient for users to check and understand the situation of the target device in the monitoring area executing the target control scheme, which improves the user experience.
[0128] In another embodiment, a device control method is provided, wherein the target space is a user's residence, and a client capable of managing the target device is installed on the terminal device. The client can be an application client, and includes a region editing page for customizing the monitoring area of the target space. In response to any region selected on the region editing page, a customized monitoring area is generated. For example, the customized monitoring areas include a wash area, a hallway, a bar counter, and a sofa area (resting area).
[0129] In one embodiment, a millimeter-wave radar sensor is used to obtain target signals of each target object in each monitoring area of the target space. Feature extraction is performed on the target signals to obtain target features corresponding to each target object. The target features corresponding to each target object are then classified using a trained state detection model to obtain probabilities corresponding to each action state. Based on the probabilities of each action state, the action state of each target object is obtained. The training of the state detection model is described in the aforementioned embodiment.
[0130] In one embodiment, the motion state of each target object is obtained by extracting features from target signals corresponding to each target object in each monitoring area of the target space, and performing state classification processing based on the target features obtained for each target object. The specific process of feature extraction is described in the above embodiment.
[0131] In one embodiment, the target signal includes a radar signal; the motion state of each target object is obtained based on Doppler feature extraction of the radar signal corresponding to each target object; the Doppler feature includes at least one of motion intensity, frequency, motion period, Doppler bandwidth, and Doppler offset. The specific process of Doppler feature extraction is described in the above embodiment.
[0132] If the area type of the target space's monitoring area and the motion states of each target object meet the trigger conditions of the target control scheme corresponding to the monitoring area, the electronic device can instruct the target device corresponding to the monitoring area to execute the target action specified in the target control scheme. For example, if the electronic device detects at least one target object in the wash area as falling, it can control the alarm device to issue a warning. If the electronic device detects at least one target object in the hallway as moving, moving toward the room and away from the hallway, it can control the corresponding lights to turn off and the audio device to issue a door-closing reminder. If the electronic device detects at least one target object moving toward the door and disappearing from the hallway, it can turn off the indicator lights and issue a door-closing reminder. If the electronic device detects no target object in the sofa area within a preset time, or detects a target object but the target object is stationary, it can control the corresponding lights in the sofa area to turn off, adjust the brightness, or change the color of the light. If the electronic device detects a target object in the bar area as slightly moving, it can control the lighting to adjust brightness and the audio device to play music.
[0133] The client's regional monitoring page includes each monitoring area within the target area and displays the action status of the target objects within the monitoring area in real time. After obtaining the execution status of the target control plan corresponding to the action status of the target device, the regional monitoring page displays the execution status of the target control plan for each monitoring area.
[0134] The technical solution of the embodiment of the present application realizes obtaining target features based on the target signal of the target object in the monitoring area, processing the target features through the state detection model to obtain the action state, determining the target control scheme corresponding to the action state, and then controlling the target device corresponding to the monitoring area through the target control scheme, so that the target device performs the target action in the target control scheme. In addition, in the embodiment of the present application, the user can view the action state of the target object and the execution status of the target control scheme in the monitoring area on the regional monitoring page of the client. The user can also customize the monitoring area on the regional editing page, which improves the user experience. The technical solution of the embodiment of the present application realizes controlling the action of the target device corresponding to the monitoring area according to the action state of the target object in the monitoring area, which improves the flexibility and accuracy of the target device control.
[0135] It should be understood that although the various steps in the flow charts of Fig. 2 and Fig. 5 are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless otherwise specified herein, the execution of these steps does not have strict order restrictions, and these steps can be performed in other orders. Moreover, at least a portion of the steps in Fig. 2 and Fig. 5 may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0136] The present application also provides a device control device. Figure 7 is a schematic diagram of the structure of a device control device provided in an embodiment of the present application. The device control device provided in an embodiment of the present application can execute the device control method provided in any embodiment of the present application and has the corresponding functional modules and beneficial effects of the execution method. The device includes: a target feature acquisition module 410, an action state acquisition module 420, and a solution determination module 430; wherein:
[0137] The target feature acquisition module 410 is used to obtain the target features corresponding to each target object in each monitoring area of the target space; the action state acquisition module 420 is used to perform state detection on the target features of each target object to obtain the action state of each target object; the scheme determination module 430 is used to determine the target control scheme corresponding to the action state of each target object according to the action state of each target object, so as to instruct the corresponding target device to execute the target control scheme.
[0138] In one embodiment, the target feature acquisition module 410 is further configured to: acquire target signals corresponding to each target object in each monitoring area of the target space; perform feature extraction on the target signals to obtain target features corresponding to each target object;
[0139] The action state acquisition module 420 is further configured to perform state classification processing on the target features of each target object to obtain the action state of each target object.
[0140] In one embodiment, the target signal includes a radar signal; the target feature acquisition module 410 is further used to: extract Doppler features of the radar signal corresponding to each target object to obtain the Doppler features corresponding to the radar signal; obtain the target features corresponding to each target object based on the Doppler features; the Doppler features include at least one of motion intensity, frequency, motion period, Doppler bandwidth and Doppler offset.
[0141] In one embodiment, the action state acquisition module 420 is also used to: for the target features corresponding to each target object, perform state classification processing on the target features corresponding to each target object through the trained state detection model to obtain the probability corresponding to each action state; based on the probability of each action state, determine the action state of each target object.
[0142] In one embodiment, the device also includes: a model training module, which is used to obtain sample target features for the sample target object in different action states, and generate sample sets corresponding to each action state based on each sample target feature; each sample set includes positive samples for the current action state and negative samples for other than the current action state, as well as corresponding sample labels; the sample labels include sample labels for positive samples and sample labels for negative samples; through each branch model in the initial model, state detection is performed on the sample target features in the sample set corresponding to each action state, and sample state results are obtained respectively; based on the difference between each sample state result and the corresponding sample label, the model parameters of each branch model in the initial model are adjusted and training is continued until the training conditions are met and the training is stopped to obtain a trained state detection model.
[0143] In one embodiment, the scheme determination module 430 is also used to: if the action status of each target object under the monitoring area of the target space meets the trigger condition in the target control scheme corresponding to the monitoring area, then instruct the corresponding smart device to execute the target action in the target control scheme.
[0144] In one embodiment, each monitoring area of the target space includes a corresponding area type;
[0145] The solution determination module 430 is also used to: if the area type of the monitoring area and the action status of each target object meet the trigger conditions in the target control solution corresponding to the monitoring area, then instruct the corresponding target device to execute the target action in the target control solution.
[0146] In one embodiment, the action state includes an action category and a motion direction; the solution determination module 430 is further configured to determine a target control solution corresponding to the action state of each target object according to the action category and motion direction of each target object.
[0147] The equipment monitoring device of the embodiment of the present application obtains the target features corresponding to each target object in each monitoring area of the target space, performs state detection on the target features of each target object, obtains the action state of each target object, and determines the target control scheme corresponding to the action state of each target object based on the action state of each target object. Then, the target device corresponding to the monitoring area is controlled according to the target control scheme to achieve control of the target device. The technical solution of the embodiment of the present application achieves control of the target device corresponding to the monitoring area according to the action state of at least one target object in the monitoring area, thereby improving the flexibility of target device control. Since the target control scheme is determined according to the action state of the target object, the accuracy of target device control is improved.
[0148] In another embodiment of the present application, a region monitoring device is provided. FIG8 is a schematic structural diagram of a region monitoring device provided in an embodiment of the present application. The region monitoring device provided in an embodiment of the present application can execute the region monitoring method provided in any embodiment of the present application and has the corresponding functional modules and beneficial effects of the execution method. The device includes: a page display module 510 and an action status display module 520; wherein:
[0149] The page display module 510 is used to display the area monitoring page; the area monitoring page includes various monitoring areas corresponding to the target space; the action status display module 520 is used to display the action status of each target object in real time in the corresponding monitoring area in the area monitoring page; the action status of each target object is obtained based on the identification of the target features corresponding to each target object; the action status of each target object is used to instruct the corresponding target device to execute the target control plan corresponding to the action status.
[0150] In one embodiment, the apparatus further comprises: a page display module for displaying a region editing page; the region editing page is used to customize the monitoring region of the target space;
[0151] The monitoring area generation module is used to generate a customized monitoring area in response to any area selected on the area editing page.
[0152] In one embodiment, the device also includes: an execution status acquisition module, which is used to obtain the execution status of the target device after executing the target control scheme corresponding to the action state; and an execution status display module, which is used to display the execution status of the target control scheme of each monitoring area on the area monitoring page.
[0153] In one embodiment, the motion state of each target object is obtained by extracting features of target signals corresponding to each target object in each monitoring area of the acquired target space, and performing state classification processing according to the obtained target features of each target object.
[0154] In one embodiment, the target signal includes a radar signal; the motion state of each target object is obtained based on Doppler feature extraction of the radar signal corresponding to each target object and the obtained Doppler feature; the Doppler feature includes at least one of motion intensity, frequency, motion period, Doppler bandwidth and Doppler offset.
[0155] The technical solution of the embodiment of the present application displays the regional monitoring page and displays the action status of each target object in real time in the corresponding monitoring area of the regional monitoring page. The user can check the regional monitoring page at any time to see whether there is a target object in the monitoring area and what the action status of the target object is, thereby improving the user experience.
[0156] It is worth noting that the various modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the various functional modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the embodiments of this application.
[0157] In another embodiment of the present application, an electronic device is provided. Figure 9 is a schematic diagram of the structure of an electronic device provided in the embodiment of the present application. The electronic device 50 shown in Figure 9 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present application.
[0158] As shown in Figure 9, electronic device 50 is a general-purpose computing device. Components of electronic device 50 may include, but are not limited to, one or more processors or processing units 501, system memory 502, and a bus 503 connecting various system components (including system memory 502 and processing unit 501).
[0159] Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0160] The electronic device 50 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 50, including volatile and non-volatile media, removable and non-removable media.
[0161] The system memory 502 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. The electronic device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 506 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 9 , commonly referred to as a “hard drive”). Although not shown in FIG. 9 , a disk drive for reading and writing to a removable non-volatile disk (such as a “floppy disk”) and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 503 via one or more data medium interfaces. The memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0162] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in memory 502. Such program modules 507 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 507 generally implement the functions and / or methods of the embodiments described herein.
[0163] The electronic device 50 may also communicate with one or more external devices 509 (e.g., a keyboard, pointing device, display 510, etc.), one or more devices that enable a user to interact with the electronic device 50, and / or any device that enables the electronic device 50 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may occur via an input / output (I / O) interface 511. Furthermore, the electronic device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 512. As shown, the network adapter 512 communicates with other modules of the electronic device 50 via a bus 503. It should be understood that, although not shown in FIG. 9 , other hardware and / or software modules may be used in conjunction with the electronic device 50, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0164] The processing unit 501 executes various functional applications and data processing by running the programs stored in the system memory 502, such as implementing the device control method and / or area monitoring method provided in the embodiments of the present application.
[0165] In one embodiment, an electronic device is provided, comprising: one or more processors; a memory for storing one or more programs; and when the one or more programs are executed by the one or more processors, the one or more processors implement the device control method and / or area monitoring method described above. For specific definitions of the electronic device, please refer to the definitions of the device control method and / or area monitoring method in the above embodiments and will not be repeated here.
[0166] In one embodiment, a computer program product or computer program is provided. The computer program product or computer program includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of the device control method and / or the area monitoring method in the above-described method embodiments.
[0167] In one embodiment, a computer-readable storage medium is provided, storing computer-readable instructions thereon. When executed by a processor, the computer-readable instructions implement the steps described in the above method embodiments. For specific definitions of the steps, refer to the definitions of the device control method and / or the area monitoring method in the respective method embodiments and are not further detailed here.
[0168] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0169] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0170] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A device control method, executed by an electronic device, comprising: Obtain the target features corresponding to each target object in each monitoring area of the target space; Performing state detection on target features of each target object to obtain the action state of each target object; According to the action state of each target object, a target control scheme corresponding to the action state of each target object is determined to instruct the corresponding target device to execute the target control scheme.
2. The method according to claim 1, wherein The acquiring of target features corresponding to each target object in each monitoring area of the target space includes: Obtain the target signal corresponding to each target object in each monitoring area of the target space; Extracting features of the target signal to obtain target features corresponding to each target object; The performing state detection on the target features of each target object to obtain the action state of each target object includes: The target features of each target object are respectively classified and processed to obtain the action state of each target object.
3. The method according to claim 2, wherein: The target signal includes a radar signal; and extracting features from the target signal to obtain target features corresponding to each target object includes: Performing Doppler feature extraction on the radar signal corresponding to each target object to obtain the Doppler feature corresponding to the radar signal; the Doppler feature includes at least one of motion intensity, frequency, motion period, Doppler bandwidth and Doppler offset; According to the Doppler characteristics, target features corresponding to each target object are obtained.
4. The method according to claim 1, wherein The performing state detection on the target features of each target object to obtain the action state of each target object includes: For the target features corresponding to each target object, the trained state detection model is used to perform state classification processing on the target features corresponding to each target object, and the probability corresponding to each action state is obtained; Based on the probability of each action state, the action state of each target object is determined.
5. The method according to claim 4, wherein The state detection model is obtained through a model training step, and the model training step includes: Obtaining sample target features for the sample target object in different action states, and generating sample sets corresponding to each action state based on each sample target feature; each sample set includes a positive sample for the current action state and a negative sample for a state other than the current action state, as well as corresponding sample labels; the sample labels include a sample label for the positive sample and a sample label for the negative sample; Through each branch model in the initial model, the state detection of the sample target features in the sample set corresponding to each action state is performed respectively to obtain the sample state results; Based on the difference between each sample state result and the corresponding sample label, the model parameters of each branch model in the initial model are adjusted and training is continued until the training conditions are met, and the training is stopped to obtain a trained state detection model.
6. The method according to claim 1, wherein The step of determining a target control scheme corresponding to the action state of each target object according to the action state of each target object includes: If the action status of each target object in the monitoring area of the target space meets the triggering condition in the target control scheme corresponding to the monitoring area, the corresponding target device is instructed to execute the target action in the target control scheme.
7. The method according to claim 6, wherein: Each monitoring area of the target space includes a corresponding area type; if the action state of each target object in the monitoring area of the target space satisfies the trigger condition in the target control scheme corresponding to the monitoring area, instructing the corresponding target device to execute the target action in the target control scheme, including: If the area type of the monitoring area and the action status of each target object meet the triggering conditions in the target control scheme corresponding to the monitoring area, the corresponding target device is instructed to execute the target action in the target control scheme.
8. The method according to claim 6, wherein: The action state includes an action category and a motion direction; and determining a target control scheme corresponding to the action state of each target object according to the action state of each target object includes: According to the motion category and motion direction of each target object, a target control scheme corresponding to the motion state of each target object is determined.
9. A method for monitoring an area, performed by an electronic device, comprising: Displaying a regional monitoring page; the regional monitoring page includes monitoring areas corresponding to the target space; In the corresponding monitoring area of the area monitoring page, the action status of each target object is displayed in real time; the action status of each target object is obtained based on the recognition of the target features corresponding to each target object; The action state of each target object is used to instruct the corresponding target device to execute a target control solution corresponding to the action state.
10. The method according to claim 9, wherein: The method further comprises: Displays the area editing page; the area editing page is used to customize the monitoring area of the target space; In response to any area selected on the area editing page, a customized monitoring area is generated.
11. The method according to claim 9, wherein The method further comprises: Obtaining the execution status of the target device after executing the target control scheme corresponding to the action state; The regional monitoring page displays the execution status of the target control plan for each monitoring area.
12. The method according to claim 9, wherein The action state of each target object is obtained by extracting features of target signals corresponding to each target object in each monitoring area of the acquired target space, and performing state classification processing according to the obtained target features of each target object.
13. The method according to claim 12, wherein: The target signal includes a radar signal; the motion state of each target object is obtained based on Doppler feature extraction of the radar signal corresponding to each target object and the obtained Doppler feature; the Doppler feature includes at least one of motion intensity, frequency, motion period, Doppler bandwidth and Doppler offset.
14. A device control apparatus, wherein: include: The target feature acquisition module is used to obtain the target features corresponding to each target object in each monitoring area of the target space; An action state acquisition module is used to perform state detection on target features of each target object to obtain the action state of each target object; The scheme determination module is used to determine the target control scheme corresponding to the action state of each target object according to the action state of each target object, so as to instruct the corresponding target device to execute the target control scheme.
15. The apparatus of claim 10, wherein: The action state acquisition module is further used for: For the target features corresponding to each target object, the state classification processing is performed on the target features corresponding to each target object through the trained state detection model to obtain the probability corresponding to each action state; based on the probability of each action state, the action state of each target object is determined.
16. An area monitoring device, wherein: The device includes a page display module and an action status display module; A page display module is used to display a regional monitoring page; the regional monitoring page includes each monitoring area corresponding to the target space; The action status display module is used to display the action status of each target object in real time in the corresponding monitoring area of the area monitoring page; the action status of each target object is obtained based on the recognition of the target features corresponding to each target object; The action state of each target object is used to instruct the corresponding target device to execute the target control scheme corresponding to the action state.
17. The apparatus of claim 16, wherein: The device further comprises: The page display module is used to display the area editing page; the area editing page is used to customize the monitoring area of the target space; The monitoring area generation module is used to generate a customized monitoring area in response to any area selected on the area editing page.
18. An electronic device comprising: one or more processors; a memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the steps of the area monitoring method as described in any one of claims 1 to 13.
19. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the area monitoring method according to any one of claims 1 to 13 are implemented.
20. A computer program product comprising computer-readable instructions, wherein when the computer-readable instructions are executed by a processor, the steps of the area monitoring method according to any one of claims 1 to 13 are implemented.
Citation Information
Patent Citations
Detection system and method and wave beam emitter
CN108398681A
Equipment control method and system and network side equipment
CN111010321A
State detection method and device, electronic equipment and storage medium
CN111240217A
Intelligent household electrical appliance control interaction system based on scene change and control method thereof
CN112947102A
Smart home control method, display method, system and device and electronic equipment
CN113110091A
