
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Evaluating CLAHE and Temporal Smoothing Impact on Deep Learning-Based Young Crescent Moon Video Detection
Corresponding Author(s) : Bayu Krisna Murti
Kinetik: Game Technology, Information System, Computer Network, Computing, Electronics, and Control,
Vol. 11, No. 4, November 2026 (Article in Progress)
Abstract
Detecting the young crescent moon from video data poses significant challenges due to low contrast against the twilight sky, sensor noise, and atmospheric interference. Frame-wise contrast enhancement, such as Contrast Limited Adaptive Histogram Equalization (CLAHE), can introduce inter-frame intensity fluctuations that degrade both visual quality and the consistency of automated detection. This study evaluates the impact of CLAHE and Temporally Aware CLAHE (TA-CLAHE) preprocessing on YOLOv8n-based young crescent moon detection across three video sequences representing varying observational conditions. Temporal stability was assessed using Flicker Index (FI), Percent Flicker (PF), Temporal Standard Deviation (T-STD), and Frame Difference Mean (FDM). At the same time, detection performance was measured using Detection Consistency Rate (DCR) and centroid stability relative to a fixed ground truth. CLAHE substantially improves detection consistency, raising DCR by up to 16 percentage points over the Raw baseline (Video 1: 60.8% to 76.8%). TA-CLAHE further elevates detection to near-complete coverage — 99.9% on Video 1 and 99.2% on Video 3 — surpassing standard CLAHE by 23.1 and 9.5 percentage points, respectively. Temporal stability also improves: TA-CLAHE reduces FI by 19–32% and T-STD by 20–26%; the reduction in PF is modest (at most 27%) and is retained only as a secondary indicator given its known measurement limitations. These gains involve trade-offs: enhancement slightly loosens per-box localization, and under cloud occlusion, TA-CLAHE raises the invalid detection rate to 17%. Based on these findings, CLAHE is recommended as a sound, low-cost default preprocessing, while TA-CLAHE is preferred for applications requiring an uninterrupted, low-jitter detection track, provided it is paired with an explicit occlusion gate.
Keywords
Download Citation
Endnote/Zotero/Mendeley (RIS)BibTeX
- S. Loucif, M. Al-Rajab, R. Abu Zitar, and M. Rezk, "Toward a globally lunar calendar: a machine learning-driven approach for crescent moon visibility prediction," J. Big Data, vol. 11, no. 1, p. 114, Aug. 2024. https://doi.org/10.1186/s40537-024-00979-6
- M. Al-Rajab, S. Loucif, and Y. Al Risheh, "Predicting new crescent moon visibility applying machine learning algorithms," Sci. Rep., vol. 13, no. 1, p. 6674, Apr. 2023. https://doi.org/10.1038/s41598-023-32807-x
- R. Muztaba, H. L. Malasan, and M. Djamal, "A Self-Construction of Automatic Crescent Detection Using Haar-Cascade Classifier and Support Vector Machine," J. Phys. Conf. Ser., vol. 2734, no. 1, p. 012007, Mar. 2024. https://doi.org/10.1088/1742-6596/2734/1/012007
- R. Muztaba, H. L. Malasan, and M. Djamal, "Deep learning for crescent detection and recognition: Implementation of Mask R-CNN to the observational Lunar dataset collected with the Robotic Lunar Telescope System," Astronomy and Computing, vol. 45, p. 100757, Oct. 2023. https://doi.org/10.1016/j.ascom.2023.100757
- R. Muztaba, H. L. Malasan, and M. Djamal, "Development of an automated Moon observation system using the ALTS-07 Robotic Telescope: 2. Progress report on standard contrast enhancement of Moon crescent image with OpenCV," J. Phys. Conf. Ser., vol. 2214, no. 1, p. 012004, Feb. 2022. https://doi.org/10.1088/1742-6596/2214/1/012004
- A. N. Zulkeflee et al., "Detection of a new crescent moon using the Maximally Stable Extremal Regions (MSER) technique," Astronomy and Computing, vol. 41, p. 100651, Oct. 2022. https://doi.org/10.1016/j.ascom.2022.100651
- Z. Yuan et al., "CLAHE-Based Low-Light Image Enhancement for Robust Object Detection in Overhead Power Transmission System," in IEEE Transactions on Power Delivery, vol. 38, no. 3, pp. 2240-2243, June 2023. https://doi.org/10.1109/TPWRD.2023.3269206
- W. N. J. Hj Wan Yussof, M. Man, R. Umar, A. N. Zulkeflee, E. A. Awalludin, and N. Ahmad, "Enhancing Moon Crescent Visibility Using Contrast-Limited Adaptive Histogram Equalization and Bilateral Filtering Techniques," Journal of Telecommunications and Information Technology, vol. 87, no. 1, pp. 3–13, Mar. 2022. https://doi.org/10.26636/jtit.2022.155721
- K. Hu, Y. Meng, Z. Liao, L. Tang, and X. Ye, "Enhancing Underwater Video from Consecutive Frames While Preserving Temporal Consistency," J. Mar. Sci. Eng., vol. 13, no. 1, p. 127, Jan. 2025. https://doi.org/10.3390/jmse13010127
- G. Potvin and D. McGaughey, "Cascading auto-regressive exponential smoothing of image sequences for reducing turbulence induced motion," Optics Continuum, vol. 2, no. 3, p. 579, Mar. 2023. https://doi.org/10.1364/OPTCON.481487
- Z. Wang et al., "YOLOv8‐DBW: An Improved High‐Accuracy Fast Landslide Detection Model," Transactions in GIS, vol. 29, no. 1, Feb. 2025. https://doi.org/10.1111/TGIS.70021
- R. Sapkota et al., "YOLO advances to its genesis: a decadal and comprehensive review of the You Only Look Once (YOLO) series," Artif. Intell. Rev., vol. 58, no. 9, p. 274, Jun. 2025. https://doi.org/10.1007/s10462-025-11253-3
- K. Hulliyah, D. Hafidzulrahman, N. Anggraini, L. K. Wardhani, and M. F. Akter Min Gali, "Comparison of You Only Look Once (YOLO) Algorithm Version 5 and Version 8 as Object Detection in Hilal Detection," in 2024 12th International Conference on Cyber and IT Service Management (CITSM), 2024, pp. 1–5. https://doi.org/10.1109/CITSM64103.2024.10775779
- R. Glover and D. Richards, "SharpCap User Manual," 2023. Accessed: Jun. 14, 2026. [Online]. Available: https://docs.sharpcap.co.uk/4.1/
- S. N. Nia and F. Y. Shih, "Medical X-Ray Image Enhancement Using Global Contrast-Limited Adaptive Histogram Equalization," Intern. J. Pattern Recognit. Artif. Intell., vol. 38, no. 12, Sep. 2024. https://doi.org/10.1142/S0218001424570106
- A. Fawzi, A. Achuthan, and B. Belaton, "Adaptive Clip Limit Tile Size Histogram Equalization for Non-Homogenized Intensity Images," IEEE Access, vol. 9, pp. 164466–164492, 2021. https://doi.org/10.1109/ACCESS.2021.3134170
- G. Omarova et al., "Devising a methodology for X-ray image contrast enhancement by combining CLAHE and gamma correction," Eastern-European Journal of Enterprise Technologies, vol. 3, no. 2 (117), pp. 18–29, Jun. 2022. https://doi.org/10.15587/1729-4061.2022.258092
- W.-N. Mohd-Isa, J. Joseph, N. Hashim, and N. Salih, "Enhancement of digitized X-ray films using Contrast-Limited Adaptive Histogram Equalization (CLAHE)," F1000Res., vol. 10, p. 1051, Oct. 2021. https://doi.org/10.12688/F1000RESEARCH.73236.1
- F. Zhang, Y. Li, S. You, and Y. Fu, "Learning Temporal Consistency for Low Light Video Enhancement from Single Images," in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, Jun. 2021, pp. 4965–4974. https://doi.org/10.1109/CVPR46437.2021.00493
- C. Dong, Z. Cao, T. Qi, K. Wu, Y. Gao, and F. Tang, "Row–Column Separated Attention Based Low‐Light Image/Video Enhancement," Computer Graphics Forum, vol. 43, no. 6, Sep. 2024. https://doi.org/10.1111/cgf.15192
- J. Nowisz, M. Kopania, and A. Przelaskowski, "Realtime flicker removal for fast video streaming and detection of moving objects," Multimed. Tools Appl., vol. 80, no. 10, pp. 14941–14960, Apr. 2021. https://doi.org/10.1007/s11042-020-10385-8
- N. Miller, F. Leon, J. Tan, and L. Irvin, "Flicker: A review of temporal light modulation stimulus, responses, and measures," Lighting Research & Technology, vol. 55, no. 1, pp. 5–35, Jan. 2023. https://doi.org/10.1177/14771535211069482
- M. Perz, D. Sekulovski, I. Vogels, and I. Heynderickx, "Quantifying the Visibility of Periodic Flicker," LEUKOS - Journal of Illuminating Engineering Society of North America, vol. 13, no. 3, pp. 127–142, Jul. 2017. https://doi.org/10.1080/15502724.2016.1269607
- B. Deegan, "A review of IEEE P2020 flicker metrics," Electronic Imaging, vol. 34, no. 16, pp. 108-1-108–6, Jan. 2022. https://doi.org/10.2352/EI.2022.34.16.AVM-108
- J. Zhang, Z. V. Beliaeva, and Y. Huang, "Accuracy–Efficiency Trade-Off: Optimizing YOLOv8 for Structural Crack Detection," Sensors, vol. 25, no. 13, p. 3873, Jun. 2025. https://doi.org/10.3390/s25133873
- A. M. Metry, M. S. Mostafa, and H. M. Ebied, "Evaluating YOLOv8 Variants for Object Detection in Satellite Image," International Journal of Intelligent Computing and Information Sciences, vol. 25, no. 2, pp. 18–31, Jun. 2025. https://doi.org/10.21608/ijicis.2025.374419.1387
- M. Paiano, S. Martina, C. Giannelli, and F. Caruso, "Transfer learning with generative models for object detection on limited datasets," Mach. Learn. Sci. Technol., vol. 5, no. 3, p. 035041, Sep. 2024. https://doi.org/10.1088/2632-2153/ad65b5
- Y. Tang et al., "NEA Detection Method with Neural Network in Sidereal Tracking," Res. Astron. Astrophys., vol. 25, no. 9, p. 095003, Sep. 2025. https://doi.org/10.1088/1674-4527/ade491
- H. Rezatofighi, N. Tsoi, J. Gwak, A. Sadeghian, I. Reid, and S. Savarese, "Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression," in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, Jun. 2019, pp. 658–666. https://doi.org/10.1109/CVPR.2019.00075
- X. Wang and J. Song, "ICIoU: Improved Loss Based on Complete Intersection Over Union for Bounding Box Regression," IEEE Access, vol. 9, pp. 105686–105695, 2021. https://doi.org/10.1109/ACCESS.2021.3100414
- Y. Du et al., "StrongSORT: Make DeepSORT Great Again," IEEE Trans. Multimedia, vol. 25, pp. 8725–8737, 2023. https://doi.org/10.1109/TMM.2023.3240881
- J. Luiten et al., "HOTA: A Higher Order Metric for Evaluating Multi-object Tracking," Int. J. Comput. Vis., vol. 129, no. 2, pp. 548–578, Feb. 2021. https://doi.org/10.1007/s11263-020-01375-2
- C. Ticleanu, "Impacts of home lighting on human health," Lighting Research & Technology, vol. 53, no. 5, pp. 453–475, Aug. 2021. https://doi.org/10.1177/14771535211021064
- C. Deng, D. Chen, and Q. Wu, "Identity-Consistent Aggregation for Video Object Detection," Proceedings of the IEEE International Conference on Computer Vision, pp. 13388–13398, Aug. 2023. https://doi.org/10.1109/ICCV51070.2023.01236
References
S. Loucif, M. Al-Rajab, R. Abu Zitar, and M. Rezk, "Toward a globally lunar calendar: a machine learning-driven approach for crescent moon visibility prediction," J. Big Data, vol. 11, no. 1, p. 114, Aug. 2024. https://doi.org/10.1186/s40537-024-00979-6
M. Al-Rajab, S. Loucif, and Y. Al Risheh, "Predicting new crescent moon visibility applying machine learning algorithms," Sci. Rep., vol. 13, no. 1, p. 6674, Apr. 2023. https://doi.org/10.1038/s41598-023-32807-x
R. Muztaba, H. L. Malasan, and M. Djamal, "A Self-Construction of Automatic Crescent Detection Using Haar-Cascade Classifier and Support Vector Machine," J. Phys. Conf. Ser., vol. 2734, no. 1, p. 012007, Mar. 2024. https://doi.org/10.1088/1742-6596/2734/1/012007
R. Muztaba, H. L. Malasan, and M. Djamal, "Deep learning for crescent detection and recognition: Implementation of Mask R-CNN to the observational Lunar dataset collected with the Robotic Lunar Telescope System," Astronomy and Computing, vol. 45, p. 100757, Oct. 2023. https://doi.org/10.1016/j.ascom.2023.100757
R. Muztaba, H. L. Malasan, and M. Djamal, "Development of an automated Moon observation system using the ALTS-07 Robotic Telescope: 2. Progress report on standard contrast enhancement of Moon crescent image with OpenCV," J. Phys. Conf. Ser., vol. 2214, no. 1, p. 012004, Feb. 2022. https://doi.org/10.1088/1742-6596/2214/1/012004
A. N. Zulkeflee et al., "Detection of a new crescent moon using the Maximally Stable Extremal Regions (MSER) technique," Astronomy and Computing, vol. 41, p. 100651, Oct. 2022. https://doi.org/10.1016/j.ascom.2022.100651
Z. Yuan et al., "CLAHE-Based Low-Light Image Enhancement for Robust Object Detection in Overhead Power Transmission System," in IEEE Transactions on Power Delivery, vol. 38, no. 3, pp. 2240-2243, June 2023. https://doi.org/10.1109/TPWRD.2023.3269206
W. N. J. Hj Wan Yussof, M. Man, R. Umar, A. N. Zulkeflee, E. A. Awalludin, and N. Ahmad, "Enhancing Moon Crescent Visibility Using Contrast-Limited Adaptive Histogram Equalization and Bilateral Filtering Techniques," Journal of Telecommunications and Information Technology, vol. 87, no. 1, pp. 3–13, Mar. 2022. https://doi.org/10.26636/jtit.2022.155721
K. Hu, Y. Meng, Z. Liao, L. Tang, and X. Ye, "Enhancing Underwater Video from Consecutive Frames While Preserving Temporal Consistency," J. Mar. Sci. Eng., vol. 13, no. 1, p. 127, Jan. 2025. https://doi.org/10.3390/jmse13010127
G. Potvin and D. McGaughey, "Cascading auto-regressive exponential smoothing of image sequences for reducing turbulence induced motion," Optics Continuum, vol. 2, no. 3, p. 579, Mar. 2023. https://doi.org/10.1364/OPTCON.481487
Z. Wang et al., "YOLOv8‐DBW: An Improved High‐Accuracy Fast Landslide Detection Model," Transactions in GIS, vol. 29, no. 1, Feb. 2025. https://doi.org/10.1111/TGIS.70021
R. Sapkota et al., "YOLO advances to its genesis: a decadal and comprehensive review of the You Only Look Once (YOLO) series," Artif. Intell. Rev., vol. 58, no. 9, p. 274, Jun. 2025. https://doi.org/10.1007/s10462-025-11253-3
K. Hulliyah, D. Hafidzulrahman, N. Anggraini, L. K. Wardhani, and M. F. Akter Min Gali, "Comparison of You Only Look Once (YOLO) Algorithm Version 5 and Version 8 as Object Detection in Hilal Detection," in 2024 12th International Conference on Cyber and IT Service Management (CITSM), 2024, pp. 1–5. https://doi.org/10.1109/CITSM64103.2024.10775779
R. Glover and D. Richards, "SharpCap User Manual," 2023. Accessed: Jun. 14, 2026. [Online]. Available: https://docs.sharpcap.co.uk/4.1/
S. N. Nia and F. Y. Shih, "Medical X-Ray Image Enhancement Using Global Contrast-Limited Adaptive Histogram Equalization," Intern. J. Pattern Recognit. Artif. Intell., vol. 38, no. 12, Sep. 2024. https://doi.org/10.1142/S0218001424570106
A. Fawzi, A. Achuthan, and B. Belaton, "Adaptive Clip Limit Tile Size Histogram Equalization for Non-Homogenized Intensity Images," IEEE Access, vol. 9, pp. 164466–164492, 2021. https://doi.org/10.1109/ACCESS.2021.3134170
G. Omarova et al., "Devising a methodology for X-ray image contrast enhancement by combining CLAHE and gamma correction," Eastern-European Journal of Enterprise Technologies, vol. 3, no. 2 (117), pp. 18–29, Jun. 2022. https://doi.org/10.15587/1729-4061.2022.258092
W.-N. Mohd-Isa, J. Joseph, N. Hashim, and N. Salih, "Enhancement of digitized X-ray films using Contrast-Limited Adaptive Histogram Equalization (CLAHE)," F1000Res., vol. 10, p. 1051, Oct. 2021. https://doi.org/10.12688/F1000RESEARCH.73236.1
F. Zhang, Y. Li, S. You, and Y. Fu, "Learning Temporal Consistency for Low Light Video Enhancement from Single Images," in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, Jun. 2021, pp. 4965–4974. https://doi.org/10.1109/CVPR46437.2021.00493
C. Dong, Z. Cao, T. Qi, K. Wu, Y. Gao, and F. Tang, "Row–Column Separated Attention Based Low‐Light Image/Video Enhancement," Computer Graphics Forum, vol. 43, no. 6, Sep. 2024. https://doi.org/10.1111/cgf.15192
J. Nowisz, M. Kopania, and A. Przelaskowski, "Realtime flicker removal for fast video streaming and detection of moving objects," Multimed. Tools Appl., vol. 80, no. 10, pp. 14941–14960, Apr. 2021. https://doi.org/10.1007/s11042-020-10385-8
N. Miller, F. Leon, J. Tan, and L. Irvin, "Flicker: A review of temporal light modulation stimulus, responses, and measures," Lighting Research & Technology, vol. 55, no. 1, pp. 5–35, Jan. 2023. https://doi.org/10.1177/14771535211069482
M. Perz, D. Sekulovski, I. Vogels, and I. Heynderickx, "Quantifying the Visibility of Periodic Flicker," LEUKOS - Journal of Illuminating Engineering Society of North America, vol. 13, no. 3, pp. 127–142, Jul. 2017. https://doi.org/10.1080/15502724.2016.1269607
B. Deegan, "A review of IEEE P2020 flicker metrics," Electronic Imaging, vol. 34, no. 16, pp. 108-1-108–6, Jan. 2022. https://doi.org/10.2352/EI.2022.34.16.AVM-108
J. Zhang, Z. V. Beliaeva, and Y. Huang, "Accuracy–Efficiency Trade-Off: Optimizing YOLOv8 for Structural Crack Detection," Sensors, vol. 25, no. 13, p. 3873, Jun. 2025. https://doi.org/10.3390/s25133873
A. M. Metry, M. S. Mostafa, and H. M. Ebied, "Evaluating YOLOv8 Variants for Object Detection in Satellite Image," International Journal of Intelligent Computing and Information Sciences, vol. 25, no. 2, pp. 18–31, Jun. 2025. https://doi.org/10.21608/ijicis.2025.374419.1387
M. Paiano, S. Martina, C. Giannelli, and F. Caruso, "Transfer learning with generative models for object detection on limited datasets," Mach. Learn. Sci. Technol., vol. 5, no. 3, p. 035041, Sep. 2024. https://doi.org/10.1088/2632-2153/ad65b5
Y. Tang et al., "NEA Detection Method with Neural Network in Sidereal Tracking," Res. Astron. Astrophys., vol. 25, no. 9, p. 095003, Sep. 2025. https://doi.org/10.1088/1674-4527/ade491
H. Rezatofighi, N. Tsoi, J. Gwak, A. Sadeghian, I. Reid, and S. Savarese, "Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression," in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, Jun. 2019, pp. 658–666. https://doi.org/10.1109/CVPR.2019.00075
X. Wang and J. Song, "ICIoU: Improved Loss Based on Complete Intersection Over Union for Bounding Box Regression," IEEE Access, vol. 9, pp. 105686–105695, 2021. https://doi.org/10.1109/ACCESS.2021.3100414
Y. Du et al., "StrongSORT: Make DeepSORT Great Again," IEEE Trans. Multimedia, vol. 25, pp. 8725–8737, 2023. https://doi.org/10.1109/TMM.2023.3240881
J. Luiten et al., "HOTA: A Higher Order Metric for Evaluating Multi-object Tracking," Int. J. Comput. Vis., vol. 129, no. 2, pp. 548–578, Feb. 2021. https://doi.org/10.1007/s11263-020-01375-2
C. Ticleanu, "Impacts of home lighting on human health," Lighting Research & Technology, vol. 53, no. 5, pp. 453–475, Aug. 2021. https://doi.org/10.1177/14771535211021064
C. Deng, D. Chen, and Q. Wu, "Identity-Consistent Aggregation for Video Object Detection," Proceedings of the IEEE International Conference on Computer Vision, pp. 13388–13398, Aug. 2023. https://doi.org/10.1109/ICCV51070.2023.01236