CN116055552A - Method and device for pushing sedentary prompt information, computer equipment and storage medium - Google Patents
Method and device for pushing sedentary prompt information, computer equipment and storage medium Download PDFInfo
- Publication number
- CN116055552A CN116055552A CN202211685092.2A CN202211685092A CN116055552A CN 116055552 A CN116055552 A CN 116055552A CN 202211685092 A CN202211685092 A CN 202211685092A CN 116055552 A CN116055552 A CN 116055552A
- Authority
- CN
- China
- Prior art keywords
- sedentary
- user
- preset
- prompt information
- time threshold
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V11/00—Prospecting or detecting by methods combining techniques covered by two or more of main groups G01V1/00 - G01V9/00
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B7/00—Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00
- G08B7/06—Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00 using electric transmission, e.g. involving audible and visible signalling through the use of sound and light sources
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Life Sciences & Earth Sciences (AREA)
- Geophysics (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The application relates to the technical field of Internet, and particularly discloses a method, a device, equipment and a storage medium for pushing sedentary prompt information. The method comprises the following steps: when the pressure sensor detects pressure, an infrared sensor is started, and the object temperature of an object with a pressure source is obtained based on the infrared sensor; determining whether the user has seated based on a preset temperature threshold and an object temperature; when the user sits down, starting a timer, and obtaining a first accumulated time for the user to sit down continuously based on the timer; based on a preset sedentary time threshold, a reminding device and a first accumulated time, sedentary prompt information is sent to a user until the user leaves the seat. According to the method, whether the user sits down or not is determined through the pressure sensor and the infrared sensor, timing is started after the user sits down, time measurement accuracy is improved, and prompt is started to be sent out when the accumulated time reaches a time threshold value until the user leaves the seat, so that the pushing accuracy of sedentary prompt information is effectively improved.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and apparatus for pushing sedentary prompt information, a computer device, and a storage medium.
Background
Currently, software for pushing sedentary prompt information is developed on mobile equipment and some wearable equipment, people can customize a sedentary time threshold on the mobile equipment or the wearable equipment, and when the sedentary time threshold is reached, a mobile phone or the wearable equipment can send a notification to remind people to stand up for activities. However, in real life, the mobile phone of the user is often in a mute state, so that the user cannot timely receive the reminder or the user only turns off the reminder after receiving the reminder and does not stand up for activity, the detection equipment cannot accurately detect whether the user has got up for activity, and the reminder is turned off only according to the user operation, so that the user can not be urged to get up for movement, and the problem of how to push sedentary prompt information and further improve the accuracy of urging the user to get away from the seat is urgent to be solved.
Disclosure of Invention
The application provides a push method, a push device, computer equipment and a storage medium for sedentary prompt information, which effectively push sedentary prompt information to improve the accuracy of prompting a user to leave a seat.
In a first aspect, the present application provides a method for pushing sedentary prompt information, where the method includes:
when the pressure sensor detects pressure, an infrared sensor is started, and the object temperature of an object with a pressure source is obtained based on the infrared sensor;
determining whether a user has seated based on a preset temperature threshold and the object temperature;
starting a timer when the user sits down, and obtaining a first accumulated time for the user to sit down continuously based on the timer;
based on a preset sedentary time threshold, a reminding device and the first accumulated time, sedentary prompt information is sent to the user until the user leaves the seat.
Further, the determining whether the user has seated based on the preset temperature threshold and the object temperature includes:
and determining the pressure source object as the user when the object temperature reaches the preset temperature threshold value so as to determine that the user is seated.
Further, based on the preset sedentary time threshold, the reminding device and the first accumulated time, sending sedentary reminding information to the user until the user leaves the seat, the method further comprises:
obtaining user settings based on the controller;
based on the user setting, the prompting form of the sedentary prompting information, the preset sedentary time threshold and the preset unsetting time threshold are obtained.
Further, based on a preset sedentary time threshold, a reminding device and the first accumulated time, sending sedentary prompt information to the user until the user leaves the seat, including:
when the first accumulated time reaches the preset sedentary time threshold, starting a reminding device, and sending sedentary prompt information to the user;
invoking the pressure sensor to obtain an object pressure value at the current moment, and determining whether the user leaves the seat or not based on the object pressure value;
if the object pressure value is zero, determining that the user leaves the seat, and stopping sending the sedentary prompt information;
and if the object pressure value is zero, determining that the user is not away from the seat, and continuously sending the sedentary prompt information.
Further, based on the preset sedentary time threshold, the reminding device and the first accumulated time, sending sedentary reminding information to the user until the user leaves the seat, the method further comprises:
when the pressure sensor detects that the pressure is zero, closing the sedentary prompt information, resetting the accumulated time of the timer, and calling the timer to count again to obtain a second accumulated time of the user leaving the seat;
determining whether the departure time of the user reaches the preset departure time threshold based on the preset departure time threshold and the second accumulated time;
and if the second accumulated time does not reach the preset unseating time threshold, calling the reminding device, and continuing to send out the sedentary reminding information.
Further, after determining whether the departure time of the user reaches the preset departure time threshold based on the preset departure time threshold and the second accumulated time, the method further includes:
and when the second accumulated time reaches the preset departure time threshold, resetting the timer and closing the timer.
Further, based on the preset sedentary time threshold, the reminding device and the first accumulated time, sending sedentary reminding information to the user until the user leaves the seat, the method further comprises:
based on a counter, obtaining a sedentary record of the user;
generating a sedentary behavior report of the user based on the user demand and the sedentary record;
and generating health advice of the user based on the sedentary behavior report, and setting the preset sedentary time threshold and the preset unsetting time threshold based on the health advice by the user.
In a second aspect, the present application further provides a push device for sedentary prompt information, the device including:
the object temperature obtaining module is used for starting the infrared sensor when the pressure sensor detects the pressure, and obtaining the object temperature of the object with the pressure source based on the infrared sensor;
the user behavior judging module is used for determining whether a user sits down or not based on a preset temperature threshold value and the object temperature;
the accumulated time obtaining module is used for starting a timer when the user sits down and obtaining a first accumulated time for the user to sit down continuously based on the timer;
and the prompt sending module is used for sending sedentary prompt information to the user until the user leaves the seat based on a preset sedentary time threshold, the reminding device and the first accumulated time.
In a third aspect, the present application also provides a computer device comprising a memory and a processor; the memory is used for storing a computer program; the processor is used for executing the computer program and realizing the method for pushing the sedentary prompt information when executing the computer program.
In a fourth aspect, the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor causes the processor to implement a method for pushing sedentary prompt information as described above.
The application discloses a pushing method, a pushing device, computer equipment and a storage medium of sedentary prompt information, wherein when a pressure sensor detects pressure, an infrared sensor is started, and based on the infrared sensor, the object temperature of an object with a pressure source is obtained; determining whether a user has seated based on a preset temperature threshold and the object temperature; starting a timer when the user sits down, and obtaining a first accumulated time for the user to sit down continuously based on the timer; based on a preset sedentary time threshold, a reminding device and the first accumulated time, sedentary prompt information is sent to the user until the user leaves the seat. According to the method, whether the pressure is from the user or not is determined through the pressure sensor and the infrared sensor together, namely, whether the user sits down or not is determined, the timer is started after the user sits down, accuracy of accumulated time of sedentary sitting is improved, when the accumulated time of the timer reaches a threshold value of the accumulated time of sedentary sitting, the reminding device starts to send out a prompt until the user leaves a seat, sedentary sitting prompt information is effectively pushed, and accuracy of prompting the user to get up and leave the seat is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a first embodiment of a method for pushing sedentary prompt information provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a second embodiment of a method for pushing sedentary prompt information provided by an embodiment of the present application;
fig. 3 is a schematic flowchart of a third embodiment of a method for pushing sedentary prompt information provided by an embodiment of the present application;
fig. 4 is a schematic flowchart of a fourth embodiment of a method for pushing sedentary prompt information provided by an embodiment of the present application;
fig. 5 is a schematic block diagram of a pushing device for sedentary prompt information according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a method, a device, computer equipment and a storage medium for pushing sedentary prompt information. The pushing method of the sedentary prompt information can be applied to a server, and the prompting device is used for sending out forced prompts to push the sedentary prompt information, so that a user is urged to leave seats. The server may be an independent server or a server cluster.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for pushing sedentary prompt information according to an embodiment of the present application. The pushing method of the sedentary prompt information can be applied to a server and used for sending out forced prompts through the reminding device to push the sedentary prompt information so as to prompt a user to leave seats.
As shown in fig. 1, the method for pushing sedentary prompt information specifically includes steps S101 to S104.
And S101, when the pressure sensor detects the pressure, starting an infrared sensor, and obtaining the object temperature of the pressure source object based on the infrared sensor.
In one embodiment, a controller is arranged at the armrest of the chair and is used for setting the sitting time and switching voice prompts for a user, a pressure sensor and an infrared sensor are arranged on the cushion and the backrest of the chair, and a timer, a voice prompt circuit and a vibration prompt circuit are also arranged in the chair.
In one embodiment, the pressure sensor is generally comprised of a pressure sensitive element and a signal processing unit, the pressure sensor being capable of sensing a pressure signal and converting the pressure signal into a usable, output electrical signal.
In one embodiment, after the pressure sensor detects pressure, the infrared sensor is activated to detect the temperature of the pressure source object.
S102, determining whether a user sits down or not based on a preset temperature threshold and the object temperature.
In one embodiment, after the pressure sensor detects the pressure, the infrared sensor is started to detect the temperature of the pressure source object, and the temperature is compared with a preset temperature threshold, wherein the preset temperature threshold takes the temperature of a human body as a reference, and if the temperature reaches the preset temperature threshold, the pressure source object is indicated to be a person, namely, the user sits down at the moment; if the temperature does not reach the preset temperature threshold, the pressure is not caused by sitting.
Determining whether the user has seated based on a preset temperature threshold and the object temperature, comprising: and determining the pressure source object as the user when the object temperature reaches the preset temperature threshold value so as to determine that the user is seated.
In one embodiment, the pressure of the weight falling on the seat triggers the pressure sensor to work, the infrared sensor starts to work after the pressure sensor detects the pressure, the temperature of the object is detected, and whether the temperature of the object reaches a preset temperature threshold value is judged, wherein the preset temperature threshold value determines the lowest temperature of the human body at present, and the human body temperature is taken as a reference.
In one embodiment, when the temperature of the object reaches the preset temperature threshold, the current sitting object may be determined to be a human body, that is, the user sits down on the current seat, the timer may be started to count, if the temperature of the object does not reach the preset temperature threshold, it is indicated that the current object is not a human body, and no sedentary count is required, for example, assuming that the temperature threshold is 35.5 ℃, when the pressure sensor detects the pressure, it is indicated that the current pressure is not caused by the user sitting down, and if the measured temperature of the object is 36 ℃, it may be considered that the current pressure source is sitting down with the user, that is, the user has sits down. The pressure sensor and the infrared sensor are used for jointly determining whether the pressure is from a user, namely whether the user sits down, and the timer is started after the user is determined to sit down, so that the accuracy of the accumulated time of sitting for a long time is improved.
And S103, starting a timer when the user sits down, and obtaining a first accumulated time for the user to sit down continuously based on the timer.
In one embodiment, the first accumulated time is the time counted by the user after sitting, after the user is determined to sit down, the pressure sensor converts the pressure signal into an electric signal which can be output and transmits the electric signal to the timer, and the timer is started and starts to count to obtain the accumulated time for the user to sit down continuously.
And S104, based on a preset sedentary time threshold, a reminding device and the first accumulated time, sending sedentary prompt information to the user until the user leaves the seat.
Based on a preset sedentary time threshold, a reminding device and the first accumulated time, sending sedentary prompt information to the user until the user leaves the seat, and further comprising: obtaining user settings based on the controller; based on the user setting, the prompting form of the sedentary prompting information, the preset sedentary time threshold and the preset unsetting time threshold are obtained.
In one embodiment, the controller is mounted at the chair armrest and the user can set the reminder mode, the sedentary time threshold, and the unseating time threshold as desired. The sedentary time threshold is the maximum time that the user continues to sit on the chair, and the unseating time threshold is the minimum time that the user rises up to leave the seat and sit down again after reaching the sedentary time threshold.
In one embodiment, the user enters the appropriate own sedentary time threshold and unseating time threshold on the controller, where the sedentary time threshold and unseating time threshold may be selected according to health advice. The reminding device can comprise a voice prompt circuit and a vibration prompt circuit, and the user can set a prompt mode according to the needs, for example, the user selects silence to close the voice prompt, and the sedentary prompt only prompts the user through vibration. The user can select different reminding modes according to different scenes, so that the method is more flexible.
In one embodiment, when the first accumulated time reaches the sedentary time threshold, the reminding device sends a sedentary prompt to the user according to a reminding mode set by the user, at this time, the pressure sensor continues to work, detects whether the pressure disappears, continuously prompts the user if the pressure always exists, and stops prompting if the pressure disappears, which indicates that the user rises. For example, assuming a sedentary time threshold of 3 hours, the reminder begins to issue a sedentary reminder after the first accumulated time the user continues to sit down for 3 hours.
In one embodiment, in order to avoid that the user leaves the seat for closing the prompt only for a short time, after the user leaves the seat, the timer is cleared and continues to count, so as to obtain a second accumulated time, namely the leaving time of the user, the second accumulated time is compared with a leaving time threshold set in advance by the user, if the second accumulated time reaches the leaving time threshold, the timer is cleared and closed, and if the second accumulated time does not reach the leaving time threshold, the pressure sensor and the infrared sensor detect that the user sits down again, and the reminding device continues to send a sedentary prompt to prompt the user of leaving the seat.
The embodiment provides a method, a device, computer equipment and a storage medium for pushing sedentary prompt information, which are used for determining whether a user sits down or not based on a preset temperature threshold and the object temperature; starting a timer when the user sits down, and obtaining a first accumulated time for the user to sit down continuously based on the timer; based on a preset sedentary time threshold, a reminding device and the first accumulated time, sedentary prompt information is sent to the user until the user leaves the seat. According to the method, whether the pressure is from the user or not is determined through the pressure sensor and the infrared sensor together, namely, whether the user sits down or not is determined, the timer is started after the user sits down, accuracy of accumulated time of sedentary sitting is improved, when the accumulated time of the timer reaches a threshold value of the accumulated time of sedentary sitting, the reminding device starts to send out a prompt until the user leaves the seat, whether the leaving time reaches the threshold value is continuously determined after the user leaves the seat, and the user is effectively prompted to lift up and leave the seat.
Referring to fig. 2, fig. 2 is a schematic flowchart of a method for pushing sedentary prompt information according to an embodiment of the present application. The pushing method of the sedentary prompt information can be applied to a server and used for sending out forced prompts through the reminding device to push the sedentary prompt information so as to prompt a user to leave seats.
As shown in fig. 2, the step S104 of the method for pushing sedentary prompt information specifically includes steps S201 to S204.
S201, when the first accumulated time reaches the preset sedentary time threshold, starting a reminding device, and sending sedentary reminding information to the user;
s202, calling the pressure sensor to obtain an object pressure value at the current moment, and determining whether the user leaves the seat or not based on the object pressure value;
s203, if the object pressure value is zero, determining that the user leaves the seat, and stopping sending the sedentary prompt information;
and S204, if the object pressure value is zero, determining that the user is not away from the seat, and continuously sending the sedentary prompt information.
In one embodiment, when the first accumulated time reaches the sedentary time threshold, the reminding device sends a sedentary prompt to the user according to a reminding mode set by the user, at this time, the pressure sensor continues to work, detects whether the pressure disappears, continuously prompts the user if the pressure always exists, and stops prompting if the pressure disappears, which indicates that the user rises. For example, assuming a sedentary time threshold of 3 hours, the reminder begins to issue a sedentary reminder after the first accumulated time the user continues to sit down for 3 hours.
The above embodiment provides a method, a device, a computer device and a storage medium for pushing sedentary prompt information, wherein when the first accumulated time reaches the preset sedentary time threshold, a reminding device is started to send the sedentary prompt information to the user; invoking the pressure sensor to obtain an object pressure value at the current moment, and determining whether the user leaves the seat or not based on the object pressure value; if the object pressure value is zero, determining that the user leaves the seat, and stopping sending the sedentary prompt information; and if the object pressure value is zero, determining that the user is not away from the seat, and continuously sending the sedentary prompt information. The method determines whether the user leaves the seat or not through the pressure sensor, stops sending the sedentary prompt after the user leaves the seat, and if not, continuously sends the sedentary prompt, thereby effectively supervising the user to leave the seat after sedentary.
Referring to fig. 3, fig. 3 is a schematic flowchart of a method for pushing sedentary prompt information according to an embodiment of the present application. The pushing method of the sedentary prompt information can be applied to a server and used for sending out forced prompts through the reminding device to push the sedentary prompt information so as to prompt a user to leave seats.
As shown in fig. 3, after the step S104 of the method for pushing sedentary prompt information, the method specifically further includes steps S301 to S303.
S301, closing the sedentary prompt information when the pressure sensor detects that the pressure is zero, resetting the accumulated time of the timer, and calling the timer to count again to obtain a second accumulated time of the user leaving the seat;
s302, determining whether the departure time of the user reaches the preset departure time threshold or not based on the preset departure time threshold and the second accumulated time;
s303, if the second accumulated time does not reach the preset unseating time threshold, calling the reminding device, and continuing to send out the sedentary prompt information.
Based on a preset departure time threshold and the second accumulated time, determining whether the departure time of the user reaches the preset departure time threshold further comprises: and when the second accumulated time reaches the preset departure time threshold, resetting the timer and closing the timer.
In one embodiment, the second accumulated time is the accumulated time of the timer after the user gets up and leaves the seat, the pressure sensor continues to work after the sedentary prompt is sent, the reminding device temporarily stops sending the prompt after the pressure is detected to disappear, and the timer clears the first accumulated time and reckons.
In one embodiment, the second accumulated time is compared with a preset departure time threshold set in advance by the user, if the second accumulated time reaches the departure time threshold, the standing activity time of the user is required, the timer and the reminding device stop working, and the whole sedentary reminding system is reset; if the second accumulated time does not reach the off-seat time threshold, the pressure sensor and the infrared sensor determine that the user sits down again, the fact that the standing activity time of the user does not reach the requirement is indicated, and the reminding device continues to prompt the user.
The above embodiment provides a method, a device, a computer device and a storage medium for pushing sedentary prompt information, when the pressure sensor detects that the pressure is zero, the sedentary prompt information is closed, the accumulated time of the timer is cleared, the timer is invoked to count again, and a second accumulated time of the user leaving the seat is obtained; determining whether the departure time of the user reaches the preset departure time threshold based on the preset departure time threshold and the second accumulated time; if the second accumulated time does not reach the preset unseating time threshold, calling the reminding device, and continuing to send out the sedentary reminding information; and when the second accumulated time reaches the preset departure time threshold, resetting the timer and closing the timer. According to the method, the user is effectively prevented from getting up and getting out of the seat for closing the prompt for a short time by accumulating the user out of the seat time, the accuracy of the accumulated time of sedentary sitting is improved, and when the accumulated time of the timer reaches the threshold value of the out-of-seat time, the reminding device is closed, the sedentary sitting prompt information is effectively pushed, and the accuracy of the standing activities of the user is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a method for pushing sedentary prompt information according to an embodiment of the present application. The pushing method of the sedentary prompt information can be applied to a server and used for sending out forced prompts through the reminding device to push the sedentary prompt information so as to prompt a user to leave seats.
As shown in fig. 4, after the step S103, the method for pushing sedentary prompt information specifically further includes steps S401 to S403.
S401, obtaining sedentary records of the user based on a counter;
s402, generating a sedentary behavior report of the user based on the user requirements and the sedentary records;
s403, generating health advice of the user based on the sedentary behavior report, so that the user can set the preset sedentary time threshold and the preset unsetting time threshold based on the health advice.
In one embodiment, a counter is built in the seat, the time and the total number of sedentary prompts sent by the reminding device can be recorded, and the user can obtain the sedentary number in a certain period of time according to the record. Meanwhile, a sedentary action report can be generated according to the sedentary record, and a user health suggestion is generated according to the sedentary action report, for example, if the sedentary times of the user are too much, more exercise is needed, in the health suggestion, the user can be suggested to set the sedentary time threshold to be lower, or the unsetting time threshold can be set to be higher, so that the standing activity time of the user is improved, for example, the sedentary time threshold set by the user is 3 hours, and due to the overmuch sedentary times, the user is suggested to modify 3 hours to 2 hours, so that the activity time of the user is improved.
The embodiment provides a method, a device, computer equipment and a storage medium for pushing sedentary prompt information, and the sedentary record of the user is obtained based on a counter; generating a sedentary behavior report of the user based on the user demand and the sedentary record; and generating health advice of the user based on the sedentary behavior report, and setting the preset sedentary time threshold and the preset unsetting time threshold based on the health advice by the user. According to the method, the sedentary times of the user are recorded, the advice beneficial to the health of the user is generated, the user can set the sedentary time threshold and the unsetting time threshold according to the advice, sedentary of the user is effectively avoided, and the pushing user experience of sedentary prompt information is improved.
Referring to fig. 5, fig. 5 is a schematic block diagram of a sedentary prompt pushing device according to an embodiment of the present application, where the sedentary prompt pushing device is configured to execute the sedentary prompt pushing method. The pushing device of the sedentary prompt information can be configured on a server.
As shown in fig. 5, the pushing device 500 for sedentary prompt information includes:
an object temperature obtaining module 501, configured to activate an infrared sensor when the pressure sensor detects pressure, and obtain an object temperature of an object from which the pressure is derived based on the infrared sensor;
a user behavior judging module 502, configured to determine whether a user has seated based on a preset temperature threshold and the object temperature;
an accumulated time obtaining module 503, configured to start a timer when the user has seated, and obtain a first accumulated time for the user to sit continuously based on the timer;
the prompt sending module 504 is configured to send sedentary prompt information to the user until the user leaves the seat based on a preset sedentary time threshold, a reminding device and the first accumulated time.
Further, the user behavior determination module 502 includes:
and the user behavior determining unit is used for determining the pressure source object as the user when the object temperature reaches the preset temperature threshold value so as to determine that the user is seated.
Further, the sedentary prompt information pushing device 500 further includes a user setting obtaining module, where the user setting obtaining module includes:
a user setting obtaining unit for obtaining user settings based on the controller;
the related information obtaining unit is used for obtaining the prompting form of the sedentary prompting information, the preset sedentary time threshold and the preset unsetting time threshold based on the user setting.
Further, the prompt sending module 504 includes:
a sedentary prompt sending unit, configured to start a reminding device when the first accumulated time reaches the preset sedentary time threshold, and send sedentary prompt information to the user;
the pressure checking and measuring unit is used for calling the pressure sensor to obtain an object pressure value at the current moment and determining whether the user leaves the seat or not based on the object pressure value;
the prompt closing unit is used for determining that the user leaves the seat and stopping sending the sedentary prompt information if the object pressure value is zero;
and the continuous prompting unit is used for determining that the user is not away from the seat if the pressure value of the object is zero and continuously sending the sedentary prompting information.
Further, the pushing device 500 for sedentary prompt information further includes an unseating behavior judging module, where the unseating behavior judging module includes:
the second accumulated time obtaining unit is used for closing the sedentary prompt information when the pressure sensor detects that the pressure is zero, clearing the accumulated time of the timer, and calling the timer to count again to obtain the second accumulated time of the user leaving the seat;
the departure time judging unit is used for determining whether the departure time of the user reaches the preset departure time threshold value or not based on the preset departure time threshold value and the second accumulated time;
and the continuous prompting unit is used for calling the prompting device to continuously send out the sedentary prompting information if the second accumulated time does not reach the preset unsetting time threshold value.
Further, the unseating behavior judging module further includes a timer closing sub-module, and the timer closing sub-module includes:
and the timer closing unit is used for resetting the timer and closing when the second accumulated time reaches the preset departure time threshold value.
Further, the sedentary prompt information pushing device 500 further includes a health advice generating module, where the health advice generating module includes:
a sedentary record generating unit for obtaining a sedentary record of the user based on a counter;
a sedentary action report generating unit, configured to generate a sedentary action report of a user based on a user requirement and the sedentary record;
and the health advice generating unit is used for generating health advice of the user based on the sedentary behavior report, so that the user can set the preset sedentary time threshold and the preset unsetting time threshold based on the health advice.
It should be noted that, for convenience and brevity of description, the specific working process of the apparatus and each module described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device may be a server.
With reference to FIG. 6, the computer device includes a processor, memory, and a network interface connected by a system bus, where the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions which, when executed, cause the processor to execute any one of the sedentary prompting message pushing methods.
The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
The internal memory provides an environment for the execution of a computer program in the non-volatile storage medium, which when executed by the processor, causes the processor to perform any one of the methods of pushing sedentary cues.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
when the pressure sensor detects pressure, an infrared sensor is started, and the object temperature of an object with a pressure source is obtained based on the infrared sensor;
determining whether a user has seated based on a preset temperature threshold and the object temperature;
starting a timer when the user sits down, and obtaining a first accumulated time for the user to sit down continuously based on the timer;
based on a preset sedentary time threshold, a reminding device and the first accumulated time, sedentary prompt information is sent to the user until the user leaves the seat.
In one embodiment, the processor is configured to, when implementing the determination of whether the user has seated based on a preset temperature threshold and the object temperature, implement:
and determining the pressure source object as the user when the object temperature reaches the preset temperature threshold value so as to determine that the user is seated.
In one embodiment, the processor is further configured to, before implementing sending a sedentary alert message to the user until the user leaves the seat based on a preset sedentary time threshold, a reminder, and the first accumulated time, implement:
obtaining user settings based on the controller;
based on the user setting, the prompting form of the sedentary prompting information, the preset sedentary time threshold and the preset unsetting time threshold are obtained.
In one embodiment, the processor is configured to, when implementing sending sedentary alert information to the user until the user leaves the seat based on a preset sedentary time threshold, a reminder, and the first accumulated time, implement:
when the first accumulated time reaches the preset sedentary time threshold, starting a reminding device, and sending sedentary prompt information to the user;
invoking the pressure sensor to obtain an object pressure value at the current moment, and determining whether the user leaves the seat or not based on the object pressure value;
if the object pressure value is zero, determining that the user leaves the seat, and stopping sending the sedentary prompt information;
and if the object pressure value is zero, determining that the user is not away from the seat, and continuously sending the sedentary prompt information.
In one embodiment, the processor is further configured to, after implementing sending a sedentary alert message to the user until the user leaves the seat based on a preset sedentary time threshold, a reminder, and the first accumulated time, implement:
when the pressure sensor detects that the pressure is zero, closing the sedentary prompt information, resetting the accumulated time of the timer, and calling the timer to count again to obtain a second accumulated time of the user leaving the seat;
determining whether the departure time of the user reaches the preset departure time threshold based on the preset departure time threshold and the second accumulated time;
and if the second accumulated time does not reach the preset unseating time threshold, calling the reminding device, and continuing to send out the sedentary reminding information.
In one embodiment, the processor is further configured to, after implementing determining whether the departure time of the user reaches the preset departure time threshold based on the preset departure time threshold and the second accumulated time, implement:
and when the second accumulated time reaches the preset departure time threshold, resetting the timer and closing the timer.
In one embodiment, the processor is further configured to, after implementing sending a sedentary alert message to the user until the user leaves the seat based on a preset sedentary time threshold, a reminder, and the first accumulated time, implement:
based on a counter, obtaining a sedentary record of the user;
generating a sedentary behavior report of the user based on the user demand and the sedentary record;
and generating health advice of the user based on the sedentary behavior report, and setting the preset sedentary time threshold and the preset unsetting time threshold based on the health advice by the user.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the processor executes the program instructions to realize the pushing method of any sedentary prompt information provided by the embodiment of the application.
The computer readable storage medium may be an internal storage unit of the computer device according to the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which are provided on the computer device.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. The pushing method of the sedentary prompt information is characterized by comprising the following steps of:
when the pressure sensor detects pressure, an infrared sensor is started, and the object temperature of an object with a pressure source is obtained based on the infrared sensor;
determining whether a user has seated based on a preset temperature threshold and the object temperature;
starting a timer when the user sits down, and obtaining a first accumulated time for the user to sit down continuously based on the timer;
based on a preset sedentary time threshold, a reminding device and the first accumulated time, sedentary prompt information is sent to the user until the user leaves the seat.
2. The method for pushing sedentary prompt information according to claim 1, wherein the determining whether the user has seated based on the preset temperature threshold and the object temperature includes:
and determining the pressure source object as the user when the object temperature reaches the preset temperature threshold value so as to determine that the user is seated.
3. The method for pushing sedentary reminder according to claim 1, wherein the sending sedentary reminder to the user based on a preset sedentary time threshold, a reminder, and the first accumulated time until the user leaves the seat further comprises:
obtaining user settings based on the controller;
based on the user setting, the prompting form of the sedentary prompting information, the preset sedentary time threshold and the preset unsetting time threshold are obtained.
4. The method for pushing sedentary reminder according to claim 1, wherein the sending sedentary reminder to the user until the user leaves the seat based on a preset sedentary time threshold, a reminder, and the first accumulated time comprises:
when the first accumulated time reaches the preset sedentary time threshold, starting a reminding device, and sending sedentary prompt information to the user;
invoking the pressure sensor to obtain an object pressure value at the current moment, and determining whether the user leaves the seat or not based on the object pressure value;
if the object pressure value is zero, determining that the user leaves the seat, and stopping sending the sedentary prompt information;
and if the object pressure value is zero, determining that the user is not away from the seat, and continuously sending the sedentary prompt information.
5. The method for pushing sedentary reminder according to claim 1, wherein the sending sedentary reminder to the user based on a preset sedentary time threshold, a reminder, and the first accumulated time until after the user leaves the seat, further comprises:
when the pressure sensor detects that the pressure is zero, closing the sedentary prompt information, resetting the accumulated time of the timer, and calling the timer to count again to obtain a second accumulated time of the user leaving the seat;
determining whether the departure time of the user reaches the preset departure time threshold based on the preset departure time threshold and the second accumulated time;
and if the second accumulated time does not reach the preset unseating time threshold, calling the reminding device, and continuing to send out the sedentary reminding information.
6. The method for pushing sedentary prompt information according to claim 5, wherein the determining whether the departure time of the user reaches the preset departure time threshold based on the preset departure time threshold and the second accumulated time further comprises:
and when the second accumulated time reaches the preset departure time threshold, resetting the timer and closing the timer.
7. The method for pushing sedentary reminder according to any one of claims 1 to 6, wherein the sending sedentary reminder to the user until after the user leaves the seat based on a preset sedentary time threshold, a reminder, and the first accumulated time further comprises:
based on a counter, obtaining a sedentary record of the user;
generating a sedentary behavior report of the user based on the user demand and the sedentary record;
and generating health advice of the user based on the sedentary behavior report, and setting the preset sedentary time threshold and the preset unsetting time threshold based on the health advice by the user.
8. A push device for sedentary cues, comprising:
the object temperature obtaining module is used for starting the infrared sensor when the pressure sensor detects the pressure, and obtaining the object temperature of the object with the pressure source based on the infrared sensor;
the user behavior judging module is used for determining whether a user sits down or not based on a preset temperature threshold value and the object temperature;
the accumulated time obtaining module is used for starting a timer when the user sits down and obtaining a first accumulated time for the user to sit down continuously based on the timer;
and the prompt sending module is used for sending sedentary prompt information to the user until the user leaves the seat based on a preset sedentary time threshold, the reminding device and the first accumulated time.
9. A computer device, the computer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and implement the method for pushing sedentary prompt information according to any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, wherein the computer readable storage medium stores a computer program, which when executed by a processor causes the processor to implement a method for pushing sedentary cues according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211685092.2A CN116055552A (en) | 2022-12-27 | 2022-12-27 | Method and device for pushing sedentary prompt information, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211685092.2A CN116055552A (en) | 2022-12-27 | 2022-12-27 | Method and device for pushing sedentary prompt information, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116055552A true CN116055552A (en) | 2023-05-02 |
Family
ID=86117450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211685092.2A Pending CN116055552A (en) | 2022-12-27 | 2022-12-27 | Method and device for pushing sedentary prompt information, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116055552A (en) |
-
2022
- 2022-12-27 CN CN202211685092.2A patent/CN116055552A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106510720B (en) | User state prompting method and device | |
CN106464751B (en) | A method of alarm is presented in the user into environment | |
JP5587328B2 (en) | Fall detection system | |
US20140228062A1 (en) | Automatic notification upon trigger detection | |
US9824573B1 (en) | Computerized furniture-enabled monitoring and discouragement of sedentary behavior | |
CN105117110B (en) | Method and device for displaying user equipment state on preset interface of application program | |
JPWO2016203622A1 (en) | Onset risk determination device, onset risk determination method, and onset risk determination program | |
CN106919867A (en) | Mobile terminal and its shutdown control method and device | |
US10070323B2 (en) | Method and apparatus for managing a nap mode on an electronic device | |
CN106308779A (en) | Control device for smart device | |
JP2018190018A (en) | Alarm system | |
CN112354083A (en) | Wearing state detection method and device, electronic equipment and storage medium | |
CN106326065B (en) | Terminal use duration management method and device | |
CN106308780A (en) | Smart equipment control method | |
CN106713663B (en) | A kind of alarm clock control method and mobile terminal | |
JP5498329B2 (en) | Communication apparatus and program | |
CN116055552A (en) | Method and device for pushing sedentary prompt information, computer equipment and storage medium | |
CN105910620B (en) | The processing method and processing device of step counting data | |
US20100085202A1 (en) | Sensor drive control method and sensor-equipped radio terminal device | |
CN110402574B (en) | Method for operating a device during a period of unavailability | |
JP6222405B2 (en) | Motion detection system, motion detection device, motion detection method, and motion detection program | |
US11936737B2 (en) | Notification control apparatus, notification control method, and notification control program | |
WO2015070449A1 (en) | Terminal and terminal management method | |
JP4962571B2 (en) | Remote monitoring device | |
CN116128463B (en) | Item reminding method and device, storage medium and electronic equipment |
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 |