Health monitoring method and electronic equipment
Through the health monitoring method based on the human posture detection model, the human posture information of the elderly is identified and transmitted, which solves the problem of privacy leakage during the video data monitoring process, improves security and user experience, and realizes the privacy protection and health of the elderly. monitor.
Patent Information
- Application Number
- CN202310341532.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the process of monitoring the health of the elderly by observing the collected video data cannot effectively protect the portrait privacy and body privacy of the elderly, and non-contact devices have security and user experience issues.
A health monitoring method is adopted to obtain monitoring images, determine the human posture based on the human posture detection model, and send the identified information to the monitoring personnel's equipment to ensure that only human posture information is transmitted, avoiding the leakage of portrait and body privacy, while using Contactless devices for health monitoring.
It effectively protects the privacy of the elderly, improves the security and user experience of health monitoring, and ensures the security and privacy protection of the monitoring process.
Smart Images

Figure CN118717093A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a health monitoring method and electronic equipment. Background Art
[0002] As empty-nest elderly people age, their physiological functions gradually decline and they become increasingly dependent on help from others. Safety and health monitoring becomes a rigid demand, and the requirements for the construction and management of smart communities are also becoming increasingly higher.
[0003] At present, the relevant products for safety and health monitoring of the elderly mainly include: wearable devices and contactless devices. Wearable devices need to directly contact the human body, which may pose safety risks due to problems such as heating or even explosion. In addition, wearable devices need to be charged and worn frequently. If they cannot be worn during the charging process, the health monitoring of the elderly cannot be carried out, which affects the user experience. The sensors of contactless devices mostly use depth cameras or color cameras for video monitoring. Monitoring personnel, such as the children of the elderly, can monitor the activity status of the elderly by observing the directly collected video data. Although contactless devices do not need to contact the human body, and there is no need for frequent charging and wearing operations, the monitoring personnel cannot protect the portrait privacy and body privacy of the elderly by observing the collected video data for monitoring. Summary of the invention
[0004] The embodiments of the present application provide a health monitoring method and electronic device to solve the problem that the monitoring process of observing collected video data in the prior art cannot protect the portrait privacy and body privacy of the elderly.
[0005] In a first aspect, an embodiment of the present application provides a health monitoring method, which is applied to a server, and the method includes:
[0006] Acquire a first monitoring image of the monitored object;
[0007] Determine the human body posture of the monitored object in the first monitoring image based on the human body posture detection model;
[0008] The information of the human body posture corresponding to the first monitoring image is sent to the equipment of the monitoring person corresponding to the monitored object.
[0009] In a second aspect, an embodiment of the present application further provides a health monitoring method, which is applied to a monitoring device, and the method includes:
[0010] Acquire a second monitoring image of the monitored object;
[0011] Encrypting the face area in the second monitoring image to determine the first monitoring image; wherein the first monitoring image is used by the server to determine the human posture of the monitored object based on the human posture detection model;
[0012] The first monitoring image is sent to the server.
[0013] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a processor, wherein the processor is configured to implement the steps of the health monitoring method as described above when executing a computer program stored in a memory.
[0014] In the embodiment of the present application, the first monitoring image of the monitored object is acquired; based on the human posture detection model, the human posture of the monitored object in the first monitoring image is determined; and the information of the human posture corresponding to the first monitoring image is sent to the device of the monitoring person corresponding to the monitored object. In this method, the health of the monitored object is monitored by identifying the human posture of the monitored object, and the identified human posture information is sent to the device of the monitoring person. The device of the monitoring person can only receive the human posture information of the monitored person, and will not involve the portrait privacy and body privacy of the monitored person. Therefore, the portrait privacy and body privacy of the monitored object can be guaranteed. In addition, the method uses a non-contact device to perform health monitoring on the monitored object, thereby improving the security of health monitoring and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 One of the schematic diagrams of a health monitoring process provided in an embodiment of the present application;
[0017] Figure 2 A schematic diagram of the structure of a human joint point detection model provided in an embodiment of the present application;
[0018] Figure 3 A schematic diagram of a standard convolutional network structure provided in an embodiment of the present application;
[0019] Figure 4 A schematic diagram of a deep separable convolutional network structure provided in an embodiment of the present application;
[0020] Figure 5 A schematic diagram of the structure of a joint point posture detection model provided in an embodiment of the present application;
[0021] Figure 6 A second schematic diagram of a health monitoring process provided in an embodiment of the present application;
[0022] Figure 7 A flowchart for encrypting a face area in a surveillance image provided by an embodiment of the present application;
[0023] Figure 8 A schematic diagram of an AC coefficient scanning method provided in an embodiment of the present application;
[0024] Fig. 9 A schematic diagram of an image compression and encryption process provided in an embodiment of the present application;
[0025] Fig.10 An architecture diagram of a health monitoring software system provided in an embodiment of the present application;
[0026] Fig.11 This is one of the structural schematic diagrams of a health monitoring device provided in an embodiment of the present application;
[0027] Fig.12 A second structural diagram of a health monitoring device provided in an embodiment of the present application;
[0028] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0030] In order to ensure the portrait privacy and body privacy of the monitored object, as well as to improve the security of health monitoring and enhance the user experience, the embodiments of the present application provide a health monitoring method and electronic device.
[0031] In an embodiment of the present application, a first monitoring image of a monitored object is acquired; based on a human posture detection model, the human posture of the monitored object in the first monitoring image is determined; and the information of the human posture corresponding to the first monitoring image is sent to the device of the monitoring personnel corresponding to the monitored object. In this method, the health of the monitored object is monitored by identifying the human posture of the monitored object, and the identified human posture information is sent to the device of the monitoring personnel. The device of the monitoring personnel can only monitor the human posture information of the monitored person, and will not involve the portrait privacy and body privacy of the monitored person. Therefore, the portrait privacy and body privacy of the monitored object can be guaranteed. In addition, in this method, a non-contact device is used to perform health monitoring on the monitored object, thereby improving the security of health monitoring and improving the user experience.
[0032] Figure 1 One of the schematic diagrams of a health monitoring process provided in an embodiment of the present application is applied to a server, and the process includes:
[0033] S101: Acquire a first monitoring image of a monitored object.
[0034] The health monitoring method provided in the embodiment of the present application is applied to a server. The server can obtain a first monitoring image of a monitored object from a monitoring device.
[0035] The first monitoring image acquired by the server may be an unprocessed original monitoring image containing the monitored object collected in real time in the monitoring device. Alternatively, the first monitoring image may be a monitoring image obtained by processing the original monitoring image containing the monitored object in the monitoring device. For example, the first monitoring image may be determined by the monitoring device after encrypting the face area in the original monitoring image (the implementation process may refer to the processing process in the subsequent embodiments, which will not be described here). For another example, the first monitoring image may be determined by the monitoring device copying the original monitoring image, or by the monitoring device removing the non-monitored object portion of the original monitoring image, and the monitoring device sends the first monitoring image to the server.
[0036] S102: Determine the human body posture of the monitored object in the first monitoring image based on the human body posture detection model.
[0037] The human posture detection model can be a pre-trained neural network model that can realize the detection of human posture. For example, when detecting human posture, the human posture detection model can detect each first monitoring image to obtain the human posture corresponding to each first monitoring image, that is, the human posture detected by the human posture detection model includes the static human posture of the monitored object at each moment, such as standing, sitting, squatting, or lying. For another example, based on the static human posture detected at each moment, the change of the human posture corresponding to the monitored object in the time period corresponding to each moment can be determined, for example, the dynamic human posture obtained can include walking, falling, or standing, etc.
[0038] S103: Sending information on the human body posture corresponding to the first monitoring image to a device of a monitoring person corresponding to the monitored object.
[0039] The server may store a pre-set warning status corresponding to a human posture, and the warning status indicates a possible health risk of the monitored object, for example, the warning status may include falling, etc., and falling may specifically include falling or fainting. The warning status corresponding to the current human posture is sent to the device of the monitoring personnel corresponding to the monitored object. When the monitoring personnel's device receives the warning status, it saves the warning status to the device, and the monitoring personnel's device may optionally directly output prompt information according to the warning status. For example, the prompt information may include an alarm message output by the monitoring personnel's device, and the alarm message may be a text message prompt, a voice prompt, etc.
[0040] The server sends the human posture information corresponding to the first monitoring image to the monitoring personnel's device. The monitoring personnel's device can determine whether the monitored object has a health risk corresponding to the warning state based on the acquired human posture of the monitored object in the first monitoring image and the warning state corresponding to the saved human posture, thereby performing health monitoring on the monitored object. For example, when the human posture in the first monitoring image has a warning state, a prompt message is output to prompt that the monitored object may currently have a health risk, and the first monitoring image of the monitored object collected in real time continues to be obtained; when the human posture in the first monitoring image is a normal posture, that is, there is no warning state, the server does not need to output a prompt message, and can directly continue to obtain the first monitoring image of the monitored object collected in real time, and perform real-time health monitoring on the monitored object based on the first monitoring image collected in real time to ensure the real-time health of the monitored object.
[0041] In a possible implementation, in this step, the health of the monitored object can also be monitored based on the human body posture and the health data of the monitored object. The health data of the monitored object can be daily health data measured by home measurement equipment (such as a blood pressure monitor, a blood glucose meter, or a small amount of wearable devices (such as a smart watch, which only poses a very small safety risk when worn during measurement)), or it can be physical examination data of the monitored object. The server can analyze the health data range of the monitored object based on the health data of the monitored object, and also save the health data range in the server. In this way, the server can combine the health data range, real-time health data, and human body posture of the monitored object to accurately analyze the current health status of the monitored object, and issue an alarm in time when there is a health risk, and send the warning status to the monitoring personnel's equipment. Taking the current human posture of the monitored object as lying down, and the daily health data range of the monitored object, such as blood pressure, is between 90 and 120, if the blood pressure in the real-time health data of the monitored object is 115, it can be determined that the monitored object has no health risk; if the blood pressure in the real-time health data of the monitored object is 140, it can be determined that the monitored object has a health risk. At this time, the server can output an alarm message and send the warning status to the monitoring personnel's equipment.
[0042] In addition to human posture and health data, the server can also combine the living habits and personalized health indicators of the monitored subjects to set different warning states and conduct health monitoring.
[0043] In addition, the server can also obtain the scene data of the monitored object and locate the monitored object through the scene data, so that when the monitored object is at health risk, the monitored object's family or community rescue personnel can be notified in time to rescue the monitored object.
[0044] In an embodiment of the present application, the health of the monitored object is monitored by identifying the human posture of the monitored object, and the identified human posture information is sent to the monitoring personnel's equipment. The monitoring personnel's equipment can only monitor the human posture information of the monitored person, and will not involve the portrait privacy and body privacy of the monitored person. Therefore, the portrait privacy and body privacy of the monitored object can be guaranteed. In addition, the method uses a non-contact device to perform health monitoring on the monitored object, thereby improving the security of health monitoring and improving user experience.
[0045] On the basis of the above embodiment, in an embodiment of the present application, determining the human body posture of the monitored object in the first monitoring image based on the human body posture detection model also includes:
[0046] Inputting the first monitoring image into a human joint point detection model, and determining the human joint points and position information of the monitored object in the first monitoring image based on the human joint point detection model;
[0047] The human body joints and position information thereof in the first monitoring image are input into a joint point posture detection model, and the human body posture is determined based on the joint point posture detection model.
[0048] In an embodiment of the present application, the human body posture of the monitored object can be identified through the above-mentioned human body posture detection model, and the human body posture of the monitored object can also be identified through a human joint point detection model and a joint point posture detection model.
[0049] The human joint point detection model can be a pre-trained neural network model. Based on the human joint point detection model, the information of the human joint points of the monitored object in the first monitoring image can be determined. The information of the human joint points includes the human joint points, the position information of the human joint points, and the confidence corresponding to the human joint points. When identifying the human joint points in the first monitoring image, the human joint point detection model can identify the monitored object to which the human joint points belong, so that the human joint points contained in each monitored object in the first monitoring image can be identified, and the human joint point vector map of each monitored object can also be output. The vector map identifies each human joint point in the first monitoring image and connects the corresponding human joint points according to a preset connection relationship. For example, a monitored object can include 15 human joint points.
[0050] Specifically, the human joint point detection model includes a deep separable convolutional network and a multi-stage convolutional neural network, such as Figure 2 As shown, F represents a feature map, the network on the right side of the feature map F (the left and right shown in the figure) is a multi-stage convolutional neural network, L represents confidence, S represents the partial affinity fields (PAF) between the joints, and the partial affinity fields are used to display the affinity between the joints, indicating that the identified joints belong to the same monitored object or to different monitored objects, that is, the individual to which each identified joint belongs can be determined.
[0051] The standard convolutional network in the currently commonly used algorithm model adopts the Visual Geometry Group (VGG)19, such as Figure 3As shown, conv1_1, conv1_2, conv2_1, conv2_2, conv3_1, conv3_2, conv3_3, conv3_4, conv4_1 and conv4_2 are convolutional layers, each of which includes a convolution kernel of size 3×3; pool1, pool2 and pool3 represent pooling layers, each of which includes two pooling kernels of size 2×2. When the standard convolutional network reaches a certain depth, the network convergence speed will slow down and the operation speed will be seriously reduced, resulting in a slow detection speed, and it is impossible to perform health monitoring and early warning of the monitored object in real time. Therefore, in an embodiment of the present application, a deeply separable convolutional network with multiple deep convolutions and multiple point convolutions is proposed. The deeply separable convolutional network can guarantee the convergence speed of the network even when it reaches a certain depth, such as Figure 4 As shown in Figure 1, the depthwise separable convolutional network includes M depthwise convolutions and N pointwise convolutions, where M and N are positive integers with no restriction on their values. Specifically, each depthwise convolution includes a size of (T K , T K , 1), each point convolution includes a convolution kernel of size (1, 1, M), and no specific limitation is made here.
[0052] The following is a specific example to illustrate the depth-wise separable convolutional network and the standard convolutional network: Assume that the feature map size is T I ×T I ×M, the convolution kernel size of the standard convolutional network is T K ×T K ×M, the output feature map size is T O ×T O ×N, then the number of parameters of the standard convolutional network satisfies P S =(T K ×T K ×M)×N, where P S represents the number of parameters of the standard convolutional network. The size of the M convolution kernels is (T K , T K , 1) The number of parameters of the depth convolution satisfies P d =(T K ×T K ×1)×M, where P d Represents the number of parameters of the depth convolution; point convolution has a total of N convolution kernels of size (1, 1, M), then the number of parameters of the point convolution with N convolution kernels of size (1, 1, M) satisfies P p =(1×1×M)×N, where P p represents the number of parameters of the point convolution; then the number of parameters of the depthwise separable convolutional network is P D =P d+P p =(T K ×T K ×1)×M+(1×1×M)×N. Therefore, the ratio μ of the number of parameters of the depthwise separable convolutional network and the number of parameters of the standard convolutional network satisfies Since the convolution kernel size of VGG19 used in the current standard convolutional network is 3×3 (see Figure 4 ), so using a deep separable convolutional network to replace VGG19 can reduce the number of parameters by about 11%, which can ensure that even when a certain depth is reached, there will not be too many parameters, thus ensuring the convergence speed of the network.
[0053] Specifically, the first monitoring image is input into the deep separable convolutional network in the human joint detection model, and based on multiple deep convolutions and multiple point convolutions in the deep separable convolutional network, features of the first monitoring image are extracted to obtain a first feature map corresponding to the first monitoring image.
[0054] After obtaining the first feature map, the first feature map can be used as the input of the two branches, respectively, and input into the upper branch and the lower branch of the multi-stage convolutional neural network, to obtain the identification of the human joint points in the first monitoring image output by the lower branch and their position information, and the confidence corresponding to the identification of the human joint points in the first monitoring image output by the upper branch and their position information. Among them, the human joint points output by the lower branch include the human joint points belonging to the same monitored object or different monitored objects, and the output result of the upper branch is used to represent the confidence of the output result of the lower branch.
[0055] Also Figure 2 As shown, the upper branch of the multi-stage convolutional neural network is used to represent the confidence of the position information of the identified joint points. For example, the output of the upper branch can be a set of two-dimensional (2D) confidence maps for predicting the positions of human joint points; the lower branch of the multi-stage convolutional neural network is used to identify the positions of the joint points, and to indicate that the identified joint points belong to the same monitored object or different monitored objects. For example, the output of the lower branch can be a 2D vector field (i.e., a partial affinity domain) for predicting the fit of a set of joint points, which can show the affinity between the joint points.
[0056] After obtaining the human body joints and their position information, the human body joints and their position information of the monitored object identified in the first monitoring image are used as input data of the joint point posture detection model. Based on the joint point posture detection model, all possible human body postures of the monitored object and the corresponding probability of each human body posture can be output.
[0057] In a possible implementation, the human joints input into the joint point posture detection model may not include the head joints and / or the arm joints. This is because when detecting the human body posture, the head joints and / or the arm joints may not be concerned, and if all human joints are used as input data of the joint point posture detection model, it may affect the running speed of the joint point posture detection model and the detection result. Therefore, the head joints and / or the arm joints may be discarded, so that the joint point posture detection model pays more attention to the position information of the joints of the monitored object's body parts.
[0058] The joint point posture detection model is a pre-trained model. For example, the joint point detection model can be a separator for determining the human posture type corresponding to the monitored object in the first monitoring image and the probability corresponding to the above-mentioned various human postures. The joint point posture detection model can include a nonlinear network and a linear network, wherein the nonlinear network can learn the characteristics of continuous numerical values, that is, the transfer of correlation; the linear network can learn the commonality of features, that is, learn specific features. For a specific description of the nonlinear network and the linear network, please refer to the following embodiments.
[0059] If the joint point posture detection model includes a nonlinear network and a linear network, based on the above embodiments, in the embodiment of the present application, the training process of the joint point posture detection model includes:
[0060] Obtaining a sample image and a target posture corresponding to the sample image; wherein the sample image is marked with human joint points and corresponding position information;
[0061] Input the sample image into the joint point posture detection model, and determine the first result corresponding to the human body joint point based on the linear network of the joint point posture detection model; input the first result into the joint point posture detection model, and determine the second result corresponding to the human body posture based on the nonlinear network of the joint point posture detection model;
[0062] According to the second result, determining a training result based on the classification function in the joint point posture detection model, the training result including the probability that the sample image belongs to each type of human posture;
[0063] According to the training results and target posture, the joint point posture detection model is trained.
[0064] When training the joint point posture detection model, multiple sample images can be used, and the position change of the same human joint point in the multiple sample images is within a preset range. For example, the human joint points (hereinafter referred to as joint points) in the sample image may include the joint points of the head, left and right shoulders, buttocks, left and right knees or left and right ankles of the monitored object, and the position change of the same human joint point can be represented by the change value of the horizontal and vertical coordinates of the above-mentioned joint points. The specific value of the preset range is not limited in the embodiment of the present application, for example but not limited to 0.5. Each sample image is marked with a human joint point and the position information corresponding to the human joint point. For example, the sample image can be a vector map of the human joint point.
[0065] When training the joint point posture detection model, the linear network and the nonlinear network in the joint point posture detection model can be trained through sample images. The joint point posture detection model in the embodiment of the present application adds a linear network, such as Figure 5 As shown. Among them, based on the commonality of features that can be learned by the linear network, the characteristics of learning specific features can be used to learn the influence of the position information of the partial area of the human body when the position of the joint points contained in the partial area of the human body changes; based on the characteristics of continuous numerical values that can be learned by the nonlinear network, the characteristics of transferring correlation can be used to learn the influence of the position information of the partial area of the human body on the human posture. When the linear network in the joint posture detection model is trained using sample images, input fusion parameters are set for the sample images in the linear network, and the input fusion parameters corresponding to the above sample images are related to the position information of the joint points in the partial area of the human body. For example, the fusion information of the three joint points of the neck, right hip and left hip can represent the human posture of the upper half of the human body; the fusion information of the four joint points of the right knee, left knee, right hip and left hip can represent the human posture of the lower half of the human body, so according to the joint points contained in the partial area of the human body, the input fusion parameters can be obtained, for example, the input fusion parameters can include the horizontal coordinate U of the center of the upper half of the human body. x , the vertical coordinate U of the center of the upper part of the human body y 、Height U of the center of the upper part of the human body k , the center height of the lower part of the human body L k and the above five fusion parameters of the comprehensive factor CF; among them, the horizontal coordinate U of the center of the upper part of the human body x , the vertical coordinate U of the center of the upper part of the human body y and the center height U of the upper part of the human body k It can be determined based on the position information of the joints of the upper part of the human body in multiple sample images, and the center height L of the lower part of the human body kIt can be determined based on the position information of the joint points of the lower half of the human body in multiple sample images, and the comprehensive factor CF can be determined based on the position information of the joint points of the upper half of the human body and the position information of the joint points of the lower half of the human body in multiple sample images, and the comprehensive factor is used to represent the influence of the human body composed of the upper half and the lower half on the human body posture. For example, the input fusion parameter can satisfy the following formula:
[0066]
[0067]
[0068]
[0069]
[0070]
[0071] Among them, [key] represents the name of the joint point, neck represents the neck, Rhip represents the right hip, Lhip represents the left hip, Rknee represents the right knee, and Lknee represents the left knee; Δ x Indicates the position change of the joint point on the x-axis per unit time; Δ y Indicates the position change of the joint point on the y-axis per unit time; Indicates that joint point key1 and joint point key2 are in t n The average value of the y-axis coordinate at each moment; Indicates that the joint point key is at t n The y-coordinate of the moment.
[0072] Multiple sample images are used as input data of the linear network in the joint point posture detection model, and are input into the linear network in the joint point posture detection model, such as Figure 5 Based on the formula corresponding to the above input fusion parameters, the first result corresponding to the joint point in each sample image is obtained according to the coordinate position of the joint point in the sample image; each first result is the value of the input fusion parameter calculated by the above formula. The transmission relationship between neurons in each network layer in the linear network can satisfy the following formula: Among them, y j represents the output of the jth neuron, x i represents the input of the i-th neuron, ω i represents the weight value of the i-th neuron, b j represents the bias of the jth neuron.
[0073] The multiple first results obtained by the linear network are input into the nonlinear network in the joint point posture detection model, and each second result corresponding to each sample image is obtained through multiple network layers in the nonlinear network; each second result includes various possible human postures of the monitored object in the corresponding sample image. The output of each network layer of the nonlinear network is related to the input of the previous network layer, and a rectified linear unit (ReLU) activation function is deployed between two adjacent layers to ensure the nonlinearity of the network. The transmission relationship between neurons in each network layer can satisfy the formula: in, represents the output of the jth neuron in the h+1th layer, represents the input of the i-th neuron in the h-th layer, represents the weight value of the i-th neuron in the h-th layer, represents the bias of the jth neuron in the h+1th layer.
[0074] According to the second result of the various human postures and corresponding probabilities to which the monitored object belongs in the sample image output by the nonlinear network, the second result is normalized by the normalized exponential function (Softmax) classification function in the joint point posture detection model to obtain the training result. The training result can be used to represent the human posture type classification result, that is, the training result includes various possible human postures to which the sample image belongs, and the probabilities corresponding to various human postures. Specifically, the human posture type classification includes but is not limited to one or more of the following: standing [S], walking [W], falling [F], sitting [I], squatting [Q], lying [L], etc. For example, the training result corresponding to the sample image is that the probability of the human posture being sitting is 60%, the probability of the human posture being standing is 25%, and the probability of the human posture being lying is 15%.
[0075] In addition, the Softmax classification function can satisfy the following formula: where z i represents the output value corresponding to the i-th human posture in the second result of the nonlinear network, z jIndicates the output value corresponding to the jth human posture in the second result of the nonlinear network, and j indicates that the second result contains j types of human postures. For example, the second result obtained by the nonlinear network is [0.1, 1, 2], where 0.1 corresponds to lying, 1 corresponds to sitting, and 2 corresponds to standing; after the second result is normalized by the Softmax classification function, the training result is obtained that the probabilities of the human postures lying, sitting, and standing are [0.1, 0.2, 0.7] respectively. In specific implementation, when building a nonlinear network, the number of nodes in the last layer of the nonlinear network is determined according to the number of human posture types contained in the output result. For example, when the human postures contained in the output result are sitting, standing, and lying, that is, the number of human posture types contained in the output result is 3, and the number of nodes in the last layer of the nonlinear network is 3; when the human postures contained in the output result are sitting, standing, lying, falling, and squatting, that is, the number of human posture types contained in the output result is 5, and the number of nodes in the last layer of the nonlinear network is 5.
[0076] According to the training results and the human body posture type, the nonlinear network and the linear network in the joint point posture detection model are jointly trained through the loss function, and the parameters are jointly optimized to realize the training of the joint point posture detection model. The loss function can be used to represent the accuracy of the human body posture classification input by the joint point posture detection model.
[0077] Specifically, the loss function can satisfy the following formula:
[0078]
[0079] Among them, K represents the number of human posture type classifications, sgn i represents the symbolic function, p i represents the output of the ith neural network.
[0080] Through the above training process, a trained joint point posture detection model is obtained. The joint point posture detection model can more accurately identify the impact of changes in the position of human joints on human posture. In specific implementation, the human joints and corresponding position information of the monitored object are input into the linear network of the trained joint point posture detection model. Based on the linear network and nonlinear network of the joint point posture detection model, the human posture of the monitored object is output.
[0081] In an embodiment of the present application, by training the joint point posture detection model, the impact of changes in the position of human joint points on human posture can be more accurately identified, thereby improving the accuracy of the model output results, that is, improving the accuracy of human posture recognition.
[0082] Based on the above embodiments, Figure 6A second process diagram of a health monitoring method provided in an embodiment of the present application is applied to a monitoring device, and the process includes:
[0083] S601: Acquire a second monitoring image of the monitored object.
[0084] The health monitoring method provided in the embodiment of the present application is applied to a monitoring device. Specifically, the monitoring device may include a camera installed in a home or community, a visual sensor, or a monitoring device in a community health hut.
[0085] The monitoring device can collect monitoring images of the monitored object in real time, and the second monitoring image can be an unprocessed original monitoring image collected by the monitoring device in real time, or a monitoring image obtained by processing the original monitoring image collected by the monitoring device. For example, processing the original monitoring image can be copying the original monitoring image, or removing the non-monitored object part, etc.
[0086] S602: Encrypt the face area in the second monitoring image to determine the first monitoring image, wherein the first monitoring image is used by the server to determine the human posture of the monitored object based on the human posture detection model.
[0087] The second monitoring image of the monitored object collected by the monitoring device may contain the facial information of the monitored object. Considering that the first monitoring image may be stolen by illegal users when being sent to the server, in order to protect the portrait privacy of the monitored object, before the first monitoring image is sent to the server, the facial area of the monitored object in the collected second monitoring image is encrypted in the monitoring device. The first monitoring image obtained after encryption does not directly contain facial information. Therefore, the portrait privacy of the monitored object can be protected, and the detection results of the human body posture are not affected, and the accuracy of health monitoring can be guaranteed.
[0088] A face region detection algorithm is pre-stored in the monitoring device, which can identify the face region in the collected second monitoring image. According to the face region detection algorithm, the face region of the monitored object can be determined in the second monitoring image. After the face region of the monitored object is determined, the face region can be optionally marked in the image by a rectangular frame to obtain a second monitoring image marked with the face region, so as to facilitate the subsequent encryption of the face region marked by the rectangular frame in the image.
[0089] For example, the face region detection algorithm may be a mathematical algorithm, based on which the face region in the second surveillance image may be detected. For another example, the face region detection algorithm may be a pre-trained neural network model, based on which the face region in the second surveillance image may be detected. For example, the neural network model includes a face region detection model, based on which the face region in the second surveillance image may be directly detected. For another example, the neural network model includes a skin color region detection model, based on which the skin color region in the second surveillance image may be detected, and based on the skin color region, the face region of the monitored object may be determined in the second surveillance image.
[0090] When encrypting the face area, it includes but is not limited to one or more of the following encryption methods: using scrambling encryption method, XOR encryption method, Secure Hash Algorithm (SHA1) encryption method, Message-Digest Algorithm 5 (MD5) encryption method, or Advanced Encryption Standard (AES) encryption method to scramble and encrypt the face area, or replace the face area.
[0091] After identifying the face area of the monitored object in the second monitoring image, the monitoring device encrypts the face area to obtain the encrypted second monitoring image, that is, the first monitoring image.
[0092] S603: Send the first monitoring image to the server.
[0093] The monitoring device sends the processed first monitoring image to the server.
[0094] After receiving the first monitoring image, in a possible implementation, the server determines the human posture of the monitored object in the first monitoring image based on the human posture detection model, and sends the human posture to the device of the monitoring person corresponding to the monitored object to perform health monitoring on the monitored object. The specific process of processing the first monitoring image in the server can be referred to the above embodiment, and will not be repeated here.
[0095] The face area of the monitored object in the second monitoring image is encrypted before the first monitoring image is transmitted, thereby reducing the problem of the first monitoring image being stolen by others during the transmission process, resulting in the leakage of the portrait privacy of the monitored object, and protecting the portrait privacy of the monitored object.
[0096] In order to further protect the privacy of the monitored object, on the basis of the above embodiments, in the embodiment of the present application, the face area in the second monitoring image is encrypted to determine the first monitoring image, including:
[0097] Segmenting the face region in the second monitoring image to obtain a plurality of non-overlapping first sub-blocks;
[0098] According to the chaotic sequence, multiple first sub-blocks are scrambled and encrypted to determine the first monitoring image; wherein the chaotic sequence is generated according to the acquired key.
[0099] Since the data volume of the original video data file that has not been compressed and encoded is very large, directly encrypting it is not only extremely time-consuming, but also destroys the correlation between pixels, making the encoder's compression performance of these encrypted videos extremely poor. Moreover, compared with the current traditional data encryption of the entire encoded stream through the Secure Sockets Layer / Transport Layer Security (SSL / TLS) protocol stack, selective encryption of key data in the code stream can ensure the security of video data while maintaining the compatibility of the encrypted video with the codec protocol. At the same time, it can be further introduced into the scene of encryption of the region of interest, so as to achieve local protection of some sensitive privacy areas without affecting the overall viewing of the video. Therefore, in the embodiment of the present application, the monitoring device adopts an independently encoded video region of interest (ROI) encryption method, that is, only the face area in the second monitoring image is encrypted, and there is no need to encrypt all the contents contained in the second monitoring image.
[0100] In one implementation, the monitoring device first segments the face area of the monitored object in the second monitoring image. When segmenting the face area in the second monitoring image, since the second monitoring image has a YC r C b space, where Y represents the luminance component, C r Represents the red chromaticity component (Chrominance red), C b represents the blue chromaticity component (Chrominance blue), so the second monitoring image in which the face area is detected can first be based on the Y channel, C r Channel and C b The channels are separated, and each monitoring image will obtain three components after channel separation. Then, each component obtained can be divided into multiple non-overlapping 8×8 first sub-blocks.
[0101] The monitoring device generates a corresponding chaotic sequence according to the obtained key, and the chaotic sequence can be used to encrypt each first sub-block. The process of generating the chaotic sequence according to the key can adopt a two-dimensional Logistic mapping method. Specifically, the process of generating the chaotic sequence using the two-dimensional Logistic mapping method can satisfy the following formula:
[0102]
[0103] This formula represents mapping the x-axis and y-axis in the original coordinate system to the new coordinate system, where g1 and g2 are coupling terms; μ, λ1 and λ2 are control parameters of the system, usually μ=4, and there is no specific restriction on the values of λ1 and λ2. x0 and y0 are the initial values of the system. When there is a slight difference in the initial values, completely different chaotic sequences will be generated.
[0104] In specific use, the above coupling term usually includes two cases. The first case is g1 = ry n and g2 = rx n The first coupling term, the second case is that both g1 and g2 are rx n y n The secondary coupling term. Because the complexity of the secondary coupling term is higher than that of the primary coupling term, and the processing efficiency of the secondary coupling term is lower than that of the primary coupling term, the primary coupling term is used to generate the chaotic sequence in the embodiment of the present application. Then the process of using the primary coupling term to generate the chaotic sequence can satisfy the following formula:
[0105]
[0106] Among them, r is the control parameter of the system.
[0107] For example, the monitoring device can perform scrambled encryption on multiple first sub-blocks according to the chaotic sequence. Specifically, when the monitoring device performs encryption processing on the first sub-block, the chaotic sequence used for encryption is determined by the above formula, and the position of each first sub-block is scrambled according to the chaotic sequence, and after the multiple first sub-blocks are scrambled, each sub-block can be encrypted again. For example, the displacement rounds and moving distances of each first sub-block can be controlled according to the chaotic sequence, so as to perform scrambled encryption on the first sub-block. Since the chaotic sequence is an irregular sequence, encrypting the first sub-block according to the chaotic sequence can obtain a better encryption effect, and further encrypting the face area in the second monitoring image effectively protects the portrait privacy of the monitored object.
[0108] In order to further protect the privacy of the monitored object, on the basis of the above embodiments, in the embodiment of the present application, multiple first sub-blocks are scrambled and encrypted according to the chaotic sequence to determine the first monitoring image, including:
[0109] Performing discrete cosine transform (DCT) and quantization on the plurality of first sub-blocks to obtain a plurality of second sub-blocks;
[0110] According to the chaotic sequence, multiple second sub-blocks are scrambled and encrypted to obtain multiple third sub-blocks;
[0111] According to the third sub-block, determining a DC coefficient and an AC coefficient in the third sub-block;
[0112] According to the chaotic sequence, the DC coefficient is encrypted by an XOR encryption method to obtain an encrypted DC coefficient; according to the chaotic sequence, the AC coefficient is encrypted by a scrambling encryption method to obtain an encrypted AC coefficient;
[0113] A first monitoring image is determined according to the encrypted DC coefficient and the encrypted AC coefficient.
[0114] Figure 7 The encryption flow chart of the face area in the surveillance image is shown. After channel separation is performed to obtain multiple 8×8 first sub-blocks, each 8×8 first sub-block is subjected to DCT transformation and quantization to obtain multiple processed second sub-blocks, wherein the number of the obtained second sub-blocks is the same as the number of the first sub-blocks. Each second sub-block includes a DCT coefficient, wherein the DCT coefficient includes a direct current (DC) coefficient and an alternating current (AC) coefficient. Among them, performing DCT transformation and quantization on the first sub-block is a prior art and will not be repeated here.
[0115] Since the correlation between different sub-blocks is relatively large, the positions of the sub-blocks need to be scrambled, that is, multiple second sub-blocks need to be scrambled. When the monitoring device scrambles the second sub-blocks, it can determine the displacement round and moving distance of each second sub-block according to the chaotic sequence; for each second sub-block, scramble and encrypt each second sub-block according to the displacement round and moving distance, and obtain multiple third sub-blocks after scrambling. Among them, the displacement rounds and moving distances of different second sub-blocks can be the same or different.
[0116] Specifically, the monitoring device controls the shift rounds according to the generated chaotic sequence, and can cyclically shift each second sub-block rightward and downward according to the shift distance, and achieves the purpose of changing the position of the second sub-block for scrambling encryption through multiple shift rounds according to the shift rounds. The shift distances by row (downward) and by column (rightward) can satisfy the following formula:
[0117]
[0118]
[0119] Where k represents the kth second sub-block, m k represents the moving distance of the k-th second sub-block by row, n k represents the moving distance of the kth second sub-block by column, W is the width of the image to be encrypted (i.e., the first sub-block), H is the height of the image to be encrypted, and x k Represents the chaotic sequence value corresponding to the row, y k It represents the chaotic sequence value corresponding to the column, mod represents the remainder operation. Since the chaotic sequence values are not all integers, the chaotic sequence values are amplified and then the remainder is taken through the above formula.
[0120] like Figure 7 As shown, after the monitoring device obtains the third sub-block through DCT transformation and quantization, it determines the DC coefficient and AC coefficient in the pixel value of each pixel point of the third sub-block, and can encrypt the DC coefficient and AC coefficient in the pixel value of each pixel point of the third sub-block respectively; wherein for each sub-block, the DC coefficient is located in the first row and first column of the 8×8 sub-block, which can reflect the mean value of the image sampling of each sub-block, and the AC coefficient is located in the remaining 63 elements of the 8×8 sub-block except the first row and first column, which represents the visible detail texture information in the image. For example, the DC coefficient in the third sub-block can be encrypted by XOR encryption, and the encrypted DC coefficient can be encoded by differential coding to obtain the encrypted and encoded DC coefficient; the AC coefficient in the third sub-block can be encrypted by scrambling encryption, and the encrypted AC coefficient can be encoded by run-length coding to obtain the encrypted and encoded AC coefficient. After encrypting and encoding the DC coefficient and AC coefficient in the third sub-block, the processed third sub-block is obtained, and the processed third sub-block is encoded by entropy coding to determine the compressed ciphertext image data (i.e. the encrypted third sub-block). Among them, the processes of differential coding, run length coding and entropy coding belong to the existing technology and will not be described in detail here.
[0121] When encrypting the DC coefficient, the chaotic sequence and the DC coefficient can be firstly binarized to obtain a binary chaotic sequence and a DC coefficient binarized sequence, and then the DC coefficient is encrypted according to the binary chaotic sequence and the DC coefficient binarized sequence using an XOR encryption method.
[0122] Specifically, since the values in the chaotic sequence are decimal, the threshold method is used in the monitoring device 601 to binarize the chaotic sequence to obtain a binary chaotic sequence L=l1, l2, ..., ln, where li∈{0, 1}, n represents the length of the binary sequence.
[0123] When binarizing the DC coefficient, all third sub-blocks are traversed, and the values in the DC coefficient of each third sub-block are converted into binary values to facilitate subsequent encryption. For example, the DC coefficient binary sequence obtained after binarization is D=d1, d2, ..., dn, where di∈{0, 1}, n represents the length of the binary sequence.
[0124] By performing bitwise XOR on the binary chaotic sequence and the DC coefficient binary sequence through XOR encryption, the corresponding ciphertext sequence can be generated, that is, the encrypted DC coefficient can be obtained. The bitwise XOR can satisfy the following formula:
[0125]
[0126] Where N represents the length of the binary sequence.
[0127] At the same time, an implementation method for decrypting the encrypted DC coefficient is provided in an embodiment of the present application. During decryption, the encrypted DC coefficient can be subjected to a bitwise XOR operation through a binary chaotic sequence to obtain an unencrypted DC coefficient binary sequence. The process can satisfy the following formula:
[0128]
[0129] In the embodiment of the present application, considering that the DC coefficient can reflect the mean value of the sample values of the image block, encrypting it can achieve effective scrambling of the image content.
[0130] When encrypting the AC coefficients, since there are a large number of AC coefficients and most of the AC coefficients are 0 under normal distribution, encrypting all of them will destroy the distribution pattern of the AC coefficients and greatly affect the compression performance. However, if the encrypted coefficients are too few, the image security will be low. In addition, considering the distribution of the AC coefficients, that is, the low-frequency AC coefficients in the upper left corner of the image matrix are usually larger, reflecting the main content of the image, and the high-frequency AC coefficients in the lower right corner are smaller. Therefore, in the embodiment of the present application, the first t coefficients in the upper left corner are encrypted by Zig-Zag scanning, where t is a positive integer and there is no restriction on the specific value. Figure 8 The first t coefficients selected are shown (in Figure 8 Where t is 20), and the corresponding scanning method. Among them, Zig-Zag scanning is a Z-shaped scanning method that converts a two-dimensional array into a one-dimensional array. Since the quantized DCT coefficients are still two-dimensional coefficient matrices, they cannot be transmitted directly. After being converted into a one-dimensional data sequence, they can be transmitted. Therefore, the Zig-Zag scanning method is conducive to compressing data.
[0131] Specifically, the AC coefficients at the same position in different third sub-blocks are formed into the same matrix. Since the first t AC coefficients at the upper left are scanned by Zig-Zag scanning, each third sub-block includes t AC coefficients at different positions after Zig-Zag scanning; therefore, t matrices can be formed according to the AC coefficients at the same position in different third sub-blocks. The t matrices are scrambled and encrypted in units of each matrix. For example, the first 20 coefficients at the upper left are scanned by Zig-Zag scanning. After the AC coefficients at the same position in different third sub-blocks are placed in the same matrix, since there are a total of 20 positions in each third sub-block, 20 two-dimensional matrices will be generated. The scrambled encryption process is the same as the scrambled encryption process for the second sub-block, which will not be repeated here.
[0132] In the embodiment of the present application, considering that the AC coefficient can represent the visible detail texture information of the image, encrypting it can effectively scramble the image detail information.
[0133] After the DC coefficient and AC coefficient are encrypted, the encrypted DC coefficient is differentially encoded, and the encrypted AC coefficient is run-length encoded to obtain the processed third sub-block, and the processed third sub-block is entropy encoded to obtain a compressed ciphertext image (i.e., the first monitoring image). The face area is effectively encrypted by encrypting the ROI area as described above; wherein the ROI area is the face area of the monitored object. The process of encoding the DC coefficient and AC coefficient can be referred to Figure 7 The above embodiments are not described in detail here.
[0134] In the embodiment of the present application, by encrypting the DC coefficients and AC coefficients in the quantized sub-blocks, encryption of the image content and the visible detail texture information of the image is achieved, thereby further protecting the privacy of the monitored object.
[0135] On the basis of the above embodiments, in an embodiment of the present application, encrypting the face area in the second monitoring image to determine the first monitoring image includes:
[0136] The face region in the second monitoring image is replaced with a single color block sequence to determine the first monitoring image.
[0137] After the face area in the second monitoring image is identified, in order to protect the portrait privacy of the monitored object, the face area in the second monitoring image can be replaced by using a single color block sequence to encrypt the face area in the second monitoring image, and the second monitoring image after the single color block sequence is replaced is determined as the first monitoring image.
[0138] In addition, since the independent coding ROI encryption method can usually only be stored in a lossless manner, if the ciphertext image is lossily compressed, that is, if the first monitoring image is directly lossily compressed, the ciphertext data will be changed, and the original image cannot be decoded. Therefore, the current independent coding ROI encryption method usually has the problem of high ciphertext sequence storage cost. In view of the above problems, a video ROI protection method based on image compression encryption is proposed in the embodiment of the present application, such as Fig. 9 As shown, the ROI (i.e., the face area in the embodiment of the present application) of the color-coded (YUV) video sequence (i.e., the first monitoring image) is encrypted and transmitted independently during the image compression process. For example, the monitoring device can intercept the face area in the second monitoring image encrypted by the encryption method in the above embodiment, or intercept the face area image in the second monitoring image, and encrypt the face area image using the encryption method in the above embodiment to determine the encrypted face area image; determine the first monitoring image based on the encrypted face area image and the monitoring image obtained by replacing the face area in the second monitoring image with a single color block sequence.
[0139] Specifically, in order to store and play the video in the embodiment of the present application, the monitoring device detects the monitoring video through ROI, determines the face area in the second monitoring image of each frame of the monitoring video, and intercepts the face area image corresponding to the face area, divides the face area image into image blocks after channel separation, encrypts the face area image according to the chaotic sequence generated by the key, encodes the encrypted face area image, and obtains the face area ciphertext image; uses a single color block sequence to replace the original face area in the second monitoring image of each frame of the monitoring video, and generates a replaced monitoring image of the corresponding number of frames. For example, the monitoring device can determine the first monitoring image based on the face area ciphertext image and the replaced monitoring image, and send the first monitoring image to the server.
[0140] In a possible implementation, multiple consecutive frames of ciphertext images are encoded to obtain ciphertext videos; multiple consecutive frames of images without face regions are encoded to obtain video sequences without face regions, wherein the video sequence includes a sequence of non-face regions and a sequence of single color blocks that replace face regions. According to the ciphertext video and the video sequence without face regions, the ciphertext video and the video sequence without face regions are placed in the same video file to obtain an encrypted surveillance video. After obtaining the encrypted surveillance video, the encrypted surveillance video can be stored or transmitted. For example, the encrypted surveillance video can be sent to a server. After the server receives the encrypted surveillance video, if it wants to play the encrypted surveillance video, it must first decrypt the encrypted surveillance video. It can use the authorized decryption method to decrypt the ciphertext video in the encrypted surveillance video using the chaotic sequence generated according to the key, and decode the decrypted face area video to obtain the face area video; decode the video sequence without the face area in the encrypted surveillance video through the unauthorized decryption method to obtain a YUV file; fill the face area video into the part corresponding to the single color block sequence in the YUV file, and obtain the original YUV video, that is, the surveillance video corresponding to the continuous multi-frame second surveillance image. After obtaining the original surveillance video, the surveillance video can be played.
[0141] In order to improve the accuracy of determining the face region, based on the above embodiments, before encrypting the face region in the second monitoring image, the following steps are included:
[0142] Inputting the second monitoring image into the skin color detection model to determine the skin area in the second monitoring image;
[0143] The skin area is processed by corrosion and dilation to determine the face area.
[0144] Before encrypting the face area in the second monitoring image, the face area of the monitored object in the second monitoring image must be determined. Considering that when detecting a video, there are many video frames in the video data, and the method of detecting the face area based on the skin color detection model has a faster detection speed and is suitable for detecting faces in video data, the skin color detection model can be used in the embodiment of the present application to detect the face area in multiple consecutive frames of the second monitoring image.
[0145] The monitoring device inputs the second monitoring image into the skin color detection model, determines the similarity between the pixel value of the pixel point in the second monitoring image and the skin color based on the skin color detection model, performs binarization processing on the obtained skin color similarity according to a pre-stored threshold, determines the skin color similarity higher than the threshold as belonging to the skin area, and determines the skin color similarity not higher than the threshold as a non-skin area, and determines the skin area in the second monitoring image. The image area includes multiple pixel points.
[0146] Specifically, in YC r C b In space, skin color has good clustering characteristics and conforms to the statistical law of Gaussian distribution, so the skin color detection model in the embodiment of the present application can be a Gaussian model based on skin color detection, and the face area to be encrypted in the second surveillance image is determined by the Gaussian model based on skin color detection.
[0147] Since the skin color of a person's face conforms to a two-dimensional Gaussian distribution when the distribution of the chromaticity component is relatively consistent without considering the influence of the brightness component, the similarity between the pixel point in the second monitoring image and the skin color is determined by the two-dimensional Gaussian distribution. Before determining the similarity between the pixel value of the pixel point in the second monitoring image and the skin color, the position of the pixel point in the second monitoring image in the skin color detection model G(m, C) is determined, and the process can satisfy the following formula:
[0148]
[0149]
[0150] in, Indicates that the pixel is at C r C b The chromaticity component corresponding to the space, Indicates c r ,c b The mean of (m, C) represents the position of the pixel in the skin color detection model, and c r Represents the red chromaticity component, c b Represents the blue chromaticity component.
[0151] The distance between the pixel point in the second monitoring image and the center in the skin color detection model can represent the similarity between the pixel value of the pixel point and the skin color, where the value range of the similarity is [0, 1], and the calculation process of the similarity can satisfy the following formula:
[0152] p(c r ,c b )=exp[-0.5(xm) T C -1 (xm)]
[0153] Among them, p(c r ,c b ) represents the similarity between the pixel and the skin color; x represents the pixel in C r C b The chromaticity component corresponding to the space, (m, C) represents the position of the pixel in the skin color detection model.
[0154] After obtaining the skin area, since the skin area includes not only the face area but also some non-face areas, such as exposed arms or torso, the parts that do not belong to the face area are processed by morphologically processing the skin area through corrosion and dilation to remove noise and determine the possible face contour.
[0155] For the face contour, some false areas are removed, such as areas with a minimum bounding rectangle less than 5×5 or areas that are too flat or narrow and do not conform to the facial proportions, to obtain a binary image containing the face area. In order to facilitate subsequent ROI encryption, the face area is expanded into a rectangular area, for example, the face area is marked in the surveillance image by a rectangular frame, and the face area in the second surveillance image is determined.
[0156] In an embodiment of the present application, the skin area in the second monitoring image is determined by a skin color detection model, and the face area is further determined based on the skin area, thereby improving the accuracy of determining the face area.
[0157] On the basis of the above embodiments, in an embodiment of the present application, obtaining a second monitoring image of the monitored object includes:
[0158] Acquire the collected original monitoring image of the monitored object;
[0159] The original surveillance image is copied through the digital twin algorithm to determine the second surveillance image corresponding to the original surveillance image.
[0160] For example, the original unprocessed monitoring image of the monitored object collected by the monitoring device in real time is obtained, the original monitoring image is copied through the digital twin algorithm, and the second monitoring image corresponding to the original monitoring image is determined, wherein the second monitoring image is the same as the original monitoring image. Since the digital twin algorithm refers to a digital model of virtual objects constructed in a digital virtual space through software definition throughout the life cycle, forming a virtual precise mapping relationship that is similar to the shape, state, behavior and texture of the real objects in the physical entity space, the embodiment of the present application can copy the current environment of the monitored object and establish an environmental model during the specific implementation, and place the monitored object obtained by the digital twin algorithm of the original monitoring image in the established environmental model, which can better plan the movement scene of the monitored object, better predict whether the monitored object is in a health risk state, and facilitate timely sending of prompt information to the monitoring personnel corresponding to the monitored object.
[0161] Based on the above embodiments, this application provides an architecture diagram of a health monitoring software system. Fig.10 As shown, the health monitoring software system includes a driver layer 1001 , a platform layer 1002 , an algorithm layer 1003 and an application layer 1004 .
[0162] Among them, the driver layer 1001 is used to obtain original data from the video data interface, the scene data interface and / or the human health data interface; wherein the original data includes video data, scene data and / or human health data.
[0163] The platform layer 1002 is used to fuse the raw data obtained from the driving layer 1001 through sensors, and to map and locate (i.e., digital twin) and reconstruct the scene according to the unique identity document (ID) of the monitored object to obtain test video data; and to define tasks in combination with the characteristics of the monitored object itself and health risk information to achieve personalized health management and risk warning.
[0164] The electronic device stores a unique ID corresponding to each monitored object.
[0165] The algorithm layer 1003 includes cloud training and terminal execution, wherein cloud training is to train the model, and terminal execution is to predict the health status of the monitored object based on the model.
[0166] The process of training the model includes: preprocessing the data after importing it, wherein the preprocessing includes privacy protection processing of the video data, that is, encrypting the face area in the data, inputting the preprocessed data into the model to train the model, and optimizing and iterating the model.
[0167] The process of predicting the health status of the monitored object based on the model includes: preprocessing the test video data, wherein the preprocessing includes privacy protection processing of the test video data, that is, encrypting the face area in the test video data, inputting the preprocessed data into the model, and obtaining the output result.
[0168] The application layer 1004 is used to provide services to the monitored objects. The monitored objects can set early warning data. The system can virtually reproduce the activity status of the monitored objects through characters and digital twins, and implement early warning or alarm when risk events may occur, and inform the monitored object's family or the monitored object's dedicated caregiver of the monitored object's status information so that they can provide timely rescue. At the same time, the various physical indicator data and status data of the monitored objects can also be accessed, and community workers can specify health management plans based on this.
[0169] Based on the same concept, on the basis of the above embodiments, the embodiment of the present application further provides a health monitoring device, Fig.11 One of the structural diagrams of a health monitoring device provided in an embodiment of the present application is applied to a server, and the device includes:
[0170] The acquisition module 1101 is used to acquire a first monitoring image of a monitored object;
[0171] A determination module 1102, configured to determine a human posture of a monitored object in a first monitoring image based on a human posture detection model;
[0172] The sending module 1103 is used to send the information of the human body posture corresponding to the first monitoring image to the equipment of the monitoring person corresponding to the monitored object.
[0173] In one possible implementation, the determination module 1102 is specifically used to input the first monitoring image into a human joint detection model, and determine the human joints and their position information in the first monitoring image based on the human joint detection model; input the human joints and their position information in the first monitoring image into a joint posture detection model, and determine the human posture based on the joint posture detection model.
[0174] In one possible implementation, the determination module 1102 is specifically used to obtain a sample image and a corresponding target posture in the sample image; wherein the sample image is marked with human joints and corresponding position information; the sample image is input into a joint posture detection model, and a first result corresponding to the human joints is determined based on a linear network of the joint posture detection model; the first result is input into the joint posture detection model, and a second result corresponding to the human posture is determined based on a nonlinear network of the joint posture detection model; according to the second result, a training result is determined in the joint posture detection model based on a classification function, and the training result includes the probability that the sample image belongs to each type of human posture; and the joint posture detection model is trained according to the training result and the target posture.
[0175] Based on the same concept, on the basis of the above embodiments, the embodiment of the present application further provides a health monitoring device, Fig.12 The second structural diagram of a health monitoring device provided in an embodiment of the present application is applied to a monitoring device, and the device includes:
[0176] An acquisition module 1201 acquires a second monitoring image of a monitored object;
[0177] The encryption module 1202 encrypts the face area in the second monitoring image to determine the first monitoring image; wherein the first monitoring image is used by the server to determine the human posture of the monitored object based on the human posture detection model;
[0178] The sending module 1203 sends the first monitoring image to the server.
[0179] In one possible implementation, the encryption module 1202 is specifically used to segment the face area in the second surveillance image to obtain multiple non-overlapping first sub-blocks; scramble and encrypt the multiple first sub-blocks according to a chaotic sequence to determine the first surveillance image; wherein the chaotic sequence is generated based on the acquired key.
[0180] In one possible implementation, the encryption module 1202 is specifically used to perform discrete cosine transform DCT and quantization on multiple first sub-blocks to obtain multiple second sub-blocks; perform scrambling encryption on the multiple second sub-blocks according to the chaotic sequence to obtain multiple third sub-blocks; determine the DC component coefficient and the AC component coefficient in the third sub-block according to the third sub-block; encrypt the DC coefficient by XOR encryption according to the chaotic sequence to obtain the encrypted DC coefficient; encrypt the AC coefficient by scrambling encryption according to the chaotic sequence to obtain the encrypted AC coefficient; determine the first monitoring image based on the encrypted DC coefficient and the encrypted AC coefficient.
[0181] In a possible implementation, the encryption module 1202 is specifically configured to replace the face region in the second monitoring image with a single color block sequence to determine the first monitoring image.
[0182] In one possible implementation, the encryption module 1202 is specifically used to input the second surveillance image into a skin color detection model to determine the skin area in the second surveillance image before encrypting the face area in the second surveillance image; and to determine the face area by corroding and dilating the skin area.
[0183] In a possible implementation, the acquisition module 1201 is specifically used to acquire the original surveillance image of the monitored object; copy the original surveillance image through the digital twin algorithm to determine a second surveillance image corresponding to the original surveillance image.
[0184] Based on the above embodiments, the present application also provides an electronic device, Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.13 As shown, it includes: a processor 1301, a communication interface 1302, a memory 1303 and a communication bus 1304, wherein the processor 1301, the communication interface 1302, and the memory 1303 communicate with each other through the communication bus 1304;
[0185] The memory 1303 stores a computer program, and when the program is executed by the processor 1301 , the processor 1301 executes any one of the above embodiments.
[0186] Since the principle of solving the problem by the above electronic device is similar to that of the health monitoring method, the implementation of the above electronic device can refer to the embodiment of the method, and the repeated parts will not be repeated.
[0187] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface 1302 is used for communication between the above electronic device and other devices. The memory may include a random access memory (RAM) and may also include a non-volatile memory (NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0188] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0189] Based on the above embodiments, an embodiment of the present invention further provides a health monitoring system, which includes a monitoring device and a server;
[0190] A monitoring device, used for sending a collected first monitoring image of a monitored object;
[0191] The server is used to receive a first monitoring image; determine the human posture of a monitored object in the first monitoring image based on a human posture detection model; and send information on the human posture corresponding to the first monitoring image to a device of a monitoring person corresponding to the monitored object.
[0192] Optionally, the health monitoring system of the embodiment of the present application may further include a device of a monitoring person, where the device of the monitoring person is used to receive information on a human body posture corresponding to the first monitoring image.
[0193] Among them, the monitoring device can implement any embodiment of the above-mentioned health monitoring method, and the server can implement any embodiment of the above-mentioned health monitoring method, and the similarities are not repeated here.
[0194] Based on the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program executable by a processor. When the program runs on the processor, the processor implements any of the above embodiments when executing.
[0195] Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the health monitoring method, the implementation of the above-mentioned computer-readable storage medium can refer to the embodiment of the method, and the repeated parts will not be repeated.
[0196] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0197] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0198] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0199] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0200] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A health monitoring method, characterized in that: Applied to a server, the method comprises: Acquire a first monitoring image of the monitored object; Determining the human body posture of the monitored object in the first monitoring image based on a human body posture detection model; The information of the human body posture corresponding to the first monitoring image is sent to the equipment of the monitoring person corresponding to the monitored object.
2. The method according to claim 1, characterized in that The determining the human body posture of the monitored object in the first monitoring image based on the human body posture detection model further includes: Inputting the first monitoring image into a human joint point detection model, and determining the human joint points and position information thereof in the first monitoring image based on the human joint point detection model; The human body joints and position information thereof in the first monitoring image are input into a joint point posture detection model, and the human body posture is determined based on the joint point posture detection model.
3. The method according to claim 2, characterized in that The training process of the joint point posture detection model includes: Acquire a sample image and a target posture corresponding to the sample image; wherein the sample image is marked with human body joints and corresponding position information; Input the sample image into the joint point posture detection model, and determine the first result corresponding to the human body joint point based on the linear network of the joint point posture detection model; input the first result into the joint point posture detection model, and determine the second result corresponding to the human body posture based on the nonlinear network of the joint point posture detection model; According to the second result, determining a training result based on a classification function in the joint point posture detection model, the training result including the probability that the sample image belongs to each type of human posture; The joint point posture detection model is trained according to the training result and the target posture.
4. The method according to claim 1, characterized in that: The first monitoring image is a monitoring image obtained by encrypting the face area of the monitored object.
5. A health monitoring method, characterized in that: Applied to monitoring equipment, the method comprises: Acquire a second monitoring image of the monitored object; Encrypting the face area in the second monitoring image to determine the first monitoring image; wherein the first monitoring image is used by the server to determine the human posture of the monitored object based on a human posture detection model; The first monitoring image is sent to the server.
6. The method according to claim 5, characterized in that The step of encrypting the face region in the second monitoring image to determine the first monitoring image includes: Segmenting the face region in the second monitoring image to obtain a plurality of non-overlapping first sub-blocks; According to a chaotic sequence, a plurality of the first sub-blocks are scrambled and encrypted to determine the first monitoring image; wherein the chaotic sequence is generated according to the acquired key.
7. The method according to claim 6, characterized in that The step of scrambling and encrypting the plurality of the first sub-blocks according to the chaotic sequence to determine the first monitoring image includes: Performing discrete cosine transform (DCT) and quantization on the multiple first sub-blocks to obtain multiple second sub-blocks; According to the chaotic sequence, scramble and encrypt the plurality of the second sub-blocks to obtain a plurality of third sub-blocks; According to the third sub-block, determining a DC coefficient and an AC coefficient in the third sub-block; According to the chaotic sequence, the DC coefficient is encrypted by an XOR encryption method to obtain an encrypted DC coefficient; according to the chaotic sequence, the AC coefficient is encrypted by a scrambling encryption method to obtain an encrypted AC coefficient; The first monitoring image is determined according to the encrypted DC coefficient and the encrypted AC coefficient.
8. The method according to any one of claims 5 to 7, characterized in that: Encrypting the face area in the second monitoring image to determine the first monitoring image includes: The face region in the second monitoring image is replaced by using a single color block sequence to determine the first monitoring image.
9. The method according to claim 5, characterized in that Before encrypting the face area in the second monitoring image, the method includes: Inputting the second monitoring image into a skin color detection model to determine a skin area in the second monitoring image; The skin area is processed by corrosion and dilation to determine the face area.
10. The method according to claim 5, characterized in that The acquiring of the collected second monitoring image of the monitored object comprises: Acquire the collected original monitoring image of the monitored object; The original monitoring image is copied by a digital twin algorithm to determine the second monitoring image corresponding to the original monitoring image.
11. An electronic device, characterized in that: The electronic device includes a processor, and the processor is used to implement the steps of a health monitoring method as described in any one of claims 1 to 10 when executing a computer program stored in a memory.
