Device control method, device, electronic device and storage medium

By acquiring and detecting the characteristics and action states of target objects in the target space, and determining the corresponding control scheme, the problem of low accuracy in automatic control of existing equipment is solved, flexible and precise equipment control is achieved, and the user experience is improved.

CN116400610BActive Publication Date: 2024-10-29SHENZHEN LUMIUNITED TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310438320.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-29
Estimated Expiration
2043-04-18

AI Technical Summary

Technical Problem

Existing equipment automation control methods are not very accurate and can only be limited to some equipment. They cannot achieve flexible equipment control and the user experience is not high.

Method used

By obtaining the target characteristics of each target object in each monitoring area of ​​the target space, state detection is performed based on the target characteristics, the action state of the target object is obtained, and the corresponding target control plan is determined based on the action state, and the target device is instructed to perform control actions.

Benefits of technology

It improves the flexibility and accuracy of device control, realizes automatic adjustment of the device according to the user's action status, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116400610B_ABST
    Figure CN116400610B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a device control method, apparatus, electronic device and storage medium. The method comprises: obtaining target features corresponding to each target object in each monitoring area of ​​the target space; performing state detection on the target features of each target object to obtain the action state of each target object; and determining 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. The technical solution of the embodiments of the present invention realizes the control of the target device corresponding to the monitoring area according to the action state of the target object, improves the accuracy of automatic control of the target device, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of signal processing technology, and in particular to a device control method, device, electronic device and storage medium. Background Art

[0002] 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.

[0003] For example, smart doors, lamps, air conditioners, refrigerators, televisions, sweeping robots, range hoods and other equipment in home settings have made people's lives more convenient.

[0004] The existing technology can realize basic automatic control of equipment, for example, human infrared sensor lamp, when a person or a warm object enters the module sensing range, the sensor module outputs a high-level pulse signal or a high-level delay signal to drive the sensor lamp to power on. However, this device control method is limited to some devices, and the device is regulated according to whether a person or a warm object enters or leaves the module sensing range, and the accuracy of device control is poor. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a device control method, apparatus, electronic device and storage medium to solve the problem of low accuracy of automatic control of the device.

[0006] In a first aspect, an embodiment of the present invention provides a device control method, the method comprising:

[0007] Obtain 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] In a second aspect, an embodiment of the present invention further provides a method for regional monitoring, the method comprising:

[0011] Displaying a regional monitoring page; the regional monitoring page includes each monitoring area 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 scheme corresponding to the action status.

[0013] In a third aspect, an embodiment of the present invention further provides a device control apparatus, the device comprising:

[0014] A target feature acquisition module is used to acquire 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] Preferably, in the embodiment of the present invention, the target feature acquisition module is also used for:

[0018] Obtain 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;

[0019] The action status acquisition module is also used to:

[0020] The target features of each target object are respectively classified and processed to obtain the action state of each target object.

[0021] Preferably, in the embodiment of the present invention, the action state acquisition module is further used for:

[0022] 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.

[0023] Preferably, in an embodiment of the present invention, the device further comprises:

[0024] The model training module is used to obtain sample target features for sample target objects 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 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.

[0025] Preferably, in the embodiment of the present invention, the solution determination module is further used for:

[0026] 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 smart device is instructed to execute the target action in the target control scheme.

[0027] Preferably, in an embodiment of the present invention, each monitoring area of ​​the target space includes a corresponding area type;

[0028] The solution determination module is also used to:

[0029] 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.

[0030] In a fourth aspect, an embodiment of the present invention further provides a regional monitoring device, the device comprising:

[0031] A page display module, used to display a regional monitoring page; the regional monitoring page includes each monitoring area corresponding to the target space;

[0032] 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.

[0033] Preferably, in an embodiment of the present invention, the device further comprises:

[0034] 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;

[0035] The monitoring area generation module is used to generate a custom monitoring area in response to any area selected on the area editing page.

[0036] Preferably, in an embodiment of the present invention, the device further comprises:

[0037] The execution status acquisition module is used to obtain the execution status of the target device after executing the target control scheme corresponding to the action state; the execution status display module is used to display the execution status of the target control scheme of each monitoring area on the area monitoring page.

[0038] In a fifth aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0039] one or more processors;

[0040] A storage device for storing one or more programs;

[0041] When the one or more programs are executed by the one or more processors, the one or more processors implement the steps of the device control method in any embodiment of the present invention and / or the area monitoring method in any embodiment of the present invention.

[0042] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the device control method of any of the embodiments of the present invention and / or the steps in the area monitoring method of any of the embodiments of the present invention.

[0043] In the seventh aspect, an embodiment of the present invention further provides a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, it implements the steps in the device control method of any embodiment of the present invention and / or implements the steps in the area monitoring method of any embodiment of the present invention.

[0044] The technical solution of the embodiment of the present invention 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, determines the target control scheme corresponding to the action state of each target object according to the action state of each target object, and then controls the target device corresponding to the monitoring area according to the target control scheme to achieve control of the target device. The technical solution of the embodiment of the present invention 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, and does not require the user to manually press the switch to adjust the electrical equipment, nor does it require the user to adjust the electrical equipment through a software program. The control scheme of the electrical equipment can be obtained only according to the user's action state, thereby improving the flexibility of the target device control. Since the target control scheme is determined according to the action state of the target object, the accuracy of the target device control is improved, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] in:

[0047] Figure 1 An exemplary diagram of an implementation environment in one embodiment;

[0048] Figure 2 is a flow chart of a device control method in one embodiment;

[0049] Figure 3 is a schematic diagram of a Doppler-time spectrum in one embodiment;

[0050] Figure 4 A schematic diagram of the division of area types of a monitoring area in an embodiment;

[0051] Figure 5 is a schematic flow chart of a regional monitoring method in one embodiment;

[0052] Figure 6 is a schematic diagram of a regional monitoring page in one embodiment;

[0053] Figure 7 is a schematic structural diagram of a device control device in one embodiment;

[0054] Figure 8is a schematic structural diagram of a regional monitoring device in one embodiment;

[0055] Fig. 9 FIG. 1 is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] Before describing the technical solution of the embodiment of the present invention, the application scenario of the embodiment of the present invention is first exemplarily described:

[0058] At present, the automatic control method of the equipment is relatively simple, and the opening or closing of the equipment is usually controlled by identifying whether there are people or objects with temperature. Moreover, this control method can only be limited to some equipment. In addition, the opening or closing of the equipment is judged by whether there are people or objects with temperature, and the control method of the equipment is single, and it is impossible to achieve flexible control of the equipment, and the user experience is not high. In view of this, an embodiment of the present invention provides a device control method, by obtaining the target characteristics of each target object under each monitoring area, obtaining the action state of the target object according to the target characteristics, and determining the target control scheme corresponding to the action state of the target object according to the target action state, and then instructing 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 invention 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.

[0059] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0060] Figure 1 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 the implementation environment includes a sensor 10, a terminal device 11, a cloud 12, a gateway device 13, a router 14, and a device 15.

[0061] Specifically, the terminal device 11 can be any intelligent device with a memory and storage function, such as: smart phones, tablet computers, laptops, desktop computers and other electronic devices with network connection functions, which are not limited here. The cloud 12 can be a network access server, a database server, a cloud server, etc. Optionally, the gateway device 13 can be built based on the ZigBee protocol, and the device 15 can be controlled by the sensor 10 or the terminal device 11 or the cloud 12, and can be pre-added to the gateway device 13. For example, the device 15 can be a device in the kit to which the gateway device 13 belongs when the gateway device 13 leaves the factory; it can also be a device that is subsequently connected to the gateway device 13 through user operation.

[0062] Optionally, 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.

[0063] Optionally, the sensor 10 may establish a network connection with the gateway device 13 based on the ZigBee protocol, thereby joining the ZigBee network.

[0064] Optionally, the sensor 10, the terminal device 11 and the device 15 can be connected to the Ethernet through the gateway device 13, and the gateway device 13 can be connected to the cloud 12 through a wired or wireless communication connection. For example, the gateway device 13 and the terminal device 11 can store the acquired information in the cloud 12. Optionally, the terminal device 11 can also establish a network connection with the cloud 12 through 2G / 3G / 4G / 5G, WiFi, etc., so as to obtain data sent by the cloud 12.

[0065] Optionally, 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 through the local area network path; or may interact with the gateway device 13 and the sensor 10 connected to the gateway device 13 through the 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 through the wide area network path. The device 15 may include, but is not limited to, smart home products such as smart lamps, automatic curtains, and air conditioners.

[0066] The target control scheme refers to a linkage application scheme constructed 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). The two can be connected by communication 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. The controlled device can be various switches, televisions, sockets, electric lights and other devices 15.

[0067] Assume that the Internet of Things system sets up an automatic control scheme: in 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, the radar sensor can be set as a trigger device, and the smart switch connected to the lamp can be set as a controlled device. The specific execution principle is: if the automatic execution is performed locally at the gateway through the LAN 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 the gateway receives the action state of the target object, it determines that the action state is static according to 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. Thereby, an automatic linkage is achieved, 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 in 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.

[0068] like Figure 2 As shown, an embodiment of the present invention provides a device control method. The device control method of the embodiment of the present invention can be executed by a device control apparatus, and the apparatus can be implemented in the form of software and / or hardware.

[0069] like Figure 2 As shown, the device control method of the embodiment of the present invention specifically includes the following steps:

[0070] S110: Obtain target features corresponding to each target object in each monitoring area of ​​the target space.

[0071] 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 object includes but is not limited to a person or a living animal. The target feature refers to a feature corresponding to the target object, such as a position feature of a body part or a motion feature of a limb, etc. For example, if the target object is a human body, the target feature may be a position feature of the head or a position feature of the buttocks. For example, if the head is on the ground and / or the buttocks are on the ground within a preset fall duration, the action state is a fall. By obtaining the target feature, the foundation can be laid for subsequently obtaining the action state of the target object based on the target feature.

[0072] Specifically, the target features corresponding to each target object in each monitoring area in the target space are obtained. The electromagnetic wave signal of the target object can be obtained by electromagnetic wave, and the target features can be determined based on the electromagnetic wave signal.

[0073] S120: Perform state detection on target features of each target object to obtain the action state of each target object.

[0074] Among them, the action state refers to the state of movement of the target object, including walking, falling, stillness, micro-movement and running. For example, walking: the horizontal movement of the target object within the preset walking time, 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.

[0075] Specifically, the state of the target features of each target object is detected to obtain the action state of each target object, so that a target control scheme can be obtained according to the action state of the target object, and then the target device corresponding to the monitoring area where the target object is located can be controlled according to the target control scheme.

[0076] S130 . Determine a 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 a corresponding target device to execute the target control scheme.

[0077] Among them, the target device refers to the device corresponding to the monitoring area, and the equipment includes air conditioners, refrigerators, lights, sweeping robots, range hoods, etc. For example, the monitoring area is the kitchen, and the target devices include kitchen lights, range hoods, and dishwashers. The target control scheme refers to a scheme for controlling the target devices corresponding to the monitoring area and performing corresponding actions / operations. 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 target action is performed on the target device corresponding to the monitoring area to achieve automated operation of the target device. The target device controlled by the target control scheme can be in the monitoring area. For example, if the monitoring area is the 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 the porch, the target control scheme corresponding to the monitoring area: adjust the brightness of the lights in the porch according to the action state of at least one target object in the porch and control the switch of the air conditioner in the living room.

[0078] Specifically, according to the action state of each target object, the target control scheme corresponding to the action state of each target object is determined, and then the corresponding target device is instructed to execute the target control scheme according to the target control scheme. The embodiment of the present invention realizes determining the control scheme of the target device corresponding to the monitoring area according to the action state of at least one target object located in the monitoring area, and then realizing the control of the target device. For example, the monitoring area is a rest area, and the action state of each target object is a static state. The target control scheme corresponding to the static state is to dim the brightness of the lights in the rest area. In this way, the user does not need to manually adjust the brightness of the lights, thereby improving the user experience.

[0079] The technical solution of the embodiment of the present invention 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, determines the target control scheme corresponding to the action state of each target object according to the action state of each target object, and then controls the target device corresponding to the monitoring area according to the target control scheme to achieve control of the target device. The technical solution of the embodiment of the present invention 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.

[0080] In another embodiment of the present invention, 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.

[0081] 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.

[0082] Specifically, the target signal of each target object in each monitoring area is obtained, and the target signal is feature extracted to obtain the target feature corresponding to each target object. In the case where the target signal is a radar electromagnetic wave signal, the radar electromagnetic wave signal is converted into a micro-Doppler signal, and the feature of the converted micro-Doppler signal is extracted to obtain the target feature. The target features of each target object are respectively subjected to state classification processing to obtain the action state of each target object. Optionally, the target features of each target object are subjected to state classification processing through a pre-trained classification model to obtain the action state of each target object. The classification model can be a naive Bayes 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, and the like. The radar electromagnetic wave signal of the target object obtained by the radar electromagnetic wave can more accurately describe the target object, so that the information of the target features of the target object obtained subsequently is richer, thereby improving the accuracy of the action state determined according to the target feature.

[0083] In an embodiment of the present invention, a millimeter wave radar sensor is used to obtain radar electromagnetic wave signals in each monitoring area of ​​the target space, and the frequency band and structure of the millimeter wave radar are not limited. When a target object is detected to enter the monitoring area, the radar electromagnetic wave signal of the target object is extracted to obtain at least the horizontal coordinate and the vertical coordinate of the target object parallel to the horizontal plane. The radar electromagnetic wave signal of each target object is converted into a micro-Doppler signal, and the micro-Doppler signal is feature extracted.

[0084] For example, within a detection cycle of t seconds, the location information of the target object is obtained, marked as (x, y), and the speed Doppler of the radar electromagnetic wave signal of the target object is continued to be calculated, marked as S1. After a period of T seconds, the speed Doppler is accumulated from S1 to SN to obtain the Doppler-time spectrum, that is, the micro-Doppler spectrum. Figure 3As shown, 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 next largest peak is taken as P2 and F2, and the motion period ΔF=|F1-F2| of the target object can be obtained.

[0085] The peak of the waveform curve Q2 is taken to form the upper envelope curve Q1, and the trough of the waveform curve Q2 is taken to form the lower envelope curve Q3. The peak of the upper envelope curve Q1 corresponds to the Doppler frequency F11, and the trough corresponds to the Doppler frequency F12. The peak of the lower envelope curve Q3 corresponds to the Doppler frequency F31, and the trough corresponds to the Doppler frequency F32. The total Doppler signal bandwidth B1 of the target object is calculated as |F11-F12|, and the total Doppler offset O1 of the target object is calculated as |F31-F32| / 2.

[0086] The characteristic vectors in the micro-Doppler map of the target object include: 1. the intensity P1 and frequency F1 of the main motion Doppler of the target; 2. the motion period ΔF of the target; 3. the total Doppler bandwidth B1 of the target; 4. the total Doppler offset O1 of the target.

[0087] The above-mentioned feature vector is a feature vector of each action state. The target feature obtained by the micro-Doppler signal, that is, the feature vector has richer information, which can make the subsequent action state more accurate.

[0088] In another embodiment of the present invention, state detection is performed on 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.

[0089] Among them, the state detection model is a pre-trained model that realizes the classification of target features.

[0090] Specifically, 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, and the action state of each target object is determined based on the probability of each action state. Optionally, the action state with the highest probability value among the probability values ​​of the target feature belonging to each action state is used 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 invention, the target features of the target object are 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.

[0091] In another embodiment of the present invention, the state detection model is obtained through a model training step, and the model training step includes: obtaining sample target features for sample target objects 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 other than the current action state, and 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.

[0092] The initial model has classification conditions, including but not limited to support vector machines. The training conditions may refer to the convergence of model parameters and fluctuations within a preset parameter range for several times, or the model parameters reaching a preset threshold, etc.

[0093] Specifically, sample target features for sample target objects in different action states are obtained, and sample sets corresponding to each action state are generated according to each sample target feature, each sample set including a positive sample of the current action state and a negative sample other than the current action state, and a corresponding sample label. For example, if the current action state is falling, the positive sample is the sample target feature of falling. The negative sample is the sample target feature of other action states except falling. The negative sample has a unique corresponding sample label, and the positive sample has a unique corresponding sample label. Through each branch model in the initial model, the state detection is performed on the sample target features in the sample set corresponding to each action state, and the sample state results are obtained respectively. For each sample state result, according to the difference between each sample state result and the corresponding sample label, the model parameters of each branch model of the initial model are adjusted, and then the training is repeated. When the training conditions are met, the training is stopped to obtain a state detection model. The method of the embodiment of the present invention 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.

[0094] For example, the human body is used as the target object, and the radar electromagnetic wave signals of the target object in motion, stillness, micro-motion and falling are collected respectively. The micro-Doppler signals in various motion states are calculated, including intensity, frequency, period, bandwidth and offset, etc. The sample set includes sample labels of four motion states, and a feature vector composed of micro-Doppler features corresponding to each sample label.

[0095] The label may include {movement, stillness, slight movement, fall}. The feature vector may include {Doppler intensity and frequency of the target object motion, the target object motion cycle, the total Doppler bandwidth of the target object, the total Doppler offset of the target object}. The sample set is divided into a training set and a test set. Optionally, in an embodiment of the present invention, 80% of the sample set is used as a training set and 20% of the sample set is used as a test set.

[0096] Extract part of the training set according to the label and train 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 steps.

[0097] The feature vector corresponding to the motion 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 motion, 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, motion, 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 motion are the negative sample set.

[0098] The number of branch models of the initial model is determined according to the number of motion labels, and the branch models are trained using a partial training set corresponding to each motion label. After the training of each branch model is completed, a state detection model is obtained.

[0099] Exemplarily, the initial model is an SVM classifier, and the expression of the SVM classifier includes:

[0100] w T X i +b-1≥+1, if y i =+1

[0101] w T X i +b-1≤-1, if y i =-1

[0102] Among them, X i represents the feature vector, y i represents 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.

[0103] 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.

[0104] The loss function can be expressed as:

[0105]

[0106] Among them, X i represents the feature vector, y i represents 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 weigh the empirical risk and structural risk to increase the penalty for a certain item. It is usually agreed that the model training will end with a probability of 95%.

[0107] In order to ensure the accuracy of the SVM classifier, a nonlinear kernel function, namely the Gaussian kernel function, is used, and the expression is:

[0108]

[0109] X1 represents the feature vector in the positive sample set, X2 represents the feature vector in the negative sample set, k() represents the Gaussian kernel function, σ represents the variance of the feature vector of the positive sample set and the feature vector 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.

[0110] SVM classifiers include linear classifiers and nonlinear classifiers. Gaussian function is a kernel function selected for SVM classifier training. Gaussian kernel function can satisfy nonlinear classification. Gaussian kernel function is a function of training model that can convert nonlinear classification into linear classification. Its function is to better fit the classifier.

[0111] That is, if the training of the branching model requires input items, 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.

[0112] When acquiring the action state of the target object, the radar electromagnetic wave signal of the target object is acquired, and the micro-Doppler signal is acquired based on the radar electromagnetic wave signal, and the target features in the micro-Doppler signal, that is, the feature vector, are extracted. The feature vector is processed by the state detection model, that is, the feature vector is processed by four trained branch models to obtain four results, and the action state corresponding to the result with the highest probability value is taken as the action state of the target object.

[0113] In the embodiment of the present invention, the initial model adds a loss function during training to avoid the overfitting of the initial model affecting the generalization ability. In addition, the initial model uses a nonlinear kernel function, namely a Gaussian kernel function, to improve the accuracy of the classifier. During training, the branch model is trained using a sample set under each action state, thereby making the obtained state detection model more targeted, and when determining the action state of the target object, the accuracy of the action state determination can be improved.

[0114] In another embodiment of the present invention, a 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.

[0115] Among them, the trigger condition can be set according to the characteristics of the monitoring area. For example, in the 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 volume of the TV is turned down. Of course, before instructing the corresponding electrical equipment to execute the target action, it is first determined whether the target device meets the conditions for executing the target action. For example, first determine whether the light is turned on. If it is turned on, adjust the brightness or color of the light. For example, determine whether the TV is turned on. If it is turned on, determine whether the volume of the TV is greater than the preset volume threshold. If it is greater than the preset volume threshold, adjust the volume to the bass volume threshold, etc. The target action is determined according to the state of the target device, including turning on, turning 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.

[0116] Specifically, in the embodiment of the present invention, it is determined whether the action state of each target object under each monitoring area of ​​the target space satisfies the trigger condition in the target control scheme corresponding to the monitoring area. If so, the corresponding target device is instructed to execute the target action in the target control scheme. The technical solution in the embodiment of the present invention determines the target action according to whether the action state satisfies the trigger condition, thereby improving the flexibility of the target control scheme and making the control of the target device corresponding to the monitoring area more flexible.

[0117] In another embodiment of the present invention, 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.

[0118] The area type can be customized according to the target space. For example, if the target space is a factory, the area types include office, workshop, corridor, etc. If the target space is a residential house, the area types include rest area, porch, kitchen, washing area, balcony, etc.

[0119] Specifically, if the area type of the monitoring area and the action state of the target object meet the triggering conditions of the target control scheme corresponding to the monitoring area, the target device is instructed to perform the target action. The target action in the target control scheme is determined based on the area type and the action state of the target object in the monitoring area, making the target action more targeted and improving the control accuracy of the target device.

[0120] For example, Figure 4 As shown, in an embodiment of the present invention, each monitoring area in the target space 005 is divided into three area types: washing area 004, porch 003 and rest area 002. The trigger conditions include: the area type of the monitoring area is washing area 004, and the action state is falling. The target device corresponding to the washing 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 of 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 porch 003, and the action state is motion. If the area type of the monitoring area is porch 003, and the action state of at least one target object in the porch 003 is motion, the indicator light is turned on or off, and a door closing prompt voice is issued.

[0121] Optionally, when it is detected that the movement direction of at least one target object is toward the room, the indicator light is turned on, and the audio device is controlled to issue a voice prompt to close the door. When it is detected that the movement direction of at least one target object is toward the door, the indicator light is turned off, and the audio device is controlled to issue a voice prompt to close the door. The trigger condition also includes: 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 devices. 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 TV reduces the volume, the air conditioner wind speed is reduced, the audio device reduces the volume, and the lights reduce the brightness. The solution of the embodiment of the present invention can achieve targeted response to the action state of target objects in various area types, and control the target devices corresponding to the monitoring area when the action state meets the trigger condition.

[0122] In another embodiment of the present invention, a regional monitoring method is provided. The regional monitoring method of the embodiment of the present invention can monitor the region of the target space and provide an interactive interface for the above-mentioned device control method, so that the user can observe the regional monitoring situation. The regional monitoring method of the embodiment of the present invention can be executed by regional monitoring devices of various countries, and the regional monitoring device can be implemented in the form of software and / or hardware.

[0123] like Figure 5 As shown, the regional monitoring method of the embodiment of the present invention includes the following steps:

[0124] S210: Display the regional monitoring page.

[0125] Among them, the regional monitoring page includes various monitoring areas corresponding to the target space.

[0126] Specifically, the regional monitoring page is displayed on the terminal for easy viewing by the user. The terminal includes a mobile terminal, a computer or a tablet computer.

[0127] S220. Display the action status of each target object in real time in the corresponding monitoring area of ​​the area monitoring page.

[0128] 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.

[0129] Specifically, in the corresponding monitoring area of ​​the regional monitoring page, the action status of each target object is displayed in real time, so that the user can check the action status of the target object at any time. Exemplarily, 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. Of course, 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. Figure 6 As shown, 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 still, and the action status of the target object 03 located in the washing area 004 is falling, and there is no target object in the entrance 003.

[0130] The technical solution of the embodiment of the present invention displays the action status of each target object in real time by displaying the regional monitoring page and the corresponding monitoring area in the regional monitoring page. The user can check the regional monitoring page at any time to check 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.

[0131] In another embodiment of the present invention, 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.

[0132] Specifically, the region editing page can be used to customize the monitoring area of ​​the target space. In response to any region in the region editing page, a customized monitoring area is generated. The region editing page has a one-to-one correspondence with the target space, and a customized monitoring area is generated in the region editing page. When a selection operation of any region in the region editing page is detected, the selection operation is responded to and a customized monitoring area is generated. Of course, the location of the monitoring area in the target space, the size of the area, etc. can all be customized.

[0133] Furthermore, the relationship between each target device in the target space and the monitoring area can respond to the relationship setting in the area editing page, for example, device A, monitoring area A, responds to associating device A with monitoring area A, that is, monitoring area A corresponds to device A. The technical solution of the embodiment of the present invention enables the monitoring area to be customized on the area editing page, improves the flexibility of monitoring area configuration, and improves user experience.

[0134] In another embodiment of the present invention, 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.

[0135] 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.

[0136] Specifically, the execution status of the target device after executing the target control scheme corresponding to the action state is obtained, and the execution status of the target control scheme of each monitoring area is displayed on the regional monitoring page. Of course, if there is a target device that does not execute the target control scheme, the reason for not executing the target control scheme is displayed on the regional monitoring page. For example, the light in the sofa area has not been adjusted from white to yellow, and the regional monitoring page displays: 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.

[0137] In another embodiment of the present invention, a device control method is provided, the target space is a user's residence, and a client that can manage the target device is installed in the terminal device. The client can be an application client, and the client includes a region editing page for customizing the monitoring area of ​​the target space, and generates a customized monitoring area in response to any area selected on the region editing page. Exemplarily, the customized monitoring area includes a wash area, a porch, a bar counter, and a sofa area (resting area).

[0138] The target signal of each target object in each monitoring area of ​​the target space is obtained by the millimeter wave radar sensor, and the target signal is feature extracted to obtain the target features corresponding to each target object. 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, and the action state of each target object is obtained based on the probability of each action state. The training of the state detection model is described in detail in the above embodiment and will not be repeated here.

[0139] If the area type of the monitoring area of ​​the target space and the action state of each target object meet the triggering conditions of the target control scheme corresponding to the monitoring area, the target device corresponding to the monitoring area is instructed to execute the target action in the target control scheme. For example, if the action state of at least one target object is detected to be falling in the washing area, the alarm device is controlled to issue an early warning message. If the action state of at least one target object is detected to be moving in the porch, and the movement direction is indoors and leaving the porch, the lamp corresponding to the porch is controlled to turn off the light, and the audio device is controlled to issue a door closing prompt voice. If the movement direction of at least one target object is detected to be toward the door and disappears from the porch, the indicator light is turned off and the audio device is controlled to issue a door closing prompt voice. If no target object is detected within the preset time in the sofa area or the target object is detected and the action state of the target object is stationary, the lamp corresponding to the sofa area is controlled to turn off, adjust the light brightness or color change, etc. If the action state of the target object is detected to be slightly moved at the bar, the brightness of the lamp is controlled to be adjusted and the audio device is controlled to play music, etc.

[0140] The client's regional monitoring page includes each monitoring area within the target area, and can display the action status of the target object in the monitoring area in real time. After obtaining the execution status of the target device executing the target control scheme corresponding to the action status, the regional monitoring page displays the execution status of the target control scheme of each monitoring area.

[0141] The technical solution of the embodiment of the present invention achieves 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 invention, the user can view the action state of the target object and the execution 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 invention achieves 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.

[0142] In another embodiment of the present invention, a device control apparatus is also provided. Figure 7 This is a schematic diagram of the structure of a device control device provided in an embodiment of the present invention. The device control device provided in an embodiment of the present invention can execute the device control method provided in any embodiment of the present invention, 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:

[0143] The target feature acquisition module 410 is used to acquire 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.

[0144] Furthermore, in the embodiment of the present invention, the target feature acquisition module 410 is also used for:

[0145] Obtain 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;

[0146] The action state acquisition module 420 is also used for:

[0147] The target features of each target object are respectively classified and processed to obtain the action state of each target object.

[0148] Furthermore, in the embodiment of the present invention, the action state acquisition module 420 is also used for:

[0149] 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.

[0150] Furthermore, in an embodiment of the present invention, the device further includes:

[0151] The model training module is used to obtain sample target features for sample target objects 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 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.

[0152] Furthermore, in the embodiment of the present invention, the solution determination module 430 is also used to:

[0153] 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 smart device is instructed to execute the target action in the target control scheme.

[0154] Further, in an embodiment of the present invention, each monitoring area of ​​the target space includes a corresponding area type;

[0155] The solution determination module 430 is further used for:

[0156] 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.

[0157] The equipment monitoring device of the embodiment of the present invention 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, determines the target control scheme corresponding to the action state of each target object according to the action state of each target object, and then controls the target device corresponding to the monitoring area according to the target control scheme to achieve control of the target device. The technical scheme of the embodiment of the present invention 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.

[0158] In another embodiment of the present invention, a regional monitoring device is also provided. Figure 8 This is a schematic diagram of the structure of a regional monitoring device provided by an embodiment of the present invention. The regional monitoring device provided by an embodiment of the present invention can execute the regional monitoring method provided by any embodiment of the present invention, 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:

[0159] The page display module 510 is used to display the regional monitoring page; the regional 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 regional 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.

[0160] Furthermore, in an embodiment of the present invention, the device further includes:

[0161] 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;

[0162] The monitoring area generation module is used to generate a custom monitoring area in response to any area selected on the area editing page.

[0163] Furthermore, in an embodiment of the present invention, the device further includes:

[0164] The execution status acquisition module is used to obtain the execution status of the target device after executing the target control scheme corresponding to the action state; the execution status display module is used to display the execution status of the target control scheme of each monitoring area on the area monitoring page.

[0165] The technical solution of the embodiment of the present invention displays the action status of each target object in real time by displaying the regional monitoring page and the corresponding monitoring area in the regional monitoring page. The user can check the regional monitoring page at any time to check 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.

[0166] 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 realized; 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 protection scope of the embodiments of the present invention.

[0167] In another embodiment of the present invention, an electronic device is provided. Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Fig. 9 The electronic device 50 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0168] like Fig. 9 As shown, the electronic device 50 is in the form of a general computing device. The components of the electronic device 50 may include but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 connecting different system components (including the system memory 502 and the processing unit 501).

[0169] 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 structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0170] 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.

[0171] 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. Electronic device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 506 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 not shown, usually called a "hard drive"). Although Fig. 9 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) 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 embodiments of the present invention.

[0172] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in the memory 502, such program modules 507 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 507 generally perform the functions and / or methods of the embodiments described herein.

[0173] The electronic device 50 may also communicate with one or more external devices 509 (e.g., keyboards, pointing devices, displays 510, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 50, and / or communicate with 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 be performed through 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) through a network adapter 512. As shown, the network adapter 512 communicates with other modules of the electronic device 50 through the bus 503. It should be understood that although Fig. 9Not shown, 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.

[0174] 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 the area monitoring method provided in the embodiments of the present invention.

[0175] In another embodiment of the present invention, a computer program product or a computer program is also provided, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, the steps in the device control method of any embodiment of the present invention and / or the steps in the area monitoring method of any embodiment of the present invention are implemented.

[0176] In another embodiment of the present invention, a storage medium containing computer executable instructions is also provided. When the computer executable instructions are executed by a computer processor, they are used to execute the steps in the device control method of any embodiment of the present invention and / or the steps in the area monitoring method of any embodiment of the present invention.

[0177] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0178] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0179] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0180] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0181] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A device control method, characterized in that: include: 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; Performing state detection on target features of each target object to obtain an action state of each target object, wherein the action state represents a state of motion of the target object; Determine, according to the action state of each target object in the corresponding monitoring area, a target control scheme corresponding to the action state of each target object, so as to instruct the corresponding target device to execute the target control scheme; The target control scheme includes a trigger condition and a target action to be executed by the target device, so as to control the corresponding target device to execute the target action when the trigger condition is met.

2. The method according to claim 1, characterized in that 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 1, characterized in that 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 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.

4. The method according to claim 3, characterized in that The state detection model is obtained through a model training step, and the model training step includes: Obtain sample target features for sample target objects in different action states, and generate 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 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, the state detection is performed on the sample target features in the sample set corresponding to each action state, and the 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.

5. The method according to claim 1, characterized in that 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 state of each target object in the monitoring area of ​​the target space meets the trigger 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.

6. The method according to claim 5, characterized in that Each monitoring area of ​​the target space includes a corresponding area type; if the action state of each target object under the monitoring area of ​​the target space satisfies the trigger condition in the target control scheme corresponding to the monitoring area, then 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 of the target objects 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.

7. A regional monitoring method, characterized in that: The method comprises: Displaying a regional monitoring page; the regional monitoring page includes each monitoring area corresponding to the target space; In the corresponding monitoring area of ​​the regional monitoring page, the action state of each target object is displayed in real time; the action state 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 represents the state of movement of the target object in the corresponding monitoring area, and is used to instruct the corresponding target device to execute the target control scheme corresponding to the action state; Among them, the target features corresponding to each target object are obtained by extracting the features of the target signals corresponding to each target object in each monitoring area of ​​the target space; the target control scheme includes a trigger condition and a target action instructing the target device to perform, and when the trigger condition is met, the corresponding target device is controlled to perform the target action.

8. The method according to claim 7, characterized in that The method further comprises: Displaying 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 custom monitoring area is generated.

9. The method according to claim 7, characterized in that: 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.

10. A device control device, characterized in that: include: A target feature acquisition module is used to acquire target signals 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; An action state acquisition module, used to perform state detection on target features of each target object to obtain the action state of each target object, wherein the action state indicates the state of movement of the target object; A scheme determination module, used to determine a target control scheme corresponding to the action state of each target object according to the action state of each target object in the corresponding detection area, so as to instruct the corresponding target device to execute the target control scheme; The target control scheme includes a trigger condition and a target action to be executed by the target device, so as to control the corresponding target device to execute the target action when the trigger condition is met.

11. A regional monitoring device, characterized in that: The device comprises: A page display module, used to display a regional monitoring page; the regional monitoring page includes each monitoring area corresponding to the target space; An action state display module is used to display the action state of each target object in real time in the corresponding monitoring area of ​​the area monitoring page; the action state 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 represents the state of movement of the target object, and is used to instruct the corresponding target device to execute the target control scheme corresponding to the action state; Among them, the target features corresponding to each target object are obtained by extracting the features of the target signals corresponding to each target object in each monitoring area of ​​the target space; the target control scheme includes a trigger condition and a target action instructing the target device to perform, and when the trigger condition is met, the corresponding target device is controlled to perform the target action.

12. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device 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 in the device control method as described in any one of claims 1-6 and / or the steps in the area monitoring method as described in any one of claims 7-9.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the device control method described in any one of claims 1 to 6 and / or the steps in the area monitoring method described in any one of claims 7 to 9 are implemented.

Citation Information

Patent Citations

  • Smart home control method, display method, system and device and electronic equipment

    CN113110091A

  • Device control method, device control apparatus, electronic device, program, and medium

    CN114791704A