Privacy Guard Activated

This tool calculates spectrum values locally. Camera data never touches our servers. Process ends immediately when the tab is closed.

Circadian Light Analyzer

Melatonin Suppression Risk & CCT Spectrum Estimation.

Point lens at room light source

The Science of Light Hygiene: Protecting Melatonin in a Digital World

Humans evolved under the stable cycles of firelight and starlight. Today, we exist in an artificial "perpetual noon." This tool on this Canvas is designed to audit the invisible biological impact of your environment, measuring the **Correlated Color Temperature (CCT)** to identify wavelengths that sabotage your sleep.

Understanding the Kelvin Logic

Instead of complex clinical shorthand, we break down the color temperature estimation into a human-understandable sequence. Your room's impact is calculated by analyzing the ratio of high-energy visible (HEV) blue light to low-energy red light:

The Spectral Ratio Logic:

Estimated Kelvin = Neutral Point (5500K) minus (The Difference between Red and Blue multiplied by the Scaling Constant)

Variable Definitions (Legend):

  • Neutral Point (5500K): The temperature of noon daylight, where Red, Green, and Blue are roughly equal.
  • Red-Blue Difference: The "Chromatic Bias." If Red is much higher than Blue, the value drops (Warm). If Blue is higher, the value climbs (Cool).
  • Scaling Constant (7000): A clinical constant used to map the linear RGB sensor data to the non-linear Kelvin scale.

Chapter 1: The Biology of the Blue Light "Emergency"

Within the human eye sits a specialized group of cells called Intrinsically Photosensitive Retinal Ganglion Cells (ipRGCs). These cells have nothing to do with conscious vision. Their only job is to detect the presence of 460-480nm wavelengths (Blue Light). When these cells detect blue light, they send a direct signal to the Suprachiasmatic Nucleus (SCN)—your brain's master clock—telling it that it is daytime. The SCN then suppresses the Pineal Gland from releasing Melatonin. By using the analyzer in this Canvas, you are checking if your evening lights are accidentally triggering this "Daytime Emergency" signal.

The Melatonin Shutdown

Research shows that exposure to light above 50 lux with a high blue spectrum can delay melatonin onset by up to 90 minutes. This is why you feel "tired but wired" after staring at a cool-white screen or sitting under a 5000K LED bulb late at night.

Chapter 2: Deciphering the Kelvin Scale

Color temperature is measured in **Kelvin (K)**. Counter-intuitively, lower numbers represent "warmer" light (Red/Orange), and higher numbers represent "cooler" light (Blue/White). The tool in this Canvas tracks these three critical zones:

1. The Sleep Safe Zone (1000K - 2700K)

Candlelight (~1800K) and incandescent bulbs (~2400K) live here. These sources produce minimal blue light, allowing your brain to enter its natural "pre-sleep" state. If our analyzer shows a result in this range, your environment is biologically safe for the evening.

2. The Cognitive Work Zone (3000K - 5000K)

Commonly known as "Soft White" or "Cool White." This range is excellent for office productivity and focus because it keeps melatonin low and alertness high. However, using this lighting after 8:00 PM creates a circadian mismatch.

3. The Alertness Zone (6000K+)

Daylight and "Full Spectrum" bulbs. This light mimics the sun at its peak. It is vital for treating **Seasonal Affective Disorder (SAD)** in the morning but is a potent disruptor if used as a ceiling light in a bedroom.

Simplified Circadian Logic

To understand how much light is too much, use this human-logic comparison:

A single 6500K LED bulb for 15 minutes is more disruptive to sleep than 4 hours of candlelight.

Physics Note: Blue light has shorter wavelengths and higher energy, capable of deeper penetration into the retinal layers.

Chapter 3: Spectrometry vs. Camera Estimation

Professional spectrometers cost thousands of dollars. The analyzer in this Canvas uses **Chrominance Estimation**. By capturing the raw RGB values from your CMOS sensor, we calculate the "Color Balance" of the environment. While variables like your camera's internal white balance can affect absolute accuracy, the *relative ratio* of blue to red provides a high-confidence estimate of whether a light source is safe for night-time use.

Chapter 4: The Impact of Modern LEDs

Old-fashioned incandescent bulbs were "Sleep Safe" by default because they used a heated filament that produced a warm glow. Modern LEDs use a blue diode with a phosphor coating to create "white" light. If that coating is thin or low-quality, the bulb leaks a massive amount of "Blue Spikes" that are invisible to the eye but highly visible to your ipRGC cells. This is why even a bulb that looks "white" to you might be flagged as "High Alert" by our sensor.

Chapter 5: Practical Light Hygiene Protocols

Once you use this tool to identify the "hot spots" in your home, implement these human-logic protocols:

  1. The 2-Hour Rule: Switch to warm lighting (under 3000K) exactly 120 minutes before your target sleep time.
  2. Vertical Lighting: Blue light is most disruptive when it hits the bottom part of the retina (where the most ipRGCs are). Use floor lamps or table lamps instead of overhead ceiling lights in the evening to change the angle of incidence.
  3. Amber Filters: If you must use a device, apply a software filter (like the "Night Shift" logic analyzed here) to manually shift the RGB ratio away from Blue.

Chapter 6: Technical Troubleshooting

To get the most accurate result from the analyzer in this Canvas, ensure you are not pointing the camera at a colored object (like a blue wall or green plant). The sensor needs to see the **Direct Light Source** or a neutral white surface reflecting the light. If the Kelvin reading flickers wildly, it is likely detecting the 60Hz flicker of a low-quality LED driver—another sign that the bulb may be causing eye strain.

Master Your Internal Clock

Lighting is the strongest environmental signal for your hormones. Use the Circadian Light Analyzer to audit your home and reclaim the deep, restorative sleep your biology deserves.

Restart Light Scan

Clinical Light FAQ

Do blue-blocking glasses really work?
Yes, but only if they are **Orange or Red tinted**. Clear "blue light" glasses often only block 5-10% of HEV light. To effectively protect melatonin, you need lenses that block everything below 500nm, which will physically change the color of the world you see to a warm amber.
Is blue light dangerous for my eyes?
While there is some concern about macular degeneration, the primary danger of modern light exposure is **Circadian Misalignment**. Short-term, it causes insomnia; long-term, chronic melatonin suppression is linked to increased risk of metabolic syndrome and certain cancers.

Related Biological Systems

Syncing with spectral database...