2025-07-23
How we engineered an intelligent lighting system to support healing and well-being in hospital environments
Hospitals are meant to be healing environments—but harsh, cold lighting often works against recovery. Most facilities use static fluorescent lights 24/7, ignoring how light affects our circadian rhythm and overall health.
Our circadian rhythms—our internal 24-hour biological clock—are primarily regulated by light exposure. In nature, we're exposed to cool, blue-enriched light during the day and warm, dim light in the evening. This natural pattern helps regulate sleep, hormone production, and countless other biological processes.
Hospital lighting, however, tells a different story. Static, bright fluorescent lights shine at the same intensity and color temperature 24/7, creating an environment that actively disrupts patients' circadian rhythms.
Disrupted circadian rhythms in patients and staff can lead to:
Light isn’t just visual—it’s biological. And in hospitals, it often becomes a hidden health risk.
CircadiaLux is our answer: a smart, adaptive lighting system that uses machine learning, IoT devices, and cloud technology to create lighting environments that:
CircadiaLux is not just a lighting control system—it’s a biologically informed platform for circadian alignment and healing.
Lighting directly influences circadian rhythms, which in turn affect sleep quality—and ultimately, the healing process.
This chain is the core of our approach:
By optimizing the first link ( light ) we improve everything that follows.
🎬 Watch the Demo Video
See CircadiaLux in action—how the system predicts, controls, and adapts lighting conditions in real-time using ML, IoT, and Supabase:
Built with React, Vite, and TailwindCSS, the web dashboard provides an intuitive interface designed specifically for healthcare professionals:
Supabase serves as our backend solution, delivering scalable, real-time infrastructure:
Our ML component uses a Random Forest Regressor model that achieves 96.2% accuracy in predicting optimal lighting parameters. The system predict optimal lighting parameters for each patient based on:
We generate 48 lighting adjustments per day (every 30 minutes), fine-tuned to:
To avoid harsh transitions, we apply smoothing algorithms to create gradual, comfortable lighting shifts.
Each lighting controller is built around the ESP32 microcontroller, equipped with:
The implications of CircadiaLux extend far beyond just better lighting:
CircadiaLux is proudly open source and available on GitHub. We believe that improving human health through better lighting should be accessible to researchers, developers, and healthcare facilities worldwide.
The project demonstrates how modern technologies—machine learning, IoT, and cloud services—can be combined to address real-world healthcare challenges. It's a testament to what's possible when we apply engineering principles to human-centered problems.
Whether you're a researcher in chronobiology, a developer working in healthcare IoT, or simply passionate about tech for well-being, we'd love your input and collaboration.
CircadiaLux isn’t just a lighting system—it’s a step toward more humane, intelligent healthcare environments.
By combining embedded systems, ML, and design thinking, we created a system that supports patients not only physically—but biologically and emotionally too.
“When technology aligns with biology, it empowers healing.”
The future of healthcare lighting is personalized, intelligent, and human-centered—and CircadiaLux is helping build it, one patient room at a time.
👥 Want to connect, collaborate, or contribute? Reach out or star us on GitHub.
📬 GitHub → CircadiaLux
If you enjoyed learning about CircadiaLux, you might also be interested in these related posts:
How I Designed My Own Project Management System for Student Tech Projects - Discover the project management system and collaboration workflows that made CircadiaLux possible, from Discord communication to Git workflows.
My Self-Hosting Journey - Explore how I built my home server infrastructure and self-hosted services, sharing similarities with the IoT and backend architecture decisions in CircadiaLux.
Building a Reliable Backup System for My Multi-Device Setup - Learn about system reliability and data management strategies that inform the robust architecture principles used in CircadiaLux.
Building a Safe and Realistic Hacking Lab - Discover network architecture and security considerations that parallel the IoT device management and security features in CircadiaLux.