Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a fall alarm method based on a wearable device, and a storage medium, so as to send alarm help-seeking information to an emergency contact of a user in time when it is monitored that the user falls.
The technical scheme adopted by the embodiment of the invention for solving the technical problems is as follows:
according to an aspect of embodiments of the present invention, there is provided a fall alarm method based on a wearable device, the wearable device including a first sensor for acquiring wearing data of a user, a second sensor for acquiring posture data of the user, and a processor electrically connected to the first sensor and the second sensor, the method including executing the following steps with the processor:
acquiring wearing data acquired by the first sensor, and judging whether a user wears the wearable equipment or not according to the wearing data;
when the user wears the wearable device, acquiring the posture data of the wearer, which is acquired by the second sensor, and judging whether the wearer falls down or not according to the posture data;
when the user falls down, sending falling prompt information to the terminal equipment bound with the wearable equipment, and enabling the terminal equipment to inform emergency contacts of the user according to the falling prompt information.
Preferably, the first sensor is a capacitive sensor, the acquiring of the wearing data acquired by the first sensor, and the determining, according to the wearing data, whether the user wears the wearable device include:
obtaining the capacitance value of the capacitance sensor according to the formula D ═ epsilon0ε S/C calculating the inter-plate distance of the capacitive sensor, wherein: d is the distance between the plates of the capacitive sensor, i.e. the distance between the user and the metal plate of said capacitive sensor, ε0The capacitance value of the capacitance sensor is S, C, epsilon, S and epsilon;
when the distance between the plates of the capacitance sensor is smaller than a preset threshold value, the wearable device is worn by a user.
Preferably, the second sensor includes a gyroscope and a three-axis acceleration sensor, the acquiring the posture data of the wearer collected by the second sensor, and the determining whether the user falls includes:
acquiring angular velocity data and triaxial acceleration data acquired by the gyroscope and the triaxial acceleration sensor, and calculating the current acceleration and posture of a user according to the angular velocity data and the triaxial acceleration data;
the method comprises the steps of obtaining the height and the weight of a user, calculating a normal acceleration threshold value of the user in the current posture according to the height and the weight of the user, judging whether the current acceleration of the user continuously exceeds the acceleration threshold value for n times, and if yes, judging that the user falls down, wherein n is a positive integer.
Preferably, the wearable device is a bluetooth headset, and when the user falls, the terminal device that is bound to the wearable device sends fall prompt information, so that the terminal device notifies the emergency contact of the user according to the fall prompt information, including:
when the user falls down, the terminal equipment bound with the Bluetooth earphone sends falling prompt information through Bluetooth, so that the terminal equipment informs the emergency contact of the user through a short message or a telephone according to the falling prompt information.
Preferably, the bluetooth headset has a hearing aid function, and the wearable device-based fall alarm method further includes:
and when the keywords are recognized or the instruction of starting the hearing-aid mode input by the user is detected, controlling the Bluetooth headset to be switched from the earphone mode to the hearing-aid mode.
Preferably, the method of identifying a keyword includes:
acquiring an audio signal acquired by a microphone of the Bluetooth headset;
calculating the average energy and/or short-time average zero-crossing rate of the audio signal, and judging whether the audio signal is a voice segment according to the average energy and/or short-time average zero-crossing rate;
and if the distance between the Mel frequency cepstrum coefficient and the standard Mel frequency cepstrum coefficient corresponding to a preset keyword is smaller than a preset threshold value, the keyword is identified.
Preferably, before acquiring the audio signal collected by the microphone of the bluetooth headset, the method further includes:
and carrying out low-pass filtering processing or windowing processing on the audio signal.
According to another aspect of the embodiments of the present invention, there is provided a wearable device including a first sensor for acquiring wearing data of a user, a second sensor for acquiring posture data of the user, and a processor electrically connected to the first sensor and the second sensor, the processor including:
the wearing state monitoring unit is used for acquiring wearing data acquired by the first sensor and judging whether the user wears the wearable equipment or not according to the wearing data;
the falling state identification unit is used for acquiring the posture data of the wearer, which is acquired by the second sensor, when the wearable device is worn by a user, and judging whether the wearer falls or not according to the posture data;
and the alarm unit is used for sending falling prompt information to the terminal equipment bound with the wearable equipment when the user falls, so that the terminal equipment informs the emergency contact of the user according to the falling prompt information.
According to another aspect of the embodiments of the present invention, there is provided a wearable device including a first sensor for acquiring wearing data of a user, a second sensor for acquiring posture data of the user, and a processor electrically connected to the first sensor and the second sensor;
the wearable device further comprises a memory connected to the processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the wearable device-based fall alert method as described in any of the above.
According to a further aspect of embodiments of the present invention, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the wearable device-based fall alert method as described in any one of the above.
In order to solve the problem that the old people cannot be timely treated when falling down due to the fact that children of the old people cannot often accompany the old people in the prior art, the embodiment of the invention provides a falling alarm method based on wearable equipment, the wearable equipment and a storage medium, wherein the method comprises the following steps of: acquiring wearing data acquired by the first sensor, and judging whether a user wears the wearable equipment or not according to the wearing data; when the user wears the wearable device, acquiring the posture data of the wearer, which is acquired by the second sensor, and judging whether the wearer falls down or not according to the posture data; when the user falls down, the terminal equipment bound with the wearable equipment sends falling prompt information, so that the terminal equipment informs emergency contacts of the user according to the falling prompt information, whether the old man falls down can be monitored in real time, the emergency contacts of the user are timely informed when the old man falls down, and the old man can be timely treated.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a block diagram of a wearable-device-based fall alarm system in an embodiment of the present invention, and only a part related to the embodiment is shown for convenience of description.
Referring to fig. 1, the fall alarm system based on wearable device in the embodiment of the present invention includes a wearable device 1 and a terminal device 2, and a short-distance communication connection is established between the wearable device 1 and the terminal device 2.
Preferably, the short-range communication connection is a bluetooth connection; the wearable device 1 comprises but is not limited to a Bluetooth earphone, a Bluetooth hearing aid and other Bluetooth devices with Bluetooth communication functions; the terminal device 2 includes, but is not limited to, a smart terminal device 2 such as a mobile phone, a computer, etc. with a bluetooth function.
Preferably, the wearable device 1 includes a first sensor 11 for acquiring wearing data of a user, a second sensor 12 for acquiring posture data of the user, and a processor 13 electrically connected to the first sensor 11 and the second sensor 12.
The fall alarm system based on the wearable device 1 in the embodiment of the present invention performs the following steps by the processor 13 in the wearable device 1: acquiring wearing data acquired by the first sensor 11, and judging whether a user wears the wearable device 1 according to the wearing data; when the user wears the wearable device 1, acquiring the posture data of the wearer, which is acquired by the second sensor 12, and judging whether the wearer falls down according to the posture data; when a user falls down, the terminal equipment 2 bound with the wearable equipment 1 is sent falling prompt information, so that the terminal equipment 2 informs an emergency contact of the user according to the falling prompt information, whether the old man falls down can be monitored in real time, the emergency contact of the user is timely informed when the old man falls down, and the old man can be timely treated.
Based on the above system configuration, the following embodiments of the present invention are proposed.
The first embodiment,
Fig. 2 is a schematic flowchart of a specific implementation flow of a wearable-device-based fall alarm method according to an embodiment of the present invention, where an execution subject of the method is a processor 13 in the wearable device 1 in the system shown in fig. 1. Referring to fig. 2, the wearable device-based fall alarm method includes:
step S201, acquiring the wearing data acquired by the first sensor 11, and determining whether the user wears the wearable device 1 according to the wearing data.
Preferably, the first sensor 11 is a capacitance sensor, the obtaining of the wearing data collected by the first sensor 11, and the determining whether the user wears the wearable device 1 according to the wearing data includes:
obtaining the capacitance value of the capacitance sensor according to the formula D ═ epsilon0ε S/C calculating the inter-plate distance of the capacitive sensor, wherein: d is the distance between the plates of the capacitive sensor, i.e. the distance between the user and the metal plate of said capacitive sensor, ε0The capacitance value of the capacitance sensor is S, C, epsilon, S and epsilon;
when the distance between the plates of the capacitance sensor is smaller than a preset threshold value, the wearable device 1 is worn by the user.
In this embodiment, the processor 13 may calculate a distance between the user and the wearable device 1, that is, an inter-plate distance of the capacitive sensor, according to the capacitance value detected by the capacitive sensor, and when the distance between the user and the wearable device 1 is calculated to be smaller than the preset threshold, it indicates that the wearable device 1 is in a wearing state; otherwise, it indicates that the wearable device 1 is in an unworn state.
Step S202, when the user wears the wearable device 1, the posture data of the wearer collected by the second sensor 12 is obtained, and whether the wearer falls is judged according to the posture data.
Preferably, the second sensor 12 includes a gyroscope and a three-axis acceleration sensor, the acquiring the posture data of the wearer collected by the second sensor 12, and the determining whether the user falls includes:
acquiring angular velocity data and triaxial acceleration data acquired by the gyroscope and the triaxial acceleration sensor, and calculating the current acceleration and posture of a user according to the angular velocity data and the triaxial acceleration data;
the method comprises the steps of obtaining the height and the weight of a user, calculating a normal acceleration threshold value of the user in the current posture according to the height and the weight of the user, judging whether the current acceleration of the user continuously exceeds the acceleration threshold value for n times, judging that the user falls down if the current acceleration of the user continuously exceeds the acceleration threshold value, wherein n is a positive integer and the user can be automatically set according to needs.
In this embodiment, the terminal device 2 is installed with an APP for managing the wearable device 1, and when the user wears the wearable device 1 for the first time, the user fills in personal information on the APP, where the personal information includes but is not limited to: the name, the height, the weight, the emergency contact person, the contact way of the emergency contact person and the like of the user are obtained, then the APP sends the personal information of the user to the wearable device 1, and therefore when the follow-up wearable device 1 obtains the current acceleration and the current posture of the user, the normal acceleration threshold value under the current posture of the user can be calculated according to the height and the weight in the personal information of the user. Preferably, n is greater than or equal to 2 in this embodiment, so that false detection can be avoided.
Step S203, when the user falls down, sending falling prompt information to the terminal equipment 2 bound with the wearable equipment 1, and enabling the terminal equipment 2 to inform emergency contacts of the user according to the falling prompt information.
Preferably, the wearable device 1 is a bluetooth headset, and step S203 specifically includes:
when the user falls down, the terminal equipment 2 bound with the Bluetooth earphone sends falling prompt information through Bluetooth, so that the terminal equipment 2 informs the emergency contact of the user through a short message or a telephone according to the falling prompt information.
In this embodiment, when the processor 13 detects that the user falls, the wearable device 1 is controlled to send fall prompt information to the terminal device 2 through the bluetooth, the APP on the terminal device 2 receives the fall prompt information of the user and then obtains the contact information of the emergency contact of the user, and then notifies the emergency contact of the user in the form of a short message or a voice call according to the contact information, so that the user can timely obtain help for the emergency contact.
As can be seen from the above, in the fall alarm method based on the wearable device 1 provided in this embodiment, the wearing data acquired by the first sensor 11 is acquired, and whether the wearable device 1 is worn by the user is determined according to the wearing data; when the user wears the wearable device 1, acquiring the posture data of the wearer, which is acquired by the second sensor 12, and judging whether the wearer falls down according to the posture data; when a user falls down, the terminal equipment 2 bound with the wearable equipment 1 is sent falling prompt information, so that the terminal equipment 2 informs an emergency contact of the user according to the falling prompt information, whether the old man falls down can be monitored in real time, the emergency contact of the user is timely informed when the old man falls down, and the old man can be timely treated.
Example two
Fig. 3 is a schematic flow chart of a specific implementation of a wearable-device-based fall alarm method according to a second embodiment of the present invention, where an execution subject of the method is the processor 13 in the wearable device 1 shown in fig. 1. Referring to fig. 3, with respect to the previous embodiment, the wearable device-based fall alarm method provided by the present embodiment further includes:
and step S304, when the keyword is identified or the instruction of starting the hearing aid mode input by the user is detected, controlling the Bluetooth headset to be switched from the earphone mode to the hearing aid mode.
In this embodiment, the wearable device 1 is a bluetooth headset having a hearing aid function, the operating modes of the bluetooth headset include a headset mode and a hearing aid mode, the bluetooth headset can play the audio signal of the terminal device 2 in the headset mode, the audio signal collected by the microphone can be amplified in the hearing aid mode to implement the hearing aid function, and the bluetooth headset can be switched between the headset mode and the hearing aid mode.
Specifically, when the bluetooth headset works in the headset mode, if a keyword is recognized or a hearing aid mode starting instruction input by a user is detected, the bluetooth headset is controlled to be switched from the headset mode to the hearing aid mode. The method for identifying the keywords comprises the following steps:
acquiring an audio signal acquired by a microphone of the Bluetooth headset;
calculating the average energy and/or short-time average zero-crossing rate of the audio signal, and judging whether the audio signal is a voice segment according to the average energy and/or short-time average zero-crossing rate;
and if the distance between the Mel frequency cepstrum coefficient and the standard Mel frequency cepstrum coefficient corresponding to a preset keyword is smaller than a preset threshold value, the keyword is identified.
In this embodiment, when the average energy of the audio signal collected by the microphone is smaller than the preset energy threshold or the short-term average zero-crossing rate is smaller than the preset zero-crossing rate threshold, it indicates that the audio signal collected by the microphone is a noise signal, otherwise, it indicates that the audio signal collected by the microphone is a speech segment.
In this embodiment, when the audio signal collected by the microphone is recognized as a speech segment, the audio signal is pre-emphasized, so that the high-frequency part of the speech signal can be emphasized, and the high-frequency resolution of the speech can be increased.
In this embodiment, the terminal device 2 is preconfigured with a standard mel-frequency cepstrum coefficient corresponding to a preset keyword, and the wearable device 1 acquires the standard mel-frequency cepstrum coefficient corresponding to the preset keyword through the terminal device 2.
Preferably, in this embodiment, before acquiring the audio signal collected by the microphone of the bluetooth headset, the method further includes: and carrying out low-pass filtering processing or windowing processing on the audio signal. Therefore, the noise signals in the audio signals can be filtered, and the accuracy of subsequent audio signal identification is improved.
Preferably, in this embodiment, after step S304, the method may further include:
automatically recovering to an earphone mode after the audio signal acquired by the microphone is amplified; or when a control instruction for switching to the earphone mode is received, the Bluetooth earphone is switched from the hearing-aid mode to the earphone mode according to the control instruction.
Preferably, in this embodiment, the processor 13 of the bluetooth headset uses a TWS (True Wireless Stereo) bluetooth chip, so that a user can obtain a better audio effect experience.
It should be noted that, in this embodiment, the specific implementation manners of step S301 to step S303 are respectively the same as the specific implementation manners of step S201 to step S203 in the previous embodiment, and therefore, no further description is given here.
As can be seen from the above, compared with the wearable device 1 in the embodiment of the previous embodiment, the wearable device not only has a fall alarm function, but also has the functions of a bluetooth headset and a hearing aid, so that the experience of the user can be further improved; in addition, due to the fact that the TWS Bluetooth chip is adopted, a user can obtain a better audio effect.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a wearable device provided in the third embodiment of the present invention. Only the portions related to the present embodiment are shown for convenience of explanation.
Referring to fig. 4, the wearable device 1 provided in this embodiment includes a first sensor 11 for acquiring wearing data of a user, a second sensor 12 for acquiring posture data of the user, and a processor 13 electrically connected to the first sensor 11 and the second sensor 12, where the processor 13 includes:
the wearing state monitoring unit 131 is configured to acquire wearing data acquired by the first sensor 11, and determine whether the user wears the wearable device 1 according to the wearing data;
a fall state identification unit 132, configured to acquire posture data of the wearer acquired by the second sensor 12 when the user wears the wearable device 1, and determine whether the wearer falls according to the posture data;
the alarm unit 133 is configured to send fall prompt information to the terminal device 2 bound to the wearable device 1 when the user falls, so that the terminal device 2 notifies an emergency contact of the user according to the fall prompt information.
It should be noted that, since each unit in the wearable device 1 provided in the embodiment of the present invention is based on the same concept as that of the embodiment of the method of the present invention, the technical effect thereof is the same as that of the embodiment of the method of the present invention, and specific contents thereof can be referred to the description in the embodiment of the method of the present invention, and are not described herein again.
Example four
Fig. 5 is a schematic structural diagram of a wearable device according to a fourth embodiment of the present invention. Only the portions related to the present embodiment are shown for convenience of explanation.
Referring to fig. 5, the wearable device 1 provided in this embodiment includes a first sensor 11 for acquiring wearing data of a user, a second sensor 12 for acquiring posture data of the user, and a processor 13 electrically connected to the first sensor 11 and the second sensor 12;
the wearable device 1 further comprises a memory connected to the processor 13 and a computer program 141 stored in the memory 14 and executable on the processor 13, wherein when the computer program 141 is executed by the processor 13, the steps of the wearable device-based fall alarm method according to the first embodiment or the second embodiment are implemented.
It should be noted that, because the wearable device provided in the embodiment of the present invention is based on the same concept as the embodiment of the method of the present invention, the technical effects brought by the wearable device are the same as the embodiment of the method of the present invention, and specific contents may refer to the description in the embodiment of the method of the present invention, and are not described herein again.
EXAMPLE five
Fifth, an embodiment of the present invention provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the fall alarm method based on a wearable device as described in the first or second embodiment of the present invention are implemented.
The computer-readable storage medium of the embodiment of the present invention and the method of the first to second embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the corresponding method embodiments, and technical features in the method embodiments are applicable in the computer-readable storage medium embodiments, and are not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.