A sleep quality monitoring and early warning system and method based on blockchain
By using blockchain technology monitoring and early warning systems in train sleepers, the problem of sleep quality is solved, and the fan is automatically adjusted and sleep quality assessment is realized, ensuring the rest environment and data security of passengers.
Patent Information
- Application Number
- CN202411606349.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-11-12
AI Technical Summary
The quality of sleep in train sleepers caused by sweating, feet, snoring and other behaviors is degraded, and the lack of effective data recording and early warning mechanisms affects the rest experience of passengers.
Design a sleep quality monitoring and early warning system based on blockchain. Through the acquisition module, detection module, control module, data processing module, adjustment module and blockchain recording module, a three-dimensional environmental model is constructed to detect passenger movements and snoring, and to regulate Fan angle and strength, issue early warning information, and record sleep quality assessment scores.
It effectively improves the quality of sleep for passengers, prevents the influence of irritating odors, handles snoring behaviors in a civilized manner, ensures the safety and reliability of data, and provides real data support for subsequent surveys.
Smart Images

Figure CN119113333B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sleep quality monitoring, and specifically to a sleep quality monitoring and early warning system and method based on blockchain. Background Art
[0002] Trains are one of the most important modes of transportation currently, and sleeper berths are extremely important in long-distance travel. Sleeper berths are a type of berth that passengers can sleep in. The berths for passengers on trains are generally divided into soft berths and hard berths. However, due to different living habits or differences in quality of life, there are some behaviors in sleeper berths that will affect others. For example, people with sweaty feet or who don't like to wash their feet take off their shoes in the sleeper berths, and some passengers like to eat some foods with pungent odors, such as snail noodles. As the sleeper berths are small and the air circulation is slow, it will cause a very unbearable experience for others, resulting in other passengers being unable to sleep, seriously affecting the quality of sleep.
[0003] At the same time, snoring directly affects the sleep quality of others. However, some snoring passengers do not affect others in a subjective sense. Also, since the passengers are not familiar with each other, it is not easy to wake others up rashly, resulting in continued snoring and affecting rest.
[0004] As a form of storage, blockchain can ensure data security and prevent tampering, and can help relevant departments provide real data when conducting investigations.
[0005] Based on the above, people need a system that can improve the quality of sleep on train berths, and the data can be safely stored as part of the train service. Summary of the invention
[0006] The purpose of the present invention is to provide a sleep quality monitoring and early warning system and method based on blockchain to solve the problems raised in the above background technology.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a sleep quality monitoring and early warning system based on blockchain, the system comprising an acquisition module, a three-dimensional simulation module, a detection module, a control module, a data processing module, an adjustment module, an early warning module, and a blockchain recording module;
[0008] The acquisition module is used to collect environmental information of the compartments in the carriage to create three-dimensional environmental data; the three-dimensional simulation module is used to construct a three-dimensional environment based on the data of the acquisition module and establish reference points; the detection module is used to detect the movement information and snoring of passengers in the compartments; the control module is used to control the opening of the fan device; the data processing module is used to process and analyze the detection data; the adjustment module is used to adjust the angle and intensity of the fan; the early warning module is used to issue snoring warning information and switch the control; the blockchain recording module is used to record the sleep quality assessment scores of passengers on the train and provide data for subsequent investigations on train services;
[0009] The output end of the acquisition module is connected to the input end of the three-dimensional simulation module; the output end of the three-dimensional simulation module is connected to the input end of the detection module; the output end of the detection module is connected to the input end of the control module and the early warning module; the output end of the control module is connected to the input end of the data processing module; the output end of the data processing module is connected to the input end of the adjustment module; the output end of the adjustment module is connected to the input end of the blockchain recording module; the output end of the early warning module is connected to the input end of the blockchain recording module;
[0010] The acquisition module includes an environment data acquisition unit and a device data acquisition unit; the environment data acquisition unit is used to collect environment data of the compartment in the carriage, including but not limited to windows, beds, and railings; the device data acquisition unit is used to collect device data of the compartment in the carriage, including but not limited to pillows, quilts, tables and chairs;
[0011] The output ends of the environment data acquisition unit and the equipment data acquisition unit are connected to the input end of the three-dimensional simulation module;
[0012] The three-dimensional simulation module includes a data receiving and analyzing unit, a modeling unit, and a reference point selection unit; the data receiving and analyzing unit is used to receive the data from the acquisition module and convert it into a data language for analysis; the modeling unit is used to establish a three-dimensional model in a three-dimensional simulation environment; the reference point selection unit is used to select corresponding reference points for marking according to the passenger's posture;
[0013] The output end of the data receiving and analyzing unit is connected to the input end of the modeling unit; the output end of the modeling unit is connected to the input end of the reference point selection unit; the output end of the reference point selection unit is connected to the input end of the detection module;
[0014] The detection module includes a motion detection unit, a pressure detection unit, and a sound detection unit; the motion detection unit is used to detect the passenger's motion; the pressure detection unit is set directly under the pillow to detect the pressure on the pillow; the sound detection unit is set on the side wall of each bed in the workshop to detect the snoring of the passenger in the bed;
[0015] The output end of the pressure detection unit is connected to the input end of the action detection unit and the sound detection unit; the output end of the action detection unit and the sound detection unit is connected to the input end of the control module.
[0016] According to the above technical solution, the control module includes a receiving unit and an opening unit;
[0017] The receiving unit is used to receive the pressure detected on the pillow; the opening unit is used to open the fan device;
[0018] The output end of the receiving unit is connected to the input end of the opening unit; the output end of the opening unit is connected to the input end of the data processing module.
[0019] According to the above technical solution, the data processing module includes a data processing unit and a data analysis unit;
[0020] The data processing unit is used to process the data to obtain the passenger's motion information; the data analysis unit is used to analyze the motion information to obtain the fan deflection angle and wind strength under the motion;
[0021] The output end of the data processing unit is connected to the input end of the data analysis unit; the output end of the data analysis unit is connected to the input end of the adjustment module.
[0022] According to the above technical solution, the adjustment module includes a control adjustment unit, a fan angle adjustment unit, and a fan gear adjustment unit;
[0023] The control adjustment unit switches the control unit based on whether the snoring exceeds the threshold; the fan angle adjustment unit is used to adjust the deflection angle of the fan; the fan gear adjustment unit is used to adjust the gear of the fan;
[0024] The output end of the control and adjustment unit is connected to the input ends of the fan angle adjustment unit and the fan gear adjustment unit.
[0025] According to the above technical solution, the blockchain recording module includes a recording unit and a storage unit;
[0026] The recording unit is used to record the passenger's sleep quality assessment score; the storage unit is used to combine the passenger's personal information and store it in the blockchain;
[0027] The output end of the recording unit is connected to the input end of the storage unit.
[0028] A sleep quality monitoring and early warning method based on blockchain, the method comprising the following steps:
[0029] S1. A collection unit is installed in each compartment of the sleeper car of the train, and the collection unit is used to scan the internal environment equipment of the compartment, build a three-dimensional model, and set a reference point;
[0030] S2. A fan is installed on each bed in the compartment. The fan is connected to the air inlet of the air conditioner. A pressure sensing device is installed right below the center of the pillow. When the passenger's head rests on the pillow, the fan device starts;
[0031] S3, using the collection unit to collect the movements of other passengers, perform data analysis on the movements, and adjust the angle and intensity of the fan;
[0032] S4. Use a sound detection device to detect the snoring of passengers. When snoring is detected, an early warning message is issued and the fan angle and intensity are adjusted according to the decibel value and duration;
[0033] S5. Record the movement amplitude of passengers at night, evaluate the sleep quality of passengers, and use blockchain to record the results.
[0034] In step S1, the steps of constructing a three-dimensional model are as follows:
[0035] S1-1, use the acquisition module to scan the environment of the compartment in the carriage to generate a three-dimensional simulation environment, with the location of the acquisition module as the origin and the right direction of the acquisition module as the Axis positive direction, upward direction is Axis positive direction, front direction is Axis positive direction;
[0036] S1-2. The posture of the passenger lying on the bed is collected, including lying flat, lying on the side, and lying prone. When the posture is detected as lying flat, the tip of the nose is used as the reference point; when the posture is detected as lying on the side, the highest point of the ear outline is used as the reference point; when the posture is detected as lying prone, the highest point of the back of the head is used as the reference point;
[0037] S1-3. In the three-dimensional simulation environment, the coordinates of the reference points are marked as .
[0038] According to the above technical solution, in steps S2-S3, the fan starting and adjustment steps are as follows:
[0039] S7-1. When the passenger lies on the pillow, the head applies pressure to the pillow, and the pressure sensing device detects the pressure value. The threshold is set to , if it exceeds the threshold, the control module is entered to turn on the fan device;
[0040] S7-2, collect the fan position coordinates, recorded as , according to the formula:
[0041] ;
[0042] in, is the maximum value of fan deflection; To compensate for the angle; after the fan device is turned on, the fan works at a speed of one gear, but the deflection angle does not exceed ;
[0043] S7-3, using the collection unit to collect and analyze the actions of other passengers in the compartment, including taking off shoes, eating, entering the first control unit, adjusting the fan gear, according to the formula:
[0044] ;
[0045] in, For fan position, is the adjustment factor 1, is the number of passengers performing the action.
[0046] In this step, the fan is controlled according to the pressure applied by the head to the pillow, so that the fan is not turned on at ordinary times, saving resources, and it is turned on only when a person lies on it, realizing intelligence. Through simulation in a three-dimensional environment, the maximum deflection angle of the fan when it blows on a person is calculated. In order not to disturb people's normal rest, the maximum value of the deflection angle is limited; the actions of other passengers are detected. When other passengers are taking off shoes, eating, etc., some unpleasant odors will be generated, affecting rest. Therefore, the fan gear is adjusted according to the number of people taking action. More people means more odors, so turning on a high gear is more effective.
[0047] According to the above technical solution, in step S4, the steps of adjusting the fan according to the snoring sound are as follows:
[0048] S8-1. Use the sound detection device to detect the snoring of the passenger in the current bed, and record the current decibel value. ;
[0049] S8-2, set the threshold ,like Beyond , then adjust the fan deflection angle to ;
[0050] S8-3, when the deflection angle is When the fan stops working, a warning message is issued, the first control unit is turned off, and the second control unit is entered to adjust the fan position according to the formula:
[0051] ;
[0052] in, The adjustment factor is 2.
[0053] In this step, the decibel value of snoring is used to make a regulation. When the decibel value is exceeded, it means that the passenger has entered a deep sleep state. At this time, the previous first control unit can be cancelled. The first control unit is the control part that reduces the odor according to the passenger's actions. At this time, the second control unit is turned on according to the decibel value of snoring, and the decibel value of snoring is used for control, and the adjustment coefficient is set. When the decibel of snoring is high, the fan gear is increased to help quickly wake up the snoring passenger so that he does not affect the rest of other passengers.
[0054] According to the above technical solution, in step S5, the steps of evaluating the passenger's sleep quality are as follows:
[0055] S9-1, collecting the number of times the passenger turns over in the sleeping state, that is, judging according to the coordinate change of the reference point, when the reference point changes, it is judged as one turn over;
[0056] S9-2, evaluating the sleep quality of the passenger based on the collected data in step S9-1, according to the formula:
[0057] ;
[0058] in, Score passengers' sleep quality. is the adjustment factor 3, is the number of turning over;
[0059] S9-3. The passenger sleep quality score is combined with the passenger seat situation and sent to the blockchain for storage and recording, which can be retrieved during the subsequent review of the train service.
[0060] In this step, the change of the reference point is used to determine whether it is a turn over, and the sleep quality score is calculated based on the number of turns over in a night. The score is saved using blockchain technology, providing real data support for the evaluation of the ride service, which is of great help to subsequent assessments.
[0061] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0062] 1. The present invention can utilize the blowing effect of the fan on the gas to prevent passengers from being affected by the irritating odor inside the train compartment and causing poor sleep quality, such as foot odor or irritating food, etc., and can improve people's sleep quality when traveling;
[0063] 2. The present invention adjusts the angle of the fan by judging the posture of the passenger to ensure that the fan does not blow on the face of the person and does not affect the normal sleep of the person; and adjusts the fan position according to the corresponding actions of other passengers to ensure the circulation of irritating odors;
[0064] 3. The present invention can detect the snoring of passengers. When the snoring exceeds a certain decibel value, the fan will blow towards the passenger's face and increase the gear as the snoring increases, so that the passenger wakes up, avoids affecting the sleep quality of others, and achieves civilized travel;
[0065] 4. The present invention sets the pressure sensing device just below the pillow, so that the passenger needs to lie down in a safe posture to trigger the control, which can effectively prevent the passenger from falling due to improper sleeping posture or the head shaking with the car and hitting the inner wall of the car, causing injury;
[0066] 5. The present invention also sets up a blockchain for storage and evaluates sleep quality to provide data support for subsequent investigations on ride services, and can ensure data security and immunity from tampering. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0068] Figure 1 It is a schematic diagram of the interior of a compartment of a sleep quality monitoring and early warning system and method based on blockchain of the present invention;
[0069] Figure 2 It is a flowchart of a sleep quality monitoring and early warning system and method based on blockchain in the present invention. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0071] See also Figure 1-Figure 2, the present invention provides a technical solution: a sleep quality monitoring and early warning system based on blockchain, the system includes an acquisition module, a three-dimensional simulation module, a detection module, a control module, a data processing module, an adjustment module, an early warning module, and a blockchain recording module;
[0072] The acquisition module is used to collect environmental information of the compartments in the carriage to create three-dimensional environmental data; the three-dimensional simulation module is used to construct a three-dimensional environment based on the data of the acquisition module and establish reference points; the detection module is used to detect the movement information and snoring of passengers in the compartments; the control module is used to control the opening of the fan device; the data processing module is used to process and analyze the detection data; the adjustment module is used to adjust the angle and intensity of the fan; the early warning module is used to issue snoring warning information and switch the control; the blockchain recording module is used to record the sleep quality assessment scores of passengers on the train and provide data for subsequent investigations on train services;
[0073] The output end of the acquisition module is connected to the input end of the three-dimensional simulation module; the output end of the three-dimensional simulation module is connected to the input end of the detection module; the output end of the detection module is connected to the input end of the control module and the early warning module; the output end of the control module is connected to the input end of the data processing module; the output end of the data processing module is connected to the input end of the adjustment module; the output end of the adjustment module is connected to the input end of the blockchain recording module; the output end of the early warning module is connected to the input end of the blockchain recording module;
[0074] The acquisition module includes an environment data acquisition unit and a device data acquisition unit; the environment data acquisition unit is used to collect environment data of the compartment in the carriage, including but not limited to windows, beds, and railings; the device data acquisition unit is used to collect device data of the compartment in the carriage, including but not limited to pillows, quilts, tables and chairs;
[0075] The output ends of the environment data acquisition unit and the equipment data acquisition unit are connected to the input end of the three-dimensional simulation module;
[0076] The three-dimensional simulation module includes a data receiving and analyzing unit, a modeling unit, and a reference point selection unit; the data receiving and analyzing unit is used to receive the data from the acquisition module and convert it into a data language for analysis; the modeling unit is used to establish a three-dimensional model in a three-dimensional simulation environment; the reference point selection unit is used to select corresponding reference points for marking according to the passenger's posture;
[0077] The output end of the data receiving and analyzing unit is connected to the input end of the modeling unit; the output end of the modeling unit is connected to the input end of the reference point selection unit; the output end of the reference point selection unit is connected to the input end of the detection module;
[0078] The detection module includes a motion detection unit, a pressure detection unit, and a sound detection unit; the motion detection unit is used to detect the passenger's motion; the pressure detection unit is set directly under the pillow to detect the pressure on the pillow; the sound detection unit is set on the side wall of each bed in the workshop to detect the snoring of the passenger in the bed;
[0079] The output end of the pressure detection unit is connected to the input end of the action detection unit and the sound detection unit; the output end of the action detection unit and the sound detection unit is connected to the input end of the control module.
[0080] The control module includes a receiving unit and an opening unit;
[0081] The receiving unit is used to receive the pressure detected on the pillow; the opening unit is used to open the fan device;
[0082] The output end of the receiving unit is connected to the input end of the opening unit; the output end of the opening unit is connected to the input end of the data processing module.
[0083] The data processing module includes a data processing unit and a data analysis unit;
[0084] The data processing unit is used to process the data to obtain the passenger's motion information; the data analysis unit is used to analyze the motion information to obtain the fan deflection angle and wind strength under the motion;
[0085] The output end of the data processing unit is connected to the input end of the data analysis unit; the output end of the data analysis unit is connected to the input end of the adjustment module.
[0086] The adjustment module includes a control adjustment unit, a fan angle adjustment unit, and a fan gear adjustment unit;
[0087] The control adjustment unit switches the control unit based on whether the snoring exceeds the threshold; the fan angle adjustment unit is used to adjust the deflection angle of the fan; the fan gear adjustment unit is used to adjust the gear of the fan;
[0088] The output end of the control and adjustment unit is connected to the input ends of the fan angle adjustment unit and the fan gear adjustment unit.
[0089] The blockchain recording module includes a recording unit and a storage unit;
[0090] The recording unit is used to record the passenger's sleep quality assessment score; the storage unit is used to combine the passenger's personal information and store it in the blockchain;
[0091] The output end of the recording unit is connected to the input end of the storage unit.
[0092] A sleep quality monitoring and early warning method based on blockchain, the method comprising the following steps:
[0093] S1. A collection unit is installed in each compartment of the sleeper car of the train, and the collection unit is used to scan the internal environment equipment of the compartment, build a three-dimensional model, and set a reference point;
[0094] S2. A fan is installed on each bed in the compartment. The fan is connected to the air inlet of the air conditioner. A pressure sensing device is installed right below the center of the pillow. When the passenger's head rests on the pillow, the fan device starts;
[0095] S3, using the collection unit to collect the movements of other passengers, perform data analysis on the movements, and adjust the angle and intensity of the fan;
[0096] S4. Use a sound detection device to detect the snoring of passengers. When snoring is detected, an early warning message is issued and the fan angle and intensity are adjusted according to the decibel value and duration;
[0097] S5. Record the movement amplitude of passengers at night, evaluate the sleep quality of passengers, and use blockchain to record the results.
[0098] In step S1, the steps of constructing a three-dimensional model are as follows:
[0099] S1-1, use the acquisition module to scan the environment of the compartment in the carriage to generate a three-dimensional simulation environment, with the location of the acquisition module as the origin and the right direction of the acquisition module as the Axis positive direction, upward direction is Axis positive direction, front direction is Axis positive direction;
[0100] S1-2. The posture of the passenger lying on the bed is collected, including lying flat, lying on the side, and lying prone. When the posture is detected as lying flat, the tip of the nose is used as the reference point; when the posture is detected as lying on the side, the highest point of the ear outline is used as the reference point; when the posture is detected as lying prone, the highest point of the back of the head is used as the reference point;
[0101] S1-3. In the three-dimensional simulation environment, the coordinates of the reference points are marked as .
[0102] In steps S2-S3, the fan startup and adjustment steps are as follows:
[0103] S7-1. When the passenger lies on the pillow, the head applies pressure to the pillow, and the pressure sensing device detects the pressure value. The threshold is set to , if it exceeds the threshold, the control module is entered to turn on the fan device;
[0104] S7-2, collect the fan position coordinates, recorded as , according to the formula:
[0105] ;
[0106] in, is the maximum value of fan deflection; To compensate for the angle; after the fan device is turned on, the fan works at a speed of one gear, but the deflection angle does not exceed ;
[0107] S7-3, using the collection unit to collect and analyze the actions of other passengers in the compartment, including taking off shoes, eating, entering the first control unit, adjusting the fan gear, according to the formula:
[0108] ;
[0109] in, For fan position, is the adjustment factor 1, is the number of passengers performing the action.
[0110] In step S4, the steps of adjusting the fan according to the snoring sound are as follows:
[0111] S8-1. Use the sound detection device to detect the snoring of the passenger in the current bed, and record the current decibel value. ;
[0112] S8-2, set the threshold ,like Beyond , then adjust the fan deflection angle to ;
[0113] S8-3, when the deflection angle is When the fan stops working, a warning message is issued, the first control unit is turned off, and the second control unit is entered to adjust the fan position according to the formula:
[0114] ;
[0115] in, The adjustment factor is 2.
[0116] In step S5, the steps of evaluating the passenger's sleep quality are as follows:
[0117] S9-1, collecting the number of times the passenger turns over in the sleeping state, that is, judging according to the coordinate change of the reference point, when the reference point changes, it is judged as one turn over;
[0118] S9-2, evaluating the sleep quality of the passenger based on the collected data in step S9-1, according to the formula:
[0119] ;
[0120] in, Score passengers' sleep quality. is the adjustment factor 3, is the number of turning over;
[0121] S9-3. The passenger sleep quality score is combined with the passenger seat situation and sent to the blockchain for storage and recording, which can be retrieved during the subsequent review of the train service.
[0122] In this embodiment:
[0123] The environment is set as an ordinary soft sleeper compartment, with a total of 4 beds, divided into upper and lower berths on the left and right sides. The acquisition unit is used to collect data and build a 3D model;
[0124] By collecting the posture of passenger 1, it is found that he is lying flat, so the tip of his nose is used as the reference point, and the coordinates collected are ;
[0125] When passenger 1 lies on the pillow, his head exerts pressure on the pillow, and the pressure sensing device detects a pressure value of 10. The threshold is set to is 6, because 10>6, so the control module is entered to turn on the fan device;
[0126] Collect the fan position coordinates, recorded as , is 10, according to the formula:
[0127] ;
[0128] After the fan device is turned on, the fan operates at a wind speed of level 1, but the deflection angle does not exceed 31;
[0129] The collection unit is used to collect and analyze the actions of other passengers in the private room. It is found that Passenger 2 and Passenger 3 are taking off their shoes. Enter the first control unit and adjust the fan gear to adjust the coefficient 1. is 1.0, according to the formula:
[0130] ;
[0131] Then adjust the fan for passenger 1 to level 2.
[0132] After passenger 1 falls asleep, he starts snoring, and the current decibel value is recorded as 45;
[0133] Set the threshold to 25, because 45>25, so adjust the fan deflection angle to 31;
[0134] At this time, a warning message is issued, the first control unit is turned off, and the second control unit is entered to adjust the fan gear position. The adjustment coefficient is 2 is 0.1, according to the formula:
[0135] ;
[0136] Then adjust the fan for passenger 1 to level 2.
[0137] After 7 o'clock in the morning of the next day, the number of times passenger 1 turned over in sleep was collected as 7 times;
[0138] Evaluate the sleep quality of passengers based on the collected data, and adjust the coefficient 3 is 5, according to the formula:
[0139] ;
[0140] The sleep quality score of passenger 1 is combined with the seat situation of passenger 1 and sent to the blockchain for record keeping.
[0141] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0142] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A sleep quality monitoring and early warning system based on blockchain, characterized by: The system includes an acquisition module, a three-dimensional simulation module, a detection module, a control module, a data processing module, an adjustment module, an early warning module, and a blockchain recording module; The acquisition module is used to collect environmental information of the compartments in the carriage to create three-dimensional environmental data; the three-dimensional simulation module is used to construct a three-dimensional environment based on the data of the acquisition module and establish reference points; the detection module is used to detect the movement information and snoring of passengers in the compartments; the control module is used to control the opening of the fan device; the data processing module is used to process and analyze the detection data; the adjustment module is used to adjust the angle and intensity of the fan; the early warning module is used to issue snoring warning information and switch the control; the blockchain recording module is used to record the sleep quality assessment scores of passengers on the train and provide data for subsequent investigations on train services; The output end of the acquisition module is connected to the input end of the three-dimensional simulation module; the output end of the three-dimensional simulation module is connected to the input end of the detection module; the output end of the detection module is connected to the input end of the control module and the early warning module; the output end of the control module is connected to the input end of the data processing module; the output end of the data processing module is connected to the input end of the adjustment module; the output end of the adjustment module is connected to the input end of the blockchain recording module; the output end of the early warning module is connected to the input end of the blockchain recording module; The acquisition module includes an environment data acquisition unit and a device data acquisition unit; the environment data acquisition unit is used to collect environment data of the compartment in the carriage, including windows, beds, and railings; the device data acquisition unit is used to collect device data of the compartment in the carriage, including pillows, quilts, tables and chairs; The output ends of the environment data acquisition unit and the equipment data acquisition unit are connected to the input end of the three-dimensional simulation module; The three-dimensional simulation module includes a data receiving and analyzing unit, a modeling unit, and a reference point selection unit; the data receiving and analyzing unit is used to receive the data from the acquisition module and convert it into a data language for analysis; the modeling unit is used to establish a three-dimensional model in a three-dimensional simulation environment; the reference point selection unit is used to select corresponding reference points for marking according to the passenger's posture; The output end of the data receiving and analyzing unit is connected to the input end of the modeling unit; the output end of the modeling unit is connected to the input end of the reference point selecting unit; The output end of the reference point selection unit is connected to the input end of the detection module; The detection module includes a motion detection unit, a pressure detection unit, and a sound detection unit; the motion detection unit is used to detect the passenger's motion; the pressure detection unit is set directly under the pillow to detect the pressure on the pillow; the sound detection unit is set on the side wall of each bed in the workshop to detect the snoring of the passenger in the bed; The output end of the pressure detection unit is connected to the input end of the action detection unit and the sound detection unit; the output end of the action detection unit and the sound detection unit is connected to the input end of the control module. The sleep quality monitoring and early warning method based on blockchain includes the following steps: S1. A collection module is provided in each compartment of the sleeper carriage of the train, and the collection module is used to scan the internal environment equipment of the compartment, construct a three-dimensional model, and set a reference point; S2. A fan is installed on each bed in the room. The fan is connected to the air inlet of the air conditioner. A pressure detection unit is installed right below the center of the pillow. When the passenger's head rests on the pillow, the fan device starts; S3, using the collection module to collect the movements of other passengers, perform data analysis on the movements, and adjust the angle and intensity of the fan; S4. Detect the snoring of passengers using the sound detection unit. When snoring is detected, issue a warning message and adjust the fan angle and intensity according to the decibel value and duration. S5. Record the passenger’s movements at night, evaluate the passenger’s sleep quality, and use blockchain to record the results; Among them, in steps S2-S3, the steps of starting and adjusting the fan are as follows: S7-1. When the passenger lies on the pillow, a pressure detection unit is provided at the center of the pillow. When the passenger's head rests on the pillow, the fan device is turned on; S7-2, collect fan position coordinates and calculate the maximum fan deflection value ; After the fan device is turned on, the fan operates at a speed of 1, but the deflection angle does not exceed ; S7-3. Use the collection module to collect and analyze the actions of other passengers in the compartment, including taking off shoes, eating, entering the first control unit, and adjusting the fan gear.
2. A sleep quality monitoring and early warning system based on blockchain according to claim 1, characterized in that: The control module includes a receiving unit and an opening unit; The receiving unit is used to receive the pressure detected on the pillow; the opening unit is used to open the fan device; The output end of the receiving unit is connected to the input end of the opening unit; the output end of the opening unit is connected to the input end of the data processing module.
3. A sleep quality monitoring and early warning system based on blockchain according to claim 1, characterized in that: The data processing module includes a data processing unit and a data analysis unit; The data processing unit is used to process the data to obtain the passenger's motion information; the data analysis unit is used to analyze the motion information to obtain the fan deflection angle and wind strength under the motion; The output end of the data processing unit is connected to the input end of the data analysis unit; the output end of the data analysis unit is connected to the input end of the adjustment module.
4. A sleep quality monitoring and early warning system based on blockchain according to claim 1, characterized in that: The adjustment module includes a control adjustment unit, a fan angle adjustment unit, and a fan gear adjustment unit; The control adjustment unit switches the control unit based on whether the snoring exceeds the threshold; the fan angle adjustment unit is used to adjust the deflection angle of the fan; the fan gear adjustment unit is used to adjust the gear of the fan; The output end of the control and adjustment unit is connected to the input ends of the fan angle adjustment unit and the fan gear adjustment unit.
5. A sleep quality monitoring and early warning system based on blockchain according to claim 1, characterized in that: The blockchain recording module includes a recording unit and a storage unit; The recording unit is used to record the passenger's sleep quality assessment score; the storage unit is used to combine the passenger's personal information and store it in the blockchain; The output end of the recording unit is connected to the input end of the storage unit.
6. A sleep quality detection and early warning method based on blockchain based on the system according to any one of claims 1 to 5, characterized in that: In step S1, the steps of constructing a three-dimensional model are as follows: S1-1, use the acquisition module to scan the environment of the compartment in the carriage to generate a three-dimensional simulation environment, with the location of the acquisition module as the origin and the right direction of the acquisition module as the Axis positive direction, upward direction is Axis positive direction, front direction is Axis positive direction; S1-2. The posture of the passenger lying on the bed is collected, including lying flat, lying on the side, and lying prone. When the posture is detected as lying flat, the tip of the nose is used as the reference point; when the posture is detected as lying on the side, the highest point of the ear outline is used as the reference point; when the posture is detected as lying prone, the highest point of the back of the head is used as the reference point; S1-3. In the three-dimensional simulation environment, the coordinates of the reference points are marked as .
7. A sleep quality monitoring and early warning method based on blockchain according to claim 6, characterized in that: In steps S2-S3, the fan startup and adjustment steps are as follows: S7-1 further includes that when the passenger lies on the pillow, the head applies pressure to the pillow, and the pressure detection unit detects the pressure value and sets the threshold value. , if it exceeds the threshold, the control module is entered to turn on the fan device; S7-2 further collects the fan position coordinates, which are recorded as , according to the formula: ; in, is the maximum value of fan deflection; To compensate for the angle; after the fan device is turned on, the fan works at a speed of one gear, but the deflection angle does not exceed ; S7-3 further uses the collection unit to collect and analyze the actions of other passengers in the private room, including taking off shoes, eating, entering the first control unit, and adjusting the fan gear according to the formula: ; in, For fan position, is the adjustment factor 1, is the number of passengers performing the action.
8. A sleep quality monitoring and early warning method based on blockchain according to claim 7, characterized in that: In step S4, the steps of adjusting the fan according to the snoring sound are as follows: S8-1. Use the sound detection unit to detect the snoring of the passenger in the current bed and record the current decibel value. ; S8-2, set the threshold ,like Beyond , then adjust the fan deflection angle to ; S8-3, when the deflection angle is When the fan stops working, a warning message is issued, the first control unit is turned off, and the second control unit is entered to adjust the fan position according to the formula: ; in, The adjustment factor is 2.
9. A sleep quality monitoring and early warning method based on blockchain according to claim 8, characterized in that: In step S5, the steps of evaluating the passenger's sleep quality are as follows: S9-1, collecting the number of times the passenger turns over in the sleeping state, that is, judging according to the coordinate change of the reference point, when the reference point changes, it is judged as one turn over; S9-2, evaluating the sleep quality of the passenger based on the collected data in step S9-1, according to the formula: ; in, Score passengers' sleep quality. is the adjustment factor 3, is the number of turning over; S9-3. The passenger sleep quality score is combined with the passenger seat situation and sent to the blockchain for storage and recording, which can be retrieved during the subsequent review of the train service.
Citation Information
Patent Citations
STM32-based multifunctional pillow and control circuit
CN118759976A
Sleep monitoring health care device
CN204351835U