When Astronomy Meets AI: Manazel For Crescent Visibility Prediction in Morocco

Yassir Lairgi · 2025

Read When Astronomy Meets AI: Manazel For Crescent Visibility Prediction in Morocco by Yassir Lairgi (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-21634.txt.

Introduction

Yassir Lairgi applies machine learning to predict when the new moon's crescent will first be visible in Morocco, in a 2025 paper. Fixing the start of each Hijri month matters for religious, cultural, and official life. His tool, Manazel, learns from thirteen years of Moroccan sighting records and refines a widely used visibility rule.

The model uses two measures: the arc of vision, which captures the moon's position against the sun, and the crescent's width. A logistic regression classifier sorts sighting chances from these inputs and reached about ninety-nine percent accuracy on the records. Lairgi presents the data-driven method as a steadier basis for the lunar calendar and a template other regions could adapt.

Catalog record

CREATORYassir Lairgi
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE16 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2503-21634

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

When Astronomy Meets AI: Manazel For Crescent Visibility Prediction in Morocco Yassir Lairgi Abstract The accurate determination of the beginning of each Hijri month is essential for religious, cultural, and administrative purposes. Manazel 1 1 1 The code and datasets are available at https://github.com/lairgiyassir/manazel addresses this challenge in Morocco by leveraging 13 years of crescent visibility data to refine the ODEH criterion, a widely used standard for lunar crescent visibility prediction. The study integrates two key features, the Arc of Vision (ARCV) and the total width of the crescent (W), to enhance the accuracy of lunar visibility assessments. A machine learning approach utilizing the Logistic Regression algorithm is employed to classify crescent visibility conditions, achieving a predictive accuracy of 98.83%. This data-driven methodology offers a robust and reliable framework for determining the start of the Hijri month, comparing different data classification tools, and improving the consistency of lunar calendar calculations in Morocco. The findings demonstrate the effectiveness of machine learning in astronomical applications and highlight the potential for further enhancements in the modeling of crescent visibility. 1 Introduction The determination of the beginning of each Hijri month holds significant religious, cultural, and administrative importance in various Islamic societies [ 1 ] . In Islamic countries, the visibility of the lunar crescent marks the start of each month in the Hijri calendar, which is essential for religious observances such as Ramadan and Eid celebrations. The criteria for crescent sighting vary between countries; some rely on direct human observation, while others use astronomical calculations or a combination of both [ 2 ] . For instance, Saudi Arabia often considers calculated visibility, while countries like Morocco adhere strictly to naked-eye observations. These differing approaches sometimes lead to discrepancies in the Hijri calendar between nations, highlighting the need for accurate prediction models. Historically, methods for determining lunar crescent visibility date back to ancient Babylonian astronomy, where scholars developed empirical rules to forecast lunar phases [ 3 ] . Over time, various visibility criteria have been introduced, with the ODEH criterion emerging as one of the most widely used and accurate models for predicting crescent visibility. Despite its effectiveness, the ODEH criterion has limitations when applied to Morocco’s specific conditions, where classes of visibility do not always provide definitive conclusions about whether the crescent will be seen or not. Manazel seeks to enhance the precision of crescent visibility predictions by leveraging a comprehensive dataset spanning 13 years of lunar observations in Morocco. The significance of crescent visibility prediction is particularly high in Morocco, as the country relies exclusively on naked-eye observations to determine the start of each Hijri month. This reliance makes it crucial to refine predictive models to reduce uncertainties and improve accuracy. To address these challenges, this study refines the ODEH criterion by incorporating two essential parameters: the Arc of Vision (ARCV) and the total width of the crescent (Wtot). These features provide additional insights into the complex dynamics of lunar sighting, aiding in more reliable assessments. Furthermore, this study introduces a machine learning-based approach to classify crescent visibility conditions. Utilizing the Logistic Regression algorithm, the research achieves an impressive predictive accuracy of 98.83%, demonstrating the efficacy of data-driven methods in astronomical applications. By tuning the ODEH model based on Morocco’s historical observations and applying machine learning techniques, this research offers a robust and reliable framework for determining the start of the Hijri month. The integration of AI-driven analysis enhances predictive reliability and opens new avenues for refining astronomical criteria through data science innovations. The findings underscore the relevance of advanced computational techniques in addressing long-standing challenges in lunar calendar determination, setting the stage for further enhancements in predictive modeling and methodological refinement. 2 Related Works 2.1 Empirical Altitude–Azimuth Criteria The earliest methods rely on empirical relationships between the moon’s altitude and azimuth. Pioneered by Fotheringham [ 4 ] and subsequently refined, Ilyas [ 5 ] , and Fatoohi [ 6 ] , these criteria are typically expressed as polynomial equations that define a threshold for visibility. Although simple and based on direct observational data, these models suffer from being overly static; they often fail to capture the variability in atmospheric conditions, observer differences, and geographical diversity. For instance, Ilyas’s criterion has been criticized for underestimating the human eye’s capability, thereby limiting its practical predictive power. 2.2 Lunar Cycle Analysis Another approach focuses on the statistical examination of lunar cycle patterns [ 7 ] [ 8 ] . These analyses explore the frequency of 29 - versus 30 - day months and compare the resulting patterns with observational data. While they provide insight into the broader calendrical implications of crescent sightings, their main shortcoming lies in the inherent variability of lunar cycles. Each cycle is unique because of factors like sun–moon declination differences, observer location, and atmospheric influences; thus, the lunar cycle approach is less reliable for predicting individual crescent sightings or for forming a robust calendrical criterion. 2.3 Arc of Vision Versus Arc of Light (Elongation) Criteria Modern calendrical systems have also adopted criteria based on a combination of the arc of vision (the altitude difference between the moon and the sun) and the arc of light (or elongation) [ 2 ] . These methods aim to eliminate false-positive sightings by setting a lower boundary that positive observations must exceed. Yet, their rigidity—often designed specifically to support a calendrical framework—can lead to cases where real, but borderline, observations are disregarded. In particular, the criteria can be too conservative, especially when distinguishing between naked-eye and optical-aided observations 2.4 Arc of Vision Versus Width Criteria Introduced by Bruin [ 9 ] and later adapted by researchers such as Yallop [ 10 ] , Odeh [ 11 ] , Qureshi [ 12 ] , and Alrefay et al [ 13 ] , these criteria extend the analysis by incorporating the lunar crescent’s width into the visibility equation. Although this method adds a valuable geometric dimension that can also predict observation windows, it is hampered by the difficulty in accurately predicting crescent visibility because the empirical conditions cannot reflect the actual crescent visibility in a country. 2.5 Lag Time–Based Criteria Lag time, the interval between sunset (or moonset) and the relevant lunar phase, has also been used as a predictor [ 14 ] . While lag time is intuitively appealing (longer intervals are thought to correlate with easier visibility), its predictive power is undermined by low correlation coefficients and its sensitivity to observer latitude. In high-latitude regions, for example, the lunar crescent’s slanted path significantly alters lag time, rendering it less reliable as a sole or primary parameter in visibility criteria. Despite the notable advancements achieved by state-of-the-art methods, these techniques are fundamentally limited by their reliance on static, one-size-fits-all thresholds. Such rigidity hinders their ability to accommodate the inherent variability of each country’s data. Our work leverages a comprehensive 13-year dataset of crescent observations in Morocco and employs a data-driven machine learning framework to dynamically refine the ODEH criterion by adapting to the unique characteristics of Morocco 3 Proposed Method 3.1 Problem Statement Evaluating crescent visibility requires combining at least two parameters: one that reflects the intrinsic brightness of the crescent and another that accounts for its distance from the horizon, which is closely tied

Read the complete text