NEWS

LEAKAGE-FREE EVALUATION OF MASK R-CNN FOR FIRE REGION SEGMENTATION IN STILL IMAGES: ACCURACY AND FAILURE MODES


(Received: 7-Sep.-2026, Revised: 4-Nov.-2026 , Accepted: 5-Nov.-2026)
Public fire datasets are built partly from video, so the same scene repeats many times. Splitting such images at random leaves near-copies in both the training and test sets, which makes accuracy look better than it is. We hashed 2,164 labeled images, grouped visually similar frames into 1,319 scene groups and split by group rather than by image. Under a random split, 49.1% of test images had a near-copy in training and over five training seeds mask AP was 7.1% higher than on the leakage-free split (0.561 ± 0.005 against 0.524 ± 0.005). Within the random split, the same models scored 0.632 on test images with a training near-copy and 0.497 on the others. On the leakage-free test set of 323 images, Mask R-CNN with a ResNet-50 FPN backbone reached a mask AP@[0.50:0.95] of 0.524 ± 0.005 and AP@0.50 of 0.808, with pixel IoU 0.739 and Dice 0.850, at about 27 FPS on a laptop GPU. The main weakness is small fire: the model does much worse on small fire regions than on large ones (mask AP 0.301 against 0.670). Over-segmentation is rare (1.5% to 4.0% of test images per run) and most of it covers real flames that the ground-truth labels do not include.

[1] W. Phillips III, M. Shah and N. da Vitoria Lobo, "Flame Recognition in Video," Pattern Recognition. Letter, vol. 23, no. 1–3, pp. 319–327, DOI: 10.1016/S0167-8655(01)00135-0, Jan. 2002.

[2] T.-H. Chen, P.-H. Wu and Y.-C. Chiou, "An Early Fire-detection Method Based on Image Processing," Proc. of the 2004 Int. Conf. on Image Processing (ICIP), pp. 1707–1710, DOI: 10.1109/ICIP.2004.1421401, Singapore, Nov. 2004.

[3] T. Çelik and H. Demirel, "Fire Detection in Video Sequences Using a Generic Color Model," Fire Safety Journal, vol. 44, no. 2, pp. 147–158, DOI: 10.1016/j.firesaf.2008.05.005, Feb. 2009.

[4] B. U. Töreyin, Y. Dedeoğlu, U. Güdükbay and A. E. Çetin, "Computer Vision Based Method for Real-time Fire and Flame Detection," Pattern Recognition Letter, vol. 27, no. 1, pp. 49–58, Jan. 2006.

[5] Y. H. Habiboğlu, O. Günay and A. E. Çetin, "Covariance Matrix-based Fire and Flame Detection Method in Video," Machine Vision and Applications, vol. 23, no. 6, pp. 1103–1113, DOI: 10.1007/s00138-011-0369-1, Nov. 2012.

[6] B. C. Ko, K.-H. Cheong and J.-Y. Nam, "Fire Detection Based on Vision Sensor and Support Vector Machines," Fire Safety Journal, vol. 44, no. 3, pp. 322–329, DOI: 10.1016/j.firesaf.2008.07.006, 2009.

[7] D. Y. T. Chino, L. P. S. Avalhais, J. F. Rodrigues and A. J. M. Traina, "BoWFire: Detection of Fire in Still Images by Integrating Pixel Color and Texture Analysis," Proc. of the 2015 28th SIBGRAPI Conf. on Graphics, Patterns and Images, pp. 95–102. doi: 10.1109/SIBGRAPI.2015.19, Aug. 2015.

[8] O. Ronneberger, P. Fischer and T. Brox, "U-Net: convolutional networks for biomedical image segmentation," in Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, vol. 9351, N. Navab, J. Hornegger, W. M. Wells and A. F. Frangi, Eds., Cham: Springer International Publishing, 2015, pp. 234–241. doi: 10.1007/978-3-319-24574-4_28.

[9] L.-C. Chen, Y. Zhu, G. Papandreou, F. Schroff and H. Adam, "Encoder-decoder with Atrous Separable Convolution for Semantic Image Segmentation," Proc. of the European Conf. on Computer Vision (ECCV 2018), vol. 11211, pp. 833–851, DOI: 10.1007/978-3-030-01234-2_49, 2018.

[10] T. Toulouse, L. Rossi, A. Campana, T. Celik and M. A. Akhloufi, "Computer Vision for Wildfire Research: An Evolving Image Dataset for Processing and Analysis," Fire Safety J., vol. 92, pp. 188–194, DOI: 10.1016/j.firesaf.2017.06.012, Sep. 2017.

[11] A. Shamsoshoara, F. Afghah, A. Razi, L. Zheng, P. Z. Fulé and E. Blasch, "Aerial Imagery Pile Burn Detection Using Deep Learning: The FLAME Dataset," Computer Networks, vol. 193, p. 108001, DOI: 10.1016/j.comnet.2021.108001, Jul. 2021.

[12] R. Ghali, M. A. Akhloufi and W. S. Mseddi, "Deep Learning and Transformer Approaches for UAV-based Wildfire Detection and Segmentation," Sensors, vol. 22, no. 5, p. 1977, DOI: 10.3390/s22051977, Mar. 2022.

[13] G. Perrolas, M. Niknejad, R. Ribeiro and A. Bernardino, "Scalable Fire and Smoke Segmentation from Aerial Images Using Convolutional Neural Networks and Quad-tree Search," Sensors, vol. 22, no. 5, p. 1701, DOI: 10.3390/s22051701, Feb. 2022.

[14] H. Harkat, J. Nascimento, A. Bernardino and H. Thariq Ahmed, "Assessing the Impact of the Loss Function and Encoder Architecture for Fire Aerial Images Segmentation Using DeepLabv3+," Remote Sensing, vol. 14, no. 9, p. 2023, DOI: 10.3390/rs14092023, Apr. 2022.

[15] Z. Guan, X. Miao, Y. Mu, Q. Sun, Q. Ye and D. Gao, "Forest Fire Segmentation from Aerial Imagery Data Using an Improved Instance Segmentation Model," Remote Sensing, vol. 14, no. 13, p. 3159, DOI: 10.3390/rs14133159, Jul. 2022.

[16] K. He, G. Gkioxari, P. Dollar and R. Girshick, "Mask R-CNN," Proc. of the 2017 IEEE Int. Conf. on Computer Vision (ICCV), pp. 2980–2988, DOI: 10.1109/ICCV.2017.322, Venice, Oct. 2017.

[17] K. He, X. Zhang, S. Ren and J. Sun, "Deep Residual Learning for Image Recognition," Proc. of the 2016 IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, DOI: 10.1109/CVPR.2016.90, Las Vegas, USA, Jun. 2016.

[18] T.-Y. Lin, P. Dollar, R. Girshick, K. He, B. Hariharan and S. Belongie, "Feature Pyramid Networks for Object Detection," Proc. of the 2017 IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pp. 936–944. doi: 10.1109/CVPR.2017.106, Honolulu, Jul. 2017.

[19] T.-Y. Lin et al., "Microsoft COCO: Common Objects in Context," Proc. of the European Conference on Computer Vision (ECCV 2014), vol. 8693, pp. 740–755, DOI: 10.1007/978-3-319-10602-1_48, 2014.

[20] S. F. A. Abuowaida et al., "A Novel Instance Segmentation Algorithm Based on Improved Deep Learning Algorithm for Multi-object Images," Jordanian Journal of Computers and Information Technology (JJCIT), vol. 7, no. 1, pp. 74–88, DOI: 10.5455/jjcit.71-1603701313, Mar. 2021.

[21] R. Ghali et al., "Wildfire Segmentation Using Deep Vision Transformers," Remote Sensing, vol. 13, no. 17, p. 3527, DOI: 10.3390/rs13173527, Sep. 2021.

[22] S. Kaufman, S. Rosset, C. Perlich and O. Stitelman, "Leakage in Data Mining: Formulation, Detection and Avoidance," ACM Trans. Knowl. Discov. Data (TKDD), vol. 6, no. 4, pp. 1–21, Dec. 2012.

[23] B. Barz and J. Denzler, "Do We Train on Test Data? Purging CIFAR of Near-duplicates," Journal of Imaging, vol. 6, no. 6, p. 41, DOI: 10.3390/jimaging6060041, Jun. 2020.

[24] E. Yagis et al., "Effect of Data Leakage in Brain MRI Classification Using 2D Convolutional Neural Networks," Scientific Reports, vol. 11, no. 1, p. 22544, DOI: 10.1038/s41598-021-01681-w, Nov. 2021.

[25] I. E. Tampu, A. Eklund and N. Haj-Hosseini, "Inflation of Test Accuracy Due to Data Leakage in Deep Learning-based Classification of OCT Images," Scientific Data, vol. 9, no. 1, p. 580, Sep. 2022.

[26] R. B. D. Figueiredo and H. A. Mendes, "Analyzing Information Leakage on Video Object Detection Datasets by Splitting Images into Clusters with High Spatiotemporal Correlation," IEEE Access, vol. 12, pp. 47646–47655, DOI: 10.1109/ACCESS.2024.3383047, 2024.

[27] C. Zauner, Implementation and Benchmarking of Perceptual Image Hash Functions, Upper Austria Univ. of Applied Sci., Hagenberg, [Online], Available: http://phash.org/docs/pubs/thesis_zauner.pdf, 2012.

[28] S. McKeown and W. J. Buchanan, "Hamming Distributions of Popular Perceptual Hashing Techniques," Forensic Sci. Int. Digit. Investig., vol. 44, p. 301509, DOI: 10.1016/j.fsidi.2023.301509, Mar. 2023.

[29] P. Ramos et al., "Data Leakage in Visual Datasets," Proc. of the IEEE/CVF Int. Conf. on Computer Vision Workshops (ICCVW), pp. 6309–6319, DOI: 10.1109/ICCVW69036.2025.00661, Honolulu, USA, 2025.

[30] Y. K. Adimoolam, C. Poullis and M. Averkiou, "Data Leakage Detection and De-duplication in Large Scale Geospatial Image Datasets," Proc. of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 72–81, 2026.

[31] M. A. A. Babu, S. K. Pandey, D. Durisic, A. C. Koppisetty and M. Staron, "D-LeDe: A Data Leakage Detection Method for Automotive Perception Systems," Proc. of the 11th Int. Conf. on Vehicle Technology and Intelligent Transport Systems (VEHITS), pp. 210–221, DOI: 10.5220/0013476700003941, 2025.

[32] K. Patel and S. A. Shah, leakaudit: detect and audit train/test leakage from near-duplicate images. (Jul. 2026). R package version 0.1.0. CRAN. [Online]. Available: https://CRAN.R-project.org/package=leakaudit.

[33] Hankwenyx, "Fire-instance Segmentation-dataset," GitHub, [Online], Available: https://github.com/hankwenyx/Fire-Instance-Segmentation-Dataset, Oct. 2025.

[34] Abdullah, "Leakage-free Data Partitioning for Instance Segmentation," GitHub, [Online], Available: https://github.com/abdullah-shekha/leakagefree-firesegmentation.