MonuSegFormer: A Hybrid Swin-Transformer Architecture for Semantic Segmentation of Moroccan Cultural Heritage Monuments.
Ouail Choukhairi, Mouad Choukhairi, Ali Choukri, Youssef Fakhri
Laboratory of Computer Science Research (LaRI), Department of Computer Science, Ibn Tofail University, Kénitra 14000, Morocco.
Key points
From the paper's conclusion- We introduce MonuSegFormer, a heritage-specific hybrid architecture coupling a pretrained Swin-B encoder (ImageNet-22K) with a Multi-Scale Atrous Fusion (MSAF) module and a CBAM-augmented progressive decoder.
Abstract
Semantic segmentation of architectural elements in cultural heritage sites lies at the intersection of computer vision and digital preservation. Moroccan historical monuments spanning mosques, madrasas, royal gates (babs), and mausoleums across Fez, Rabat, Marrakech, Meknes, and Tetouan present unique challenges, including extreme texture ambiguity between weathered wall surfaces and background, pronounced multi-scale variation from individual window and door openings to full rooftop surfaces spanning tens of metres, and severe class imbalance. We introduce MonuSegFormer, a heritage-specific hybrid architecture coupling a pretrained Swin-B encoder (ImageNet-22K) with a Multi-Scale Atrous Fusion (MSAF) module and a CBAM-augmented progressive decoder. Evaluated on the Moroccan Monuments Dataset (MMD, 2686 annotated RGB images, 5 semantic classes, 5 cities) on the held-out test set (403 images), MonuSegFormer achieves mIoU = 81.7%, outperforming SegFormer-B5 (76.4%), Mask2Former (78.9%), and DeepLabV3+ (71.3%). A composite CE+Dice+Focal loss with class-balanced weights addresses severe class imbalance, yielding the largest gains on the minority classes Door (+5.3 p.p.) and Window (+5.3 p.p.) over the next-best Mask2Former. All qualitative results are produced by real trained-model inference on held-out test images.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Multi-Scale Gated Attention Transformer-Based Defect Detection for Historical Buildings: A Case Study of the Kaifeng Wall (Ming and Qing Dynasties, China)International Journal of Architectural Heritage · 2025
- A Benchmark for Cultural-Heritage Deterioration Segmentation: Semi-Supervised Baselines, Auto-Discovery, and Calibration-Aware EvaluationJournal on Computing and Cultural Heritage · 2026
- Sustainable artificial intelligence for historic building components classification: a case of UNESCO world heritage site in Congonhas, BrazilJournal of Cultural Heritage Management and Sustainable Development · 2026
- Efficient on-device damage segmentation for cultural heritage using pruning and knowledge distillationJournal of Cultural Heritage · 2025
- Automatic Generation of Two-Dimensional Façade Representations of Heritage Buildings Using Image-to-Image Translation Models: A Case Study in Arequipa, PeruArchitecture · 2026
- Do 3D Point Representations Encode Architectural Functions? Probing Supervised and Pretrained Models on Urban FacadesarXiv · 2026