Sleep Shift Scheduling Tool

Sleep loss and fatigue may lead to reduced performance and an increased risk to safety during many activities, including spaceflight. Your challenge is to develop an operational sleep shift scheduling tool that provides autonomous customization of a schedule for sleep, exercise, and nutrition to manage fatigue.

Sleep Shift Scheduling Tool

Summary

Our team has chosen to work on Sleep Shift Scheduling Tool in the “Sustain" challenge.The reason is that we hope to help users manage fatigue, improve working performance and avoid danger.This tool can be used by astronauts and people in non-space industries.Our project mainly composes of 4 main functions: Sleep-Wake-Monitor Program, Exercise Planner, Nutrition Planner, and Astronaut Daily Schedule Generator.This project is built according to its objectives which are to maintain users’ circadian entrainment, give exercise and nutritional recommendations to enhance their health.These recommendations are generated based on users’ work, age, weight and height using some computational formulas.

How We Addressed This Challenge

We have developed a sleep shift scheduling tool for astronauts and average persons. There are four main functions in this tool which are Sleep-Wake-Monitor Program, Exercise Planner, Nutrition Planner, and Astronaut Daily Schedule Generator. 

Firstly, the Sleep-Wake-Monitor Program is used to recommend to the user his/her sleep and wake time based on the number of sleep cycles. It also monitors user’s sleeping time and check if the sleeping time is enough for users of different age. The Monitor function also enables user to view his/her sleeping history so that the user can adjust his/her sleeping schedule for the better. This program can also be used to set an alarm besides turning on the blue light filter a few hours before bedtime to ensure user has a better sleep quality as blue light directly affects one’s circadian rhythm.

The Exercise Planner will prompt user for his or her weight, period of exercise and level of training (light, moderate, vigorous). After that, this tool will return a list of 3 types of exercises that fulfills user’s requirements. This tool will also count and inform user about the value of calories burnt in these exercises using MET values. 

The Nutrition Planner will give a recommendation of total energy needed per day based on the characteristics input by user including whether the user is an astronaut, age, gender, height, weight and activity factor of user. The total calories required will be calculated using macro calculator and is suggested in the proportion of carbohydrates, proteins and fats. 

Last but not least, Astronaut Daily Schedule Generator will generate a whole-day schedule for astronauts based on astronauts’ works on weekday, Friday, weekend and EVA day. These schedules will suggest the sleep time of 8 hours 30 minutes each day.

The Sleep-Wake-Monitor Program can suggest user sleep and wake time and monitor their sleep so that user experiences less fatigue and perform better whole day. The Exercise and Nutrition Planner are important so that people get sufficient training and nutrients to maintain or improve their health and agility. Moreover, this is vital for astronauts to tone their muscles out in space. Our team members hope that this tool can aid many people to live their lives in a more healthy and systematic way.

How We Developed This Project

We came across a few interesting challenges and after some discussion, we decided to settle for this one, the Sleep Shift Scheduling Tool. This challenge opened up opportunities for us to discover and gain insights about the life of an astronaut, how they live in space with such a different atmosphere and how they geared themselves towards achieving a healthy and productive journey. Besides, it was easier for us --who are amateurs to space knowledge-- to relate to sleeping, eating and exercising as these activities are piece and parcels of our lives.

After forming the team, we divided the tasks of searching for information and researching these activities in depth. We equipped ourselves with the knowledge we could find, shared the information we acquired and had frequent online discussions. When it was time for us to start hacking, the first problem that surfaced was that none of us were proficient in using Android Studio. However, we would not allow this to become a stumbling block for us and proceeded to construct our program framework in Netbeans IDE. We used Java as the main coding language. Another problem that our team encountered was the difficulty to compile the codes each of us worked on. Hence, we update one another with the latest code so that debugging could be done at a faster speed and greatly decrease the bugs while compiling the code.

Although problems arose, we are happy that we did not return empty-handed. Space knowledge was indeed an eye-opener for us. Teamwork was an essential factor that contributed to our achievements in this project. It also helped us to connect with one another amidst the COVID-19 pandemic. Furthermore, it marks a milestone for us as it is the first time we ever completed the framework of a project in such a short span of time. We are glad we took action to participate in this challenge and hope to do so in future.

How We Used Space Agency Data in This Project

As the host (and with the most resources regarding this challenge :D), our main source of information is the NASA’s official website, followed by information provided by its counterpart (ESA) and some additional ones from open sources.

Due to microgravity, astronauts are restrained to few exercises only, namely cycling on an ergometer, walking/running on a treadmill and build muscles using a resistance exercise device (RED). We obtained the MET values of these activities from The Compendium of Physical Activities to aid in determining the calories burned by the astronauts when they work out.

An article by NASA also explained about the nutrition guide to the astronauts’ optimum diet using infographics. We applied the formulas given to calculate the daily energy requirement of each astronaut. Astronauts also only have a limited choice of food that could be eaten hassle-free, hence it was important that we understand the types of food astronauts can consume in space to be able to come up with suggestions for each meal.

Moving on, the greatest challenge for all astronauts would probably be adapting to the environment (16 sunrises and sunsets per day!) and being able to sleep through it. Sufficient sleep is vital to ensure an astronaut is always at his/her tip-top condition during missions. Most missions suggest that astronauts should sleep at least 8 hours per day. Hence we created a program that enables the astronauts to monitor their sleeping duration and benefit from it.

Finally, a tipoff about the daily routine of an astronaut shared by Mr Thomas Pesquet (6 months Proxima mission) helped us to get a better understanding of an astronaut’s daily activities. An automated schedule was created that will display as a table reminding astronauts to follow these times strictly to maintain their circadian rhythm. When this routine is slightly disrupted by spacewalks, it may also help astronauts to tune their body clocks back to normal.

These precise datasets are from reliable sources and greatly contributed to our team's efforts in building this project.

Project Demo

https://drive.google.com/file/d/1VVRsuFtvKEWVYeuHoVqp7juEzMIVWfjd/view?usp=sharing

Judging
This project was submitted for consideration during the Space Apps Judging process.