Program, method, information processing device, and system
The system accurately reflects sleep information in game progression by detecting user movements and adjusting events based on abnormal states, ensuring accurate measurement and maintaining user engagement.
Patent Information
- Application Number
- JP2024047410
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2025-01-21
AI Technical Summary
Existing sleep information measurement devices may inaccurately detect user body movements if placed far from the bedding, leading to diminished game progression significance and potential user disinterest, or errors in sleep detection due to environmental factors.
A system that detects physical quantities based on user body movements during sleep, measures sleep information, and generates events based on this data, considering abnormal states where detected quantities remain below thresholds for predetermined periods, adjusting events to exclude or include specific sleep information accordingly.
This system ensures accurate reflection of sleep information in game progression, preventing motivation loss by correcting for environmental impacts on measurement and maintaining game engagement.
Smart Images

Figure 2025010473000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a program, a method, an information processing device, and a system. [Background technology]
[0002] In recent years, development of games that use user sleep information has been progressing. For example, Patent Document 1 discloses a device that is placed on a mattress or the like on which a user sleeps and has a motion sensor to detect the user's body movements while sleeping and measure sleep information. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2020-194313 Summary of the Invention [Problem to be solved by the invention]
[0004] In the above technology, for example, when a user leaves the device away from bedding, sleep information may be measured even though the user's body movements during sleep are not actually detected. If such a situation is overlooked, the significance of trying to sleep regularly in order to progress in the game may be diminished, and the user may lose interest in the game. On the other hand, depending on the user's sleeping environment, it may be difficult to detect body movements, so a simple error in such a situation would be disadvantageous to the user.
[0005] The objective of the present disclosure is to more appropriately reflect sleep information in the progress of a sleep game that uses a device that detects the user's body movements. [Means for solving the problem]
[0006] According to the present disclosure, there is provided a program to be executed by a computer having a processor and a memory, the program causing the processor to execute the steps of detecting physical quantities based on body movements of a user while sleeping, measuring sleep information of the user from the detected physical quantities, and generating an event based on the measured sleep information, wherein in the step of generating an event, if the detected physical quantity remains smaller than a predetermined threshold for a predetermined period of time, it is determined that this is an abnormal state, and the event is not generated based on first sleep information that is a part of the sleep information, but is generated based on second sleep information that is the sleep information excluding the first sleep information. Effect of the Invention
[0007] With this configuration, if the device for measuring the user's sleep information is not placed in an appropriate location, it will be determined to be an abnormal state and an event will not be generated for some of the sleep information. Therefore, in sleep games that use a device that detects the user's body movements, the sleep information can be more appropriately reflected in the progress of the game. [Brief description of the drawings]
[0008] [Figure 1] FIG. 2 is a block diagram showing the hardware configuration of the system 1. [Diagram 2] 2 is a block diagram showing the functional configuration of a terminal device 10. FIG. [Diagram 3] 2 is a block diagram showing the functional configuration of the server 20. FIG. [Figure 4] FIG. 2 is a diagram showing the data structure of a user database 181. [Diagram 5] FIG. 13 is a diagram showing the data structure of an object database 182. [Figure 6] 2 is a diagram showing the data structure of a user master table 221. FIG. [Figure 7] FIG. 2 is a flow diagram illustrating the first half of the processing flow of the system 1. [Figure 8]11 is a flow diagram illustrating the latter half of the processing flow of the system 1. FIG. [Figure 9] FIG. 11 is a flow diagram illustrating the flow of an abnormal state determination process (S220). DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present disclosure will be described with reference to the drawings. In the following description, the same components are given the same reference numerals, and their names and functions are also the same. Therefore, detailed description thereof will not be repeated. In this embodiment, "going to bed" refers to a user getting into bedding such as a bed or a futon to sleep, and "falling asleep" refers to starting sleep after going to bed. In addition, "awakening" refers to a user ending sleep, and "getting up" refers to getting up from bedding after waking up. In addition, the sleep time refers to the time from going to bed (or falling asleep) to waking up (or waking up).
[0010] <1. First embodiment> (1-1. Overview of functions provided by System 1) The terminal device 10 included in the system 1 in this embodiment is a mobile terminal such as a smartphone, and provides a game (hereinafter also referred to as the present sleep game) that progresses based on the sleep information obtained from the user. The terminal device 10 also outputs an alarm to wake the user up by sound, vibration, light, etc. at a time preset by the user.
[0011] When a user who has woken up operates the terminal device 10, an in-game event determined based on the sleep information occurs, and game play progresses. As an in-game event, for example, a lottery is held based on the sleep information for the user to acquire an in-game object. The in-game event may be set to generate an event advantageous to the user so that there is a positive correlation with the sleep time and sleep quality in the sleep information measured from the user.
[0012] In the system 1, physical quantities based on the movement of the user's body during sleep are detected, and sleep information is measured from the detected physical quantities. Furthermore, if the detected physical quantities remain smaller than a predetermined threshold for a predetermined period of time, it is determined that an abnormal state exists, and an event is not generated for at least a portion of the measured sleep information. With this specification, it becomes possible to more appropriately reflect the sleep information in the progress of the game, for example, in cases where the user has placed the device for acquiring the sleep information in a different location. Each component will be described in detail below.
[0013] (1-2. Hardware Configuration of Terminal Device 10) FIG. 1 is a block diagram showing an example of a hardware configuration of a system 1. The system 1 includes a terminal device 10 and a server 20. The terminal device 10 and the server 20 are communicatively connected via, for example, a network 30. The network 30 is realized by, for example, the Internet and / or a communication network provided by a telecommunications carrier. Note that, while FIG. 2 shows an example in which the system 1 includes one terminal device 10, the number of terminal devices 10 included in the system 1 is not limited to one. In other words, the number of terminal devices 10 may be two or more.
[0014] In this embodiment, a collection of multiple devices may be one server. The method of allocating multiple functions required to realize the server 20 according to this embodiment to one or multiple pieces of hardware can be appropriately determined in consideration of the processing capacity of each piece of hardware and / or the specifications required for the server 20.
[0015] The terminal device 10 is realized by, for example, a tablet terminal or a mobile terminal such as a smartphone. The terminal device 10 may also be realized by a stationary PC (Personal Computer), a laptop PC, or the like. The terminal device 10 may also function as a head mounted display, for example, a transmissive, non-transmissive, or see-through head mounted display.
[0016] The terminal device 10 includes a communication IF (Interface) 12 , an input device 13 , an output device 14 , a memory 15 , a storage 16 , and a processor 19 .
[0017] The communication IF 12 is an interface for inputting and outputting signals so that the terminal device 10 can communicate with an external device.
[0018] The input device 13 is a device for receiving an input operation from a user (for example, a touch panel, a touch pad, a pointing device such as a mouse, a keyboard, etc.).
[0019] The output device 14 is a device (such as a display and a speaker) for presenting information to a user.
[0020] The memory 15 is for temporarily storing programs and data to be processed by the programs, and is a volatile memory such as a DRAM (Dynamic Random Access Memory).
[0021] The storage 16 is for storing data, and is, for example, a flash memory or a hard disk drive (HDD).
[0022] The processor 19 is hardware for executing an instruction set written in a program, and is composed of an arithmetic unit, a register, peripheral circuits, and the like.
[0023] The sleep measuring device 11 is a device for acquiring information related to sleep of the user of the terminal device 10. The terminal device 10 is connected to one or more sleep measuring devices 11 by wire or wirelessly. Specifically, the terminal device 10 may be a wearable device that is worn on the user's body, such as a wristwatch type, a finger ring type, or an eye mask type, or may be a clock type device that is placed at the pillow of the bed where the user sleeps. The terminal device 10 and the sleep measuring device 11 may be the same device.
[0024] Note that a user may simultaneously use two or more different types of sleep measuring devices 11. For example, a user may wear and use one wristwatch-type sleep measuring device 11 and one desk clock-type sleep measuring device 11, or a user may wear and use one wristwatch-type sleep measuring device 11 and use the terminal device 10 as the sleep measuring device 11.
[0025] Also, the difference in type of the sleep measuring device 11 does not necessarily have to be a difference in device. That is, even if the sleep measuring device 11 is the same device, the sleep measuring device 11 may be managed as a different sleep measuring device 11 in the system 1 depending on the type of software or application (hereinafter, also referred to as app) used until the sleep information is transmitted to the server 20.
[0026] For example, even when the same sleep measuring device 11 is used to detect sleep information, in order to correct the sleep information or the like, different "sleep measuring device IDs" may be assigned to the case where a sleep measuring app A is used and the case where a sleep measuring app B different from the sleep measuring app A is used to manage the sleep information. In this way, by managing the sleep information as different "sleep measuring device IDs" according to the type of device as the apparatus configuration and the combination of the applications used, more flexible generation of sleep information is possible, and as a result, the entertainment value of games based on sleep information can be fully demonstrated.
[0027] The sleep measuring device 11 communicates by short-range wireless communication such as Bluetooth (registered trademark) or Wi-Fi, and transmits the sensing result to the terminal device 10. When the sleep measuring device 11 or the like supports a communication standard of a mobile communication system such as 5G, the sensing result may be transmitted to the server 20 without (or in addition to) transmitting to the terminal device 10 by short-range wireless communication. In this case, the terminal device 10 may receive the sensing result from the server 20 that has received the sensing result from the sleep measuring device 11 or the like, and generate and store sleep information using the received sensing result.
[0028] The server 20 includes a communication IF 22 , an input / output IF 23 , a memory 25 , a storage 26 , and a processor 29 .
[0029] The communication IF 22 is an interface for inputting and outputting signals so that the server 20 can communicate with an external device (for example, the terminal device 10).
[0030] The input / output IF 23 functions as an interface with an input device for receiving an input operation from a user and an output device for presenting information to the user.
[0031] The memory 25 is for temporarily storing programs and data to be processed by the programs, and is, for example, a volatile memory such as a DRAM.
[0032] The storage 26 is for storing data, and is, for example, a flash memory or a HDD.
[0033] The processor 29 is hardware for executing an instruction set written in a program, and is composed of an arithmetic unit, a register, peripheral circuits, and the like.
[0034] (1-3. Functional configuration of terminal device 10) Fig. 2 is a block diagram showing an example of a functional configuration of the terminal device 10. As shown in Fig. 2, the terminal device 10 includes an input device 13, an output device 14, a communication unit 150, an imaging unit 160, an audio processing unit 170, a storage unit 180, a motion sensor 190, and a control unit 200. The blocks included in the terminal device 10 in Fig. 2 are electrically connected to each other by, for example, a bus or the like.
[0035] The communication unit 150 performs processes such as modulation and demodulation processes for the terminal device 10 to communicate with other devices (e.g., the server 20). The communication unit 150 performs transmission processes on signals generated by the control unit 200 and transmits the signals to the outside. The communication unit 150 performs reception processes on signals received from the outside and outputs the signals to the control unit 200.
[0036] The input device 13 is a device for inputting instructions or information by a user who operates the terminal device 10. The input device 13 is realized, for example, by a touch-sensitive device 131 or the like in which instructions are input by touching an operation surface. The input device 13 may include a keyboard or a mouse. The input device 13 converts instructions or information input by a user into an electrical signal, and outputs the electrical signal to the control unit 200. The input device 13 may include, for example, a receiving port that receives an electrical signal input from an external input device.
[0037] The output device 14 is a device for presenting information to a user who operates the terminal device 10. The output device 14 is realized, for example, by a display 141 or the like. The display 141 displays data according to the control of the control unit 200. The display 141 is realized, for example, by an LCD (Liquid Crystal Display) or an organic EL (Electro-Luminescence) display or the like.
[0038] The imaging unit 160 includes a camera, receives light with a light receiving element, and inputs the received light as an imaging signal to capture an image of the surroundings of the terminal device 10.
[0039] The audio processing unit 170 performs, for example, digital-analog conversion processing of an audio signal. The audio processing unit 170 converts a signal provided from the microphone 171 into a digital signal and provides the converted signal to the control unit 200. The audio processing unit 170 also provides the audio signal to the speaker 172. The audio processing unit 170 is realized, for example, by a processor for audio processing. The microphone 171 accepts audio input and provides an audio signal corresponding to the audio input to the audio processing unit 170. The speaker 172 converts the audio signal provided from the audio processing unit 170 into audio and outputs the audio to the outside of the terminal device 10.
[0040] The storage unit 180 is realized by, for example, the memory 15 and the storage 16, and stores a database (also referred to as a database / DB) and a program used by the terminal device 10. The storage unit 180 stores, for example, a user database 181 and an object database 182.
[0041] The user database 181 is a database for storing user information. The user database 181 stores information about the user who uses the terminal device 10. As an example, a record in the user database 181 may be generated when the user performs user registration using software that provides this function and is installed in the terminal device 10. The data structure of the user database 181 will be described in detail later.
[0042] The object database 182 stores information regarding the relationship between the user and the object. In this embodiment, the object represents, for example, a character or an item to be featured in game play. The object is associated with the user by a lottery drawn by the server 20 based on the level of sleep information, for example. The relationship between the user and the object is associated based on sleep information, for example, and changes when the associated object receives interference from the user.
[0043] In addition, the user can select an already associated object and play a game during a time other than when the user is sleeping. As an example, when a relationship between the user and the object satisfies a predetermined requirement through a lottery based on sleep information and subsequent interaction with the object, the user may be able to use the object in a game during a time other than when the user is sleeping.
[0044] Note that the expression that a user is associated with an object is an expression that represents an example of the association between a user and an object, and may be expressed in other ways. For example, any expression such as a user purchasing, owning, or using an object may be used.
[0045] The motion sensor 190 includes an acceleration sensor, an angular velocity sensor (gyro sensor), etc., and detects the movement of the terminal device 10 and outputs the sensing result. For example, by placing the terminal device 10 on bedding such as a bed on which a user sleeps, when the sleeping user moves on the bedding, the movement can be detected.
[0046] The control unit 200 is realized by the processor 19 reading a program stored in the storage unit 180 and executing instructions included in the program. The control unit 200 controls the operation of the terminal device 10. The control unit 200 operates according to the program to fulfill the functions of an operation reception unit 201, a transmission / reception unit 202, a notification control unit 203, a time setting unit 204, and a sleep information measurement unit 206.
[0047] The operation reception unit 201 performs processing for receiving instructions or information input from the input device 13. Specifically, for example, the operation reception unit 201 receives information based on a user's instruction input from the touch-sensitive device 131 or the like. As an example, the operation reception unit 201 finalizes the measured sleep information by receiving an operation for ending sleep measurement from a user who has woken up. Note that the operation for ending the sleep measurement may be an operation for stopping an alarm output from the terminal device 10 in order for the user to wake up.
[0048] The transmitting / receiving unit 202 performs processing for the terminal device 10 to transmit and receive data to and from an external device in accordance with a communication protocol. As an example, the transmitting / receiving unit 202 transmits to the server 20 sleep information that has been confirmed upon receiving an operation input from the user for ending the sleep measurement.
[0049] The notification control unit 203 controls the notification to the user, that is, the process of presenting information to the user. Specifically, the notification control unit 203 performs a process of displaying a display image on the display 141, a process of outputting sound to the sound processing unit 170, and the like.
[0050] The time setting unit 204 accepts an operation from the user to set a time related to the progress of the game. For example, the time setting unit 204 sets the time at which an alarm is to be output for the user to wake up. The user sets the time at which he plans to wake up (scheduled wake-up time) as a time related to the progress of the game. When the scheduled wake-up time set by the user arrives, the terminal device 10 outputs an alarm from the speaker 172. When the user performs an operation to stop the alarm, the terminal device 10 determines that the user has woken up, confirms the sleep information, and progresses the game.
[0051] The time setting unit 204 may further receive an operation from the user to set a scheduled time for admission (scheduled admission time). When the scheduled admission time set by the user approaches, the terminal device 10 may be configured to notify the user that the scheduled admission time is approaching. The notification may be displayed on the display 141 or may be output by voice from the speaker 172.
[0052] The alarm may be set by software for providing a game in each device (terminal device 10, server 20) constituting system 1. For example, the alarm may be set in software that is installed in terminal device 10 and provides the functions of system 1. That is, the user can set the wake-up time not by an alarm function provided as a function of the OS (Operating System) of terminal device 10, but by an alarm setting unit configured by software for providing a game to the user in terminal device 10. System 1 may accept an operation related to the wake-up time in the alarm setting and progress the game.
[0053] The motion detection unit 205 detects a physical quantity based on the movement of the user's body while sleeping (hereinafter, simply referred to as a physical quantity) based on the sensing result of the movement of the terminal device 10 detected by the motion sensor 190. As an example, the physical quantity may be a value related to the shaking of the user's body while sleeping.
[0054] The sleep information measuring unit 206 measures the sleep information based on the physical quantity detected by the motion detecting unit 205. In this embodiment, the "sleep information" refers to information related to the user's sleep, and specifically may include at least one of the following: time of going to bed, time of falling asleep, time of waking up, time of getting up, sleep duration (time from time of falling asleep to time of waking up), information related to the quality of sleep, and sleep rhythm, but is not limited thereto.
[0055] Specifically, for example, the sleep information measuring unit 206 compares the physical quantity detected by the motion detecting unit 205 with a predetermined threshold. As an example, the sleep information measuring unit 206 may determine that the user is awake when the value of the physical quantity is equal to or greater than a first threshold (=the user's body movement is large), and may determine that the user is asleep when the value of the physical quantity is smaller than the first threshold (=the user's body movement is small). In this way, the sleep information measuring unit 206 may measure the user's sleeping time based on the physical quantity detected by the motion detecting unit 205.
[0056] In addition, the sleep information measuring unit 206 may determine that the user is in light sleep when the physical quantity detected by the motion detection unit 205 is equal to or less than the first threshold (=when the user is asleep) and equal to or greater than the second threshold (=the user's body movements while sleeping are large), and may determine that the user is in deep sleep when the value of the physical quantity is smaller than the second threshold (=the user's body movements while sleeping are small).
[0057] In this way, the sleep information measuring unit 206 can determine, as a measurement result of the sleep information, whether the user is asleep or awake, and whether the sleeping user is in light sleep, deep sleep, REM sleep, or non-REM sleep, and can evaluate the quality of the user's sleep. For example, the cycles of REM sleep and non-REM sleep for good quality sleep may be set in advance, and the quality of the user's sleep may be evaluated by comparing the cycles of REM sleep and non-REM sleep during the user's sleep.
[0058] Furthermore, the sleep information measuring unit 206 detects that the user has gone to bed, fallen asleep after going to bed, and woken up, based on the physical quantity detected by the motion detecting unit 205. Furthermore, the sleep information measuring unit 206 may determine whether the user has performed an input operation on the terminal device 10 or whether the user has viewed information displayed on the display 141 of the terminal device 10 during the period from when the user went to bed until when the user fell asleep. In other words, the sleep information measuring unit 206 may determine whether the user who is about to go to sleep has operated the terminal device 10 before going to sleep.
[0059] When the sleep measuring device 11 is realized as a wearable device attached to the user's body, a biological information sensor 191 may be provided in addition to the motion sensor 190. The biological information sensor 191 detects biological information such as at least one of the user's body temperature, blood pressure, and heart rate. In this case, the sleep information measuring unit 206 may be configured to determine whether the user is asleep or awake, and whether the sleeping user is in light sleep, deep sleep, REM sleep, or non-REM sleep, based on the biological information detected by the biological information sensor 191, and evaluate the quality of the user's sleep.
[0060] (1-4. Functional configuration of server 20) 3 is a diagram showing a functional configuration of the server 20. As shown in FIG. 3, the server 20 fulfills the functions of a communication unit 210, a storage unit 220, and a control unit 230.
[0061] The communication unit 210 performs processing for the server 20 to communicate with external devices.
[0062] The storage unit 220 is realized by, for example, the memory 25 and the storage 26, and stores data and programs used by the server 20. The storage unit 220 stores, for example, a user master table 221 and an object master table 222.
[0063] The user master table 221 is a table that stores information about users who play the present sleep game provided by the system 1 as master data. As an example, the user master table 221 stores information about all users who are registered to play the present sleep game. The data structure of the user master table 221 will be described later.
[0064] The object master table 222 is a table that stores information about objects that can be associated with a user as master data. As an example, the object master table 222 stores information about all objects that can be associated with a user in the sleep game.
[0065] The control unit 230 is realized by the processor 29 reading a program stored in the storage unit 220 and executing instructions included in the program. As an example, the control unit 230 performs functions shown as a transmission / reception module 231, a game progress module 232, and a notification control module 233 by operating according to the program.
[0066] The transmission / reception module 231 controls the process in which the server 20 transmits and receives signals to and from external devices in accordance with a communication protocol.
[0067] The game progress module 232 advances game play by generating events within the sleep game based on the user's sleep information received from the terminal device 10. Events within the game include making characters (including the character used by the user and enemy characters) or objects such as items appear in a scenario progressing within the game, opening a game stage to enable the user to play, or holding a lottery for the user to acquire an object and displaying the lottery result.
[0068] For example, the game progress module 232 determines objects such as characters and items to appear in the user's game play as an event in the game play by lottery based on the sleep information, and makes the objects determined by lottery appear in the game play. This allows the user to have experiences such as discovering new characters based on the sleep information.
[0069] The game progress module 232 may be configured to change a selection algorithm for selecting in-game objects based on the user's sleep information received from the terminal device 10. As an example, when at least one of the sleep time and sleep quality in the received sleep information satisfies a predetermined condition, the in-game objects that can be obtained in the selection may be changed, or the number of selections may be changed. With such a configuration, the game progress after waking up changes based on the sleep information, and it is possible to provide the user with fun after waking up.
[0070] The game progress module 232 may be configured to generate events advantageous to the user so that there is a positive correlation with the sleeping time in the sleep information measured from the user. In other words, the longer the sleeping time in the measured sleep information, the more likely an advantageous event will be generated by the user.
[0071] The game progress module 232 may be configured to generate events that are advantageous to the user so that there is a positive correlation with the quality of sleep in the sleep information measured from the user. In other words, the better the quality of sleep time in the measured sleep information, the more likely it is that an advantageous event will be generated by the user.
[0072] Furthermore, when the physical quantity detected by the motion detection unit 205 of the terminal device 10 is smaller than the second threshold (=during deep sleep) and smaller than the third threshold (=the user's body movement during sleep is too small) continues for a first period, the game progress module 232 determines that the state is abnormal, does not generate an event for the first sleep information that is a part of the sleep information measured from the user, and generates an event based on the second sleep information measured from the user excluding the first sleep information. Here, "a part of the sleep information" means a part of the sleep information measured in the sleep of that day. Note that "sleep of that day" means sleep that occurs from going to bed (usually at night) to waking up (usually the next morning). In addition, the first period may be set appropriately, and may be, for example, 4 hours. In addition, how to determine the first sleep information and the second sleep information from the measured sleep information can be set appropriately. For example, if the sleep time in the sleep information measured from the user is 7 hours, and the sleep time in the first sleep information is 1 hour, the sleep time in the second sleep information will be 6 hours. In this case, the game progression module 232 will generate an event based on six hours of second sleep information.
[0073] Furthermore, when the game progress module 232 determines that the abnormal state exists, it may be configured to set the sleep information for the sleep time of the day that exceeds the second period as the first sleep information, not to generate an event, and set the remaining sleep information as the second sleep information to generate an event. The second period may be the same value as the above-mentioned first period (e.g., 4 hours), or may be a period shorter than the first period (e.g., 3 hours).
[0074] For example, assume that the sleep time in the sleep information measured from the user is 8 hours, the first period is 4 hours, the second period is 2 hours, and the state in which the physical quantity detected by the motion detection unit 205 is smaller than the third threshold value continued for 5 hours. In this case, the game progress module 232 determines that the sleep time is abnormal, and does not generate an event for the sleep information corresponding to 6 hours of the 8 hours of sleep time that exceeds the 2 hours of the second period as the first sleep information, and generates an event for the remaining 2 hours as the second sleep information. In this way, even if the user puts the terminal device 10 on the bedding before going to bed and goes to bed, the sleep environment is affected, such as the sleep time being incorrectly measured due to the material of the bedding, by generating an event based on the sleep information for a certain period of time, it is possible to prevent the user from losing motivation to continue the sleep game.
[0075] In addition, when the game progress module 232 determines that an abnormal state exists, if the physical quantity detected by the motion detection unit 205 is greater than a fourth threshold, the abnormal state is deemed to have been released, and an event may be generated for the sleep information measured thereafter. In this way, when the sleep environment as described above has an effect, sleep information determined to have been appropriately measured can be reflected in the sleep game, and it is possible to prevent the user from losing motivation to continue playing the sleep game. The fourth threshold may be the same value as the third threshold, or may be a different value.
[0076] The notification control module 233 performs control for notifying the user that an abnormal state has been detected. Specifically, the notification control module 233 generates a message indicating that an abnormal state has been detected (hereinafter, also referred to as an abnormality message), and transmits the message to the terminal device 10.
[0077] The abnormality message may include information about the time of the sleep information that caused the event. In this way, the user can recognize the difference between his / her actual sleep time and the time of the sleep information that caused the event, and can recognize the disadvantage caused by the occurrence of the abnormal state (i.e., the sleep time that was not reflected in the in-game event). Alternatively, the notification control module 233 may include the time during which the abnormal state occurred in the abnormality message. In other words, by notifying the user of the time when the user's body movement was determined to be too small, it is possible to give the user an awareness of the reason why the abnormal state occurred.
[0078] The notification control module 233 may include information regarding a suggestion for improving the sleep environment in the abnormality message. In this way, it is possible to improve the sleep environment when, for example, the user is sleeping properly but the sleep environment is determined to be abnormal due to the influence of bedding on which the terminal device 10 is placed.
[0079] For example, suggestions for improving the sleep environment may include information to prompt confirmation of the manner in which the terminal device 10 is placed (the place where it is placed, the material of the bedding etc. on which it is placed, the orientation of the terminal device 10 when placed, etc.).
[0080] (1-5. Data Structure) The data structure of the database used in the system 1 will be described with reference to Figures 4 to 6. Note that Figures 4 to 6 are merely examples and do not exclude data that is not shown. Also, description of the same items will not be repeated.
[0081] 4 and 5 are diagrams showing data structures of databases stored in the storage unit 180 of the terminal device 10. Fig. 4 shows an example of the data structure of the user database 181. The user database 181 has columns such as name, age, address, date of birth, date of registration, scheduled wake-up time, held items, sleep information, confirmation status, etc., with a user ID as a key.
[0082] The user ID is an item that stores an identifier for uniquely identifying a user. The name is an item that stores the user's name. The age is an item that stores the user's age. The address is an item that stores the place where the user lives. The date of birth is an item that stores the date the user was born. The registration date is an item that stores the date the user started using the game related to this embodiment.
[0083] The planned wake-up time is an item that stores the time when the user plans to wake up. The planned wake-up time is set, for example, based on input from the user. The held items are an item that stores information about items held by the user that can be used in the game. The items held by the user can be rephrased as items associated with the user, for example. Items include, for example, development items or granted items. The item "held items" stores, for example, the names and number of items held by the user.
[0084] The sleep information is an item for storing sleep information related to the user. For example, the item "sleep information" stores sleep information for the previous night. In addition, for example, the item "sleep information" may store sleep information for a predetermined number of days in the past.
[0085] The confirmation status is an item that stores the status of whether the contents of the event have been confirmed. The item "confirmation status" stores information that allows the user to determine whether the contents of the event have been confirmed, such as "pending" or "confirmed." If the confirmation of the contents of the event is postponed, for example, "pending" is stored in the item "confirmation status."
[0086] 5 shows an example of the data structure of the object database 182. The object database 182 has columns such as name, level, parameter, vitality level, type, attribute, detailed information, etc., with the object ID as a key.
[0087] The object ID is an item that stores an identifier for uniquely identifying an object. The name is an item that stores the name of an object. The level and parameter are items that store an example of a relationship between a user and an object. The items "level" and "parameter" are indices that indicate the depth of the relationship between a user and an object. The item "level" stores, for example, an integer equal to or greater than 0. The item "parameter" stores, for example, a numerical value ranging from 0 to a predetermined value (for example, 100). When the value of the item "parameter" reaches a predetermined value that is the maximum value, the value of the item "parameter" becomes 0, and the value of the item "level" is incremented by 1. The value of the item "parameter" increases when the user interferes with an object. Specifically, for example, the item "parameter" increases according to the number and type of assigned objects assigned to the object.
[0088] The vitality level is an item that stores the degree to which an object as an individual can be used in the game at times other than when the object is sleeping. The item "vitality level" stores, for example, a numerical value ranging from 0 to a predetermined value (e.g., 100). For example, the closer to the predetermined value, the longer the individual can be used in the game by the user, and if it is 0, the individual cannot be used in the game. The item "vitality level" recovers when it is detected that the user has woken up. The amount of recovery may be a predetermined amount, an amount corresponding to the sleep information, an amount corresponding to the object, or a full recovery. The item "vitality level" is a parameter that changes when it is detected that the user has woken up, even if the event has not been confirmed by the user.
[0089] The type is an item that stores the type of object. In this embodiment, the type of object includes, for example, character, development item, and granted item. The attribute is an item that stores the nature to which the object belongs as a character. In this embodiment, the attributes include, for example, fire, water, lightning, grass, super, steel, evil, and fighting. There are attributes that are advantageous when facing against others, and attributes that are disadvantageous.
[0090] The detailed information is, for example, an item that stores an aspect associated with the user. The item "detailed information" stores which of the multiple aspects set for each object the object is associated with. In the item "detailed information", for example, "1" is set for an associated aspect, and "0" is set for an unassociated aspect. In addition, the detailed information may store advantageous effects that the object as an individual has. The advantageous effects are, for example, effects exerted by game elements during times other than sleep. Advantageous effects include, for example, an effect that allows the user to acquire more development items, or an effect that allows the user to acquire rarer development items. In addition, the detailed information may include information regarding rarity, etc.
[0091] Fig. 6 is a diagram showing the data structure of a database stored in the storage unit 220 of the server 20. Fig. 6 is a diagram showing the data structure of a user master table 221. The user master table 221 is a table having columns such as name, age, address, date of birth, date of registration, scheduled wake-up time, related objects, and sleep information, with a user ID as a key.
[0092] The related object is an item that stores information about an object, such as a character, that is associated with a user. The item "related object" stores, for example, information about an object as an individual that is associated with a user. Information about an object may include, for example, a management ID, an object ID, a name, a level, parameters, vitality, a type, attributes, detailed information, and the like. The item "related object" stores, for example, information about an item that is associated with a user. Information about an item may include, for example, the name and number of items held by the user.
[0093] The sleep information is an item that stores sleep information about the user. The item "sleep information" stores sleep information from when the sleep information is obtained from the user until a predetermined period of time has passed. For example, when the sleep information is transmitted to the server 20 in association with a request to confirm an event after the user wakes up, the sleep information of the previous night may not be stored in the user master table 221 unless the user requests confirmation of the event. In this way, if the sleep of the previous night is not evaluated, the sleep information of the next day cannot be accepted, so if the event is not confirmed, the sleep information of the next day may not be accepted. In other words, the sleep information stored in the item "sleep information" can store the sleep information of the next day when the event is confirmed by the user.
[0094] Furthermore, the past sleep information stored in the user master table 221 may be older than the past sleep information stored in the user database 181. In other words, the user database 181 may store a portion of the sleep information stored in the user master table 221 up until a predetermined period of time has elapsed.
[0095] (1-6. Processing flow) An example of the processing flow of the system 1 will be described below with reference to FIGS.
[0096] In step S100 of FIG. 7, the terminal device 10 starts the sleep game based on a user's operation. In step S105, the terminal device 10 starts measuring sleep information of the user (hereinafter, also referred to as sleep measurement). As an example, the terminal device 10 may be configured to start sleep measurement when the operation receiving unit 201 receives an operation by the user to start sleeping. The operation may be an operation of pressing a predetermined icon displayed on the display 141 just before the user goes to bed. Alternatively, the terminal device 10 may be configured to start sleep measurement by detecting that the user goes to bed after the start of the sleep game without receiving the operation.
[0097] In step S110, the motion detection unit 205 of the terminal device 10 detects a physical quantity based on the body movement of the user while sleeping. As an example, the motion detection unit 205 detects a value related to the shaking of the user's body based on the sensing result detected by the motion sensor 190.
[0098] In step S115, the sleep information measuring unit 206 of the terminal device 10 measures the sleep information of the user. As an example, the sleep information measuring unit 206 measures information about the user's sleep time and sleep quality based on the physical quantity detected by the motion detecting unit 205.
[0099] In step S120, the terminal device 10 ends the sleep measurement of the user. As an example, the terminal device 10 may end the sleep measurement when the operation receiving unit 201 receives an operation to end sleep by the user as a trigger. The operation may be an operation by the user to stop an alarm that is output at a time preset as a planned wake-up time. Alternatively, the terminal device 10 may end the sleep measurement by detecting that the user has woken up without receiving the operation.
[0100] In step S125, the transmission / reception unit 202 of the terminal device 10 transmits the sleep information to the server 20. Note that the transmission / reception unit 202 may transmit, together with the sleep information, information on physical quantities based on the body movements of the user during sleep detected by the motion detection unit 205. In step S210, the transmission / reception module 231 of the server 20 receives the sleep information from the terminal device 10.
[0101] In step S220 of FIG. 8, the game progress module 232 of the server 20 executes an abnormal state determination process.
[0102] 9, in the abnormal condition determination process (S220), it is determined whether the sleep information received from the terminal device 10 includes an abnormal condition.
[0103] In step S221, the game progress module 232 determines whether or not the physical amount detected by the motion detection unit 205 of the terminal device 10 is smaller than the third threshold. If the physical amount is smaller than the third threshold (Yes in step S221), step S223 is executed. On the other hand, if the physical amount is equal to or larger than the third threshold (No in step S221), step S220 ends.
[0104] In step S223, the game progress module 232 determines whether the state in which the physical quantity is smaller than the third threshold continues for a first period. If the state in which the physical quantity is smaller than the third threshold continues for the first period (Yes in step S223), step S225 is executed. On the other hand, if the state in which the physical quantity is smaller than the third threshold has not continued for the first period (No in step S223), step S220 ends.
[0105] In step S225, the game progression module 232 determines that an abnormal state exists.
[0106] In step S227, the game progress module 232 adjusts the sleep information that generates an event in the game. As an example, the game progress module 232 sets the sleep information measured during the sleep of that day that exceeds the second period as the first sleep information and excludes it from the event generation. Then, the game progress module 232 generates an event based on the second sleep information excluding the first sleep information from the sleep information measured during the sleep of that day.
[0107] In step S229, the notification control module 233 generates an abnormality message. The abnormality message may include information indicating that an abnormal state has been detected, information about the time of the sleep information that caused the event, information about a suggestion for improving the sleep environment, etc. An example of the abnormality message is "Sleep measurement was not performed correctly. The bedding on which the terminal device is placed may be too soft."
[0108] Returning to Fig. 8, in step S230, the game progress module 232 of the server 20 determines an event to be generated in the game based on the sleep information. As an example, the game progress module 232 determines in-game objects such as characters and items to be made to appear by the user's game play as an event to be generated in the game by drawing lots based on the sleep information. Note that, if an abnormal state is determined in the abnormal state determination process (S220), an event to be generated in the game is determined based on the adjusted sleep information.
[0109] In step S235, the transmission / reception module 231 of the server 20 transmits the event determined by the game progress module 232 to the terminal device 10. If it is determined that an abnormal state exists in the abnormal state determination process (S220), the abnormal message generated by the notification control module 233 is also transmitted. In step S130, the transmission / reception unit 202 of the terminal device 10 receives the event (and the abnormal message when it is determined that an abnormal state exists) from the server 20.
[0110] In step S135, the notification control unit 203 displays the event on the display 141 to present it to the user. The notification control unit 203 may be configured to present the event in accordance with the timing when the user wakes up. Specifically, the event may be presented as soon as possible after the user wakes up, or the event may be presented after a predetermined time has elapsed (e.g., 10 minutes) after the user wakes up. Furthermore, when the notification control unit 203 receives an abnormality message, it notifies the user by also displaying the message on the display 141. The notification of the abnormality message may be at the same timing as the presentation of the event, or may be at a different timing (specifically, before or after the presentation of the event).
[0111] (1-7.Summary) As described above, in this embodiment, the system 1 executes a step (S110) of detecting a physical quantity based on the movement of the user's body during sleep, a step (S115) of measuring the user's sleep information from the detected physical quantity, and a step (S230, S135) of generating an event based on the measured sleep information, and in the step of generating an event, if the detected physical quantity continues to be smaller than a predetermined threshold for a predetermined period of time, it is determined that this is an abnormal state, and the event is not generated based on the first sleep information that is a part of the sleep information, but is generated based on the second sleep information that excludes the first sleep information from the sleep information. With this configuration, it is possible to more appropriately reflect the sleep information in the progress of a sleep game using a device that detects the movement of the user's body. <2 Other embodiments> Although the embodiment and the modified examples of the present invention have been described above, application of the present disclosure is not limited to the above-mentioned contents.
[0112] For example, in the above embodiment, the game progress module 232 of the server 20 determines whether or not an abnormal state has occurred based on the physical quantity detected by the motion detection unit 205, but the present invention is not limited to this. For example, the abnormal state determination process may be executed by the sleep information measurement unit 206 of the terminal device 10.
[0113] In this case, it is preferable not to present information about the measurement status of the sleep information (particularly, information about whether an abnormal state has occurred) to the user during the sleep time. This makes it possible to prevent fraudulent means, such as changing the placement of the device or vibrating it after starting sleep measurement, without actually sleeping, in order to obtain more favorable sleep measurement results while watching the measurement status of the sleep information.
[0114] In the above embodiment, the terminal device 10 is described as a terminal realized by a smartphone or the like, but is not limited to this example. The terminal device 10 may be realized by installing software on a home PC or the like, and may receive operations from a mouse or the like.
[0115] In addition, sharing of specific information via communication lines is mainly performed via a WAN such as the Internet, but between information processing devices, communication may also be performed only via short-range wireless communication such as Bluetooth (registered trademark) and infrared communication without using a WAN.
[0116] In addition, in the above embodiment, an example of a form in which each function is provided by the terminal device 10 or the server 20 is described, but this is not limited to this form, and some or all of the functions may be provided by the terminal device 10, the server 20, or both the terminal device 10 and the server 20 in a form different from the above embodiment.
[0117] Furthermore, the present invention may be realized as a program that causes an information processing device to execute the functions of the above-mentioned terminal device 10 or server 20, or as a computer-readable non-transitory recording medium that stores the program.
[0118] <Additional Notes> The matters described in the above embodiments will be supplemented below. (Appendix 1) A program to be executed by a computer having a processor and a memory, the program causing the processor to execute the steps of detecting physical quantities based on body movements of a user while sleeping, measuring sleep information of the user from the detected physical quantities, and generating an event based on the measured sleep information, wherein in the step of generating an event, if the detected physical quantity remains smaller than a predetermined threshold for a predetermined period of time, it is determined that this is an abnormal state, and the event is not generated based on first sleep information that is a part of the sleep information, but is generated based on second sleep information that is the sleep information excluding the first sleep information. (Appendix 2) The program according to claim 1, wherein in the step of generating an event, an event based on the sleep information is not generated only for a time period that exceeds a predetermined period in a day's sleep time. (Appendix 3) The program according to claim 1, further comprising: if the physical quantity exceeds a predetermined threshold value after the abnormal state is detected, executing a step of generating an event based on sleep information measured thereafter. (Appendix 4) 2. The program of claim 1, further comprising the step of notifying a user that the abnormal state has been detected. (Appendix 5) 2. The program according to claim 1, which executes a step of notifying a user of a time of the sleep information that caused the event to occur. (Appendix 6) The program according to claim 1, further comprising: a step of notifying the user of information for encouraging the user to improve his / her sleep environment when the abnormal state is detected. (Appendix 7) The program according to claim 7, further comprising: a step of notifying information for prompting a user to confirm a manner in which a device for detecting the physical quantity is placed, as the information for prompting an improvement in the sleep environment. (Appendix 8) The program according to claim 1, which does not present to the user a measurement status of sleep information during the user's sleep time.
[0119] Although several embodiments of the present disclosure have been described above, these embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and modifications are within the scope of the invention and its equivalents as described in the claims, as well as the scope and spirit of the invention. [Explanation of symbols]
[0120] 1: system, 10: terminal device, 11: sleep measurement device, 13: input device, 14: output device, 15: memory, 16: storage, 19: processor, 20: server, 25: memory, 26: storage, 29: processor, 30: network, 131: touch-sensitive device, 141: display, 150: communication unit, 160: imaging unit, 170: audio processing unit, 171: microphone, 172: speaker, 180: storage unit, 181: user database, 182: Object database, 190: motion sensor, 191: biometric information sensor, 200: control unit, 201: operation reception unit, 202: transmission / reception unit, 203: notification control unit, 204: time setting unit, 205: motion detection unit, 206: sleep information measurement unit, 210: communication unit, 220: memory unit, 221: user master table, 222: object master table, 230: control unit, 231: transmission / reception module, 232: game progress module, 233: notification control module.
Claims
1. A program for causing a computer having a processor and a memory to execute the program, the program comprising: Detecting a physical quantity based on a body movement of a user while sleeping; measuring sleep information of the user from the detected physical quantity; generating an event based on the measured sleep information; In the step of generating an event, a state in which the detected physical quantity remains smaller than a predetermined threshold value for a predetermined period of time is determined to be an abnormal state, and the event is not generated based on first sleep information that is a part of the sleep information, but is generated based on second sleep information that is the sleep information excluding the first sleep information.
2. The program according to claim 1 , wherein in the step of generating an event, an event based on the sleep information is not generated only for a time period exceeding a predetermined period in a day's sleep time.
3. The program according to claim 1 , further comprising: when the physical quantity exceeds a predetermined threshold value after the abnormal state is detected, generating an event based on sleep information measured thereafter.
4. The program according to claim 1 , further comprising the step of notifying a user that the abnormal state has been detected.
5. The program according to claim 1 , further comprising: notifying a user of a time of the sleep information at which an event occurred.
6. The program according to claim 1 , further comprising: a step of notifying the user of information for encouraging the user to improve a sleeping environment when the abnormal state is detected.
7. The program according to claim 6 , further comprising a step of notifying information for prompting a user to confirm a manner in which a device for detecting the physical quantity is placed, as the information for prompting the user to improve the sleep environment.
8. The program according to claim 1 , wherein a measurement status of sleep information is not presented to the user during the user's sleeping time.
9. An information processing device comprising a control unit and a storage unit, the control unit executing all of the steps executed in the invention according to any one of claims 1 to 8.
10. A method implemented on a computer having a processor and a memory, the processor performing all of the steps performed in any one of claims 1 to 8.
11. A system comprising means for executing all the steps performed in any one of claims 1 to 8.
Citation Information
Patent Citations
Game program, method, and information processing device
JP2020194313A