Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for monitoring the health of the old in the intelligent community can be applied to an application environment shown in fig. 1, wherein the application environment comprises a server and a client, and the client is communicated with the server through a wired network or a wireless network. Among other things, the client may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented by an independent server or a server cluster composed of a plurality of servers. The client is used for collecting the current heart rate of the target old man, and the server is used for analyzing the current heart rate and determining the health condition of the target old man.
In an embodiment, as shown in fig. 2, a method for monitoring the health of the elderly in an intelligent community is provided, which is described by taking the method as an example of the server in fig. 1, and includes the following steps:
And S10, acquiring the current heart rate of the target old man under the current behavior sent by the client.
Specifically, under a normal condition, the old people in many smart communities are at home alone, the health condition of the old people may be abnormal at any time, in order to monitor the health condition of the old people in real time, the client needs to collect the current behavior picture of the target old people and send the collected current behavior picture to the server, when the server receives the current behavior picture, the current behavior picture is input into a pre-trained behavior recognition model for behavior recognition processing, so that the current behavior is obtained, wherein at least two current behavior pictures exist, the behavior recognition model is obtained by training the historical behavior picture and the historical behavior of the target old people, and the behavior recognition model can be a deep learning model and can also be other models.
preferably, the acquiring the current heart rate of the target elderly person sent by the client under the current behavior specifically includes: firstly, acquiring a target face picture set of a target old man sent by a client in a preset target time period, wherein each target face picture in the target face picture set comprises picture acquisition time; then, preprocessing the target face pictures in the target face picture set to obtain preprocessed target face pictures, namely, filtering the target face pictures in the target face picture set to obtain filtered target face pictures, and performing color enhancement processing on the filtered target face pictures to obtain enhanced target face pictures serving as the preprocessed target face pictures; then, carrying out face color extraction processing on each preprocessed target face picture to obtain a target face color value corresponding to each target face picture; finally, determining the average value of the target face color value as the current heart rate, namely, connecting the target face color value according to the sequence of the image acquisition time to obtain a target face color change signal, and calculating the average period of the target face color change signal; the median value in the average cycle is extracted as the current heart rate.
It should be noted that the client may be a camera or a digital camera, the current behavior may be eating, doing housework or doing sports, the target time period may be 24 hours or 18 hours, and the picture acquisition time is the time when the client acquires each target face picture, and the specific contents of the client, the current behavior and the target time period may be set according to the actual application, which is not limited herein.
further, the current behavior may be a current athletic behavior or a current non-athletic behavior, the historical behavior may be a historical athletic behavior or a historical non-athletic behavior, the current athletic behavior and the historical athletic behavior have a correspondence, and the current non-athletic behavior and the historical non-athletic behavior have a correspondence, where the current athletic behavior refers to a current behavior including an exercise, such as running, the current non-athletic behavior refers to a current behavior not including an exercise, such as sitting, the historical athletic behavior refers to a historical behavior including an exercise, and the historical non-athletic behavior refers to a historical behavior not including an exercise.
further, the current athletic performance may be a current violent athletic performance or a current non-violent athletic performance, the historical athletic performance may be a historical violent athletic performance or a historical non-violent athletic performance, the current violent athletic performance and the historical violent athletic performance have a corresponding relationship, and the current non-violent athletic performance and the historical non-violent athletic performance have a corresponding relationship, where the current violent athletic performance refers to a current performance including violent exercises, such as fast running or basketball playing, the current non-violent athletic performance refers to a current performance not including violent exercises, such as yoga, the historical violent athletic performance refers to a historical performance including violent exercises, and the historical non-violent athletic performance refers to a historical performance not including violent exercises.
And S20, acquiring a pre-collected historical heart rate of the target old man under the historical behavior corresponding to the current behavior.
Specifically, in order to analyze whether the current heart rate of the target elderly is abnormal, a storage path of a historical heart rate of the target elderly under a historical behavior corresponding to the current behavior in a historical database, which is acquired in advance, needs to be acquired first, and then the historical heart rate is extracted according to the acquired storage path. The server collects the historical heart rate of the target old man under the historical behaviors in advance and stores the heart rate to a historical database.
For example, the historical database is a MySQL database, the storage path of the historical heart rate is C: \ Program Files \ MySQL \ MySQL Server 5.0\ data \ and the C: \ Program Files \ MySQL \ MySQL Server 5.0\ data \ is firstly obtained in the MySQL database and then the historical heart rate is extracted according to the C: \ Program Files \ MySQL \ MySQL Server 5.0\ data'.
It should be noted that the history database may be a MySQL database or an oracle database, and the specific content of the history database may be set according to the practical application, which is not limited herein.
And S30, if the current heart rate is larger than the historical heart rate, determining that the target old people are abnormal in health.
Specifically, if the current heart rate acquired in step S10 is greater than the historical heart rate acquired in step S20, it is determined that the target elderly is abnormal in health. For example, if the current heart rate of the target elderly male acquired in step S10 when watching tv is 110 times/minute and the normal historical heart rate of the target elderly male acquired in step S20 when watching tv is 65 times/minute, it is determined that the health of the target elderly male is abnormal. And if the current heart rate acquired in the step S10 is less than or equal to the historical heart rate acquired in the step S20 and greater than the pre-acquired target heart rate, determining that the target elderly is healthy and normal, wherein the target heart rate is the lowest heart rate of the pre-acquired target elderly under normal conditions.
Note that the target elderly people have different heart rates depending on their sex, and in general, the heart rate of women and elderly people is higher than that of men and elderly people.
Further, after determining the health abnormality of the target elderly, the method further comprises: the health abnormity warning information is sent to a rescue system of the smart community, so that the rescue system can rescue a target old man, meanwhile, the health abnormity warning information is sent to a third-party client, when the third-party client receives the health abnormity warning information, the health abnormity warning information is output to remind a user carrying the third-party client, for example, "you are in abnormal health of the old man at home, please contact 120 at once" is sent to the smart phone, when the smart phone receives "you are in abnormal health of the old man at home, please contact 120 at once", the health of the old man at home is output to please contact 120 at once ", so that relatives of the target old man carrying the smart phone are reminded.
Further, when a rescue system of the smart community receives health abnormity warning information, a conversation content instruction is sent to the client, when the client receives the conversation content instruction, conversation content of the target old man is uploaded to the rescue system through the conversation content instruction, the rescue system determines that the conversation content is healthy and normal by analyzing the conversation content of the rescue system, rescue processing on the target old man is released, meanwhile, a continuous health monitoring instruction is sent to the client, and when the client receives the continuous health monitoring instruction, the client outputs the continuous health monitoring instruction to remind the target old man to carry out health monitoring on the body.
Furthermore, biological characteristics such as blood pressure and/or blood sugar of the target old people can be collected through the client, the collected biological characteristics are sent to the server, when the server receives the biological characteristics, the biological characteristics are analyzed to obtain biological characteristic analysis results, and the health condition of the target old people is determined according to the biological characteristic analysis results, so that the accuracy of health monitoring of the target old people is improved.
it should be noted that, the specific content of the third-party client may be set according to the actual application, and is not limited here.
In the embodiment corresponding to fig. 2, the current heart rate of the target old man sent by the client under the current behavior is automatically and accurately obtained, the historical heart rate of the target old man under the historical behavior corresponding to the current behavior is obtained, and if the current heart rate is larger than the historical heart rate, the health of the target old man is determined to be abnormal.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
in one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile readable storage medium, an internal memory. The non-transitory readable storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile readable storage medium. The database of the computer equipment is used for storing data related to the health monitoring method of the old in the intelligent community. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of health monitoring for the elderly in a smart community.
In one embodiment, a computer device is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for monitoring health of the elderly people in the smart community, such as steps S10 to S30 shown in fig. 2.
in one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the method for health monitoring of elderly people in a smart community in the above-described method embodiments. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.