CN116959204A - Earthquake early warning method based on mattress, mattress and storage medium - Google Patents

Earthquake early warning method based on mattress, mattress and storage medium Download PDF

Info

Publication number
CN116959204A
CN116959204A CN202311059407.7A CN202311059407A CN116959204A CN 116959204 A CN116959204 A CN 116959204A CN 202311059407 A CN202311059407 A CN 202311059407A CN 116959204 A CN116959204 A CN 116959204A
Authority
CN
China
Prior art keywords
mattress
information
target
user
early warning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311059407.7A
Other languages
Chinese (zh)
Inventor
王炳坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
De Rucci Healthy Sleep Co Ltd
Original Assignee
De Rucci Healthy Sleep Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by De Rucci Healthy Sleep Co Ltd filed Critical De Rucci Healthy Sleep Co Ltd
Priority to CN202311059407.7A priority Critical patent/CN116959204A/en
Publication of CN116959204A publication Critical patent/CN116959204A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/02Alarms for ensuring the safety of persons
    • G08B21/10Alarms for ensuring the safety of persons responsive to calamitous events, e.g. tornados or earthquakes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geology (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Alarm Systems (AREA)

Abstract

The application discloses a mattress-based earthquake early warning method, a mattress and a storage medium, wherein in the mattress-based earthquake early warning method, under the condition of receiving earthquake early warning information, position information of the mattress, scene information of the mattress and sleeping information of a user on the mattress are obtained; determining a target early warning strategy according to earthquake early warning information, position information of a mattress, scene information of the mattress and sleeping information of a user, waking up the user according to a target wake-up strategy in the target early warning strategy, and guiding the user to avoid danger according to a target danger avoiding guiding strategy in the target early warning strategy. Compared with the prior art, the earthquake early warning device can timely perform earthquake early warning, provide danger avoiding means for users who do not master the danger avoiding means, improve the danger avoiding effective rate of the users, and reduce the casualties of the earthquake.

Description

Earthquake early warning method based on mattress, mattress and storage medium
Technical Field
The embodiment of the application relates to earthquake early warning technology, in particular to an earthquake early warning method based on a mattress, the mattress and a storage medium.
Background
In real life, if an earthquake occurs when people lie on a bed to sleep, people cannot always avoid danger in time, so that a serious casualty situation occurs, although part of mobile phones on the market are already provided with the function of alarming when the earthquake comes, except for the fact that danger avoiding training is carried out on the earthquake in daily life of users, the mobile phones cannot provide danger avoiding means for users who do not know the danger avoiding means, and earthquake early warning cannot be carried out in time when the mobile phones are in shutdown.
Disclosure of Invention
Therefore, the earthquake early warning method based on the mattress, the mattress and the storage medium provided by the embodiment of the application can timely perform earthquake early warning, provide the risk avoiding means for users who do not grasp the risk avoiding means, improve the risk avoiding effective rate of the users and reduce the casualties of the earthquake.
In a first aspect, an earthquake early warning method based on a mattress provided by an embodiment of the present application is applied to a mattress, and the method includes: under the condition of receiving earthquake early warning information, acquiring the position information of the mattress, the scene information of the mattress and the sleeping information of a user on the mattress; determining a target early warning strategy according to the earthquake early warning information, the position information of the mattress, the scene information of the mattress and the sleeping information of the user, wherein the target early warning strategy comprises a target awakening strategy for the user on the mattress and a target risk avoidance guiding strategy for the user; and waking up the user according to the target wake-up strategy, and guiding the user to avoid risk according to the target risk-avoiding guiding strategy.
In the earthquake early warning method based on the mattress, under the condition of receiving earthquake early warning information, the position information of the mattress, the scene information of the mattress and the sleeping information of a user on the mattress are obtained; determining a target early warning strategy according to earthquake early warning information, position information of a mattress, scene information of the mattress and sleeping information of a user, waking up the user according to a target wake-up strategy in the target early warning strategy, and guiding the user to avoid danger according to a target danger avoiding guiding strategy in the target early warning strategy. Compared with the prior art, the earthquake early warning device can timely perform earthquake early warning, provide danger avoiding means for users who do not master the danger avoiding means, improve the danger avoiding effective rate of the users, and reduce the casualties of the earthquake.
In some embodiments, determining the target early warning strategy according to the earthquake early warning information, the position information of the mattress, the scene information of the mattress and the sleeping information of the user comprises: determining whether to execute the target early warning strategy according to the earthquake position and the earthquake level indicated in the earthquake early warning information and the position information of the mattress; if yes, determining the target wake-up strategy according to the sleep information of the user; and determining the target risk avoidance guiding strategy according to scene information of the mattress, wherein different scene information corresponds to different target risk avoidance guiding strategies.
In some embodiments, the determining the target wake policy according to sleep information of the user includes: if the user is recognized to be in deep sleep according to the sleep information, determining a target vibration parameter of the mattress as a first parameter, wherein the target vibration parameter comprises vibration amplitude and/or vibration frequency; if the user is identified to be in shallow sleep according to the sleep information, determining the target vibration parameter as a second parameter; wherein the first parameter is the same as the second parameter in type, and the value of the first parameter is larger than the value of the second parameter.
In some embodiments, the obtaining scene information in which the mattress is located includes: acquiring at least one associated device of the mattress, wherein the associated device is preset by the user or is located in the same network environment with the mattress; obtaining scene information of the mattress according to the equipment type of the at least one associated equipment; when the equipment type of the at least one associated equipment comprises a household equipment type, determining that scene information of the mattress is a household scene; otherwise, determining that the scene information of the mattress is an outdoor scene.
In some embodiments, the scene information is a home scene, the scene information further includes floor information where the mattress is located, and determining the target risk avoidance guiding policy according to the scene information where the mattress is located includes: determining that the target risk avoidance guiding strategy is a strategy taking a preset room in a plurality of rooms corresponding to the home scene as a risk avoidance place and generating guiding information taking the risk avoidance place as a destination under the condition that floor information of the mattress is greater than or equal to a threshold value; and under the condition that the floor information of the mattress is smaller than the threshold value, determining the target risk avoidance guiding strategy to take a risk avoidance place outside a building corresponding to the home scene as a risk avoidance place and generating guiding information taking the risk avoidance place as a destination.
In some embodiments, the target risk avoidance guiding policy is a policy that uses a preset room of a plurality of rooms corresponding to the home scene as a risk avoidance place and generates guiding information with the risk avoidance place as a destination, the preset room is a toilet, and the guiding a user to avoid risk according to the target risk avoidance guiding policy includes: acquiring spatial distribution information of a plurality of rooms corresponding to the home scene and distribution information of lighting equipment; determining the position information of a target toilet nearest to the mattress according to the space distribution information; obtaining equipment information of target lighting equipment corresponding to a path from the mattress to the target toilet according to the distribution information of the lighting equipment, the position information of the mattress and the position information of the target toilet; and controlling the target lighting equipment to be in a lighting state so as to guide the user to avoid danger.
In some embodiments, the target risk avoidance guiding policy is a policy that takes a risk avoidance location outside a building corresponding to the home scene as a risk avoidance location and generates guiding information that takes the risk avoidance location as a destination, and guiding a user to avoid risk according to the target risk avoidance guiding policy includes: acquiring fire control channel distribution information of a building corresponding to the home scene; obtaining a course of action from the mattress to the risk avoidance site according to the fire fighting access distribution information and the risk avoidance site; and sending the action route to the electronic equipment of the user so as to guide the user to avoid danger.
In a second aspect, an embodiment of the present application provides a mattress, the mattress comprising: the system comprises a mattress information acquisition module, a control module and a control module, wherein the mattress information acquisition module is used for acquiring the position information of a mattress, the scene information of the mattress and the sleeping information of a user on the mattress under the condition of receiving earthquake early warning information; the early warning strategy determining module is used for determining a target early warning strategy according to the earthquake early warning information, the position information of the mattress, the scene information of the mattress and the sleeping information of the user, wherein the target early warning strategy comprises a target awakening strategy for the user on the mattress and a target risk avoidance guiding strategy for the user; the early warning strategy executing module is used for waking up the user according to the target wake-up strategy and guiding the user to avoid risks according to the target risk avoiding guiding strategy.
In a third aspect, an embodiment of the present application provides a mattress, including a memory and a processor, where the memory stores a computer program that can be run on the processor, and where the processor implements the method according to the embodiment of the present application when the processor executes the program.
In a fourth aspect, a computer readable storage medium is provided according to an embodiment of the present application, where a computer program is stored, where the computer program is executed by a processor to implement the method provided according to the embodiment of the present application.
It should be understood that, the second to fourth aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a mattress-based earthquake early warning system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for earthquake early warning based on a mattress according to an embodiment of the application;
FIG. 3 is a schematic flow chart of a method for earthquake early warning based on a mattress according to an embodiment of the application;
FIG. 4 is a schematic flow chart of a method for earthquake early warning based on a mattress according to an embodiment of the application;
FIG. 5 is a schematic flow chart of a method for earthquake early warning based on a mattress according to an embodiment of the application;
FIG. 6 is a schematic view of a mattress according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the specific technical solutions of the present application will be described in further detail below with reference to the accompanying drawings in the embodiments of the present application. The following examples are illustrative of the application and are not intended to limit the scope of the application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
It should be noted that the term "first/second/third" in relation to embodiments of the present application is used to distinguish between similar or different objects, and does not represent a particular ordering of the objects, it being understood that the "first/second/third" may be interchanged with a particular order or sequencing, as permitted, to enable embodiments of the present application described herein to be implemented in an order other than that illustrated or described herein.
Fig. 1 is a schematic structural diagram of an earthquake early warning system based on a mattress according to an embodiment of the present application. As shown in fig. 1, the system comprises a earthquake early warning system 10, a mattress 20 and an electronic device 30, wherein the earthquake early warning system 10 and the mattress 20 and the electronic device 30 can be in communication connection through a network. The network may be a wireless communication network or a wired communication network, and the wireless communication network may be a local area network or a wide area network.
The earthquake early warning system 10 is used for providing service points for carrying out earthquake-related detection, data processing and early warning prompt. The seismic early warning system 10 may include a server and a monitoring point. The monitoring points are distributed near each large seismic source, and the monitoring points are used for detecting the depth, the breadth and the like of the seismic source and can be any detection equipment for detecting seismic information. The servers may be monolithic servers, distributed servers across multiple computers, computer data centers, cloud servers, or clusters of servers deployed at the cloud, etc. In some embodiments, each server may include hardware, software, or embedded logic components or a combination of two or more such components for performing the appropriate functions supported by or implemented by the server. The server specific configuration may include, but is not limited to, a processor, memory, interface means, communication means. The processor is configured to execute a computer program written in an instruction set of an architecture such as x86, arm, RISC, MIPS, SSE, etc. The memory is, for example, ROM (read only memory), RAM (random access memory), nonvolatile memory such as a hard disk, or the like. The interface means are for example a USB interface, a serial interface, a parallel interface, etc. The communication means is capable of wired or wireless communication, and may include WiFi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like, for example. In which a computer program is stored for controlling a processor to operate in support of the implementation of the method according to an embodiment of the application. The skilled person can design the computer program according to the solution disclosed in the present application. How the computer program controls the processor to operate is common in the art, and will not be described in detail here.
The electronic device 30 is, for example, a mobile phone, a portable computer, a tablet computer, a palm computer, a wearable device, a home device, or the like. The electronic device 30 is provided with an application client, and a user can implement a flow of a method supporting an embodiment of the present application by operating the application client. The terminal device may include, but is not limited to, a processor, memory, interface means, communication means, display means, input means, speaker, microphone, and the like. The processor may be a central processing unit CPU, a graphics processor GPU, a microprocessor MCU, or the like, for executing a computer program, which may be written in an instruction set of an architecture such as x86, arm, RISC, MIPS, SSE, or the like. The memory includes, for example, ROM (read only memory), RAM (random access memory), nonvolatile memory such as a hard disk, and the like. The interface means include, for example, a USB interface, a serial interface, a parallel interface, etc. The communication means can be wired communication using an optical fiber or cable, or wireless communication, for example, and specifically may include WiFi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like. The display device is, for example, a liquid crystal display, a touch display, or the like. The input device may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. The speaker is used for outputting audio signals. The microphone is used to pick up an audio signal. The memory of the terminal device is used to store a computer program for controlling the processor to operate in support of the implementation of the method according to the embodiments of the present disclosure, which is well known in the art and will not be described in detail here. The terminal device may be installed with an intelligent operating system (e.g., windows, linux, android, IOS, etc. systems) and application software.
The mattress 20 may include, but is not limited to, a processor, memory, interface device, communication device, display device, input device, and the like. The processor may be a microprocessor MCU or the like. The memory includes, for example, ROM (read only memory), RAM (random access memory), nonvolatile memory such as a hard disk, and the like. The interface means include, for example, a USB interface, a serial interface, a parallel interface, etc. The communication means can be wired communication using an optical fiber or cable, or wireless communication, for example, and specifically may include WiFi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like. The display device may be, for example, a liquid crystal display, a touch display, or the like. The input device may include, for example, a touch screen, a keyboard, etc., or may be a microphone to input voice information. The memory of mattress 20 is used to store a computer program for controlling a processor to operate to support the implementation of the method according to an embodiment of the application. How the computer program controls the processor to operate is well known in the art and will not be described in detail here.
It should be noted that, only one earthquake early warning system 10, electronic device 30 and mattress 20 are shown in fig. 1, but the number of each is not limited, and a plurality of earthquake early warning systems 10, a plurality of electronic devices 30 and a plurality of mattresses 20 may be included in the system.
Fig. 2 is a flow chart of a earthquake early warning method based on a mattress according to an embodiment of the present application, and the method is applicable to the mattress shown in fig. 1. As shown in fig. 2, the method may include the steps of:
step S101, under the condition that earthquake early warning information is received, position information of a mattress, scene information of the mattress and sleeping information of a user on the mattress are obtained.
Optionally, the above-mentioned earthquake early warning information may be sent by an earthquake early warning system, for example, the earthquake early warning system 10 shown in fig. 1, where the earthquake early warning information may include information such as a position, a magnitude, and a depth of a seismic source of an earthquake, and the mattress calculates an earthquake coverage after receiving the information, so as to obtain an accurate earthquake coverage, and the earthquake early warning information may also directly include the earthquake coverage, so as to avoid the mattress consuming resources to calculate. Under the condition that errors exist in the obtained earthquake wave coverage range, the space where the mattress in the earthquake wave coverage range is located is generally affected by the earthquake action of the area where the mattress is located to generate corresponding vibration, and disasters are extremely easy to occur under the condition that any risk avoidance measures are not taken.
Optionally, the position information of the mattress is information for indicating the position of the mattress, and the position information of the mattress may be two-dimensional positioning information (such as longitude and latitude) or three-dimensional positioning information (such as a certain unit in a certain building or a certain corner in a certain unit), which is not limited in the application. When the position information of the mattress is two-dimensional positioning information, the position information of the mattress can be acquired through a global positioning system (Global Positioning System, GPS) positioning mode, a base station positioning mode and/or a WIFI positioning mode; when the position information of the mattress is three-dimensional positioning information, the position information of the mattress not only obtains partial two-dimensional positioning information in a GPS positioning, base station positioning and/or WIFI positioning mode, but also detects the atmospheric pressure value of the floor where the mattress is located through a barometer, so that three-dimensional positioning is realized.
Optionally, the sleeping information of the user on the mattress is information for indicating the sleeping state of the user, and the sleeping state parameter of the user detected can be used as the sleeping information by installing various sensors or detection devices at the sleeping position of the user, for example, a weight sensor can be arranged in the mattress to detect the weight distribution condition of the user, an infrared imaging device can be arranged at the head of a bed to detect the turn-over times and related actions of the user, and the heartbeat rate of the user can be detected by wearing a bracelet; the sleeping information can also be obtained by acquiring various physical parameters of the user after sleeping, and the sleeping states of the user in different environments are different, or the sleeping speeds of the user entering into deep sleep in different environments are different, for example, a person is difficult to fall asleep in a hotter or colder environment, the person is easy to wake up to be in a shallow sleeping state after falling asleep, and meanwhile, the user can frequently turn over and breathe along with the sleeping state.
Optionally, the above-mentioned scene information is information for indicating a scene where the mattress is located, and may be determined by acquiring scene information preset in the mattress by a user, for example, the scene information preset in the mattress has two scene modes, i.e., a home mode and an outdoor mode, and when the mattress is used for the first time by the user, a selection instruction may be input into the mattress to determine whether the scene where the mattress is located is the home mode or the outdoor mode, so as to obtain the scene information of the mattress; the scene image of the scene where the mattress is located can be acquired, the scene image can be identified, the current scene can be determined, the current scene can include but is not limited to an indoor scene and an outdoor scene, wherein the indoor scene includes but is not limited to a classroom indoor scene, a library indoor scene, a family indoor scene and the like, and the outdoor scene includes but is not limited to an open outdoor scene (such as a playground and a square), a narrow outdoor scene (such as a street with dense people flow, a small roadway) and the like.
Step S102, determining a target early warning strategy according to earthquake early warning information, position information of the mattress, scene information of the mattress and sleeping information of a user, wherein the target early warning strategy comprises a target awakening strategy for the user on the mattress and a target risk avoidance guiding strategy for the user.
It should be understood that the target wake-up strategy is determined according to the earthquake early-warning information, the position information of the mattress and the sleep information of the user, and when the position of the mattress is determined to be in the earthquake wave range according to the earthquake early-warning information and the position information of the mattress, the wake-up strategy for waking up the user can be performed according to the sleep information of the user, and different sleep information corresponds to different wake-up strategies. The calculation method of the seismic sweep range adopts a common technical means in the prior art, and is not repeated here. The target risk avoiding guiding strategy is determined according to scene information of the mattress, and different scene information corresponds to different risk avoiding guiding strategies.
If the scene where the current mattress is located is identified as a home scene, and the current mattress is determined to be located in the earthquake wave range according to the positioning information of the mattress, the current need to wake up the user according to the sleeping information of the user is determined, and a risk avoidance guiding strategy corresponding to the home scene is executed; if the scene where the current mattress is located is identified as an outdoor scene, and the current mattress is determined to be located in the earthquake wave range according to the positioning information of the mattress, the current need to wake up the user according to the sleeping information of the user is determined, and the risk avoidance guiding strategy corresponding to the outdoor scene is executed.
Step S103, waking up the user according to the target wake-up strategy, and guiding the user to avoid risks according to the target risk-avoiding guiding strategy.
Optionally, the means of the target wake-up policy may be vibration, sound, etc., so as to wake up the user, and may be specifically designed according to the need, which is not limited by the present application.
Optionally, the guiding means of the risk avoidance guiding policy may be a navigation route, a light, etc., so as to prompt the user how to avoid risk, and the method and the device may be specifically designed according to the need, and the application is not limited.
Optionally, after the step S103 is performed, it may also be detected whether the user on the mattress has already risen, and if not, the user is continuously woken up according to the target wake-up strategy, so that the user rises from the mattress.
In the earthquake early warning method based on the mattress, under the condition of receiving earthquake early warning information, the position information of the mattress, the scene information of the mattress and the sleeping information of a user on the mattress are obtained; determining a target early warning strategy according to earthquake early warning information, position information of a mattress, scene information of the mattress and sleeping information of a user, waking up the user according to a target wake-up strategy in the target early warning strategy, and guiding the user to avoid danger according to a target danger avoiding guiding strategy in the target early warning strategy. Compared with the prior art, the earthquake early warning device can timely perform earthquake early warning, provide danger avoiding means for users who do not master the danger avoiding means, improve the danger avoiding effective rate of the users, and reduce the casualties of the earthquake.
Fig. 3 is a flow chart of a earthquake early warning method based on a mattress according to an embodiment of the application. As shown in fig. 3, the method may include the steps of:
step S201, under the condition that earthquake early warning information is received, position information of a mattress, scene information of the mattress and sleeping information of a user on the mattress are obtained.
It should be noted that, the execution manner of the step S201 is identical to the execution manner of the step S101, and will not be described here again.
Step S202, determining whether to execute a target early warning strategy according to the earthquake position, the earthquake magnitude and the position information of the mattress indicated in the earthquake early warning information.
It should be understood that when the judgment result that the mattress is located in the range of the earthquake is obtained according to the earthquake position, the earthquake magnitude and the position information of the mattress, the target early warning strategy needs to be executed; when the mattress is not located in the range of the earthquake wave, the target early warning strategy does not need to be executed.
Step S203, if yes, determining a target wake-up strategy according to sleep information of a user; and determining a target risk avoidance guiding strategy according to scene information of the mattress, wherein different scene information corresponds to different target risk avoidance guiding strategies.
Optionally, the determining manner of the target wake policy may include:
Step S2031, if it is identified that the user is in deep sleep according to the sleep information, determining a target vibration parameter of the mattress as a first parameter, where the target vibration parameter includes a vibration amplitude and/or a vibration frequency.
Step S2032, if it is identified that the user is in light sleep according to the sleep information, determining the target vibration parameter as the second parameter, where the first parameter and the second parameter have the same parameter type, and the value of the first parameter is greater than the value of the second parameter.
The sleep stage of the user, such as a deep sleep stage, a light sleep stage, etc., can be accurately determined by combining the detected sleep state parameters, because the sleep stages have respective sleep characteristics, such as a complete sleep cycle: the sleeping period, the light sleeping period, the deep sleeping period and the rapid eye movement period, when the sleeping degree of a user is deeper, the respiratory frequency is slower, the respiratory frequency of an end user can be distributed in a U shape, and the heart rate is slower along with the deeper sleeping degree, so that the sleeping stage of the current user can be judged according to the respiratory frequency and also can be judged according to the heart rate, and besides, the turning-over times and the body weight distribution of the user can be used for assisting in judging the sleeping stage of the user. The vibration parameters performed to wake the user while the user is in different sleep stages may be different or the same. However, in order to prevent the user who is in light sleep from being frightened by excessive vibration parameters when waking up due to the vibration of the mattress, the vibration parameters performed for the user who is in light sleep may be smaller than those performed for the user who is in deep sleep.
Step S204, waking up the user according to the target wake-up strategy, and guiding the user to take refuge according to the target refuge guiding strategy.
It should be noted that, the execution manner of the step S204 is identical to the execution manner of the step S103, and will not be described here again.
According to the earthquake early warning method based on the mattress, the target wake-up strategy is determined according to the sleeping information of the user, and the target risk avoidance guiding strategy is determined according to the scene information of the mattress, so that the mattress can adapt to different scenes and different users, and the adaptability is improved.
Fig. 4 is a flow chart of a earthquake early warning method based on a mattress according to an embodiment of the application. As shown in fig. 4, the method may include the steps of:
step S301, obtaining the position information of the mattress and the sleeping information of the user on the mattress when the earthquake early warning information is received.
It should be noted that, the execution manner of the step S301 is identical to the execution manner of the step S101, and will not be described here again.
Step S302, at least one associated device of the mattress is obtained, wherein the associated device is a device preset by a user or a device in the same network environment with the mattress.
Optionally, the associating device may be any electronic device, and when the associating device is a device preset by a user, the mattress may obtain the device information of the associating device by reading the device information preset by the user and associated with the mattress; when the associated equipment is equipment in the same network environment as the mattress, the mattress can read the equipment information of all the equipment in the same network environment as the mattress, and take the read equipment information of all the equipment as the associated equipment. In some embodiments, the device information includes a device type, a device identification, etc., such as a home type device (e.g., a floor sweeping robot, a refrigerator, a television, etc.), and an outdoor type device (e.g., a vehicle, an outdoor water purifier, a smart sleeping bag, etc.).
Step S303, obtaining scene information of the mattress according to the equipment type of at least one associated equipment, wherein when the equipment type of the at least one associated equipment comprises a household equipment type, the scene information of the mattress is determined to be a household scene; otherwise, determining that the scene information of the mattress is an outdoor scene.
Alternatively, the device type of the associated device may be determined according to the device information, and the device type of the associated device may include a home device type, such as a robot for sweeping floor, a refrigerator, a television, etc., an outdoor device type, such as a vehicle, an outdoor water purifier, an intelligent sleeping bag, etc.
In an exemplary embodiment, when the earthquake early warning information is received, the mattress reads the equipment type of the associated equipment, where the associated equipment includes equipment a, equipment B and equipment C, if one or more of the equipment a, equipment B and equipment C is a home equipment type, the scene information of the mattress is determined to be a home scene, and if all of the equipment a, equipment B and equipment C are outdoor equipment types, the scene information of the mattress is determined to be an outdoor scene.
Step S304, determining whether to execute the target early warning strategy according to the earthquake position, the earthquake magnitude and the position information of the mattress indicated in the earthquake early warning information.
Step S305, if yes, determining a target wake-up strategy according to sleep information of a user; and determining a target risk avoidance guiding strategy according to scene information of the mattress, wherein different scene information corresponds to different target risk avoidance guiding strategies.
Step S306, awakening the user according to the target awakening strategy, and guiding the user to take refuge according to the target refuge guiding strategy.
Optionally, if the scene information is a home scene and the scene information further includes floor information where the mattress is located, the step S305 may include:
in step S3051, when the floor information where the mattress is located is greater than or equal to the threshold value, determining that the target risk avoidance guidance policy is a policy in which a preset room of a plurality of rooms corresponding to the home scene is taken as the risk avoidance place and guidance information in which the risk avoidance place is taken as the destination is generated.
Optionally, the floor information of the mattress can be obtained through a barometer, the height of the mattress can be calculated according to the air pressure value when the air pressure is stable according to the relation between the air pressure and the height, and the floor of the mattress can be converted by combining the corresponding relation between the floor information and the height information.
Optionally, the preset room may be a unified standard, or may be a room determined according to a selection instruction of a user. When the user selects among the plurality of rooms, all the rooms and corresponding room positions can be displayed on a display screen of the mattress, and then the user selects one of the all the rooms on the display screen as a preset room; the target room selected by the user can also be received through at least one associated device corresponding to the mattress, and the target room is taken as a preset room.
Optionally, the selection item when the user selects one room from the plurality of rooms as the preset room may be obtained according to spatial distribution information, where the spatial distribution information may be preset room type information input by the user, where the room type information includes the number of the plurality of rooms and a room type, for example, the room type information includes 4 rooms, room names are respectively a main sleeping room, a sub sleeping room, a toilet room, and a living room, and a specific location of each room, the user may see the location of the 4 rooms and the corresponding room name when selecting the preset room, and if the user selects the toilet among the 4 rooms as the preset room, the guiding policy with the toilet as the destination may be executed when determining the risk avoidance policy.
Optionally, the policy of guiding information with the refuge site as a destination may include voice guidance, light guidance, and the like, and under the voice guidance, the mattress may control the audio playing device in the home scene to play a specific position of the refuge site, so that the user can go to the refuge site according to the voice indication; under the light guide, the mattress can control all lighting equipment on the action route from the room where the mattress is located to the refuge site to be in a lighting state, so that a user can go to the refuge site according to the light guide. Thereby making it
For example, if the preset room is a bathroom, the step S306 may include:
step S3061, spatial distribution information of a plurality of rooms corresponding to a home scene and distribution information of lighting equipment are obtained;
step S3062, determining the position information of a target toilet closest to the mattress according to the space distribution information;
step S3063, obtaining equipment information of target lighting equipment corresponding to a path from the mattress to the target toilet according to the distribution information of the lighting equipment, the position information of the mattress and the position information of the target toilet;
step S3064, controlling the target lighting device to be in a lighting state so as to guide the user to avoid danger.
When the mattress receives earthquake information, the mattress determines vibration parameters according to sleeping parameters of a user, and executes vibration to wake up the user, and determines that the floor where the mattress is located is higher than a threshold value, then the toilet closest to the mattress is determined as an evacuation place, equipment information of at least one lamp on a route from the position of the mattress to the toilet is obtained, the at least one lamp comprises the lamp in the toilet, and a control instruction is sent to the at least one lamp so as to control the at least one lamp to be in an illumination state, so that the user can move from the mattress to the toilet according to the guidance of lamplight to carry out earthquake evacuation after being awakened. Thus, the user can avoid the earthquake risk in a plurality of rooms corresponding to the home scene before the earthquake comes.
In step S3052, when the floor information where the mattress is located is smaller than the threshold value, a target risk avoidance guidance policy is determined to be a policy in which a risk avoidance place outside the building corresponding to the home scene is used as a risk avoidance place and guidance information in which the risk avoidance place is used as a destination is generated.
Optionally, the danger avoiding place can be selected by a user, or can be searched around a building corresponding to a house scene, and a place with the total floor height of the building smaller than a threshold value is selected as the danger avoiding place.
Accordingly, the step S306 may include:
step S3065, acquiring fire control channel distribution information of a building corresponding to a home scene;
step S3066, obtaining an action route from the mattress to the danger avoiding place according to the fire fighting access distribution information and the danger avoiding place;
step S3067, the action route is sent to the electronic equipment of the user so as to guide the user to avoid danger.
Optionally, the fire-fighting channel distribution information may include the number and the position of fire-fighting channels and the degree of congestion in each fire-fighting channel, after the fire-fighting channel distribution information is obtained, when the number of fire-fighting channels is two or more, the mattress may determine a target fire-fighting channel that the user quickly escapes according to the degree of congestion in each fire-fighting channel, and direct the user to escape from the position of the target fire-fighting channel, where the degree of congestion in the target fire-fighting channel is lower than the degree of congestion in other fire-fighting channels; when the number of the fire-fighting channels is one, the mattress directly takes the fire-fighting channels as target fire-fighting channels for users to escape quickly and guides the users to escape from the positions of the target fire-fighting channels.
Optionally, the degree of congestion in the fire-fighting access may be detected by detecting the traffic of people in the fire-fighting access, for example, a detector is disposed at the entrance of each layer of fire-fighting access to detect the number of users entering and exiting, and further count the number of users in the fire-fighting access, so as to determine the degree of congestion in the fire-fighting access.
Optionally, the fire-fighting channel distribution information may include the number, the position and the congestion degree in each fire-fighting channel, and the mattress may obtain the fire-fighting channel distribution information and the resident distribution information of the building at the same time, where the resident distribution information of the building includes the distribution number of the residents in each floor, and then the mattress may determine that the fire-fighting channel on the side with less resident distribution is the target fire-fighting channel, for example, one fire-fighting channel and 3 residents are distributed on the left side of each floor, and one fire-fighting channel and 2 residents are distributed on the right side, and when determining the target fire-fighting channel from the two fire-fighting channels, the mattress may select the right fire-fighting channel with only 2 residents as the target fire-fighting channel, so as to send the route escaped from the target fire-fighting channel to the user.
Therefore, the action route of the user escaping can be determined by combining the fire-fighting access distribution information of the building, and the risk avoiding efficiency of the user is quickened.
Optionally, if the scene information is an outdoor scene and the scene information further includes vehicle position information of a target vehicle associated with the mattress, the step S305 may include:
step S3053, when the vehicle position information is located in the region position range of the hilly region and the distance between the vehicle position information and the edge position of the hilly region is less than or equal to the preset distance threshold, determining that the target risk avoidance guidance strategy is a strategy of taking a flat region near the target vehicle as an risk avoidance place and generating a vehicle driving route taking the risk avoidance place as a destination;
In step S3054, when the vehicle position information is located in the region position range of the hilly region and the distance between the vehicle position information and the edge position of the hilly region is greater than the distance threshold, the target risk avoidance guiding strategy is determined to be a strategy for closing the window of the target vehicle and transmitting a rescue signal to the preset electronic device. Thus, when the mattress is disposed inside a vehicle and located in an outdoor scene, the user's risk avoidance strategy may be determined based on the distance between the current and the edge locations of the hilly region.
Alternatively, the above-mentioned region position ranges of the hilly regions may be obtained in advance from the map and stored in the mattress or the target vehicle, and further, when it is necessary to determine that the vehicle position information is located within the region position range of the hilly region, the vehicle position information is compared with the region position ranges of all the hilly regions, and it is possible to determine that the vehicle position information is located within the region position range of the hilly region as long as the vehicle position information is located within the region position range of one of the hilly regions.
Alternatively, the location information of all the flat areas may be obtained from the map in advance and stored in the mattress or the target vehicle, and then when it is necessary to determine the flat area closest to the location information of the vehicle, the location information of the target flat area closest to the location information of the vehicle may be obtained by comparing the location information of the vehicle with the location information of all the flat areas, and sent to the target vehicle, so that the target vehicle generates a vehicle driving route from the location information of the vehicle to the target flat area.
Optionally, the rescue signal may be preset in the mattress by the user, or may be automatically generated by the mattress according to a preset speech segment. The specific content of the rescue signal can be designed according to the requirement, and the application is not limited.
In the earthquake early warning method based on the mattress, the scene information of the mattress is obtained according to the equipment type of at least one associated equipment, so that the target risk avoidance guiding strategy corresponding to the scene information is determined, and the strategy applied to the real scene is formulated according to the real scene of the mattress.
Fig. 5 is a flow chart of a earthquake early warning method based on a mattress according to an embodiment of the application. As shown in fig. 5, the method may include the steps of:
step S401, under the condition that earthquake early warning information is received, position information of the mattress and sleeping information of a user on the mattress are obtained.
Step S402, at least one associated device of the mattress is obtained, wherein the associated device is a device preset by a user or a device in the same network environment with the mattress.
Step S403, obtaining scene information of the mattress according to the equipment type of at least one associated equipment, wherein when the equipment type of the at least one associated equipment comprises a household equipment type, the scene information of the mattress is determined to be a household scene; otherwise, determining that the scene information of the mattress is an outdoor scene.
Step S404, determining whether to execute the target early warning strategy according to the earthquake position, the earthquake magnitude and the position information of the mattress indicated in the earthquake early warning information.
Step S405, if yes, determining a target wake-up strategy according to sleep information of a user; and determining a target risk avoidance guiding strategy according to scene information of the mattress, wherein different scene information corresponds to different target risk avoidance guiding strategies.
Step S406, waking up the user according to the target wake-up strategy, and guiding the user to take refuge according to the target refuge guiding strategy.
Note that, the execution manner of the steps S401 to S406 may be identical to the execution manner of the steps S301 to S306, and will not be described here again.
Step S407, when the scene information is a home scene, obtaining spatial distribution information and personnel composition information of a plurality of rooms corresponding to the home scene.
Optionally, the personnel composition information may be input by a user in advance, or may be that after the intelligent door lock acquires the fingerprints of different personnel, the intelligent door lock sends the personnel information corresponding to the fingerprints to the mattress.
In step S408, in the case where it is determined that the number of users on the mattress is smaller than the total number of people in the person composition information, the target room in which other persons are located is determined, and the other persons are persons other than the users on the mattress.
Alternatively, the target room may be all other rooms except the room where the mattress is located, or room images of environments in other rooms may be acquired, and when it is determined that other people exist in the room image of a certain room, the room is determined to be the target room.
Step S409, controlling at least one wake-up device to perform wake-up on other persons in the target room.
Alternatively, the wake-up device may be a device located in the target room, or may be a device located outside the target room. When the wake-up device is a device located in the target room, the mattress may acquire device information of all associated devices in the target room after acquiring the target room, thereby arbitrarily selecting one or more of all associated devices in the target room as the wake-up device. When the wake-up device is a device located outside the target room, the mattress may acquire device information of all associated devices outside the target room after acquiring the target room, so as to arbitrarily select one or more of all the associated devices outside the target room as the wake-up device.
Optionally, when the target room is one and the wake-up device is a device located in the target room, one wake-up device in the target room may be controlled to wake up other users, and at least one wake-up device in the target room may also be controlled to wake up other users; when the target room is one and the awakening device is a device outside the target room, the awakening device outside the target room can be controlled to awaken other users, and at least one awakening device outside the target room can be controlled to awaken other users; when the number of the target rooms is multiple and the awakening devices are devices located outside the target rooms, the awakening devices can be controlled to respectively drive into the target rooms, so that other people in the target rooms are awakened, and the awakening devices are in one-to-one correspondence with the target rooms. The wake-up device may be any device having wake-up means such as impact, sound, acoustic signal, etc.
Illustratively, the step S409 may include the steps of:
step S4091, obtaining location information of the movable home device in the home environment.
Step S4092, starting with the position information of the mobile home device, obtaining the wake-up sequence of the target room according to the distance from the near to the far arrangement.
In step S4093, the mobile home device is controlled to sequentially travel to other rooms according to the wake-up sequence to perform the collision operation, so as to wake up other people.
Taking a movable home device as an example of a floor sweeping robot, after receiving earthquake early warning information, a mattress determines that floor information of the current mattress belongs to a high floor, then determines that a target risk avoidance guiding policy is guiding to a bathroom, after waking up a user on the mattress, further determines a plurality of target rooms of other people, obtains the positions of the floor sweeping robot, determines the positions of the plurality of target rooms, obtains the wake-up sequence of the plurality of target rooms according to the arrangement from near to far, and sends a control instruction comprising the wake-up sequence to the floor sweeping robot so as to enable the floor sweeping robot to sequentially travel to the doors of the plurality of target rooms to execute impact operation.
According to the earthquake early warning method based on the mattress, when the scene information is the home scene, the spatial distribution information and the personnel composition information of a plurality of rooms corresponding to the home scene are obtained, the target room in which other personnel are located is determined from the plurality of rooms, at least one awakening device is controlled to execute awakening on the other personnel in the target room, so that a strategy of carrying out danger avoidance guidance on all the personnel in the space in which the mattress is located is formed, and the casualties rate caused by an earthquake is reduced.
It should be understood that, although the steps in the flowcharts of fig. 1-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-5 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
Based on the foregoing embodiments, the embodiments of the present application provide a mattress, where the apparatus includes each module included, and each unit included in each module may be implemented by a processor; of course, the method can also be realized by a specific logic circuit; in an implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 6 is a schematic structural diagram of a mattress according to an embodiment of the present application, as shown in fig. 6, the mattress may include:
the mattress information obtaining module 601 is configured to obtain, when earthquake early warning information is received, position information of a mattress, scene information of the mattress, and sleep information of a user on the mattress;
the early warning strategy determining module 602 is configured to determine a target early warning strategy according to earthquake early warning information, location information of a mattress, scene information of the mattress and sleeping information of a user, where the target early warning strategy includes a target wake-up strategy for the user on the mattress and a target risk avoidance guiding strategy for the user;
the early warning policy execution module 603 is configured to wake up the user according to the target wake-up policy, and guide the user to take refuge according to the target refuge guiding policy.
In some embodiments, the early warning policy determination module 602 may include:
the early warning strategy determining submodule is used for determining whether to execute a target early warning strategy according to the earthquake position and the earthquake level indicated in the earthquake early warning information and the position information of the mattress;
the wake-up strategy determination submodule is used for determining a target wake-up strategy according to sleep information of a user if the wake-up strategy is yes; the method comprises the steps of,
the guiding strategy determination submodule is used for determining a target risk avoiding guiding strategy according to scene information of the mattress, and different scene information corresponds to different target risk avoiding guiding strategies.
In some embodiments, the wake policy determination submodule may include:
the first parameter determining unit is used for determining a target vibration parameter of the mattress as a first parameter if the user is recognized to be in deep sleep according to the sleep information, wherein the target vibration parameter comprises vibration amplitude and/or vibration frequency;
the second parameter determining unit is used for determining the target vibration parameter as a second parameter if the user is identified to be in light sleep according to the sleep information;
the first parameter and the second parameter are the same in parameter type, and the value of the first parameter is larger than that of the second parameter.
In some embodiments, the early warning policy determination module 602 may include:
the related equipment obtaining submodule is used for obtaining at least one related equipment of the mattress, wherein the related equipment is equipment preset by a user or equipment in the same network environment with the mattress;
the scene information obtaining sub-module is used for obtaining scene information of the mattress according to the equipment type of at least one associated equipment;
when the equipment type of at least one associated equipment comprises a household equipment type, determining that scene information of the mattress is a household scene; otherwise, determining that the scene information of the mattress is an outdoor scene.
In some embodiments, the scene information is a home scene, the scene information further includes floor information on which the mattress is located, and the guiding policy determining submodule may include:
the first determining unit is used for determining that the target risk avoidance guiding strategy is a strategy taking a preset room in a plurality of rooms corresponding to a home scene as a risk avoidance place and generating guiding information taking the risk avoidance place as a destination under the condition that floor information of the mattress is greater than or equal to a threshold value;
the second determining unit is used for determining that the target risk avoidance guiding strategy is a strategy taking a risk avoidance place outside a building corresponding to a home scene as a risk avoidance place and generating guiding information taking the risk avoidance place as a destination under the condition that floor information of the mattress is smaller than a threshold value.
In some embodiments, the target risk avoidance guiding policy is a policy that uses a preset room of a plurality of rooms corresponding to a home scene as a risk avoidance place and generates guiding information using the risk avoidance place as a destination, the preset room is a toilet, and the guiding policy determining submodule may include:
the distribution information obtaining unit is used for obtaining the spatial distribution information of a plurality of rooms corresponding to the home scene and the distribution information of the lighting equipment;
the toilet information obtaining unit is used for determining the position information of the target toilet closest to the mattress according to the space distribution information;
the device information obtaining unit is used for obtaining the device information of the target lighting device corresponding to the path from the mattress to the target toilet according to the distribution information of the lighting device, the position information of the mattress and the position information of the target toilet;
and the lighting device control unit is used for controlling the target lighting device to be in a lighting state so as to guide a user to avoid danger.
In some embodiments, the target risk avoidance guiding policy is a policy that takes a risk avoidance location outside a building corresponding to a home scene as a risk avoidance location and generates guiding information that takes the risk avoidance location as a destination, and the guiding policy determining submodule may include:
The channel distribution information obtaining unit is used for obtaining the fire fighting channel distribution information of the building corresponding to the home scene;
the action route obtaining unit is used for obtaining an action route from the mattress to the danger avoiding place according to the fire fighting access distribution information and the danger avoiding place;
and the risk avoidance guiding unit is used for sending the action route to the electronic equipment of the user so as to guide the user to avoid risk.
In some embodiments, the scene information is an outdoor scene, the scene information further includes vehicle position information of a target vehicle associated with the mattress, and the guiding policy determining submodule may include:
a third determination unit configured to determine that the target risk avoidance guidance policy is a policy in which a flat area in the vicinity of the target vehicle is taken as a risk avoidance place and a vehicle travel route in which the risk avoidance place is taken as a destination is generated when a distance between the vehicle position information and an edge position of the hilly area is less than or equal to a preset distance threshold;
and the fourth determining unit is used for determining that the target risk avoidance guiding strategy is a strategy of closing the window of the target vehicle and sending a rescue signal to the preset electronic equipment when the distance between the vehicle position information and the edge position of the hilly area is larger than the distance threshold value.
In some embodiments, when the scene information is a home scene, the mattress may further include:
the personnel information acquisition module is used for acquiring the spatial distribution information and the personnel composition information of a plurality of rooms corresponding to the home scene;
the other person determining module is used for determining a target room in which other persons are located when the number of the users on the mattress is smaller than the total number of the people in the person composition information, and the other persons are other than the users on the mattress;
and the other person awakening module is used for controlling at least one awakening device to perform awakening on other persons in the target room.
In some embodiments, the other person wake-up module may include:
the position information obtaining sub-module is used for obtaining the position information of the movable household equipment in the household environment;
the wake-up sequence obtaining sub-module is used for obtaining the wake-up sequence of the target room according to the arrangement from the near to the far by taking the position information of the movable household equipment as a starting point;
and the wake-up execution sub-module is used for controlling the movable household equipment to sequentially travel to other rooms according to the wake-up sequence to execute the impact operation so as to wake up other personnel.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, please refer to the description of the embodiments of the method of the present application.
It should be noted that, in the embodiment of the present application, the division of the mattress to the modules shown in fig. 6 is schematic, which is merely a logic function division, and other division manners may be implemented in practice. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. Or in a combination of software and hardware.
It should be noted that, in the embodiment of the present application, if the method is implemented in the form of a software functional module, and sold or used as a separate product, the method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the related art, embodied in the form of a software product stored in a storage medium, including several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
The embodiment of the application provides a computer device, which can be a server, and the internal structure diagram of the computer device can be shown in fig. 7. The computer device includes a processor, a memory, and a network interface 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 storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a mattress-based earthquake early warning method.
An embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method provided in the above-described embodiment.
Embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method provided by the method embodiments described above.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the mattress provided by the application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 7. The memory of the computer device may store the various program modules that make up the sampling device. The computer program of each program module causes the processor to carry out the steps in the mattress-based earthquake early warning method of each embodiment of the application described in the specification.
In one embodiment, a computer device is provided that includes a memory storing a computer program and a processor that when executing the computer program implements the mattress-based earthquake early warning method described above.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the storage medium, the storage medium and the device embodiments of the present application, please refer to the description of the method embodiments of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" or "some embodiments" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "in some embodiments" in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
The term "and/or" is herein merely an association relation describing associated objects, meaning that there may be three relations, e.g. object a and/or object B, may represent: there are three cases where object a alone exists, object a and object B together, and object B alone exists.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments are merely illustrative, and the division of the modules is merely a logical function division, and other divisions may be implemented in practice, such as: multiple modules or components may be combined, or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or modules, whether electrically, mechanically, or otherwise.
The modules described above as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules; can be located in one place or distributed to a plurality of network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated in one processing unit, or each module may be separately used as one unit, or two or more modules may be integrated in one unit; the integrated modules may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the related art, embodied in the form of a software product stored in a storage medium, including several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The methods disclosed in the method embodiments provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the several product embodiments provided by the application can be combined arbitrarily under the condition of no conflict to obtain new product embodiments.
The features disclosed in the embodiments of the method or the apparatus provided by the application can be arbitrarily combined without conflict to obtain new embodiments of the method or the apparatus.
The foregoing is merely an embodiment of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A mattress-based earthquake early warning method, characterized by being applied to a mattress, the method comprising:
under the condition of receiving earthquake early warning information, acquiring the position information of the mattress, the scene information of the mattress and the sleeping information of a user on the mattress;
determining a target early warning strategy according to the earthquake early warning information, the position information of the mattress, the scene information of the mattress and the sleeping information of the user, wherein the target early warning strategy comprises a target awakening strategy for the user on the mattress and a target risk avoidance guiding strategy for the user;
and waking up the user according to the target wake-up strategy, and guiding the user to avoid risk according to the target risk-avoiding guiding strategy.
2. The method of claim 1, wherein determining a target early warning strategy based on the earthquake early warning information, the location information of the mattress, the scene information in which the mattress is located, and the sleep information of the user comprises:
Determining whether to execute the target early warning strategy according to the earthquake position and the earthquake level indicated in the earthquake early warning information and the position information of the mattress;
if yes, determining the target wake-up strategy according to the sleep information of the user;
and determining the target risk avoidance guiding strategy according to scene information of the mattress, wherein different scene information corresponds to different target risk avoidance guiding strategies.
3. The method of claim 2, wherein the determining the target wake policy based on the sleep information of the user comprises:
if the user is recognized to be in deep sleep according to the sleep information, determining a target vibration parameter of the mattress as a first parameter, wherein the target vibration parameter comprises vibration amplitude and/or vibration frequency;
if the user is identified to be in shallow sleep according to the sleep information, determining the target vibration parameter as a second parameter;
wherein the first parameter is the same as the second parameter in type, and the value of the first parameter is larger than the value of the second parameter.
4. The method of claim 2, wherein the obtaining scene information in which the mattress is located comprises:
Acquiring at least one associated device of the mattress, wherein the associated device is preset by the user or is located in the same network environment with the mattress;
obtaining scene information of the mattress according to the equipment type of the at least one associated equipment;
when the equipment type of the at least one associated equipment comprises a household equipment type, determining that scene information of the mattress is a household scene; otherwise, determining that the scene information of the mattress is an outdoor scene.
5. The method of claim 4, wherein the scenario information is a home scenario, the scenario information further comprising floor information on which the mattress is located, the determining the target risk avoidance guideline strategy based on the scenario information on which the mattress is located comprising:
determining that the target risk avoidance guiding strategy is a strategy taking a preset room in a plurality of rooms corresponding to the home scene as a risk avoidance place and generating guiding information taking the risk avoidance place as a destination under the condition that floor information of the mattress is greater than or equal to a threshold value;
and under the condition that the floor information of the mattress is smaller than the threshold value, determining the target risk avoidance guiding strategy to take a risk avoidance place outside a building corresponding to the home scene as a risk avoidance place and generating guiding information taking the risk avoidance place as a destination.
6. The method of claim 5, wherein the target risk avoidance guidance policy is a policy that takes a preset room of a plurality of rooms corresponding to the home scene as a risk avoidance place and generates guidance information that takes the risk avoidance place as a destination, the preset room being a toilet, the guiding a user to avoid risk according to the target risk avoidance guidance policy comprising:
acquiring spatial distribution information of a plurality of rooms corresponding to the home scene and distribution information of lighting equipment;
determining the position information of a target toilet nearest to the mattress according to the space distribution information;
obtaining equipment information of target lighting equipment corresponding to a path from the mattress to the target toilet according to the distribution information of the lighting equipment, the position information of the mattress and the position information of the target toilet;
and controlling the target lighting equipment to be in a lighting state so as to guide the user to avoid danger.
7. The method of claim 5, wherein the target hedging guidance policy is a policy that takes a hedging place outside a building corresponding to the home scene as a hedging place and generates guidance information that takes the hedging place as a destination, the guiding a user for hedging according to the target hedging guidance policy comprising:
Acquiring fire control channel distribution information of a building corresponding to the home scene;
obtaining a course of action from the mattress to the risk avoidance site according to the fire fighting access distribution information and the risk avoidance site;
and sending the action route to the electronic equipment of the user so as to guide the user to avoid danger.
8. A mattress, the mattress comprising:
the system comprises a mattress information acquisition module, a control module and a control module, wherein the mattress information acquisition module is used for acquiring the position information of a mattress, the scene information of the mattress and the sleeping information of a user on the mattress under the condition of receiving earthquake early warning information;
the early warning strategy determining module is used for determining a target early warning strategy according to the earthquake early warning information, the position information of the mattress, the scene information of the mattress and the sleeping information of the user, wherein the target early warning strategy comprises a target awakening strategy for the user on the mattress and a target risk avoidance guiding strategy for the user;
the early warning strategy executing module is used for waking up the user according to the target wake-up strategy and guiding the user to avoid risks according to the target risk avoiding guiding strategy.
9. Mattress comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the program is executed.
10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 7.
CN202311059407.7A 2023-08-21 2023-08-21 Earthquake early warning method based on mattress, mattress and storage medium Pending CN116959204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311059407.7A CN116959204A (en) 2023-08-21 2023-08-21 Earthquake early warning method based on mattress, mattress and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311059407.7A CN116959204A (en) 2023-08-21 2023-08-21 Earthquake early warning method based on mattress, mattress and storage medium

Publications (1)

Publication Number Publication Date
CN116959204A true CN116959204A (en) 2023-10-27

Family

ID=88442636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311059407.7A Pending CN116959204A (en) 2023-08-21 2023-08-21 Earthquake early warning method based on mattress, mattress and storage medium

Country Status (1)

Country Link
CN (1) CN116959204A (en)

Similar Documents

Publication Publication Date Title
US11875656B2 (en) Virtual enhancement of security monitoring
CN206021193U (en) For the system for processing ultrasound input
US10902711B2 (en) Facility monitoring apparatus and method
US6796799B1 (en) Behavior determining apparatus, care system, care residence and behavior information specifying apparatus and system
US20180341818A1 (en) Apparatus and Method of Location Determination in a Thermal Imaging System
WO2020253162A1 (en) Robot and control method therefor, and intelligent home control system
US20140145860A1 (en) System and method for managing sensor information in portable terminal
CN113397520B (en) Information detection method and device for indoor object, storage medium and processor
CN103037089A (en) Help system of mobile device
CN111538030A (en) Method, system, and non-transitory computer readable medium for detecting human activity
US10943153B2 (en) Ultrasound analytics for actionable information
US9852620B1 (en) System and method for detecting sound and performing an action on the detected sound
US11308950B2 (en) Personal location system for virtual assistant
KR20180055140A (en) Method for location movement and electronic device using the same
CN108983690A (en) Building Indoor Environment intelligent monitor system
JPWO2012161269A1 (en) Rescue signal transmission device, rescue terminal, and rescue management device
CN114038162A (en) Vulnerable user nursing and alarming method, equipment and medium
CN114038147A (en) Fire rescue communication method, electronic device and storage medium
CN116959204A (en) Earthquake early warning method based on mattress, mattress and storage medium
US11581010B2 (en) Drone assisted setup for building specific sound localization model
CN112288057A (en) Multi-mode pet real-time positioning method, equipment and storage medium
KR101798035B1 (en) LED lighting device and Smart monitoring system using the same
JP2016000090A (en) Electronic equipment, and sound source identification program
US11521384B1 (en) Monitoring system integration with augmented reality devices
JPWO2020136592A1 (en) Information processing equipment, information processing methods, information processing programs, and information processing systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination