CN115671491B - Sleep mode matching method based on historical data and related equipment - Google Patents

Sleep mode matching method based on historical data and related equipment Download PDF

Info

Publication number
CN115671491B
CN115671491B CN202310001653.0A CN202310001653A CN115671491B CN 115671491 B CN115671491 B CN 115671491B CN 202310001653 A CN202310001653 A CN 202310001653A CN 115671491 B CN115671491 B CN 115671491B
Authority
CN
China
Prior art keywords
sleep
data
sleep mode
user
time period
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.)
Active
Application number
CN202310001653.0A
Other languages
Chinese (zh)
Other versions
CN115671491A (en
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.)
Shenzhen Mental Flow Technology Co Ltd
Original Assignee
Shenzhen Mental Flow Technology 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 Shenzhen Mental Flow Technology Co Ltd filed Critical Shenzhen Mental Flow Technology Co Ltd
Priority to CN202310001653.0A priority Critical patent/CN115671491B/en
Publication of CN115671491A publication Critical patent/CN115671491A/en
Application granted granted Critical
Publication of CN115671491B publication Critical patent/CN115671491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a sleep mode matching method based on historical data and related equipment, wherein the sleep mode matching method based on the historical data comprises the following steps: when the fact that the user wears the sleep-assisting product is detected, acquiring current position data and time data of the user; according to the position data and the time data, matching sleep modes corresponding to the position data and the time data in pre-recorded user use historical data; and controlling the sleep-assisting product to enter a corresponding sleep mode so as to start the sleep-assisting operation for the user. When the user uses the sleep-aiding product, the current position data and the current time data are acquired, and the sleep mode corresponding to the position data and the time data is matched in the pre-recorded user use historical data, so that the sleep mode suitable for the user can be automatically matched according to the personal use requirements of different users, the operation is simplified, and the intelligent degree and the personalized degree are improved.

Description

Sleep mode matching method based on historical data and related equipment
Technical Field
The invention relates to the technical field of intelligent sleep assistance, in particular to a sleep mode matching method based on historical data and related equipment.
Background
According to analysis, the insomnia problem is caused by fast pace of modern life and high working pressure. The supply types and the technological level of the sleep-aiding products are gradually improved, and the sleep economy is developed vigorously. Meanwhile, along with the upgrading of consumption, consumers want high-quality intelligent development from economical and practical sleep products.
The existing sleep-assisting product has achieved the effect that technologies such as electromagnetic stimulation bionic waves are used for helping people sleep, but different sleep modes cannot be adjusted according to different use requirements of each user in a personalized and corresponding mode, the sleep modes cannot be further adjusted according to use data of the users, and the intelligent personalized degree is not enough.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The invention mainly aims to provide a sleep mode matching method based on historical data and related equipment, and aims to solve the problems that in the prior art, when a sleep-assisting product is used, a user needs to manually adjust the sleep mode to a corresponding sleep mode according to different use requirements, the sleep-assisting product cannot adjust the sleep mode according to the use data of the user, and the intelligent personalization degree is insufficient.
In order to achieve the purpose, the invention adopts the following technical scheme:
a sleep pattern matching method based on historical data, the sleep pattern matching method based on historical data comprises the following steps:
when detecting that the user wears the sleep-aiding product, acquiring current position data and time data of the user;
according to the position data and the time data, matching sleep modes corresponding to the position data and the time data in pre-recorded user use historical data;
and controlling the sleep-assisting product to enter a corresponding sleep mode so as to start the sleep-assisting operation for the user.
In the sleep pattern matching method based on historical data, the sleep pattern matching method based on historical data further comprises:
and if no pre-recorded user use historical data exists, matching sleep modes corresponding to the position data and the time data in a pre-established sleep mode relation database according to the position data and the time data.
In the sleep pattern matching method based on historical data, after it is detected that the user wears the sleep-aid product, the current position data and time data of the user are acquired, and the method further includes:
and starting a sleep program application in the intelligent terminal, and adding the sleep-aiding product in the sleep program application to establish communication connection between the intelligent terminal and the sleep-aiding product.
In the sleep mode matching method based on historical data, the acquiring current position data and time data of a user after detecting that the user wears a sleep-assisting product specifically includes:
when the fact that the user wears the sleep-aiding product is detected, a positioning module on the intelligent terminal obtains first position information of the user, and a time module on the intelligent terminal obtains first time information;
wherein the location data comprises first location information; the time data includes first time information.
In the sleep mode matching method based on historical data, the matching of the sleep mode corresponding to the position data and the time data in the pre-recorded user usage historical data according to the position data and the time data specifically includes:
when a user manually selects the sleep mode, detecting current second position information and second time information of the user, recording the manually selected sleep mode, the second position information and the second time information, and corresponding relations between the first position information and a preset time period to generate user use history data; wherein the location data further comprises: the second location information; the time data further includes: the second time data and the preset time period;
and matching sleep modes corresponding to the second position information, the second time information and the preset time period in the user use historical data according to the first position information and the first time information.
In the historical data-based sleep pattern matching method, if there is no pre-recorded historical data of user usage, matching a sleep pattern corresponding to the location data and the time data in a pre-established sleep pattern relationship database according to the location data and the time data, specifically including:
presetting respective sleep-assisting parameter data in a plurality of sleep modes; wherein the sleep aid parameter data comprises: the type, volume and duration of the sleep-aid music, and the intensity and duration of the stimulation current;
correspondingly setting the position data and the time data with the sleep mode to establish the sleep mode relational database;
and if no pre-recorded user use historical data exists in a storage module of the intelligent terminal, matching the sleep mode corresponding to the current position information and the current time information in the sleep mode relation database.
In the sleep mode matching method based on historical data, when a user manually selects the sleep mode, detecting current second position information and second time information of the user, and recording a correspondence between the manually selected sleep mode, the second position information and the second time information, and the first position information and a preset time period to generate the user usage historical data specifically includes:
when the fact that the user manually selects the sleep mode is detected, the positioning module and the time module are used for respectively obtaining current second position information and current second time information of the user;
when the second position information is the position of a home and the second time information is within a first preset time period, recording a first corresponding relation among the current second position information, the first preset time period and a manually selected sleep mode;
when the second position information is the position of an office and the second time information is within the first preset time period, recording a second corresponding relation among the current second position information, the first preset time period and the manually selected sleep mode;
when the second position information is other positions and the second time information is in the first preset time period, recording a third corresponding relation among the current second position information, the first preset time period and the manually selected sleep mode;
when the second position information is the position of the home and the second time information is within a second preset time period, recording a fourth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode;
when the second position information is the position of an office and the second time information is within the second preset time period, recording a fifth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode;
when the second position information is in other positions and the second time information is in the second preset time period, recording a sixth corresponding relation between the current second position information, the second preset time period and the manually selected sleep mode;
when the second position information is the position of the home and the second time information is within a third preset time period, recording a seventh corresponding relation among the current second position information, the third preset time period and the manually selected sleep mode;
when the second position information is the position of an office and the second time information is within the third preset time period, recording an eighth corresponding relation between the current second position information, the third preset time period and the manually selected sleep mode;
when the second position information is in other positions and the second time information is in the third preset time period, recording a ninth corresponding relation between the current second position information, the third preset time period and the manually selected sleep mode;
wherein the sleep mode comprises: a lightning sleep mode, a deep sleep mode, a lunch sleep mode and a travel sleep mode; the preset time period comprises: the first preset time period, the second preset time period and the third preset time period; the first preset time period is from 9 pm to 8 am; the second preset time period is from 11 am to 3 pm; the third preset time period is a time period from 9 pm to 8 am and from 11 am to 3 pm.
A historical data-based sleep pattern matching system, the historical data-based sleep pattern matching system comprising:
the data acquisition module is used for acquiring the current position data and time data of the user after detecting that the user wears the sleep-aiding product;
the sleep mode matching module is used for matching sleep modes corresponding to the position data and the time data in pre-recorded user use historical data according to the position data and the time data;
and the sleep mode control module is used for controlling the sleep-assisting product to enter a corresponding sleep mode so as to start the sleep-assisting operation on the user.
A smart terminal, the controller comprising: a memory, a processor, a display, and a history data based sleep pattern matching program stored on the memory and executable on the processor, the history data based sleep pattern matching program when executed by the processor implementing the steps of the history data based sleep pattern matching method as described above.
A computer readable storage medium storing a history data-based sleep pattern matching program which, when executed by a processor, implements the steps of the history data-based sleep pattern matching method as described above.
Compared with the prior art, the sleep mode matching method based on the historical data and the related equipment provided by the invention have the advantages that: when the fact that the user wears the sleep-assisting product is detected, acquiring current position data and time data of the user; according to the position data and the time data, matching sleep modes corresponding to the position data and the time data in pre-recorded user use historical data; and controlling the sleep-assisting product to enter a corresponding sleep mode so as to start the sleep-assisting operation for the user. When the user uses the sleep-aiding product, the current position data and the current time data are acquired, and the sleep mode corresponding to the position data and the time data is matched in the pre-recorded user use historical data, so that the sleep mode suitable for the user can be automatically matched according to the personal use requirements of different users, the operation is simplified, and the intelligent degree and the personalized degree are improved.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a sleep pattern matching method based on historical data according to the present invention;
FIG. 2 is a schematic diagram of four sleep mode display interfaces in a preferred embodiment of the sleep mode matching method based on historical data according to the present invention;
FIG. 3 is a flowchart of step S200 according to a preferred embodiment of the sleep pattern matching method based on historical data according to the present invention;
FIG. 4 is a flowchart of step S210 in the preferred embodiment of the sleep pattern matching method based on historical data according to the present invention;
FIG. 5 is a flowchart of step S400 in the preferred embodiment of the sleep pattern matching method based on historical data according to the present invention;
FIG. 6 is a schematic illustration of deep sleep mode in a preferred embodiment of the historical data based sleep mode matching method of the present invention;
FIG. 7 is a schematic illustration of a lunch break sleep pattern in accordance with a preferred embodiment of the historical data based sleep pattern matching method of the present invention;
FIG. 8 is a schematic illustration of a sleep pattern for traveling according to a preferred embodiment of the sleep pattern matching method based on historical data of the present invention;
FIG. 9 is a schematic illustration of a lightning sleep pattern in a preferred embodiment of the sleep pattern matching method based on historical data according to the present invention;
FIG. 10 is a diagram of a sleep aid music presentation interface in accordance with a preferred embodiment of the historical data based sleep pattern matching method of the present invention;
FIG. 11 is an architectural diagram of a historical data based sleep pattern matching system provided by the present invention;
FIG. 12 is a schematic diagram illustrating an operating environment of a controller according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention provides a sleep mode matching method based on historical data and related equipment. According to the invention, when the user is detected to wear the sleep-assisting product, the current position data and time data of the user are acquired, the corresponding sleep mode is matched with the pre-recorded historical data of the user, and finally, the sleep-assisting product is controlled to enter the corresponding sleep mode to start the sleep-assisting operation for the user, so that the corresponding sleep mode is automatically matched from the historical data of the user according to the position data and the time data, the complicated manual adjustment steps are effectively reduced, the intelligent degree and the personalized degree are further improved, and the better user experience is brought to the client.
The following describes a design scheme of a sleep pattern matching method based on historical data by using specific exemplary embodiments, and it should be noted that the following embodiments are only used to explain the technical scheme of the invention, and are not specifically limited:
referring to fig. 1, a sleep pattern matching method based on historical data according to the present invention includes:
s100, when it is detected that the user wears the sleep-aiding product, acquiring current position data and time data of the user. Wherein the location data comprises: office location, home location, non-office location, and non-home location.
Specifically, the sleep aid product in this embodiment may be a sleep head ring similar to a sleeping eye mask, for example, a sleeping eye mask worn in four sleep modes as shown in fig. 2; the sleep headband comprises a headband to secure the sleep headband on the head; the main machine is arranged on the inner side of the headband and is detachably connected with the headband; the sensing module is arranged on the host and used for detecting the wearing state of the sleep head ring and switching the working mode, and the sensing module comprises an infrared detection module and a gravity detection module and is used for collecting the wearing state information and the motion state information of the sleep head ring; the electrode belt is arranged on the inner side of the head belt, one surface of the electrode belt is connected with the host, and the other surface of the electrode belt is in contact with the head; the electrodes (three electrodes which are contacted with the forehead) are arranged on the electrode belt (hydrogel patches can be placed on the electrodes when the electrode belt is worn) and are contacted with the head, so that the electroencephalogram data can be acquired.
The infrared detection module is provided with an infrared sensor, the infrared sensor can detect whether an object is located in a preset distance range of the sleep head ring, and if no object is detected in the preset distance range, the sleep head ring is judged to be in an unworn state; and if an object is detected within the preset distance range, the gravity detection module is used for further detection. The gravity detection module is provided with a gravity acceleration sensor, when the infrared detection module detects that an object exists in the sleep head ring within a preset distance range, the gravity acceleration sensor is turned on, and the gravity acceleration sensor detects whether the sleep head ring has displacement in the vertical direction within preset time. If the sleeping head ring is detected to be displaced in the vertical direction, judging that the sleeping head ring is in a wearing state; and if the sleep head ring is not detected to have the displacement in the vertical direction, judging that the sleep head ring is in an unworn state.
According to the invention, the sleep-assisting product is firstly connected with the intelligent terminal, and then the current position data and time data of a user are obtained from the intelligent terminal, so that accurate position data and time data are provided for the next operation.
Further, the S100, when it is detected that the user wears the sleep-aid product, acquiring current position data and time data of the user, before further including:
s10, starting a sleep program application in the intelligent terminal, and adding the sleep-aiding product in the sleep program application to establish communication connection between the intelligent terminal and the sleep-aiding product.
Specifically, the invention installs a sleep program application dedicated for sleep in advance in an intelligent terminal (for example, a mobile terminal, such as an electronic device like a smart phone or a tablet computer) of a user, and when the sleep-assisting product is opened, firstly, a connection with the intelligent terminal is established: and opening the sleep program application, adding the sleep-assisting product into the sleep program application, and finishing the binding with the sleep-assisting product through connection of Bluetooth or wireless and the like so as to establish the communication connection between the intelligent terminal and the sleep-assisting product.
Further, in S100, after it is detected that the user wears the sleep-aid product, acquiring current position data and time data of the user specifically includes:
s110, after the fact that the user wears the sleep-aiding product is detected, a positioning module on the intelligent terminal obtains first position information of the user, and a time module on the intelligent terminal obtains first time information.
Wherein the location data comprises first location information; the time data includes first time information.
Specifically, after the sleep head loop detects that the user wears the sleep head loop through the infrared detection module (that is, the sleep head loop is in a wearing state), the sleep head loop collects a wearing operation signal and sends the wearing operation signal to the sleep program application to indicate that the user finishes wearing the sleep head loop, and then the intelligent terminal acquires current first position information (position data) of the user based on the positioning module (for example, a GPS positioning module), and directly acquires current first time information (time data) of the terminal through the sleep program application, wherein the current first time information (time data) is acquired through real-time acquisition of the time displayed by the current terminal).
Further, please continue to refer to fig. 1, S200, matching the sleep pattern corresponding to the position data and the time data in the pre-recorded user usage history data according to the position data and the time data.
As shown in fig. 2, the sleep modes include a lightning sleep mode (i.e., lightning relaxation in fig. 2), a deep sleep mode (i.e., deep sleep in fig. 2), a midday sleep mode (i.e., midday rest in fig. 2), and a traveling sleep mode (i.e., traveling sleep in fig. 2).
Specifically, after the first location information and the first time information are obtained, a sleep mode corresponding to the location data and the time data is matched in the pre-recorded user usage history data recorded in the application background of the sleep program, that is, the sleep mode corresponding to the first location information and the first time information at the time is matched. According to the acquired position data and the acquired time data, the corresponding sleep mode is matched in the pre-established sleep mode relation database, so that the sleep mode suitable for the current use scene can be automatically matched according to the use habit of the user, the intelligent individuation of the sleep-aid product is effectively improved, and the operation steps are greatly simplified.
Further, referring to fig. 3, the S200, according to the position data and the time data, matching the sleep mode corresponding to the position data and the time data in the pre-recorded user usage history data specifically includes:
s210, when the user manually selects the sleep mode, detecting current second position information and second time information of the user, recording the manually selected sleep mode, the second position information and the second time information, and corresponding relation between the first position information and a preset time period to generate the user use history data;
wherein the location data further comprises: the second location information; the time data further includes: the second time data and the preset time period; the preset time periods include the first preset time period (between 9 pm and 8 am), the second preset time period (between 11 am and 3 pm), and the third preset time period (between 9 pm and 8 am and between 11 am and 3 pm).
S220, according to the first position information and the first time information, matching sleep modes corresponding to the second position information, the second time information and the preset time period in the user use historical data.
Specifically, when the user is not satisfied with the automatically selected sleep mode, the user may manually select the desired sleep mode, and similarly, the smart terminal detects the current second location information (the location data) and the second time information (the time data) of the user. Then, the sleep program application records the manually selected sleep mode, the second position information and the second time information, and the corresponding relationship between the first position information and the preset time period (the time data), that is, the sleep program application records the manually selected sleep mode of the user, the current second position information and second time information of the user at the time of manual selection, the first position information at the time of wearing the sleep-aid product, and the corresponding relationship between the preset time periods, so as to generate the user usage history data.
Secondly, according to the first position information and the first time information, a sleep mode corresponding to the second position information, the second time information and the preset time period is matched in the user use historical data.
For example, when the second location information is at a home location, the second time information is 9 pm, the sleep mode manually selected by the user is the lightning sleep mode, and the first location information is at the home location, the location data is in accordance with the sleep mode corresponding to the location of the user at the home location, and the time data is between 9 pm and 8 am (the first preset time period), and the sleep mode is set as the current sleep mode manually selected by the user, that is, the lightning sleep mode.
And recording all the sleep modes selected by the user in the past personal use habits in different scenes in real time so as to generate the user use history data, and storing the user use history data.
Finally, according to the obtained second position information and the second time information, the sleep modes corresponding to the first position information and the preset time period are matched in the user use historical data, so that the sleep modes corresponding to the first position information and the preset time period are automatically matched according to the second position information and the second time information obtained when the user manually selects the sleep modes, and different sleep habits are automatically matched according to the personal habits of the client on different scenes.
Further, referring to fig. 4, in step S210, when the user manually selects the sleep mode, detecting current second position information and second time information of the user, and recording a correspondence between the manually selected sleep mode, the second position information, and the second time information, and the first position information and a preset time period, so as to generate the user usage history data, specifically, the method includes:
s211, when the fact that the user manually selects the sleep mode is detected, the positioning module and the time module are used for respectively obtaining current second position information and current second time information of the user;
s212, when the second position information is the position of the home and the second time information is in a first preset time period, recording a first corresponding relation among the current second position information, the first preset time period and the manually selected sleep mode;
s213, when the second position information is the position of an office and the second time information is in the first preset time period, recording a second corresponding relation among the current second position information, the first preset time period and the manually selected sleep mode;
s214, when the second position information is in other positions and the second time information is in the first preset time period, recording a third corresponding relation among the current second position information, the first preset time period and the manually selected sleep mode;
s215, when the second position information is the position of the home and the second time information is in a second preset time period, recording a fourth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode;
s216, when the second position information is the position of an office and the second time information is in the second preset time period, recording a fifth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode;
s217, when the second position information is in other positions and the second time information is in the second preset time period, recording a sixth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode;
s218, when the second position information is the position of the home and the second time information is in a third preset time period, recording a seventh corresponding relation among the current second position information, the third preset time period and the manually selected sleep mode;
s219, when the second location information is the location of an office and the second time information is within the third preset time period, recording an eighth corresponding relationship between the current second location information, the third preset time period, and the manually selected sleep mode;
and S2110, when the second position information is in other positions and the second time information is in the third preset time period, recording a ninth corresponding relation among the current second position information, the third preset time period and the manually selected sleep mode.
Wherein the first preset time period is from 9 pm to 8 am; the second preset time period is from 11 am to 3 pm; the third preset time period is a time period from 9 pm to 8 am and from 11 am to 3 pm.
Specifically, the step of generating the user usage history data is specifically as follows:
firstly, when the user manually selects the sleep mode through a key or on the sleep program, the positioning module on the intelligent terminal detects the current second position information of the user, and the time module on the intelligent terminal acquires the current second time information.
Then, when the second location information is the location of the home and the second time information is within a first preset time period (from 9 pm to 8 am), recording a first corresponding relationship between the current second location information, the first preset time period and the manually selected sleep mode. For example: the sleep mode manually selected by the user is a deep sleep mode, and certainly, the user may arbitrarily select other reasonable sleep modes, which may be selected from the four sleep modes in this embodiment, and in another embodiment, the user may also select a sleep mode other than the four sleep modes, the second location information is the location of the home, and the second time information is that the location of the home, the deep sleep mode, and the first corresponding relationship from 9 pm to 8 am are recorded if 10 pm belongs to the first preset time period.
Similarly, when the second position information is the position of an office and the second time information is within the first preset time period, recording a second corresponding relationship between the current second position information, the first preset time period and the manually selected sleep mode. For example: the sleep mode manually selected by the user is a lightning sleep mode, the second position information is the position of an office, and the second time information is that when 10 pm belongs to the first preset time period, the position of the office, the lightning sleep mode and a second corresponding relation from 9 pm to 8 am are recorded.
When the second position information is other positions, which are positions other than home and office, for example, on a mobile vehicle, and the second time information is within the first preset time period, recording a third corresponding relationship between the current second position information, the first preset time period, and the manually selected sleep mode.
And when the second position information is the position of the home and the second time information is in a second preset time period (from 11 am to 3 pm), recording a fourth corresponding relation between the current second position information, the second preset time period and the manually selected sleep mode. For example: the sleep mode manually selected by the user is a noon sleep mode, the second position information is the position of an office, and the second time information is that 12 am belongs to the second preset time period, and then the position of the office, the noon sleep mode and a fourth corresponding relation from 11 am to 3 pm are recorded.
And when the second position information is the position of an office and the second time information is in the second preset time period, recording a fifth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode.
And when the second position information is in other positions and the second time information is in the second preset time period, recording a sixth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode.
And when the second position information is the position of the home and the second time information is within a third preset time period (from 9 pm to 8 am and from 11 am to 3 pm), recording a seventh corresponding relation among the current second position information, the third preset time period and the manually selected sleep mode.
And when the second position information is the position of an office and the second time information is within the third preset time period, recording an eighth corresponding relation between the current second position information, the third preset time period and the manually selected sleep mode.
And when the second position information is other positions and the second time information is in the third preset time period, recording a ninth corresponding relation among the current second position information, the third preset time period and the manually selected sleep mode. For example: the sleep mode manually selected by the user is a travel sleep mode, the second position information is of a moving vehicle, and the second time information is that 10 am belongs to the third preset time period, and then the travel sleep mode and the ninth corresponding relation of 9 pm to 8 am and 11 am to 3 pm of the moving vehicle are recorded.
And after all the second position information and the corresponding relation records on the preset time period are finished, forming the user use history data.
Further, please continue to refer to fig. 1, S300, and control the sleep-aid product to enter a corresponding sleep mode to start the sleep-assisting operation for the user.
Specifically, after a sleep mode corresponding to the position data and the time data is matched in the pre-recorded user use history data, the sleep program application controls the sleep-aid product to enter the corresponding sleep mode. And then, starting the sleep assisting operation on the user through the current sleep mode to assist the user to fall asleep quickly.
Still further, the sleep pattern matching method based on historical data further comprises:
s400, if no pre-recorded user use historical data exists, matching sleep modes corresponding to the position data and the time data in a pre-established sleep mode relation database according to the position data and the time data.
Specifically, when the sleep-aid product is used for the first time or the sleep program application does not store the user use history data recorded in advance, the sleep mode corresponding to the position data and the time data is matched in a pre-established sleep mode relation database directly according to the first position information and the first time information obtained in the foregoing. When the sleep-assisting product is used for the first time or the sleep program application does not store the pre-recorded user use historical data, the sleep program application can automatically match a sleep mode suitable for the current use scene in a default mode according to the obtained position data and the time data, operation steps can be simplified, convenience is brought, and the intelligent degree is improved.
Further, referring to fig. 5, if there is no pre-recorded user usage history data, the S400 matches, according to the position data and the time data, a sleep mode corresponding to the position data and the time data in a pre-established sleep mode relationship database, specifically including:
s410, presetting respective sleep-assisting parameter data in a plurality of sleep modes; wherein the sleep aid parameter data comprises: the type, volume and duration of the sleep-aid music, and the intensity and duration of the stimulation current;
s420, correspondingly setting the position data and the time data with the sleep mode to establish the sleep mode relation database;
and S430, if no pre-recorded user use history data exists in the storage module of the intelligent terminal, matching the sleep mode corresponding to the current position information and the current time information in the sleep mode relation database.
Specifically, respective sleep-aid parameter data are preset in the four sleep modes, wherein the deep sleep mode, the midday sleep mode, the travel sleep mode and the lightning sleep mode all include CES (Cranial electrotherapy stimulation, chinese name is transcranial micro-current stimulation therapy), which stimulates the brain through low-intensity micro-current to change abnormal brain waves of the brain of a patient and prompts the brain to secrete a series of neurotransmitters and hormones closely related to anxiety, depression, insomnia and other diseases, so as to realize sleep-aid and sound-wave sleep-aid (i.e. two-way sleep-aid); the CES sleep-aiding is used for adjusting brain-related structures or brain-related physiological parameters to assist sleep; the sound wave helps sleep and is used for guiding the user to quickly enter a sleep state through the sound wave, and the user can enter a relatively calm and relaxed state through the built-in double-sound beat and various sleep-assisting sound waves (white noise and pink noise), so that sleepiness is quickly generated, the deep sleep proportion can be increased, and the sleep quality is improved. And the concrete regulating functions of CES sleep aid and sound wave sleep aid in different sleep modes are different, and the corresponding functions are set according to the characteristics of the sleep modes as follows:
1. deep sleep mode:
as shown in figure 6, CES helps sleep and can directly regulate the sub-cortical structures and brain stem structures such as cerebral cortical structure, thalamus, insular lobe and hypothalamus, relieve the stress and anxiety of insomnia patients before sleep and improve sleep quality.
The sound wave helps sleep, and the brain is induced to automatically synthesize low-frequency infrasonic waves (Delta waves) through different sound waves with the frequency difference of 4hz played by the left ear and the right ear, so that the frequency range of brain waves is stimulated to be reduced, and the brain enters a deep sleep state more quickly.
2. The noon sleeping mode:
as shown in fig. 7, CES helps sleep, and CES helps sleep during the day, so that the brain wave frequency can be guided to slowly change into Alpha waveform in the sleep period, and the brain state is favorable for eliminating anxiety and rumination and rapidly recovering vitality.
The sound wave helps sleeping, and the brain can generate resonance to external monotonous and regular white noise, so that the brain is in a quiet and relatively inactive state, and the body and mind enter a rest mode.
3. Travel sleep mode:
as shown in fig. 8, during the journey, CES helps sleep to reduce the secretion of stress hormones such as adrenalin and cortisol, rapidly improve physiological signals such as heart rate, blood pressure and muscle tension, and eliminate stress and tension.
The sound wave helps sleep, uses slow rhythm music of 60bpm, and the cooperation of soft volume can help the rhythm of the heart reduce, pacifies restless sympathetic nerve, lets the brain produce Alpha brain wave under the state of relaxing, falls asleep in joyful relaxation.
4. The lightning sleep mode is as follows:
as shown in figure 9, CES helps sleep and effectively stimulates the brain to secrete 5-hydroxytryptamine, y-aminobutyric acid, endorphin, norepinephrine and other sleep-related transmitters to increase, so that the brain can gather and sleeps quickly.
The sound wave helps the pilot to sleep, similar to a pilot's guidance of falling asleep quickly, the pilot is trained for any time in a short time. The sound wave guide realizes effective sleep aid for most pilots when the pilots fall asleep at places and extreme conditions, and helps the pilots to quickly enter a sleep state.
The CES sleep aid includes a plurality of gears (for example, ten gears are set), and the gears can be adjusted according to user needs, for example, a user presses a key on the sleep head ring to increase or decrease the gears.
The sleep-aiding music (BBT brain wave sleep-aiding) is shown in an interface of fig. 10, and includes 11 Delta deep sleep waves, 9 Theta sleep waves and 10 Alpha relaxation waves, other functions such as breathing exercise, pure music and hypnosis stories can be selected in fig. 10, a user presses a key on a sleep head ring or directly clicks a music selection interface on the sleep program application to perform music switching, and music sound tones can be increased or decreased by pressing a volume adjusting button on a terminal or directly adjusting media music of the intelligent terminal.
In addition, music stimulation and electric stimulation corresponding to each sleep mode are different, the music stimulation comprises the type, volume and duration of sleep-aid music, and the music type comprises Delta deep sleep wave music, theta sleep-aid wave music and Alpha relaxation wave music; the electrical stimulation includes the intensity and duration of the stimulation current (e.g., microcurrent stimulation).
Then, the position data and the time data are correspondingly set with the sleep mode:
(1) When the user position is in the home position (the home position can be a preset range, such as a range of 500m of a square circle for home address location), and the time period is from 9 pm to 8 am (a first preset time period), setting the corresponding sleep mode as a deep sleep mode; the position of the home is preset or updated according to the requirement of the user, and the time period can be modified, for example, from 10 pm to 7 am.
(2) When the user position is in the office position (the office position can also be a preset range, such as a 500m square range for office address positioning) or the home position and the time period is from 11 am to 3 pm (a second preset time period), setting the corresponding sleep mode as the noon sleep mode; the office location is preset or updated according to the user's requirement, and the time period can be modified, for example, to 12 pm to 2 pm.
(3) When the user position is in a non-office position or a non-home position and the time period is from 9 pm to 8 am, setting the corresponding sleep mode as a travel sleep mode; the time period may be modified as well.
(4) And when the user position is in a non-office position or a non-home position and the time periods are the time (a third preset time period) from 9 pm to 8 am and from 11 am to 3 pm, setting the corresponding sleep mode as a lightning sleep mode, thereby establishing the sleep mode relation database.
Secondly, if there is no pre-recorded user usage history data in the storage module, that is, the user uses the sleep-aid product for the first time or the storage module fails to store the user usage history data, further matching a sleep mode corresponding to the current location information and the current time information according to the established sleep mode relationship database, for example, when the current time information belongs to any one of the preset time periods and the current location information belongs to any one of the location data (the location of an office, the location of a home, and the location of a non-office and the location of a non-home), selecting a corresponding sleep mode, for example, if the current location information conforms to the location of the user at the home and the current time information is between 9 pm and 8 am, selecting a sleep mode matched according to the sleep mode relationship database as a deep sleep mode.
Further, referring to fig. 11, the sleep pattern matching system based on historical data according to the present invention includes:
the data acquisition module 1 is used for acquiring current position data and time data of a user after detecting that the user wears the sleep-aiding product;
a sleep mode matching module 2, configured to match, according to the position data and the time data, a sleep mode corresponding to the position data and the time data in pre-recorded user usage history data;
and the sleep mode control module 3 controls the sleep-assisting product to enter a corresponding sleep mode so as to start the sleep-assisting operation for the user.
Specifically, in this embodiment, specific functions of each module of the sleep pattern matching system based on the historical data and modeled based on the polyhedral model may refer to corresponding descriptions in the sleep pattern matching method based on the historical data, and are not described herein again.
Further, as shown in fig. 12, based on the sleep pattern matching method based on the historical data, the present invention also provides a controller, which includes a processor 10, a memory 20 and a display 30. Fig. 12 shows only some of the components of the controller, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the controller, such as a hard disk or a memory of the controller. The memory 20 may also be an external storage device of the controller in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the controller. Further, the memory 20 may also include both an internal storage unit of the controller and an external storage device. The memory 20 is used for storing application software installed in the controller and various types of data, such as program codes of the installed controller. The memory 20 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 20 stores a history data based sleep pattern matching program 40, and the history data based sleep pattern matching program 40 can be executed by the processor 10, so as to implement the history data based sleep pattern matching method of the present application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor or other data Processing chip, which is used to run program codes stored in the memory 20 or process data, such as executing the sleep pattern matching method based on historical data.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used to display information at the controller and to display a visual user interface. The components 10-30 of the controller communicate with each other via a system bus.
In an embodiment, the steps implemented when the processor 10 executes the sleep pattern matching program 40 based on the historical data in the memory 20 may refer to the corresponding descriptions in the sleep pattern matching method based on the historical data, and are not described herein again.
Further, the present invention provides a computer-readable storage medium storing a history data-based sleep pattern matching program, which when executed by a processor implements the steps of the history data-based sleep pattern matching method as described above.
In summary, the sleep pattern matching method based on historical data and related devices provided by the present invention include: when detecting that the user wears the sleep-aiding product, acquiring current position data and time data of the user; according to the position data and the time data, matching sleep modes corresponding to the position data and the time data in pre-recorded user use historical data; and controlling the sleep-assisting product to enter a corresponding sleep mode so as to start the sleep-assisting operation for the user. When the user uses the sleep-aiding product, the current position data and the current time data are acquired, and the sleep mode corresponding to the position data and the time data is matched in the pre-recorded user use historical data, so that the sleep mode suitable for the user can be automatically matched according to the personal use requirements of different users, the operation is simplified, and the intelligent degree and the personalized degree are improved.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.

Claims (7)

1. A sleep pattern matching method based on historical data is characterized in that the sleep pattern matching method based on the historical data comprises the following steps:
when detecting that the user wears the sleep-aiding product, acquiring current position data and time data of the user;
according to the position data and the time data, matching sleep modes corresponding to the position data and the time data in pre-recorded user use historical data;
controlling the sleep-assisting product to enter a corresponding sleep mode so as to start the sleep-assisting operation for the user;
after detecting that the user wears the sleep-aiding product, acquiring the current position data and time data of the user, wherein the method also comprises the following steps:
starting a sleep program application in an intelligent terminal, and adding the sleep-aiding product in the sleep program application to establish communication connection between the intelligent terminal and the sleep-aiding product;
after detecting that the user wears the sleep-aiding product, acquiring the current position data and time data of the user, specifically comprising the following steps:
when the fact that the user wears the sleep-aiding product is detected, a positioning module on the intelligent terminal obtains first position information of the user, and a time module on the intelligent terminal obtains first time information; wherein the location data comprises first location information; the time data comprises first time information;
the matching of the sleep mode corresponding to the position data and the time data in the pre-recorded user usage history data according to the position data and the time data specifically includes:
when the user manually selects the sleep mode, detecting current second position information and second time information of the user, recording the manually selected sleep mode, the second position information and the second time information, and corresponding relation between the first position information and a preset time period to generate the user use history data; wherein the location data further comprises: the second location information; the time data further includes: the second time data and the preset time period;
according to the first position information and the first time information, matching a sleep mode corresponding to the second position information, the second time information and the preset time period in the user use historical data;
when the user manually selects the sleep mode, detecting current second position information and second time information of the user, and recording a corresponding relationship between the manually selected sleep mode, the manually selected second position information, and the manually selected second time information, and the first position information and a preset time period to generate the user usage history data, specifically including:
when the fact that the user manually selects the sleep mode is detected, the positioning module and the time module are used for respectively obtaining current second position information and current second time information of the user;
when the second position information is the position of a home and the second time information is within a first preset time period, recording a first corresponding relation among the current second position information, the first preset time period and a manually selected sleep mode;
when the second position information is the position of an office and the second time information is within the first preset time period, recording a second corresponding relation among the current second position information, the first preset time period and the manually selected sleep mode;
when the second position information is other positions and the second time information is within the first preset time period, recording a third corresponding relation among the current second position information, the first preset time period and the manually selected sleep mode;
when the second position information is the position of the home and the second time information is within a second preset time period, recording a fourth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode;
when the second position information is the position of an office and the second time information is within the second preset time period, recording a fifth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode;
when the second position information is in other positions and the second time information is in the second preset time period, recording a sixth corresponding relation among the current second position information, the second preset time period and the manually selected sleep mode;
when the second position information is the position of the home and the second time information is within a third preset time period, recording a seventh corresponding relation among the current second position information, the third preset time period and the manually selected sleep mode;
when the second position information is the position of an office and the second time information is within the third preset time period, recording an eighth corresponding relation between the current second position information, the third preset time period and the manually selected sleep mode;
and when the second position information is in other positions and the second time information is in the third preset time period, recording a ninth corresponding relation among the current second position information, the third preset time period and the manually selected sleep mode.
2. The historical data-based sleep pattern matching method according to claim 1, wherein the historical data-based sleep pattern matching method further comprises:
and if no pre-recorded user use historical data exists, matching sleep modes corresponding to the position data and the time data in a pre-established sleep mode relation database according to the position data and the time data.
3. The sleep pattern matching method based on historical data according to claim 2, wherein if there is no pre-recorded user usage historical data, matching the sleep patterns corresponding to the position data and the time data in a pre-established sleep pattern relationship database according to the position data and the time data specifically comprises:
presetting respective sleep-assisting parameter data in a plurality of sleep modes; wherein the sleep aid parameter data comprises: the type, volume and duration of the sleep-aid music, and the intensity and duration of the stimulation current;
correspondingly setting the position data and the time data with the sleep mode to establish the sleep mode relation database;
and if the storage module of the intelligent terminal does not have pre-recorded user use historical data, matching sleep modes corresponding to the position data and the time data in the sleep mode relation database.
4. The sleep pattern matching method based on historical data according to claim 1, wherein the sleep pattern comprises: a lightning sleep mode, a deep sleep mode, a lunch sleep mode, and a travel sleep mode; the preset time period comprises: the first preset time period, the second preset time period and the third preset time period; the first preset time period is from 9 pm to 8 am; the second preset time period is from 11 am to 3 pm; the third preset time period is a time period from 9 pm to 8 am and from 11 am to 3 pm.
5. A history data based sleep pattern matching system implementing the history data based sleep pattern matching method according to any of claims 1-4, characterized in that the history data based sleep pattern matching system comprises:
the data acquisition module is used for acquiring the current position data and time data of the user after detecting that the user wears the sleep-aiding product;
the sleep mode matching module is used for matching sleep modes corresponding to the position data and the time data in pre-recorded user use historical data according to the position data and the time data;
and the sleep mode control module controls the sleep-assisting product to enter a corresponding sleep mode so as to start the sleep-assisting operation for the user.
6. An intelligent terminal, characterized in that, intelligent terminal includes: a memory, a processor, a display, and a history data based sleep pattern matching program stored on the memory and executable on the processor, the history data based sleep pattern matching program when executed by the processor implementing the steps of the history data based sleep pattern matching method as claimed in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a history data-based sleep pattern matching program, which when executed by a processor implements the steps of the history data-based sleep pattern matching method according to any one of claims 1 to 4.
CN202310001653.0A 2023-01-03 2023-01-03 Sleep mode matching method based on historical data and related equipment Active CN115671491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310001653.0A CN115671491B (en) 2023-01-03 2023-01-03 Sleep mode matching method based on historical data and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310001653.0A CN115671491B (en) 2023-01-03 2023-01-03 Sleep mode matching method based on historical data and related equipment

Publications (2)

Publication Number Publication Date
CN115671491A CN115671491A (en) 2023-02-03
CN115671491B true CN115671491B (en) 2023-03-21

Family

ID=85057323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310001653.0A Active CN115671491B (en) 2023-01-03 2023-01-03 Sleep mode matching method based on historical data and related equipment

Country Status (1)

Country Link
CN (1) CN115671491B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733292A (en) * 2018-05-29 2018-11-02 努比亚技术有限公司 Application model control method, wearable device and computer readable storage medium
CN109032223A (en) * 2018-08-17 2018-12-18 三星电子(中国)研发中心 A kind of sleep environment regulating device, system and method
CN109009144A (en) * 2018-07-20 2018-12-18 渝新智能科技(上海)有限公司 A kind of sleep restorative procedure, device and equipment based on temperature
CN114668368A (en) * 2022-02-16 2022-06-28 深圳市爱都科技有限公司 Sleep state monitoring method, electronic equipment and computer readable storage medium
CN115083438A (en) * 2022-05-31 2022-09-20 深圳市飞科笛系统开发有限公司 Sound box sleep-aiding method and device, sound box and computer readable storage medium
CN115426212A (en) * 2022-09-01 2022-12-02 深圳市心流科技有限公司 Intelligent device adaptability adjusting method based on sleep state and terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7524279B2 (en) * 2003-12-31 2009-04-28 Raphael Auphan Sleep and environment control method and system
US9633175B2 (en) * 2013-02-05 2017-04-25 Big Health Ltd Interactive system for sleep improvement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733292A (en) * 2018-05-29 2018-11-02 努比亚技术有限公司 Application model control method, wearable device and computer readable storage medium
CN109009144A (en) * 2018-07-20 2018-12-18 渝新智能科技(上海)有限公司 A kind of sleep restorative procedure, device and equipment based on temperature
CN109032223A (en) * 2018-08-17 2018-12-18 三星电子(中国)研发中心 A kind of sleep environment regulating device, system and method
CN114668368A (en) * 2022-02-16 2022-06-28 深圳市爱都科技有限公司 Sleep state monitoring method, electronic equipment and computer readable storage medium
CN115083438A (en) * 2022-05-31 2022-09-20 深圳市飞科笛系统开发有限公司 Sound box sleep-aiding method and device, sound box and computer readable storage medium
CN115426212A (en) * 2022-09-01 2022-12-02 深圳市心流科技有限公司 Intelligent device adaptability adjusting method based on sleep state and terminal device

Also Published As

Publication number Publication date
CN115671491A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN113631212B (en) System and method for wave generation for percutaneous vibration
CN1882372B (en) Sleep guidance system and related methods
CN107530521A (en) For transcutaneous electrostimulation to improve the system and method for sleep
US10232139B1 (en) Smart pillow cover and alarm to improve sleeping and waking
CN115607806B (en) Parameter adjusting method based on brain wave signal and related equipment
US20220362095A1 (en) Systems and methods of transcutaneous vibration for sexual arousal
CN115623119A (en) Sleep mode matching method based on sleep head ring and related equipment
CN115671491B (en) Sleep mode matching method based on historical data and related equipment
CN115644825A (en) Sleep stimulation adjusting method based on external environment and related equipment
CN115645707A (en) Sleep mode-based sleep stimulation control method and related equipment
CN115599224B (en) Sleep mode switching method based on user behaviors and related equipment
CN115381245B (en) Sleep improving device and method
EP4014842A1 (en) An apparatus and method of controlling a pain alleviating sleep assistance device
US20200306495A1 (en) Method and system to deliver timed and grouped sensory stimulation

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
GR01 Patent grant
GR01 Patent grant