JP7462100B1 - Program, method, information processing device, and system - Google Patents

Program, method, information processing device, and system Download PDF

Info

Publication number
JP7462100B1
JP7462100B1 JP2023112246A JP2023112246A JP7462100B1 JP 7462100 B1 JP7462100 B1 JP 7462100B1 JP 2023112246 A JP2023112246 A JP 2023112246A JP 2023112246 A JP2023112246 A JP 2023112246A JP 7462100 B1 JP7462100 B1 JP 7462100B1
Authority
JP
Japan
Prior art keywords
user
sleep
information
sleep information
game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2023112246A
Other languages
Japanese (ja)
Inventor
要 小杉
佑貴 寺田
善成 米原
虎也 中畑
拓実 塚田
佳祐 宮川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pokemon Co
Original Assignee
Pokemon Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Pokemon Co filed Critical Pokemon Co
Priority to JP2023112246A priority Critical patent/JP7462100B1/en
Application granted granted Critical
Publication of JP7462100B1 publication Critical patent/JP7462100B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

【課題】ユーザの身体の動きを検出するデバイスを用いた睡眠ゲームにおいて、より適切に睡眠情報をゲームの進行に反映する。【解決手段】本開示によれば、プロセッサと、メモリとを備えるコンピュータに実行させるためのプログラムであって、前記プロセッサに、ユーザの睡眠中における身体の動きに基づく物理量を検出するステップと、検出された物理量から前記ユーザの睡眠情報を測定するステップと、測定された前記睡眠情報に基づいてイベントを発生させるステップとを実行させ、前記イベントを発生させるステップでは、検出された物理量が所定の閾値より小さい状態が所定の期間続いた場合を異常状態であるとして、前記睡眠情報のうちの一部である第1睡眠情報に基づいては前記イベントを発生させず、前記睡眠情報のうち前記第1睡眠情報を除いた第2睡眠情報に基づいてイベントを発生させる、プログラムが提供される。【選択図】図9[Problem] To more appropriately reflect sleep information in the progress of a sleep game using a device that detects the user's body movements. [Solution] According to the present disclosure, there is provided a program for execution by a computer having a processor and a memory, the program causing the processor to execute the steps of detecting a physical quantity based on the body movements of a user while sleeping, measuring the user's sleep information from the detected physical quantity, and generating an event based on the measured sleep information, in which, in the step of generating an event, if a state in which the detected physical quantity remains smaller than a predetermined threshold value 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 excludes the first sleep information from the sleep information. [Selected Figure] FIG.

Description

本開示は、プログラム、方法、情報処理装置、システムに関する。 This disclosure relates to a program, a method, an information processing device, and a system.

近年、ユーザの睡眠情報を用いたゲームの開発が進められている。例えば、特許文献1には、ユーザが就寝しているマットレス等に載置され、モーションセンサを備えるデバイスによって、睡眠中のユーザの身体の動きを検出して睡眠情報を測定することが開示されている。 In recent years, games that use user sleep information have been developed. For example, Patent Document 1 discloses a device that is placed on a mattress or the like on which the user sleeps and has a motion sensor that detects the user's body movements while sleeping and measures sleep information.

特開2020-194313Patent Publication No. 2020-194313

上記技術では、例えば、ユーザがデバイスを寝具から離れた場所に放置した場合等に、実際は睡眠中のユーザの身体の動きを検出していないにもかかわらず、睡眠情報が測定されてしまう場合がある。このような状況を看過すると、ゲームを進行するために規則正しい睡眠をしようとする意義が薄れ、ユーザがゲームへの興味を失う可能性もある。一方で、ユーザの睡眠時の環境によっては身体の動きを検出しにくいことも考えられるため、このような状況で単にエラーとしては、ユーザにとって不利益が大きい。 In the above technology, for example, if the user leaves the device away from the bedding, sleep information may be measured even though the user's body movements while sleeping are not actually detected. If such a situation is overlooked, it may diminish the significance of trying to sleep regularly in order to progress in the game, and the user may lose interest in the game. On the other hand, depending on the environment in which the user sleeps, it may be difficult to detect body movements, so a simple error in such a situation would be very detrimental to the user.

本開示の目的はユーザの身体の動きを検出するデバイスを用いた睡眠ゲームにおいて、より適切に睡眠情報をゲームの進行に反映することである。 The purpose of this 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.

本開示によれば、プロセッサと、メモリとを備えるコンピュータに実行させるためのプログラムであって、前記プロセッサに、ユーザの睡眠中における身体の動きに基づく物理量を検出するステップと、検出された物理量から前記ユーザの睡眠情報を測定するステップと、測定された前記睡眠情報に基づいてイベントを発生させるステップとを実行させ、前記イベントを発生させるステップでは、検出された物理量が所定の閾値より小さい状態が所定の期間続いた場合を異常状態であるとして、前記睡眠情報のうちの一部である第1睡眠情報に基づいては前記イベントを発生させず、前記睡眠情報のうち前記第1睡眠情報を除いた第2睡眠情報に基づいてイベントを発生させる、プログラムが提供される。 According to the present disclosure, there is provided a program to be executed by a computer having a processor and a memory, the program instructing the processor to execute the steps of detecting a physical quantity based on the movement of the body of a user while sleeping, measuring sleep information of the user from the detected physical quantity, and generating an event based on the measured sleep information, in which, 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 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.

このような構成とすることで、ユーザの睡眠情報を測定するためのデバイスが適切な場所に配置されなかった場合には、異常状態であると判定して一部の睡眠情報についてはイベントが発生されないため、ユーザの身体の動きを検出するデバイスを用いた睡眠ゲームにおいて、より適切に睡眠情報をゲームの進行に反映することが可能となる。 With this configuration, if the device for measuring the user's sleep information is not placed in an appropriate location, it is determined to be an abnormal state and no event is generated for some of the sleep information, making it possible to more appropriately reflect sleep information in the progress of the game in a sleep game that uses a device that detects the user's body movements.

システム1のハードウェア構成を示すブロック図である。FIG. 2 is a block diagram showing the hardware configuration of the system 1. 端末装置10の機能構成を表すブロック図である。FIG. 2 is a block diagram showing the functional configuration of a terminal device 10. サーバ20の機能構成を表すブロック図である。FIG. 2 is a block diagram showing the functional configuration of the server 20. ユーザデータベース181のデータ構造を示す図である。FIG. 2 is a diagram showing the data structure of a user database 181. オブジェクトデータベース182のデータ構造を示す図である。FIG. 13 is a diagram showing the data structure of an object database 182. ユーザマスタテーブル221のデータ構造を示す図である。2 is a diagram showing the data structure of a user master table 221. FIG. システム1の処理の流れの前半を説明するフロー図である。FIG. 2 is a flow diagram illustrating the first half of the processing flow of the system 1. システム1の処理の流れの後半を説明するフロー図である。11 is a flow diagram illustrating the latter half of the processing flow of the system 1. FIG. 異常状態判定処理(S220)の流れを説明するフロー図である。FIG. 11 is a flow diagram illustrating the flow of an abnormal state determination process (S220).

以下、図面を参照しつつ、本開示の実施形態について説明する。以下の説明では、同一の部品には同一の符号を付しており、それらの名称及び機能も同じである。したがって、それらについての詳細な説明は繰り返さない。なお、本実施形態において、「入床」とはユーザが睡眠をとるためにベッドまたは布団などの寝具に入ることをいい、「入眠」とは入床後に睡眠を開始することを意味する。また、「覚醒」とはユーザが睡眠を終了することをいい、「起床」とは覚醒後に寝具から起き出すことを意味する。また、睡眠時間とは、入床(または入眠)から起床(または覚醒)までの時間を意味する。 Below, an embodiment of the present disclosure will be described with reference to the drawings. In the following description, the same parts are given the same reference numerals, and their names and functions are also the same. Therefore, detailed descriptions thereof will not be repeated. In this embodiment, "going to bed" refers to a user getting into bedding such as a bed or futon to sleep, and "falling asleep" refers to starting to sleep after going to bed. Also, "awakening" refers to a user ending sleep, and "getting up" refers to getting up from the bedding after waking up. Also, sleep time refers to the time from going to bed (or falling asleep) to waking up (or waking up).

<1.第1実施形態>
(1-1.システム1が提供する機能の概要)
本実施形態におけるシステム1が備える端末装置10は、例えばスマートフォンなどの携帯端末であり、ユーザの睡眠情報を取得して、当該睡眠情報に基づいて進行するゲーム(以下、本睡眠ゲームともいう)を提供する。また、端末装置10は、ユーザが予め設定した時刻に、音声、振動、光等によりユーザが起床するためのアラームを出力する。
<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 acquired 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.

起床したユーザが端末装置10を操作すると、睡眠情報に基づいて決定されたゲーム内イベントが発生して、ゲームプレイが進行する。ゲーム内イベントとしては、例えば、睡眠情報に基づいて、ゲーム内オブジェクトをユーザが取得するための抽選が行われる。ゲーム内イベントは、ユーザから計測した睡眠情報における睡眠時間および睡眠の質と正の相関があるように、ユーザにとって有利なイベントが発生する仕様とすることができる。 When a user wakes up and 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 so that the user can obtain an in-game object. The in-game event can be designed so that an event advantageous to the user occurs, so that there is a positive correlation with the sleep time and sleep quality in the sleep information measured from the user.

システム1では、ユーザの睡眠中における身体の動きに基づく物理量を検出して、検出した物理量から睡眠情報を測定する。さらに、検出された物理量が所定の閾値より小さい状態が所定の期間続いた場合、異常状態であると判定して、測定された睡眠情報の内、少なくとも一部の睡眠情報についてはイベントを発生させない。このような仕様とすることにより、ユーザが睡眠情報を取得するためのデバイスを他の場所に置いてしまっていた場合などにおいて、より適切に睡眠情報をゲームの進行に反映することが可能となる。以下、各構成を詳細に説明する。 System 1 detects physical quantities based on the movement of the user's body while sleeping, and measures sleep information from the detected physical quantities. Furthermore, if the detected physical quantities remain below 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 some of the measured sleep information. With this specification, it becomes possible to more appropriately reflect the sleep information in the progress of the game in cases such as when the user has placed the device for acquiring sleep information in a different location. Each component will be described in detail below.

(1-2.端末装置10のハードウェア構成)
図1は、システム1のハードウェア構成の例を示すブロック図である。システム1は、端末装置10と、サーバ20とを含む。端末装置10およびサーバ20は、例えば、ネットワーク30を介して通信接続する。ネットワーク30は、例えば、インターネット、及び/又は通信事業者が提供する通信網等により実現される。なお、図2において、システム1が端末装置10を1台含む例を示しているが、システム1に含まれる端末装置10の数は1台に限定されない。すなわち、端末装置10は2台以上であってもよい。
(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, although 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.

本実施形態において、複数の装置の集合体を1つのサーバとしてもよい。1つ又は複数のハードウェアに対して本実施形態に係るサーバ20を実現することに要する複数の機能の配分の仕方は、各ハードウェアの処理能力及び/又はサーバ20に求められる仕様等に鑑みて適宜決定することができる。 In this embodiment, a collection of multiple devices may be considered as one server. The method of allocating multiple functions required to realize the server 20 of this embodiment to one or more pieces of hardware can be determined appropriately in consideration of the processing capacity of each piece of hardware and/or the specifications required for the server 20.

端末装置10は、例えば、タブレット端末、又はスマートフォン等の携帯端末により実現される。また、端末装置10は、据え置き型のPC(Personal Computer)、又はラップトップPC等により実現されてもよい。また、端末装置10は、ヘッドマウントディスプレイとして機能してもよく、例えば、透過型、非透過型、またはシースルー型ヘッドマウントディスプレイとして機能してもよい。 The terminal device 10 is realized, for example, by 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) or a laptop PC. The terminal device 10 may also function as a head-mounted display, and may function, for example, as a transparent, non-transparent, or see-through head-mounted display.

端末装置10は、通信IF(Interface)12と、入力装置13と、出力装置14と、メモリ15と、ストレージ16と、プロセッサ19とを備える。 The terminal device 10 includes a communication interface (IF) 12, an input device 13, an output device 14, a memory 15, storage 16, and a processor 19.

通信IF12は、端末装置10が外部の装置と通信するため、信号を入出力するためのインタフェースである。 The communication IF 12 is an interface for inputting and outputting signals so that the terminal device 10 can communicate with external devices.

入力装置13は、ユーザからの入力操作を受け付けるための装置(例えば、タッチパネル、タッチパッド、マウス等のポインティングデバイス、キーボード等)である。 The input device 13 is a device for accepting input operations from a user (e.g., a touch panel, a touch pad, a pointing device such as a mouse, a keyboard, etc.).

出力装置14は、ユーザに対して情報を提示するための装置(ディスプレイ、スピーカ等)である。 The output device 14 is a device (display, speaker, etc.) for presenting information to the user.

メモリ15は、プログラム、及び、プログラム等で処理されるデータ等を一時的に記憶するためのものであり、例えばDRAM(Dynamic Random Access Memory)等の揮発性のメモリである。 Memory 15 is used to temporarily store programs and data processed by the programs, and is a volatile memory such as a DRAM (Dynamic Random Access Memory).

ストレージ16は、データを保存するためのものであり、例えばフラッシュメモリ、HDD(Hard Disc Drive)である。 Storage 16 is used to store data, and is, for example, a flash memory or a hard disk drive (HDD).

プロセッサ19は、プログラムに記述された命令セットを実行するためのハードウェアであり、演算装置、レジスタ、周辺回路等により構成される。 The processor 19 is hardware for executing the instruction set described in the program, and is composed of an arithmetic unit, registers, peripheral circuits, etc.

睡眠測定デバイス11は、端末装置10のユーザの睡眠に関する情報を取得するためのデバイスである。端末装置10は、1または複数の睡眠測定デバイス11と有線又は無線により接続する。具体的には、端末装置10は、例えば、腕時計型、指輪型、アイマスク型等の、ユーザの身体に装着されるウェアラブルデバイスであってもよく、ユーザが就寝しているベッドの枕元等に載置する置時計型のデバイスであってもよい。また、端末装置10と睡眠測定デバイス11とは、同一の装置であるとしてもよい。 The sleep measuring device 11 is a device for acquiring information related to the sleep of the user of the terminal device 10. The terminal device 10 is connected to one or more sleep measuring devices 11 via a wired or wireless connection. Specifically, the terminal device 10 may be a wearable device that is attached to the user's body, such as a wristwatch, finger ring, or eye mask, or may be a clock-type device that is placed at the side of the bed where the user sleeps. In addition, the terminal device 10 and the sleep measuring device 11 may be the same device.

なお、ユーザが2以上の異なる種類の睡眠測定デバイス11を同時に使用してもよい。例えば、ユーザが腕時計型の睡眠測定デバイス11を1つ装着して使用しつつ、置時計型の睡眠測定デバイス11を1つ使用してもよいし、ユーザが腕時計型の睡眠測定デバイス11を装着して使用しつつ、端末装置10を睡眠測定デバイス11として使用してもよい。 The user may use two or more different types of sleep measurement devices 11 at the same time. For example, the user may wear and use one wristwatch-type sleep measurement device 11 and one desk clock-type sleep measurement device 11, or the user may wear and use one wristwatch-type sleep measurement device 11 and use the terminal device 10 as the sleep measurement device 11.

また、睡眠測定デバイス11の種類の相違は必ずしも装置の相違である必要はない。すなわち、同じ装置の睡眠測定デバイス11であっても、睡眠情報をサーバ20に送信するまでに利用したソフトウェアやアプリケーション(以下、アプリともいう)の種類によって、システム1において異なる睡眠測定デバイス11として管理してもよい。 In addition, the difference in type of sleep measuring device 11 does not necessarily have to be a difference in device. In other words, even if the sleep measuring device 11 is the same device, it 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 before transmitting the sleep information to the server 20.

例えば、同一の睡眠測定デバイス11を利用して睡眠情報を検出した場合であっても、睡眠情報の修正等のために、睡眠測定アプリAを利用した場合と睡眠測定アプリAとは異なる睡眠測定アプリBを利用した場合とでは、それぞれ異なる「睡眠測定デバイスID」を付与して睡眠情報を管理してもよい。このように、装置構成としてのデバイスの種類と、使用したアプリケーションの組み合わせに応じて、それぞれ異なる「睡眠測定デバイスID」として管理することで、より柔軟な睡眠情報の生成が可能になり、その結果、睡眠情報に基づくゲームの興趣性を十分に発揮することができる。 For example, even if the same sleep measuring device 11 is used to detect sleep information, different "sleep measuring device IDs" may be assigned to the case where sleep measuring app A is used and the case where sleep measuring app B, which is different from sleep measuring app A, is used in order to correct the sleep information, etc., and the sleep information may be managed accordingly. In this way, by managing the sleep information as different "sleep measuring device IDs" depending on the type of device as the apparatus configuration and the combination of 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.

睡眠測定デバイス11は、Bluetooth(登録商標)、Wi-Fi等の近距離無線通信により通信し、端末装置10へセンシング結果を送信する。なお、睡眠測定デバイス11等が、5G等の移動体通信システムの通信規格に対応する場合、近距離無線通信によって端末装置10へ送信することなく(または送信することに加えて)、サーバ20にセンシング結果を送信することとしてもよい。この場合、端末装置10は、睡眠測定デバイス11等からセンシング結果を受信したサーバ20から、当該センシング結果を受信し、受信したセンシング結果を用いて睡眠情報を生成して記憶することとしてもよい。 The sleep measuring device 11 communicates via short-range wireless communication such as Bluetooth (registered trademark) or Wi-Fi, and transmits the sensing results to the terminal device 10. Note that if the sleep measuring device 11 or the like is compatible with a communication standard for a mobile communication system such as 5G, the sensing results may be transmitted to the server 20 without (or in addition to) transmitting to the terminal device 10 via short-range wireless communication. In this case, the terminal device 10 may receive the sensing results from the server 20 that has received the sensing results from the sleep measuring device 11 or the like, and generate and store sleep information using the received sensing results.

サーバ20は、通信IF22と、入出力IF23と、メモリ25と、ストレージ26と、プロセッサ29とを備える。 The server 20 includes a communication IF 22, an input/output IF 23, a memory 25, a storage 26, and a processor 29.

通信IF22は、サーバ20が外部の装置(例えば端末装置10)と通信するため、信号を入出力するためのインタフェースである。 The communication IF 22 is an interface for inputting and outputting signals so that the server 20 can communicate with an external device (e.g., the terminal device 10).

入出力IF23は、ユーザからの入力操作を受け付けるための入力装置、及び、ユーザに対し、情報を提示するための出力装置とのインタフェースとして機能する。 The input/output IF 23 functions as an interface between an input device for accepting input operations from the user and an output device for presenting information to the user.

メモリ25は、プログラム、及び、プログラム等で処理されるデータ等を一時的に記憶するためのものであり、例えばDRAM等の揮発性のメモリである。 Memory 25 is for temporarily storing programs and data processed by the programs, and is, for example, a volatile memory such as a DRAM.

ストレージ26は、データを保存するためのものであり、例えばフラッシュメモリ、HDDである。 Storage 26 is for storing data, and is, for example, a flash memory or a HDD.

プロセッサ29は、プログラムに記述された命令セットを実行するためのハードウェアであり、演算装置、レジスタ、周辺回路等により構成される。 The processor 29 is hardware for executing the instruction set described in the program, and is composed of an arithmetic unit, registers, peripheral circuits, etc.

(1-3.端末装置10の機能構成)
図2は、端末装置10の機能構成の例を示すブロック図である。図2に示すように、端末装置10は、入力装置13と、出力装置14と、通信部150と、撮像部160と、音声処理部170と、記憶部180と、モーションセンサ190と、制御部200を備える。図2において端末装置10に含まれる各ブロックは、例えば、バス等により電気的に接続される。
(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 via, for example, a bus or the like.

通信部150は、端末装置10が他の装置(例えばサーバ20)と通信するための変復調処理等の処理を行う。通信部150は、制御部200で生成された信号に送信処理を施し、外部へ送信する。通信部150は、外部から受信した信号に受信処理を施し、制御部200へ出力する。 The communication unit 150 performs processes such as modulation and demodulation for the terminal device 10 to communicate with other devices (e.g., the server 20). The communication unit 150 performs transmission processing on signals generated by the control unit 200 and transmits the signals to the outside. The communication unit 150 performs reception processing on signals received from the outside and outputs the signals to the control unit 200.

入力装置13は、端末装置10を操作するユーザが指示、又は情報を入力するための装置である。入力装置13は、例えば、操作面へ触れることで指示が入力されるタッチセンシティブデバイス131等により実現される。入力装置13は、キーボードまたはマウスを含んでいてもよい。入力装置13は、ユーザから入力される指示、又は情報を電気信号へ変換し、電気信号を制御部200へ出力する。なお、入力装置13には、例えば、外部の入力機器から入力される電気信号を受け付ける受信ポートが含まれてもよい。 The input device 13 is a device for inputting instructions or information by the user operating the terminal device 10. The input device 13 is realized, for example, by a touch-sensitive device 131 or the like that inputs instructions by touching the operation surface. The input device 13 may include a keyboard or a mouse. The input device 13 converts the instructions or information input by the user into an electrical signal and outputs the electrical signal to the control unit 200. The input device 13 may also include, for example, a receiving port that receives an electrical signal input from an external input device.

出力装置14は、端末装置10を操作するユーザへ情報を提示するための装置である。出力装置14は、例えば、ディスプレイ141等により実現される。ディスプレイ141は、制御部200の制御に応じたデータを表示する。ディスプレイ141は、例えば、LCD(Liquid Crystal Display)、又は有機EL(Electro-Luminescence)ディスプレイ等によって実現される。 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.

撮像部160はカメラを備え、受光素子により光を受光し、撮影信号として入力することで、端末装置10の周囲の撮像を行う。 The imaging unit 160 is equipped with a camera, receives light using a light receiving element, and inputs the light as an imaging signal to capture an image of the surroundings of the terminal device 10.

音声処理部170は、例えば、音声信号のデジタル-アナログ変換処理を行う。音声処理部170は、マイク171から与えられる信号をデジタル信号に変換して、変換後の信号を制御部200へ与える。また、音声処理部170は、音声信号をスピーカ172へ与える。音声処理部170は、例えば音声処理用のプロセッサによって実現される。マイク171は、音声入力を受け付けて、当該音声入力に対応する音声信号を音声処理部170へ与える。スピーカ172は、音声処理部170から与えられる音声信号を音声に変換して当該音声を端末装置10の外部へ出力する。 The audio processing unit 170, for example, performs digital-to-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 an 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.

記憶部180は、例えば、メモリ15、及びストレージ16等により実現され、端末装置10が使用するデータベース(Databese/DBとも記載)、及びプログラムを記憶する。記憶部180は、一例として、ユーザデータベース181と、オブジェクトデータベース182を記憶する。 The storage unit 180 is realized, for example, by the memory 15 and the storage 16, and stores databases (also referred to as databases/DBs) and programs used by the terminal device 10. As an example, the storage unit 180 stores a user database 181 and an object database 182.

ユーザデータベース181は、ユーザの情報を記憶するためのデータベースである。ユーザデータベース181には、当該端末装置10を利用するユーザに関する情報が記憶される。一例として、端末装置10にインストールされた本機能を提供するソフトウェアを利用して、ユーザがユーザ登録の作業を行ったタイミングで、ユーザデータベース181のレコードが生成される仕様としてもよい。ユーザデータベース181のデータ構造の詳細は後述する。 The user database 181 is a database for storing user information. Information about the user who uses the terminal device 10 is stored in the user database 181. As an example, a record in the user database 181 may be generated when a user performs user registration work using software that provides this function installed on the terminal device 10. The data structure of the user database 181 will be described in detail later.

オブジェクトデータベース182は、ユーザとオブジェクトとの関係に関する情報を記憶する。本実施形態において、オブジェクトは、例えば、ゲームプレイに登場させるキャラクタ、又はアイテム等を表す。オブジェクトは、例えば、睡眠情報の程度に基づいてサーバ20で抽選がなされ、ユーザに関連付けられる。ユーザとオブジェクトとの関係は、例えば、睡眠情報に基づいて関連付けられ、関連付けられたオブジェクトがユーザから干渉を受けることで変動する。 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 that appears in gameplay. The object is associated with the user by drawing a lottery on the server 20 based on, for example, the degree of sleep information. The relationship between the user and the object is associated based on, for example, sleep information, and changes when the associated object receives interference from the user.

また、ユーザは、睡眠以外の時間において、すでに関連付けられたオブジェクトを選択し、ゲームプレイを実行することが可能である。一例として、睡眠情報に基づく抽選、及びその後のオブジェクトへの干渉により、ユーザとオブジェクトとの関係が所定の要件を満たすと、ユーザは、睡眠以外の時間でのゲームにおいてオブジェクトを利用可能となる仕様としてもよい。 The user can also select an already associated object and play the game when not sleeping. As an example, when the relationship between the user and the object satisfies certain requirements through a lottery based on sleep information and subsequent interaction with the object, the user can use the object in the game when not sleeping.

なお、ユーザとオブジェクトとが関連付けられるとの表現は、ユーザとオブジェクトとの関連性の例を表す表現であり、その他の表現で表されてもよい。例えば、ユーザがオブジェクトを購入する、所有する、使用する等、いかなる表現が用いられてもよい。 The expression that a user is associated with an object is an expression that shows an example of the relationship between a user and an object, and may be expressed in other ways. For example, any expression may be used, such as the user purchasing, owning, or using the object.

モーションセンサ190は、加速度センサ、角速度センサ(ジャイロセンサ)等を含み、端末装置10の動きを検出しセンシング結果を出力する。例えば、端末装置10を、ユーザが就寝するベッド等の寝具に載置することにより、睡眠中のユーザが寝具の上で動いている場合に、当該動きを検出することができる。 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 the user sleeps, when the sleeping user moves on the bedding, the movement can be detected.

制御部200は、プロセッサ19が記憶部180に記憶されるプログラムを読み込み、プログラムに含まれる命令を実行することにより実現される。制御部200は、端末装置10の動作を制御する。制御部200は、プログラムに従って動作することにより、操作受付部201と、送受信部202と、通知制御部203と、時刻設定部204と、睡眠情報測定部206としての機能を発揮する。 The control unit 200 is realized by the processor 19 reading a program stored in the storage unit 180 and executing instructions contained in the program. The control unit 200 controls the operation of the terminal device 10. By operating according to the program, the control unit 200 fulfills 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.

操作受付部201は、入力装置13から入力される指示、又は情報を受け付けるための処理を行う。具体的には、例えば、操作受付部201は、タッチセンシティブデバイス131等から入力されるユーザの指示に基づく情報を受け付ける。一例として、操作受付部201は、起床したユーザから睡眠計測を終了させるための操作を受け付けることにより、計測していた睡眠情報を確定させる。なお、当該睡眠計測を終了させるための操作は、ユーザが起床するために端末装置10から出力されるアラームを止める操作であってもよい。 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 user instructions 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.

送受信部202は、端末装置10が、外部の装置と通信プロトコルに従ってデータを送受信するための処理を行う。一例として、送受信部202は、睡眠計測を終了させるための操作入力をユーザから受け付けて確定した睡眠情報を、サーバ20へ送信する。 The transmission/reception unit 202 performs processing for the terminal device 10 to transmit and receive data to and from external devices in accordance with a communication protocol. As an example, the transmission/reception unit 202 transmits to the server 20 sleep information that has been confirmed upon receiving an operational input from the user to end sleep measurement.

通知制御部203は、ユーザへの通知、すなわちユーザに対し情報を提示する処理を制御する。具体的には、通知制御部203は、表示画像をディスプレイ141に表示させる処理、音声を音声処理部170に出力させる処理等を行う。 The notification control unit 203 controls the notification to the user, i.e., the process of presenting information to the user. Specifically, the notification control unit 203 performs the process of displaying a display image on the display 141, the process of outputting sound to the sound processing unit 170, etc.

時刻設定部204は、ユーザから、ゲームの進行に関する時刻を設定する操作を受け付ける。例えば、時刻設定部204はユーザが起床するためのアラームを出力する時刻の設定を行う。ユーザは起床を予定する時刻(起床予定時刻)をゲームの進行に関する時刻として設定する。ユーザが設定した起床予定時刻になると、端末装置10はアラームをスピーカ172から出力する。ユーザがアラームを止める操作を行うと、端末装置10はユーザが起床したと判断し、睡眠情報を確定してゲームを進行させる。 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 to wake up the user. The user sets the time at which they plan 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.

時刻設定部204は、さらに、ユーザから入床を予定する時刻(入床予定時刻)を設定する操作を受け付けてもよい。ユーザが設定した入床予定時刻が近付くと、端末装置10は、入床予定時刻が近付いていることをユーザに通知する仕様としてもよい。当該通知はディスプレイ141に表示されてもよく、スピーカ172から音声によって出力されてもよい。 The time setting unit 204 may further receive an operation from the user to set a planned time for admission to bed (planned admission time). When the planned admission time set by the user approaches, the terminal device 10 may be configured to notify the user that the planned admission time is approaching. The notification may be displayed on the display 141, or may be output by voice from the speaker 172.

なお、アラームの設定は、システム1を構成する各装置(端末装置10、サーバ20)が、ゲームを提供するためのソフトウェアにより実現されることとしてもよい。例えば、アラームの設定は、端末装置10にインストールされ、システム1の機能を提供するソフトウェアに組み込まれたものであってもよい。すなわち、ユーザは、端末装置10のOS(Operating System)の機能として提供されるアラーム機能ではなく、端末装置10においてユーザにゲームを提供するためのソフトウェアが構成するアラーム設定部により起床時刻を設定することができる。システム1は、当該アラーム設定における起床時刻に関する操作を受け付けて、ゲームを進行させてもよい。 The alarm may be set by each device (terminal device 10, server 20) constituting system 1 using software for providing the game. For example, the alarm may be installed on terminal device 10 and incorporated into software that provides the functions of system 1. That is, the user can set the wake-up time using an alarm setting section configured by software for providing the game to the user on terminal device 10, rather than an alarm function provided as a function of the OS (Operating System) of terminal device 10. System 1 may accept an operation related to the wake-up time in the alarm setting and progress the game.

モーション検出部205は、モーションセンサ190が検出した端末装置10の動きについてのセンシング結果に基づいて、睡眠中におけるユーザの身体の動きに基づく物理量(以下、単に物理量ともいう)を検出する。一例として、当該物理量は、睡眠中におけるユーザの身体の揺動に関する値であってもよい。 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 the 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 swaying of the user's body while sleeping.

睡眠情報測定部206は、モーション検出部205が検出した物理量に基づいて、睡眠情報を測定する。本実施形態における「睡眠情報」とは、ユーザの睡眠に関する情報であって、具体的には、入床時刻、入眠時刻、覚醒時刻、起床時刻、睡眠時間(入眠時刻から覚醒時刻までの時間)、睡眠の質に関する情報、および睡眠リズムの少なくとも1つを含み得るが、これらに限定されない。 The sleep information measurement unit 206 measures sleep information based on the physical quantities detected by the motion detection unit 205. In this embodiment, "sleep information" refers to information related to the user's sleep, and specifically may include at least one of the following, but is not limited to: 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 sleep quality, and sleep rhythm.

具体的には、例えば、睡眠情報測定部206は、モーション検出部205が検出した物理量と、所定の閾値とを比較する。一例として、睡眠情報測定部206は、物理量の値が第1閾値以上である(=ユーザの身体の動きが大きい)ときにユーザが覚醒していると判定し、物理量の値が第1閾値より小さい(=ユーザの身体の動きが小さい)ときにユーザが睡眠中であると判定してもよい。このようにして、睡眠情報測定部206は、モーション検出部205が検出した物理量に基づいて、ユーザの睡眠時間を測定してもよい。 Specifically, for example, the sleep information measurement unit 206 compares the physical quantity detected by the motion detection unit 205 with a predetermined threshold. As an example, the sleep information measurement 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 movements are 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 movements are small). In this way, the sleep information measurement unit 206 may measure the user's sleeping time based on the physical quantity detected by the motion detection unit 205.

また、睡眠情報測定部206は、モーション検出部205が検出した物理量が、第1閾値以下の場合(=睡眠中の場合)であって、第2閾値以上である(=睡眠中のユーザの身体の動きが大きい)ときにユーザの睡眠が浅いと判定し、物理量の値が第2閾値より小さい(=睡眠中のユーザの身体の動きが小さい)ときにユーザの睡眠が深いと判定してもよい。 The sleep information measurement unit 206 may also 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) but 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).

このようにして、睡眠情報測定部206は、睡眠情報の測定結果として、ユーザが睡眠中であるか覚醒中であるか、また、睡眠中のユーザが、浅い睡眠であるか、深い睡眠であるか、レム睡眠であるか、ノンレム睡眠であるか等を判別し、ユーザの睡眠の質を評価することができる。例えば、良質な睡眠である場合のレム睡眠、ノンレム睡眠の周期が予め設定されており、ユーザの睡眠時のレム睡眠、ノンレム睡眠の周期と比較することで、ユーザの睡眠の質を評価する仕様としてもよい。 In this way, the sleep information measurement unit 206 can determine, as a result of measuring 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.

また、睡眠情報測定部206は、モーション検出部205が検出した物理量に基づいて、ユーザが入床したこと、入床した後に入眠したこと、および覚醒したことを検出する。また、睡眠情報測定部206は、ユーザが入床してから入眠するまでの間に、ユーザが端末装置10に対して入力操作をしていたか、ユーザが端末装置10のディスプレイ141に表示される情報を閲覧していたか等を判定してもよい。すなわち、寝ようとしているユーザが、寝る前に端末装置10を操作しているか否かを判定してもよい。 The sleep information measuring unit 206 also detects that the user has gone to bed, fallen asleep after going to bed, and woken up, based on the physical quantities detected by the motion detecting unit 205. The sleep information measuring unit 206 may also 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 between the time the user went to bed and the time the user fell asleep. In other words, it may determine whether a user who is about to go to sleep has operated the terminal device 10 before going to sleep.

なお、睡眠測定デバイス11を、ユーザの身体に装着されるウェアラブルデバイスとして実現する場合には、モーションセンサ190に加えて生体情報センサ191を備えてもよい。生体情報センサ191は、ユーザの体温、血圧、および心拍数の少なくとも1つといった生体情報を検出する。この場合、睡眠情報測定部206は、生体情報センサ191が検出した生体情報に基づいて、ユーザが睡眠中であるか覚醒中であるか、また、睡眠中のユーザが、浅い睡眠であるか、深い睡眠であるか、レム睡眠であるか、ノンレム睡眠であるか等を判別し、ユーザの睡眠の質を評価する仕様としてもよい。 When the sleep measuring device 11 is realized as a wearable device attached to the user's body, a biometric sensor 191 may be provided in addition to the motion sensor 190. The biometric sensor 191 detects at least one of the user's biometric information such as 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 biometric information detected by the biometric sensor 191, and evaluate the quality of the user's sleep.

(1-4.サーバ20の機能構成)
図3は、サーバ20の機能的な構成を示す図である。図3に示すように、サーバ20は、通信部210と、記憶部220と、制御部230としての機能を発揮する。
(1-4. Functional configuration of server 20)
Fig. 3 is a diagram showing the 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.

通信部210は、サーバ20が外部の装置と通信するための処理を行う。 The communication unit 210 performs processing for the server 20 to communicate with external devices.

記憶部220は、例えば、メモリ25、及びストレージ26等により実現され、サーバ20が使用するデータ、及びプログラムを記憶する。記憶部220は、一例として、ユーザマスタテーブル221と、オブジェクトマスタテーブル222を記憶する。 The storage unit 220 is realized, for example, by the memory 25 and the storage 26, and stores data and programs used by the server 20. As an example, the storage unit 220 stores a user master table 221 and an object master table 222.

ユーザマスタテーブル221は、システム1が提供する本睡眠ゲームをプレイするユーザに関する情報をマスタデータとして記憶するテーブルである。一例として、ユーザマスタテーブル221は、本睡眠ゲームをプレイするために登録された全てのユーザの情報を記憶する。ユーザマスタテーブル221のデータ構造は後述する。 The user master table 221 is a table that stores information about users who play the 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 sleep game. The data structure of the user master table 221 will be described later.

オブジェクトマスタテーブル222は、ユーザと関連付けることが可能なオブジェクトに関する情報をマスタデータとして記憶するテーブルである。一例として、オブジェクトマスタテーブル222は、本睡眠ゲームにおいてユーザに関連付けられ得るすべてのオブジェクトの情報を記憶する。 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 this sleep game.

制御部230は、プロセッサ29が記憶部220に記憶されるプログラムを読み込み、プログラムに含まれる命令を実行することにより実現される。一例として、制御部230は、プログラムに従って動作することにより、送受信モジュール231、ゲーム進行モジュール232、通知制御モジュール233として示す機能を発揮する。 The control unit 230 is realized by the processor 29 reading a program stored in the memory unit 220 and executing instructions contained 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.

送受信モジュール231は、サーバ20が外部の装置に対し通信プロトコルに従って信号を送受信する処理を制御する。 The transmission/reception module 231 controls the process in which the server 20 transmits and receives signals to and from external devices according to a communication protocol.

ゲーム進行モジュール232は、端末装置10から受信したユーザの睡眠情報に基づいて、睡眠ゲーム内でのイベントを発生させてゲームプレイを進行させる。ゲーム内でのイベントとしては、キャラクタ(自身が使用するキャラクタおよび敵キャラクタを含む)またはアイテム等のオブジェクトをゲーム内で進行するシナリオに登場させること、ゲームステージを開放してユーザによるプレイを可能にすること、または、オブジェクトをユーザが取得するための抽選を行って、当該抽選結果を表示すること等が挙げられる。 The game progress module 232 generates events within the sleep game to progress game play based on the user's sleep information received from the terminal device 10. Events within the game include having objects such as characters (including the character used by the user and enemy characters) or items appear in a scenario progressing within the game, opening game stages to allow the user to play, or holding a lottery to allow the user to obtain an object and displaying the lottery results.

例えば、ゲーム進行モジュール232は、ゲームプレイ内でのイベントとして、ユーザのゲームプレイに登場させるキャラクタ、アイテム等のオブジェクトを睡眠情報に基づく抽選で決定し、抽選によって決定されたオブジェクトをゲームプレイにおいて登場させる。これにより、ユーザは、睡眠情報に基づいて、新たなキャラクタを発見する等の体験をすることができる。 For example, the game progress module 232 determines by lottery based on the sleep information the characters, items, and other objects that will appear in the user's gameplay as events within the gameplay, and causes the objects determined by lottery to appear in the gameplay. This allows the user to have experiences such as discovering new characters based on the sleep information.

ゲーム進行モジュール232は、端末装置10から受信したユーザの睡眠情報に基づいて、ゲーム内オブジェクトの抽選における抽選アルゴリズムを変更する仕様としてもよい。一例として、受信した睡眠情報における睡眠時間および睡眠の質の少なくとも一方が所定の条件を満たした場合に、抽選において取得できるゲーム内オブジェクトを変更してもよいし、抽選回数を変更してもよい。このような構成とすることで、睡眠情報に基づいて起床後のゲーム進行が変化することとなり、ユーザに起床後の楽しみを提供することができる。 The game progress module 232 may be configured to change the selection algorithm for the selection of 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 meets 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 this configuration, the game progress after waking up changes based on the sleep information, providing the user with fun after waking up.

ゲーム進行モジュール232は、ユーザから計測した睡眠情報における睡眠時間と正の相関があるように、ユーザにとって有利なイベントが発生する仕様としてもよい。すなわち、計測した睡眠情報における睡眠時間が長いほど、ユーザによって有利なイベントが発生しやすくなる仕様としてもよい。 The game progress module 232 may be configured to generate events that are advantageous to the user so that there is a positive correlation between the amount of sleep time in the sleep information measured from the user. In other words, the longer the amount of sleep time in the measured sleep information, the more likely it is that advantageous events will occur to the user.

また、ゲーム進行モジュール232は、ユーザから計測した睡眠情報における睡眠の質と正の相関があるように、ユーザにとって有利なイベントが発生する仕様としてもよい。すなわち、計測した睡眠情報における睡眠時間の質が良好なほど、ユーザによって有利なイベントを発生しやすくなる仕様としてもよい。 The game progress module 232 may also be designed 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 advantageous events will occur to the user.

さらに、ゲーム進行モジュール232は、端末装置10のモーション検出部205が検出した物理量が、第2閾値より小さい場合(=深い睡眠中の場合)であって、第3閾値より小さい(=睡眠中のユーザの身体の動きがあまりにも小さい)状態が第1の期間続いた場合、異常状態であると判定して、ユーザから計測した睡眠情報のうちの一部である第1睡眠情報についてイベントを発生させず、ユーザから計測した睡眠情報のうち第1睡眠情報を除いた第2睡眠情報に基づいてイベントを発生させる。ここで、「一部の睡眠情報」とは、その日の睡眠において測定された睡眠情報の内の一部を意味する。なお、「その日の睡眠」とは、入床(通常は夜)から起床(通常は翌日の朝)までに行われる睡眠を意味する。また、第1の期間は適宜設定すればよく、例えば4時間としてもよい。また、計測された睡眠情報のうち、第1睡眠情報、第2睡眠情報をどのように決定するかは適宜設定可能である。例えば、ユーザから計測した睡眠情報における睡眠時間が7時間である場合に、第1睡眠情報における睡眠時間が1時間とすると、第2睡眠情報における睡眠時間は6時間となる。この場合、ゲーム進行モジュール232は、6時間分の第2睡眠情報に基づいて、イベントを発生させることになる。 Furthermore, when the physical quantity detected by the motion detection unit 205 of the terminal device 10 is smaller than the second threshold (= in deep sleep) and smaller than the third threshold (= the user's body movements during sleep are too small) 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, which is a part of the sleep information measured from the user, and generates an event based on the second sleep information, which is the 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 during 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, it is possible to set appropriately how to determine the first sleep information and the second sleep information from the measured sleep information. For example, if the sleep time in the sleep information measured from the user is 7 hours, if 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 progress module 232 will generate an event based on six hours of second sleep information.

また、ゲーム進行モジュール232は、異常状態であると判定した場合に、その日の睡眠の睡眠時間において第2の期間を超えた時間における睡眠情報を第1睡眠情報として、イベントを発生させず、残りの睡眠情報を第2睡眠情報としてイベントを発生させる仕様としてもよい。当該第2の期間は、上述した第1の期間と同じ値(例えば4時間)としてもよく、または第1の期間よりも短い期間(例えば3時間)としてもよい。 In addition, when the game progress module 232 determines that an abnormal state exists, it may be configured to treat the sleep information for the sleep time of that day that exceeds the second period as the first sleep information and not generate an event, and to treat the remaining sleep information as the second sleep information and generate an event. The second period may be the same value as the first period described above (e.g., 4 hours), or may be a period shorter than the first period (e.g., 3 hours).

例えば、ユーザから計測した睡眠情報における睡眠時間が8時間であって、第1の期間が4時間、第2の期間が2時間、モーション検出部205が検出した物理量が第3閾値より小さい状態が5時間続いたとする。この場合、ゲーム進行モジュール232は、異常状態であると判定して、睡眠時間の8時間のうち、第2の期間の2時間を超えた6時間に相当する睡眠情報を第1睡眠情報としてイベントを発生させず、残りの2時間を第2睡眠情報としてイベントを発生させる。このようにすることで、ユーザが就寝前に端末装置10を寝具に載置して入床したにもかかわらず、寝具の材質等によって正しく計測されなかった等の睡眠環境が影響した場合において、一定時間分の睡眠情報に基づくイベントを発生させることで、当該ユーザが本睡眠ゲームを続ける意欲を減退することを防ぐことができる。 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 an abnormal state has occurred, 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 places the terminal device 10 on the bedding before going to bed, but is affected by the sleep environment such as incorrect measurement 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 playing the sleep game.

また、ゲーム進行モジュール232は異常状態であると判定した場合に、モーション検出部205が検出した物理量が、第4閾値より大きい状態が発生した場合、異常状態が解除されたとして、それ以降に計測された睡眠情報について、イベントを発生させる仕様としてもよい。このようにすることで、上述したような睡眠環境が影響した場合において、適切に計測されたと判断された睡眠情報を睡眠ゲームに反映させることが可能となり、ユーザが本睡眠ゲームを続ける意欲を減退することを防ぐことができる。なお、第4閾値は、第3閾値と同じ値であってもよく、異なる値としてもよい。 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 removed, and an event may be generated for 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, preventing 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.

通知制御モジュール233は、異常状態が検出されたことを、ユーザに通知するための制御を行う。具体的には、通知制御モジュール233は、異常状態が検出されたことを示すメッセージ(以下、異常メッセージともいう)を生成して、端末装置10へ送信する。 The notification control module 233 performs control to notify 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.

当該異常メッセージは、イベントを発生させた睡眠情報の時間についての情報が含まれていてもよい。このようにすることで、ユーザは、自身の実際の睡眠時間と、イベントを発生させた睡眠情報の時間との差分を認識することができ、異常状態が発生したことによる不利益(すなわち、ゲーム内のイベントに反映されなかった睡眠時間)を認識することができる。あるいは、通知制御モジュール233は、異常状態であった時間を異常メッセージに含めてもよい。すなわち、ユーザの身体の動きがあまりにも小さいと判定された時間をユーザに通知することで、異常状態が発生した理由に関する気付きを与えることができる。 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 their 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.

また、通知制御モジュール233は、睡眠環境を改善するための提案に関する情報を、異常メッセージに含めてもよい。このようにすることで、ユーザが適切に睡眠を行っていたにもかからず、端末装置10を載置した寝具等の影響によって異常状態であると判断された場合などにおいて、睡眠環境の改善を図ることが可能となる。 The notification control module 233 may also include information regarding suggestions for improving the sleep environment in the abnormality message. In this way, it is possible to improve the sleep environment in cases where, even though the user has been sleeping appropriately, it is determined that an abnormal state exists due to the influence of bedding on which the terminal device 10 is placed, etc.

例えば、睡眠環境を改善するための提案としては、端末装置10の載置の態様(載置する場所、載置する寝具等の材質、載置する際の端末装置10の向き等)に関する確認を促すための情報を含んでもよい。 For example, suggestions for improving the sleep environment may include information that prompts the user to check the manner in which the terminal device 10 is placed (the location 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.).

(1-5.データ構造)
図4~図6を参照して、システム1で使用されるデータベースのデータ構造について説明する。なお、図4~図6はあくまでも一例であり、記載されていないデータを除外するものではない。また、同じ項目についての説明は繰り返さない。
(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, descriptions of the same items will not be repeated.

図4および図5は、端末装置10の記憶部180が記憶するデータベースのデータ構造を示す図である。図4は、ユーザデータベース181のデータ構造の一例を示す。ユーザデータベース181は、ユーザIDをキーとして、氏名、年齢、住所、生年月日、登録年月日、起床予定時刻、保持アイテム、睡眠情報、確認ステータス等のカラムを有する。 Figures 4 and 5 are diagrams showing the data structure of the database stored in the storage unit 180 of the terminal device 10. Figure 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, planned wake-up time, held items, sleep information, confirmation status, etc., with the user ID as a key.

ユーザIDは、ユーザを一意に識別するための識別子を記憶する項目である。氏名は、ユーザの氏名を記憶する項目である。年齢は、ユーザの年齢を記憶する項目である。住所は、ユーザが住んでいる場所を記憶する項目である。生年月日は、ユーザが生まれた日付を記憶する項目である。登録年月日は、ユーザが本実施形態に係るゲームの利用を開始した日付を記憶する項目である。 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 according to this embodiment.

起床予定時刻は、起床することを予定する時刻を記憶する項目である。起床予定時刻は、例えば、ユーザからの入力に基づき設定される。保持アイテムは、ユーザが保持している、ゲーム内で使用可能なアイテムに関する情報を記憶する項目である。ユーザが保持しているアイテムは、例えば、ユーザと関連付けられているアイテムと換言可能である。アイテムは、例えば、育成アイテム、又は付与アイテム等を含む。項目「保持アイテム」には、例えば、ユーザが保持しているアイテムの名称、及び個数が記憶される。 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 that the user holds and that can be used in the game. Items held by the user can be said to be 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.

睡眠情報は、ユーザに関する睡眠情報を記憶する項目である。項目「睡眠情報」には、例えば、前日の夜の睡眠情報が記憶される。また、項目「睡眠情報」には、例えば、過去における所定の日数分の睡眠情報が記憶されてもよい。 The "sleep information" item is an item that stores sleep information related to the user. The "sleep information" item stores, for example, sleep information from the previous night. The "sleep information" item may also store, for example, sleep information from a predetermined number of days in the past.

確認ステータスは、イベントの内容を確認したか否かのステータスを記憶する項目である。項目「確認ステータス」には、例えば、「保留中」、又は「確認済み」等、ユーザがイベントの内容を確認したか否かを判断可能な情報が記憶される。イベントの内容の確認を先送りした場合には、項目「確認ステータス」に、例えば、「保留中」が記憶される。 The confirmation status is an item that stores the status of whether or not the contents of the event have been confirmed. The "Confirmation Status" item stores information that allows the user to determine whether or not the contents of the event have been confirmed, such as "pending" or "confirmed." If the confirmation of the contents of the event is postponed, the "Confirmation Status" item stores, for example, "pending."

図5は、オブジェクトデータベース182のデータ構造の一例を示す。オブジェクトデータベース182は、オブジェクトIDをキーとして、名称、レベル、パラメータ、元気度、種別、属性、詳細情報等のカラムを有する。 Figure 5 shows an example of the data structure of the object database 182. The object database 182 has columns such as name, level, parameters, vitality, type, attributes, detailed information, etc., with the object ID as a key.

オブジェクトIDは、オブジェクトを一意に識別するための識別子を記憶する項目である。名称は、オブジェクトの名称を記憶する項目である。レベル及びパラメータは、ユーザとオブジェクトとの関係の一例を記憶する項目である。項目「レベル」及び項目「パラメータ」は、ユーザとオブジェクトとの係りの深さを表す指標である。項目「レベル」は、例えば、0以上の整数が記憶される。項目「パラメータ」は、例えば、0から所定値(例えば、100)までの数値が記憶される。項目「パラメータ」の値が最大値である所定値に達すると、項目「パラメータ」の値が0となり、項目「レベル」の値が1だけインクリメントされる。項目「パラメータ」の値は、ユーザがオブジェクトに対して干渉すると増加する。具体的には、例えば、項目「パラメータ」は、オブジェクトに対して付与した付与オブジェクトの数、種類に応じて増加する。 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 the 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 between 0 and 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.

元気度は、個体としてのオブジェクトを睡眠以外の時間でのゲームに使用可能な程度を記憶する項目である。項目「元気度」は、例えば、0から所定値(例えば、100)までの数値が記憶される。例えば、所定値に近いほど、ユーザは、長い時間個体をゲームで使用することが可能であり、0である場合には、ゲームで使用できない。項目「元気度」は、ユーザの起床が検出されると回復する。回復量は、所定量であってもよいし、睡眠情報に応じた量であってもよいし、オブジェクトに応じた量であってもよいし、全快してもよい。項目「元気度」が、ユーザによりイベントが確認されていなくても、ユーザの起床が検知されると変動するパラメータである。 The vitality level is an item that stores the degree to which an individual object can be used in the game outside of sleeping hours. The item "vitality level" stores a numerical value between 0 and 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.

種別は、オブジェクトの種類を記憶する項目である。本実施形態において、オブジェクトの種類は、例えば、キャラクタ、育成アイテム、付与アイテムを含む。属性は、キャラクタとしてのオブジェクトが属する性質を記憶する項目である。本実施形態において、属性は、例えば、炎、水、雷、草、超、鋼、悪、闘等を含む。属性には、相対すると有利になる属性、及び不利になる属性が存在する。 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 grant 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.

詳細情報は、例えば、ユーザと関連付けられている態様を記憶する項目である。項目「詳細情報」では、各オブジェクトに設定されている複数の態様のいずれと関連付けられているかが記憶されている。項目「詳細情報」では、例えば、関連付けられている態様に「1」が設定され、関連付けられていない態様に「0」が設定されている。また、詳細情報として、個体としてのオブジェクトが有する有利な効果を記憶してもよい。有利な効果は、例えば、睡眠以外の時間でのゲーム要素で発揮される効果である。有利な効果には、例えば、育成アイテムを多く取得できる効果、又はよりレア度の高い育成アイテムを取得できる効果等が存在する。また、詳細情報として、レアリティに関する情報等を有していてもよい。 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 associated aspects, and "0" is set for unassociated aspects. In addition, the detailed information may store advantageous effects that the object as an individual has. Advantageous effects are, for example, effects that are 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.

図6は、サーバ20の記憶部220が記憶するデータベースのデータ構造を示す図である。図6は、ユーザマスタテーブル221のデータ構造を示す図である。ユーザマスタテーブル221は、ユーザIDをキーとして、氏名、年齢、住所、生年月日、登録年月日、起床予定時刻、関連オブジェクト、睡眠情報等のカラムを有するテーブルである。 Figure 6 is a diagram showing the data structure of the database stored in the memory unit 220 of the server 20. Figure 6 is a diagram showing the data structure of the user master table 221. The user master table 221 is a table with the user ID as a key and columns such as name, age, address, date of birth, date of registration, planned wake-up time, related objects, sleep information, etc.

関連オブジェクトは、ユーザと関係づけられているキャラクタ等のオブジェクトに関する情報を記憶する項目である。項目「関連オブジェクト」には、例えば、ユーザと関連付けられている個体としてのオブジェクトに関する情報が記憶されている。オブジェクトに関する情報には、例えば、管理ID、オブジェクトID、名称、レベル、パラメータ、元気度、種別、属性、詳細情報等が含まれ得る。また、項目「関連オブジェクト」には、例えば、ユーザと関連付けられているアイテムに関する情報が記憶されている。アイテムに関する情報には、例えば、ユーザが保持しているアイテムの名称、及び個数等が含まれ得る。 The related object is an item that stores information about an object, such as a character, that is associated with the user. The "related object" item stores, for example, information about an object as an individual that is associated with the user. Information about an object may include, for example, a management ID, object ID, name, level, parameters, vitality, type, attributes, detailed information, and the like. The "related object" item stores, for example, information about an item that is associated with the user. Information about an item may include, for example, the name and number of items held by the user.

睡眠情報は、ユーザに関する睡眠情報を記憶する項目である。項目「睡眠情報」には、ユーザから取得してから所定の期間が経過するまでの睡眠情報が記憶される。例えば、ユーザの起床後のイベントの確認要求と関連付けて睡眠情報がサーバ20へ送信される場合、ユーザからイベントの確認が要求されないと、前日の夜の睡眠情報がユーザマスタテーブル221に記憶されない仕様としてもよい。このように、前日の夜の睡眠を評価しない状態では、次の日の睡眠情報を受け付けることができないため、イベントが確認されていないと、次の日の睡眠情報が受け付けられない状態としてもよい。すなわち、項目「睡眠情報」で記憶される睡眠情報は、ユーザによりイベントが確認されると次の日の睡眠情報を記憶可能となる。 Sleep information is an item that stores sleep information related to the user. The item "sleep information" stores sleep information from when it was obtained from the user until a predetermined period of time has passed. For example, when sleep information is transmitted to the server 20 in association with a request to confirm an event after the user wakes up, the previous night's sleep information may not be stored in the user master table 221 unless the user requests confirmation of the event. In this way, if the previous night's sleep is not evaluated, the next day's sleep information cannot be accepted, so if the event has not been confirmed, the next day's sleep information may not be accepted. In other words, the sleep information stored in the item "sleep information" can store the next day's sleep information once the event is confirmed by the user.

また、ユーザマスタテーブル221で記憶される過去の睡眠情報は、ユーザデータベース181で記憶される過去の睡眠情報よりも古い睡眠情報が記憶されてもよい。つまり、ユーザデータベース181には、ユーザマスタテーブル221で記憶される所定の期間を経過するまでの睡眠情報のうちの一部が記憶されるようにしてもよい。 In addition, 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.

(1-6.処理の流れ)
以下、図7~図9を参照して、システム1の処理の流れの一例を説明する。
(1-6. Processing flow)
An example of the processing flow of the system 1 will be described below with reference to FIGS.

図7のステップS100において、端末装置10は、ユーザの操作に基づいて、本睡眠ゲームを起動する。ステップS105において、端末装置10ユーザの睡眠情報の計測(以下、睡眠計測ともいう)を開始する。一例として、端末装置10は、操作受付部201がユーザによる睡眠開始の操作を受け付けたことをトリガーとして、睡眠計測を開始する仕様としてもよい。当該操作は、ディスプレイ141に表示された所定のアイコンを、ユーザが入床する直前に押下する操作であってもよい。または、端末装置10は、当該操作を受け付けることなく、本睡眠ゲームの起動後にユーザが入床したことを検知して、睡眠測定を開始する仕様としてもよい。 In step S100 of FIG. 7, the terminal device 10 starts the sleep game based on the user's operation. In step S105, the terminal device 10 starts measuring the sleep information of the user (hereinafter also referred to as sleep measurement). As an example, the terminal device 10 may be designed to start sleep measurement when the operation receiving unit 201 receives an operation from the user to start sleeping. The operation may be an operation in which the user presses a predetermined icon displayed on the display 141 immediately before going to bed. Alternatively, the terminal device 10 may be designed to start sleep measurement by detecting that the user has gone to bed after the sleep game has been started, without receiving the operation.

ステップS110において、端末装置10のモーション検出部205は、ユーザの睡眠中における身体の動きに基づく物理量を検出する。一例として、モーション検出部205は、モーションセンサ190が検出したセンシング結果に基づいて、ユーザの身体の揺動に関する値を検出する。 In step S110, the motion detection unit 205 of the terminal device 10 detects a physical quantity based on the movement of the user's body while sleeping. As an example, the motion detection unit 205 detects a value related to the swaying of the user's body based on the sensing result detected by the motion sensor 190.

ステップS115において、端末装置10の睡眠情報測定部206は、ユーザの睡眠情報を測定する。一例として、睡眠情報測定部206は、モーション検出部205が検出した物理量に基づいて、ユーザの睡眠時間および睡眠の質についての情報を測定する。 In step S115, the sleep information measurement unit 206 of the terminal device 10 measures the user's sleep information. As an example, the sleep information measurement unit 206 measures information about the user's sleep time and sleep quality based on the physical quantities detected by the motion detection unit 205.

ステップS120において、端末装置10は、ユーザの睡眠計測を終了する。一例として、端末装置10は、操作受付部201がユーザによる睡眠終了の操作を受け付けたことをトリガーとして、睡眠計測を終了する仕様としてもよい。当該操作は、起床予定時刻として予め設定した時刻に出力されるアラームをユーザが止める操作であってもよい。または、端末装置10は、当該操作を受け付けることなく、ユーザが覚醒したことを検知して、睡眠測定を終了する仕様としてもよい。 In step S120, the terminal device 10 ends the sleep measurement of the user. As an example, the terminal device 10 may be configured to end the sleep measurement when the operation receiving unit 201 receives an operation by the user to end sleep. The operation may be an operation by the user to stop an alarm that is output at a time that is preset as the planned wake-up time. Alternatively, the terminal device 10 may be configured to end the sleep measurement by detecting that the user has woken up, without receiving the operation.

ステップS125において、端末装置10の送受信部202は、睡眠情報をサーバ20へ送信する。なお、送受信部202は睡眠情報と合わせて、モーション検出部205によって検出されたユーザの睡眠中における身体の動きに基づく物理量に関する情報を送信してもよい。ステップS210において、サーバ20の送受信モジュール231は、睡眠情報を端末装置10から受信する。 In step S125, the transmission/reception unit 202 of the terminal device 10 transmits the sleep information to the server 20. The transmission/reception unit 202 may transmit information on physical quantities based on the user's body movements during sleep detected by the motion detection unit 205 together with the sleep information. In step S210, the transmission/reception module 231 of the server 20 receives the sleep information from the terminal device 10.

図8のステップS220において、サーバ20のゲーム進行モジュール232は、異常状態判定処理を実行する。 In step S220 of FIG. 8, the game progress module 232 of the server 20 executes an abnormal state determination process.

図9を参照して、異常状態判定処理(S220)では、端末装置10から受信した睡眠情報に関して、異常状態が含まれていないかを判定する。 Referring to FIG. 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.

ステップS221において、ゲーム進行モジュール232は、端末装置10のモーション検出部205が検出した物理量が、第3閾値よりも小さいか否かを判定する。当該物理量が第3閾値よりも小さい場合(ステップS221においてYes)、ステップS223が実行される。一方、物理量が第3閾値以上の場合(ステップS221においてNo)、ステップS220が終了する。 In step S221, the game progress module 232 determines whether the physical quantity detected by the motion detection unit 205 of the terminal device 10 is smaller than a third threshold value. If the physical quantity is smaller than the third threshold value (Yes in step S221), step S223 is executed. On the other hand, if the physical quantity is equal to or larger than the third threshold value (No in step S221), step S220 ends.

ステップS223において、ゲーム進行モジュール232は、当該物理量が第3閾値よりも小さい状態が第1の期間継続しているか否かを判定する。当該物理量が第3閾値よりも小さい状態が第1の期間継続している場合(ステップS223においてYes)、ステップS225が実行される。一方、当該物理量が第3閾値よりも小さい状態が第1の期間継続していない場合(ステップS223においてNo)、ステップS220が終了する。 In step S223, the game progress module 232 determines whether the state in which the physical quantity is smaller than the third threshold value has continued for a first period. If the state in which the physical quantity is smaller than the third threshold value has continued for a 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 value has not continued for a first period (No in step S223), step S220 ends.

ステップS225において、ゲーム進行モジュール232は、異常状態であると判定する。 In step S225, the game progress module 232 determines that an abnormal state exists.

ステップS227において、ゲーム進行モジュール232は、ゲーム内のイベントを発生させる睡眠情報を調整する。一例として、ゲーム進行モジュール232は、その日の睡眠において計測された睡眠情報のうち、第2の期間を超えた時間における睡眠情報を第1睡眠情報として、イベント発生の対象外とする。そして、その日の睡眠において計測された睡眠情報のうち、第1睡眠情報を除いた第2睡眠情報に基づいて、イベントを発生させる。 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 sleep on that day that exceeds the second period as first sleep information and excludes it from event generation. Then, the game progress module 232 generates an event based on the second sleep information, which is the sleep information measured during sleep on that day but does not include the first sleep information.

ステップS229において、通知制御モジュール233は、異常メッセージを生成する。当該異常メッセージには、異常状態が検出されたことを示す情報、イベントを発生させた睡眠情報の時間についての情報、睡眠環境を改善するための提案に関する情報等が含まれ得る。異常メッセージの一例としては、「睡眠計測が正しく行われませんでした。端末装置が載置された寝具が柔らかすぎる可能性があります。」などが挙げられる。 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 suggestions for improving the sleep environment, and the like. An example of an abnormality message is "Sleep measurement was not performed correctly. The bedding on which the terminal device is placed may be too soft."

図8に戻って、ステップS230において、サーバ20のゲーム進行モジュール232は、睡眠情報に基づいてゲーム内で発生させるイベントを決定する。一例として、ゲーム進行モジュール232は、ゲーム内で発生させるイベントとして、ユーザのゲームプレイによって登場させるキャラクタ、アイテム等のゲーム内オブジェクトを睡眠情報に基づく抽選で決定する。なお、異常状態判定処理(S220)において、異常状態であると判定された場合には、調整された睡眠情報に基づいて、ゲーム内で発生されるイベントが決定される。 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 introduced by the user's gameplay as events to be generated in the game by lottery based on the sleep information. Note that if an abnormal state is determined in the abnormal state determination process (S220), the event to be generated in the game is determined based on the adjusted sleep information.

ステップS235において、サーバ20の送受信モジュール231は、ゲーム進行モジュール232が決定したイベントを、端末装置10へ送信する。なお、異常状態判定処理(S220)において、異常状態であると判定された場合には、通知制御モジュール233が生成した異常メッセージも合わせて送信される。ステップS130において、端末装置10の送受信部202は、サーバ20からイベント(および、異常状態であると判定された場合の異常メッセージ)を受信する。 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 an abnormal state is determined 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 if an abnormal state is determined) from the server 20.

ステップS135において、通知制御部203は、イベントをディスプレイ141に表示することにより、ユーザに提示する。通知制御部203は、ユーザが起床したタイミングに合わせて、イベントの提示を行う仕様としてもよい。具体的には、ユーザが起床したタイミングから可及的速やかにイベントの提示を行う仕様としてもよく、ユーザが起床したタイミングから所定の時間経過後(例えば10分後)にイベントの提示を行う仕様としてもよい。また、通知制御部203は、異常メッセージを受信した場合には、当該メッセージについてもディスプレイ141に表示することによりユーザに通知する。当該異常メッセージの通知は、イベントの提示と同じタイミングであってもよく、異なるタイミング(具体的にはイベントの提示の前後のタイミング)であってもよい。 In step S135, the notification control unit 203 presents the event to the user by displaying it on the display 141. 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 a predetermined time after the user wakes up (e.g., 10 minutes). In addition, when an abnormality message is received, the notification control unit 203 notifies the user by displaying the message on the display 141. The abnormality message may be presented at the same timing as the presentation of the event, or at a different timing (specifically, before or after the presentation of the event).

(1-7.小括)
以上のようにして、本実施形態では、システム1は、ユーザの睡眠中における身体の動きに基づく物理量を検出するステップ(S110)と、検出された物理量から前記ユーザの睡眠情報を測定するステップ(S115)と、測定された前記睡眠情報に基づいてイベントを発生させるステップ(S230、S135)とを実行し、前記イベントを発生させるステップでは、検出された物理量が所定の閾値より小さい状態が所定の期間続いた場合を異常状態であるとして、前記睡眠情報のうちの一部である第1睡眠情報に基づいては前記イベントを発生させず、前記睡眠情報のうち前記第1睡眠情報を除いた第2睡眠情報に基づいてイベントを発生させる。このような構成とすることにより、ユーザの身体の動きを検出するデバイスを用いた睡眠ゲームにおいて、より適切に睡眠情報をゲームの進行に反映することが可能となる。
<2 他の実施形態>
以上、本発明における実施形態およびその変形例について説明したが、本開示の適用は上述の内容に限定されるものではない。
(1-7. Summary)
As described above, in this embodiment, the system 1 executes a step of detecting a physical quantity based on the movement of the user's body during sleep (S110), a step of measuring sleep information of the user from the detected physical quantity (S115), and a step of generating an event based on the measured sleep information (S230, S135), 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 first sleep information that is a part of the sleep information, but is generated based on second sleep information excluding the first sleep information from the sleep information. With this configuration, it is possible to more appropriately reflect 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.

例えば、上記実施形態では、サーバ20のゲーム進行モジュール232によって、モーション検出部205が検出した物理量に基づいて、異常状態が発生していたか否かを判定しているが、この態様に限定されることはない。例えば、端末装置10の睡眠情報測定部206によって、異常状態の判定処理が実行されてもよい。 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 this is not limited to the above. For example, the abnormal state determination process may be performed by the sleep information measurement unit 206 of the terminal device 10.

この場合、睡眠情報の測定状況のついての情報(特に、異常状態が発生しているか否かの情報)を、睡眠時間においてユーザに提示しないことが好ましい。このようにすることで、睡眠計測を開始した後において、実際には睡眠をせず、睡眠情報の測定状況を見ながらより好ましい睡眠計測結果となるように、載置場所を変えたり振動を与えたりするといった不正手段を防ぐことが可能となる。 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 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.

また、上記実施形態では、端末装置10は、スマートフォンなどで実現される端末として説明したが、この例に限定されることはない。家庭用のPCなどにソフトウェアをインストールすることにより、端末装置10を実現し、マウスなどの操作を受け付けるようにしてもよい。 In the above embodiment, the terminal device 10 has been described as a terminal realized by a smartphone or the like, but the present invention 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 be configured to accept operations of a mouse or the like.

また、通信回線を介した所定情報の共有は、主にインターネットなどのWANを介して行われるが、情報処理装置間では、WANを介さずにBluetooth(登録商標)等の近距離の無線通信、及び赤外線通信等のみを介して行われてもよい。 In addition, the sharing of specific information via a communication line is mainly performed via a WAN such as the Internet, but between information processing devices, the sharing may be performed only via short-range wireless communication such as Bluetooth (registered trademark) and infrared communication without using a WAN.

また、上記実施形態では、各機能を端末装置10またはサーバ20が備える態様の一例について説明したが、この形態に限定されることはなく、一部または全部の機能について上記実施形態と異なる態様で端末装置10、サーバ20、又は端末装置10とサーバ20の両方が備える構成としてもよい。 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.

さらに、本発明は、上述した端末装置10またはサーバ20が備える機能を情報処理装置に実行させるプログラムとして実現してもよいし、当該プログラムを格納する、コンピュータ読み取り可能な非一時的な記録媒体として実現してもよい。 Furthermore, the present invention may be realized as a program that causes an information processing device to execute the functions of the terminal device 10 or server 20 described above, or as a non-transitory computer-readable recording medium that stores the program.

<付記>
以上の各実施形態で説明した事項を以下に付記する。
(付記1)
プロセッサと、メモリとを備えるコンピュータに実行させるためのプログラムであって、前記プロセッサに、ユーザの睡眠中における身体の動きに基づく物理量を検出するステップと、検出された物理量から前記ユーザの睡眠情報を測定するステップと、測定された前記睡眠情報に基づいてイベントを発生させるステップとを実行させ、前記イベントを発生させるステップでは、検出された物理量が所定の閾値より小さい状態が所定の期間続いた場合を異常状態であるとして、前記睡眠情報のうちの一部である第1睡眠情報に基づいては前記イベントを発生させず、前記睡眠情報のうち前記第1睡眠情報を除いた第2睡眠情報に基づいてイベントを発生させる、プログラム。
(付記2)
前記イベントを発生させるステップでは、一日の睡眠時間において所定の期間を超えた時間についてのみ、前記睡眠情報に基づくイベントを発生させない、付記1に記載のプログラム。
(付記3)
前記異常状態が検出された後に前記物理量が所定の閾値を超えた場合に、それ以降に測定された睡眠情報に基づくイベントを発生させるステップを実行させる、付記1に記載のプログラム。
(付記4)
前記異常状態が検出されたことを、ユーザに通知するステップを実行させる、付記1に記載のプログラム。
(付記5)
イベントを発生させた睡眠情報の時間をユーザに通知するステップを実行させる、付記1に記載のプログラム。
(付記6)
前記異常状態が検出された場合に、睡眠環境の改善を促すための情報を当該ユーザに通知するステップを実行させる、付記1に記載のプログラム。
(付記7)
前記睡眠環境の改善を促すための情報として、前記物理量を検出するデバイスの載置の態様に関する確認を促す情報を通知するステップを実行させる、付記7に記載のプログラム。
(付記8)
前記ユーザの睡眠時間において、睡眠情報の測定状況を当該ユーザに提示させない、付記1に記載のプログラム。
<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 a state in which the detected physical quantity remains smaller than a predetermined threshold value 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)
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: a step of generating an event based on sleep information measured thereafter when the physical quantity exceeds a predetermined threshold value after the abnormal state is detected.
(Appendix 4)
2. The program according to 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 causes the program to execute a step of notifying a user of a time of the sleep information that caused an 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 their sleep environment when the abnormal state is detected.
(Appendix 7)
The program according to claim 7, further comprising: a step of notifying information 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, wherein the measurement status of sleep information is not presented to the user during the user's sleep time.

以上、本開示のいくつかの実施形態を説明したが、これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものとする。 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 their modifications are considered to be within the scope of the invention and its equivalents as set forth in the claims, as well as within the scope and spirit of the invention.

1:システム、10:端末装置、11:睡眠測定デバイス、13:入力装置、14:出力装置、15:メモリ、16:ストレージ、19:プロセッサ、20:サーバ、25:メモリ、26:ストレージ、29:プロセッサ、30:ネットワーク、131:タッチセンシティブデバイス、141:ディスプレイ、150:通信部、160:撮像部、170:音声処理部、171:マイク、172:スピーカ、180:記憶部、181:ユーザデータベース、182:オブジェクトデータベース、190:モーションセンサ、191:生体情報センサ、200:制御部、201:操作受付部、202:送受信部、203:通知制御部、204:時刻設定部、205:モーション検出部、206:睡眠情報測定部、210:通信部、220:記憶部、221:ユーザマスタテーブル、222:オブジェクトマスタテーブル、230:制御部、231:送受信モジュール、232:ゲーム進行モジュール、233:通知制御モジュール。 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 (9)

プロセッサと、メモリとを備えて睡眠情報を用いたゲームの進行を管理するコンピュータに実行させるためのプログラムであって、前記プロセッサに、
ユーザの睡眠中における身体の動きに基づく物理量を検出するステップと、
検出された物理量から前記ユーザの前記睡眠情報としての睡眠時間を測定するステップと、
測定された前記睡眠時間に基づいて前記ゲーム内のイベントを発生させるステップと、を実行させ、
前記イベントを発生させるステップでは、検出された物理量が所定の閾値より小さい状態が所定の時間続いた場合を異常状態であると判断し、前記異常状態であると判断した場合、前記睡眠時間のうちの一部である第1睡眠時間に基づいては前記イベントを発生させず、前記睡眠時間のうち前記第1睡眠時間を除いた第2睡眠時間に基づいてイベントを発生させる、プログラム。
A program to be executed by a computer having a processor and a memory, the computer managing the progress of a game using sleep information, the program comprising:
Detecting a physical quantity based on a body movement of a user while sleeping;
measuring a sleep time as the sleep information of the user from the detected physical quantity;
generating an event in the game based on the measured sleep time;
In the step of generating the event, a case where the detected physical quantity remains smaller than a predetermined threshold for a predetermined period of time is determined to be an abnormal state, and if it is determined to be an abnormal state, the event is not generated based on a first sleeping time which is a part of the sleeping time, but is generated based on a second sleeping time which is the sleeping time excluding the first sleeping time.
前記異常状態が検出されたことを、ユーザに通知するステップを前記プロセッサに実行させる、請求項1に記載のプログラム。 The program according to claim 1, which causes the processor to execute a step of notifying a user that the abnormal state has been detected. イベントを発生させた睡眠時間をユーザに通知するステップを前記プロセッサに実行させる、請求項1に記載のプログラム。 The program according to claim 1, which causes the processor to execute a step of notifying the user of the sleep time during which the event occurred. 前記異常状態が検出された場合に、睡眠環境の改善を促すための情報を当該ユーザに通知するステップを前記プロセッサに実行させる、請求項1に記載のプログラム。 The program according to claim 1, which causes the processor to execute a step of notifying the user of information encouraging the user to improve their sleep environment when the abnormal state is detected. 前記通知するステップにおいて、前記睡眠環境の改善を促すための情報として、前記物理量を検出するデバイスの載置の態様に関する確認を促す情報を通知する、請求項に記載のプログラム。 5. The program according to claim 4 , wherein in the notifying step, information for prompting the user to check a manner in which a device for detecting the physical quantity is placed is notified as the information for prompting the user to improve the sleep environment. 睡眠計測を開始した後において、睡眠時間の測定状況をユーザに提示させない、請求項1に記載のプログラム。 The program according to claim 1, which does not prompt the user to display the measurement status of sleep time after sleep measurement has started. 制御部と、記憶部とを備えて睡眠情報を用いたゲームの進行を管理する情報処理装置であって、前記制御部が、請求項1から請求項のいずれかに係る発明において実行される全てのステップを実行する、情報処理装置。 An information processing device comprising a control unit and a memory unit for managing the progress of a game using sleep information, wherein the control unit executes all of the steps executed in any one of the inventions according to claims 1 to 6 . プロセッサと、メモリとを備えて睡眠情報を用いたゲームの進行を管理するコンピュータに実行される方法であって、前記プロセッサが、請求項1から請求項のいずれかに係る発明において実行される全てのステップを実行する、方法。 A method executed by a computer having a processor and a memory for managing the progress of a game using sleep information, wherein the processor executes all of the steps executed in the invention according to any one of claims 1 to 6 . 睡眠情報を用いたゲームの進行を管理するコンピュータを備えるシステムであって、
請求項1から請求項のいずれかに係る発明において実行される全てのステップを実行する手段を備える、システム。
A system including a computer that manages the progress of a game using sleep information,
A system comprising means for executing all the steps performed in any one of claims 1 to 6 .
JP2023112246A 2023-07-07 2023-07-07 Program, method, information processing device, and system Active JP7462100B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023112246A JP7462100B1 (en) 2023-07-07 2023-07-07 Program, method, information processing device, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023112246A JP7462100B1 (en) 2023-07-07 2023-07-07 Program, method, information processing device, and system

Publications (1)

Publication Number Publication Date
JP7462100B1 true JP7462100B1 (en) 2024-04-04

Family

ID=90474172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023112246A Active JP7462100B1 (en) 2023-07-07 2023-07-07 Program, method, information processing device, and system

Country Status (1)

Country Link
JP (1) JP7462100B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003256944A (en) 2002-03-06 2003-09-12 Katsumi Takai Sleep sensor
JP2007120815A (en) 2005-10-26 2007-05-17 Matsushita Electric Works Ltd Air conditioning system
JP2020072800A (en) 2014-08-07 2020-05-14 任天堂株式会社 Information processing system, information processor, information processing program, and information processing method
JP2021048911A (en) 2019-09-20 2021-04-01 株式会社ポケモン Game program, method, and information processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003256944A (en) 2002-03-06 2003-09-12 Katsumi Takai Sleep sensor
JP2007120815A (en) 2005-10-26 2007-05-17 Matsushita Electric Works Ltd Air conditioning system
JP2020072800A (en) 2014-08-07 2020-05-14 任天堂株式会社 Information processing system, information processor, information processing program, and information processing method
JP2021048911A (en) 2019-09-20 2021-04-01 株式会社ポケモン Game program, method, and information processing device

Similar Documents

Publication Publication Date Title
US20210402133A1 (en) Sleep monitoring and sleep aid usage
US10504380B2 (en) Managing presentation of fitness achievements
CN109196469A (en) For may customize the premise equipment of electronic notification
JP6626489B2 (en) Game program and game device
US11433303B2 (en) Gamification of health awareness based on sleep patterns
WO2022068332A1 (en) Sleep monitoring method and apparatus, electronic device, and computer-readable medium
WO2021054461A1 (en) Game program, method, and information processing device
KR20180062865A (en) Device For Providing Health Management Service and Method Thereof
KR102457563B1 (en) Wear system and method for providing service
JP7377770B2 (en) Game program, method, information processing device
JP2023143922A (en) Program, method, and information processing device
KR102478952B1 (en) Method for storing image and electronic device thereof
JP7462100B1 (en) Program, method, information processing device, and system
JP7483100B2 (en) Game server, program, method, game system and information processing terminal
WO2022215675A1 (en) Game system, game method, game program, and game server
US11534695B2 (en) Gamification of health awareness based on a wake-up time
JP6905034B2 (en) Game programs and game equipment
JP7374366B1 (en) Program, method, information processing device, system
JP7330413B1 (en) program, method, information processing device, system
JP7378007B1 (en) Program, method, information processing device, system
JP7449431B1 (en) Program, method, information processing device, system
JP7402370B1 (en) Program, method, information processing device, system
WO2023112389A1 (en) Game system, game method, game program, and information processing device
JP7400143B1 (en) Game program, game system, game method, information processing device, and generation method
JP7474371B2 (en) Game server, program, method, game system and information processing terminal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230707

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20230707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230905

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231222

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240216

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240301

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240325

R150 Certificate of patent or registration of utility model

Ref document number: 7462100

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150