AI Ensemble Masters Night-Sky Monitoring for Remote Observatories
Astronomy

AI Ensemble Masters Night-Sky Monitoring for Remote Observatories

A new machine learning pipeline classifies observatory sky conditions with high accuracy while overcoming the challenges of moonlight glare and dome condensation.

By Nida Rehman
Published:
Email this Article
AI Ensemble Masters Night-Sky Monitoring for Remote Observatories
Six random frames from each of the five kk-means clusters with their composition. Cluster 3 consists of frames with water droplets on the camera dome. Muhammad Waqas / arXiv

Small, remote astronomical facilities face the nightly gamble of deciding whether the sky is clear enough for observations without on-site staff to check the weather. Researcher Muhammad Waqas tackled this challenge by developing an automated analysis pipeline for the auxiliary all-sky camera at the Higashi-Hiroshima Observatory, relying on a dataset of 8,806 frames gathered across 32 nights in late 2021.

By removing printed date stamps that otherwise functioned as computational shortcuts, the author evaluated hand-crafted meteorological metrics alongside convolutional neural network models, as available on the arXiv preprint server. The investigation reveals how artificial intelligence can reliably judge cloud cover while handling the tricky glare of moonlight.

How Artificial Intelligence Outperforms Traditional Weather Statistics

To establish a benchmark, the author first tested four physically motivated features extracted directly from grey-scale sky pixels, including mean brightness, contrast, texture gradient, and the number of star-like peaks. While star counts proved effective, a gradient-boosting classifier using these traditional features achieved an accuracy of 77.1 percent when tested on six entirely separate nights.

Figure 1: Frames from the dataset. Left: a frame labelled fine, taken in moonlight at 00:46 local time on 2021 November 16; broken cloud is visible despite the label. Centre: a frame labelled cloudy (2021 November 21), a bright overcast sky. Right: the first frame after applying the circular sky mask of radius 0.455​W0.455\,W, which removes the printed caption, including the date.
Frames from the dataset. Left: a frame labelled fine, taken in moonlight at 00:46 local time on 2021 November 16; broken cloud is visible despite the label. Centre: a frame labelled cloudy (2021 November 21), a bright overcast sky. Right: the first frame after applying the circular sky mask of radius 0.455​W0.455\,W, which removes the printed caption, including the date. Credit: Muhammad Waqas / arXiv

In comparison, a small convolutional neural network trained from scratch reached 84.3 percent accuracy on the same test set. Furthermore, a validation-selected ensemble combining the small neural network with two pretrained ResNet-18 variants reached an overall accuracy of 86.7 percent. This ensemble approach also minimized night-to-night performance scatter, proving more robust than single-model architectures when facing unpredictable atmospheric shifts.

Overcoming the Major Obstacle of Moonlight and Glare

A primary difficulty in automated night-sky monitoring is accounting for the Moon, whose light scatters through clear air and mimics the brightness of thin clouds. Using ephemeris calculations to track the Moon’s altitude for every frame, the author discovered that simpler models experienced severe performance drops of up to 20 percentage points across varying lunar conditions.

In contrast, the ensemble model limited its accuracy variation to just 5 percentage points across different Moon altitudes. The hardest evaluation period occurred on the night of December 19, 2021, which coincided with a full Moon reaching an altitude of 80 degrees. The research indicates that partial cloud breaks under intense moonlight often confuse binary classification labels, pointing to the need for probabilistic outputs rather than rigid clear-or-cloudy designations.

Figure 2: Sky-only statistics for 1 500 frames. Left: mean sky brightness against contrast. Centre: brightness against the number of star-like peaks (logarithmic axis). Right: brightness distribution per class. Fine frames form continuous tracks (individual clear nights seen minute by minute); cloudy frames scatter. Above a brightness of ∼\sim0.8 the star-count bands merge because the bright sky washes out the stars.
Sky-only statistics for 1 500 frames. Left: mean sky brightness against contrast. Centre: brightness against the number of star-like peaks (logarithmic axis). Right: brightness distribution per class. Fine frames form continuous tracks (individual clear nights seen minute by minute); cloudy frames scatter. Above a brightness of ∼\sim0.8 the star-count bands merge because the bright sky washes out the stars. Credit: Muhammad Waqas / arXiv

Discovering Hidden Sky Types Without Human Labels

Beyond supervised classification, the author applied unsupervised machine learning to 4,000 random frames without relying on pre-existing labels. Gaussian-mixture clustering of pretrained embeddings successfully recovered the clear and cloudy split with 87 percent purity. More importantly, using k-means clustering with five groups uncovered a distinct category consisting of frames covered in small round spots.

These spots represent water droplets and condensation on the camera dome from humid or rainy nights. Traditional dataset labels had previously lumped these wet-dome frames into ordinary cloudy categories, even though condensation demands closing the observatory dome rather than simply waiting for skies to clear. Unsupervised clustering thus exposes operational hazards that binary human labels miss.

Figure 3: The twelve most confident errors of the final ensemble. Nine are from 2021 November 24, 19:21–19:46, labelled fine and predicted cloudy with 93–96 per cent confidence, with the Moon below the horizon; the sky is overcast. Three are from December 19 near 21:57, labelled cloudy and predicted clear with 95 per cent confidence under a full Moon at 57∘; most of the sky is clear, with cloud near the horizon.
The twelve most confident errors of the final ensemble. Nine are from 2021 November 24, 19:21–19:46, labelled fine and predicted cloudy with 93–96 per cent confidence, with the Moon below the horizon; the sky is overcast. Three are from December 19 near 21:57, labelled cloudy and predicted clear with 95 per cent confidence under a full Moon at 57∘; most of the sky is clear, with cloud near the horizon. Credit: Muhammad Waqas / arXiv

Visualizing Network Reasoning for Observatory Operators

To ensure human operators can trust automated decisions, the author implemented exact, gradient-free evidence maps. Because the classifiers end with global average pooling and a linear layer, the decision process decomposes directly into a map of local logits. This provides exact evidence maps and cloud-cover estimates without requiring complex gradient calculations.

These findings culminated in an open-source tool named Sky Monitor AI, designed to process single frames, whole nights, or live camera streams. While the current system requires further field testing alongside human observers before it can safely control observatory equipment unattended, the pipeline offers a scalable framework for automating remote astronomical facilities.

The study was posted to the arXiv preprint server on November 11, 2026.

Fact Checked

This article has been fact checked for accuracy, with information verified against reputable sources. Learn more about us and our editorial process.

Last reviewed on .

Article history

  • Latest version

Cite this page:

Rehman, Nida. “AI Ensemble Masters Night-Sky Monitoring for Remote Observatories.” BioScience. BioScience ISSN 2521-5760, 13 November 2026. <https://www.bioscience.com.pk/en/subject/astronomy/sky-monitor-ai-classifying-night-sky-conditions-from-an-observatory-all-sky-camera-with-a-cnn-ensemble-label-free-sky-types-and-exact-evidence-maps>. Rehman, N. (2026, November 13). “AI Ensemble Masters Night-Sky Monitoring for Remote Observatories.” BioScience. ISSN 2521-5760. Retrieved November 13, 2026 from https://www.bioscience.com.pk/en/subject/astronomy/sky-monitor-ai-classifying-night-sky-conditions-from-an-observatory-all-sky-camera-with-a-cnn-ensemble-label-free-sky-types-and-exact-evidence-maps Rehman, Nida. “AI Ensemble Masters Night-Sky Monitoring for Remote Observatories.” BioScience. ISSN 2521-5760. https://www.bioscience.com.pk/en/subject/astronomy/sky-monitor-ai-classifying-night-sky-conditions-from-an-observatory-all-sky-camera-with-a-cnn-ensemble-label-free-sky-types-and-exact-evidence-maps (accessed November 13, 2026).
End of the article