MonuMAI: Dataset, deep learning pipeline and citizen science based app for monumental heritage taxonomy and classification
Abstract
Instituto Interuniversitario de Investigación en Data Science and Computational Intelligence (DaSCI)
Full text
MonuMAI: Dataset, deep learning pipeline and citizen science based app for monumental heritage taxonomy and classification Alberto Lamas1, Siham Tabik1, Policarpo Cruz2, Rosana Montes1, ´ Alvaro Mart´ ınez-Sevilla1, Teresa Cruz3, and Francisco Herrera1 1Andalusian Research Institute in Data Science and Computational Intelligence, University of Granada, 18071 Granada, Spain 2Art History Department, University of Granada, 18071 Granada, Spain 3Descubre Foundation, 18016 Granada, Spain. email: [email protected].es, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected].es September 1, 2020 Abstract An important part of art history can be discovered through the visual information in monument facades. However, the analysis of this visual information, i.e, morphology and architectural elements, requires high expert knowledge. An automatic system for identifying the architectural style or detecting the architectural elements of a monument based on one image will certainly help improving our knowledge in art and history. Building such tool is challenging as some styles share architectural elements, the bad conservation state of some monuments and the noise included in the image itself. The aim of this paper is to introduce MonuMAI (Monument with Mathematics and Artificial Intelligence) framework. In particular, (i) we designed MonuMAI dataset rich with expert knowledge considering the proposed architectural styles taxonomy and key elements relationship, which allows addressing several tasks, e.g., monument style classification and architectural elements detection, (ii) we developed MonuMAI deep learning pipeline based on lightweight MonuNet architecture for monument style classification and MonuMAI Key Elements Detection (MonuMAI-KED) model, and (iii) we built citizen science based MonuMAI mobile app that uses the proposed MonuMAI deep learning pipeline trained on MonuMAI dataset for performing in real life conditions. Our experiments show that both MonuNet architecture and the detection model achieve very good results under real life conditions. Index terms— Convolutional Neural Networks, Architectural information extraction, architectural style classification, MonuMAI, monumental heritage. 1
1 Introduction The knowledge of the architectural style and elements of monumental heritage is of paramount importance in several fields, in art, art history, tourism 1, architecture, geometry, academia and culture 2. However, recognizing the style or facade elements of historical monuments is reachable only to very few experts. Machine learning based automatic systems [18, 24] have been barely used to address such task due to the difficulty in obtaining expert knowledge. Indeed, there is neither an established monumental heritage taxonomy for architectural styles and elements, nor automatic tools to help identifying the style or architectural elements of a monument based on the image of its facade. Most previous works on architectural style identification combine traditional machine learning with computer vision techniques [19, 28, 3], which implies a high level of human supervision and produces models with a reduced generalization capacity [18, 24, 27]. For example, the authors in [24, 27] first use Deformable Part-based Model (DPM) with histogram of oriented gradients (HOG) for features extraction then apply support vector machine (SVM) for classification. Similarly, the authors in [18] addressed the architectural style classification of three styles, Romanesque, Gothic and Baroque by first extracting features with Scale-Invariant Feature Transform (SIFT) then using SVM for classification. The authors in [14] used state-of-the-art deep learning (DL) models for the classification of architectural elements such as columns, bell tower, apse, or altar among others. The proposed approach does not identify the architectural style in the input image and can not be used under real life conditions as it requires manual intervention. The above approaches provide good accuracy but suffer from strong constraints: i) unstructured approaches that are difficult to scale to more styles or elements [3, 27], ii) lack of robustness to different perspectives in pictures [19], and/or iii) unable to perform in real-life conditions [14, 28, 24], i.e., presence of other elements such as trees, people, traffic signals in the input image.. The recent progress in DL networks [8, 15] in general and Convolutional Neural Networks (CNNs) [7] in particular has made several breakthrough in many computer vision tasks, in image classification [22], object detection in images [2, 11, 12] and semantic segmentation [9, 13, 26]. CNNs present a high potential for architectural feature extraction in images [25]. Their ability to learn textures, patterns and colors make them suitable for analytical vision tasks, such as the architectural style classification and the detection of architectural elements in a monument facade image. Nevertheless, identifying the style or detecting architectural elements of a given monumental heritage facade based on an image of its facade is challenging due to the next reasons: •Some styles may share the same key characteristic architectural elements. •The facade may contain external elements to the main style because they were 1UNESCO heritage tourism program: whc.unesco.org/uploads/activities/documents/activity-669-7 2UNESCO heritage education program: whc.unesco.org/en/wheducation
appended during restoration process or during their very long construction process. •The conservation state of some monuments can make the identification process more difficult. •Noise, darkness and shadow in the image itself may hide some of the characteristic elements of the style. •The image perspective can deform some similar geometric shapes, e.g. arches. To build an automatic architectural style classification model and a key architectural element detection model, it is essential to create a dataset that takes into account all the aforementioned challenges. Accordingly, this work addresses the problem by means of MonuMAI (Monument with Mathematics and Artificial Intelligence) framework considering three main axis. Firstly, to design MonuMAI dataset, an annotated monument image dataset based on a new monumental heritage taxonomy of architectural key elements and styles. Secondly, to develop MonuMAI deep learning pipeline for identifying architectural styles or detecting architectural elements in monument images. Thirdly, to provide citizen science based MonuMAI app which integrates both models for performing in real life conditions. In particular, the contributions of this work can be summarized as follows: •To design an monumental heritage image dataset taking into account that: –We define the first tree taxonomy that captures the relationship between four of the most distinguishable architectural styles in Europe, Hispanic- Muslim, Gothic, Renaissance, and Baroque, and the key elements that characterize each style. The monumental heritage taxonomy is defined under a close collaboration with three art experts. –We design a multi-task MonuMAI dataset, a quality multi-task monument dataset with two types of annotation which make it suitable not only for classification and detection tasks but also for analyzing explanation methods. •To develop MonuMAI deep learning pipeline considering that: –We develop a lightweight deep CNN called MonuNet architecture, for monument style classification. MonuNet architecture achieves a good balance between the number of layers and trainable parameters along with a low computational cost that is fundamental on low performance devices such as smartphones. –We propose a key architectural element detection model, called MonuMAI- KED model, based on Faster R-CNN [17] object detection mode and ResNet- 101 [5] CNN-based model. The detected elements are horseshoe arch, lobed arch, flat arch, pointed arch, ogee arch, trefoil arch, gothic pinnacle, porthole, lintelled doorway, rounded arch, triangular pediment (or pointed pediment), segmental pediment, serliana, broken pediment, and solomonic column.
•To provide MonuMAI app 3, a free tool for the automatic extraction of architectural information through the architectural style classification and key elements detection. This app is available for smartphone and via web, as a citizen science based MonuMAI app it helps spreading art knowledge and collecting images to further increase MonuMAI dataset. Our experiments show that both MonuNet architecture and the key architectural element detection models achieve very good results including in real-life conditions. This paper is organized as follows. Section 2 provides the new taxonomy based on architectural styles and elements. Section 3 describes MonuMAI image dataset, a new two-fold dataset for classification and detection. Section 4 shows the process for finding the optimal lightweight model for architectural style classification. Section 5 presents MonuMAI app, a mobile application for the general public. Section 6 gives the experimental setup and results that show the suitability of DL models on the new MonuMAI dataset. Lastly, Section 7 gives the final conclusions and future works. 2 Monumental heritage taxonomy In each period of history, man has adopted a different way of understanding architecture depending on socio-cultural and technical considerations. Each architectural style uses a series of recognizable elements from the appearance and variations of basic elements, either of structural nature (supports, covering system) or ornamental nature (decorative types). In general, humans determine the class of an object by first identifying the key elements in that object. Based on this intuition, our approach is based on the way an expert identifies the style of a monument. We propose a new tree taxonomy that defines the relationships of monumental heritage between the different styles and their characteristic elements. Figure 1: The evolution of the four considered styles over the last eleven centuries We consider four of the most distinctive architectural styles in Europe, Hispanic- Muslim, Gothic, Renaissance, and Baroque, from the period between VIII and XVIII centuries (Figure 1). These styles cover most of the middle Ages (V-XV century) and Modern Ages (XV-XVIII century). The architectural elements of monuments cover three types: brackets, ornaments and archs. Hispanic-Muslim style is characterized by horseshoe, lobed arches and flat arch ornament. Gothic style is characterized by pointed, ogee, trefoil arches and Gothic pinnacle. Renaissance style is characterized by porthole, lintelled doorway, rounded arches, triangular pediment, segmental pediment ornaments, and serliana bracket. Baroque 3monumai.ugr.es
style is characterized by broken pediment ornament, solomonic column bracket, porthole, lintelled doorway, and rounded arches. Figure 2 illustrates the characteristic elements of each style. Horseshoe arch Lobed arch Flat arch Pointed arch Ogee arch Trefoil arch Serliana Triangular/pointed pediment Segment pediment Gothic pinnacle Rounded arch Lintelled doorway Porthole Solomonic column Broken pediment Figure 2: Fifteen architectural key elements considered in this work to identify the Hispanic-Muslim, Gothic, Renaissance, and Baroque styles. Based on this information, we built a tree-structured taxonomy, as shown in Figure 3, in which the first level nodes are the styles and the second level nodes are the characteristic elements of each style. Lower levels (tree leaves) represent variations of some key element. The main elements of each style have been selected, but there are inevitable limitations and overlaps. On the one hand, architectural styles are not independent, they have a beginning, an evolution and end, interacting with the preceding and following style periods. On the other hand, some elements are used in more than one style and hence for more accurate recognition it is necessary to detect and display them together. 3 MonuMAI: a multi-task monument image dataset We built MonuMAI dataset, a new public dataset 4, rich in expert knowledge. It was annotated by three experts using two types of annotations which makes it useful for several tasks, for monument style classification (Section 3.1), for key elements detection (Section 3.2), and other potential applications. 4dasci.es/transferencia/dascii-hub/open-data/monumai-open-data
Architectural style Hispanicmuslim Flat arch Horseshoe arch Caliph Concentric Swollen Straighttoothed keystone Fringed Intrados scalloped Extrados scalloped Twinned Lobed arch Curtain Mocarabe Threelobed horseshoe Multifoil Spiky ornamented Gothic Trefoil arch Gothic pinnacle Ogee arch Diminished Flaming Semicircular Pointed arch Equilateral Diminished Lancet Renaissance Triangular pediment Segmental pediment Serliana Rounded arch Semicircular Flared Lintelled doorway Open Crimped flat arch Porthole Baroque Broken pediment Triangular Segmental Swan neck Open Recessed pediment Triangular recessed Curved recessed Solomonic column Figure 3: A tree-structured taxonomy of the four considered styles (second level nodes), their characteristic elements (third level nodes), and subtypes of every element (tree leaves). 3.1 MonuMAI dataset for architectural style classification In practice, architectural styles cannot be found in their pure state for two reasons: •Some styles such as renaissance and baroque share common characteristic elements. •Over time monuments may suffer alterations by including elements from other styles. Hence, in a recent image of a monument that was built in the ancient world period, we cannot predict a pure style but rather the dominant style. MonuMAI dataset contains 1514 RGB images of monument facades of four architectural styles Hispanic-Muslim, Gothic, Renaissance, and Baroque, illustrated in Figure 4. A summary of the characteristics of MonuMAI dataset is shown in Table 1.
(a) Hispanic-Muslim (b) Renaissance (c) Gothic (d) Baroque Figure 4: Illustration of the four considered architectural styles. (a) Medina Azahara (C´ ordoba, Spain 936) represents the Hispanic-Muslim style, (b) the Royal collegiate church of Santa Mar´ ıa la Mayor (Antequera, Spain 1514) represents Renaissance style, (c) the Cathedral of Notre Dame (Par´ ıs, France 1163) represents the Gothic style and the Royal Factory of tobacco (Sevilla, Spain 1728) represents the Baroque style. Architectural style #images ratio (%) Hispanic-Muslim 327 21.6 Gothic 359 23.7 Renaissance 312 20.6 Baroque 516 34.1 1514 Table 1: Characteristics of MonuMAI architectural style classification dataset (#images represents the number of images.) The used images for building MonuMAI dataset were taken so that the monument
is centered and fills most of the image. These high quality images were selected from Internet and taken by smartphone cameras thanks to the educational MonuMAI app developed by the same authors of this paper under a citizen science project. The first annotation is actually a label of the dominant architectural style in the image, Hispanic-Muslim, Gothic, Renaissance, and Baroque. This annotation makes MonuMAI dataset useful for the task of architectural style classification. 3.2 MonuMAI dataset for key architectural elements detection Besides the label that indicates the monument style, additional expert knowledge about the existent key elements in each image is provided. The area where each characteristic element is located in the image is delimited using a bounding box and labeled using the name of one of the fifteen key elements, horseshoe arch, lobed arch, flat arch, pointed arch, ogee arch, trefoil arch, Gothic pinnacle, triangular pediment, segmental pediment, serliana, porthole, lintelled doorway, rounded arch, broken pediment, and solomonic column. The elements that have more than 60% of their pixels occluded are not included. The architectural elements annotation is illustrated in Figure 5. This type of annotation makes MonuMAI dataset suitable for the architectural elements detection task. Figure 5: Labeling framework. Architectural elements annotation (lobed arch, horseshoe arch and flat arch) provides element name and location. MonuMAI dataset includes 6650 annotated key elements distributed into the fifteen architectural element classes. A statistical analysis of these elements is shown in Table 2.
Architectural element Count Element rate Repetition ratio Architectural style Horseshoe arch 640 9.62% 2.09 Hispanic-muslim Lobed arch 148 2.23% 3.44 Hispanic-muslim Flat arch 161 2.42% 1.42 Hispanic-muslim Pointed arch 495 7.44% 2.03 Gothic Ogee arch 238 3.58% 1.58 Gothic Trefoil arch 57 0.87% 1.36 Gothic Gothic pinnacle 346 5.20% 4.81 Gothic Triangular pediment 743 11.17% 2.07 Renaissance Segmental pediment 258 3.88% 1.91 Renaissance Serliana 77 1.16% 1.13 Renaissance Porthole 392 5.89% 3.27 Renaissance/Baroque Lintelled doorway 1150 17.29% 2.73 Renaissance/Baroque Rounded arch 1044 15.70% 1.87 Renaissance/Baroque Broken pediment 604 9.08% 1.41 Baroque Solomonic column 297 4.47% 3.67 Baroque Table 2: Characteristics of the architectural styles dataset, where count is the number of occurrences of an element in the dataset, element rate is the ratio between the number of occurrences of an element and the total number of all elements, repetition rate is the average number of occurrences of an element per image, only in the images where it occurs at least once. By analyzing the key architectural elements in images of MonuMAI dataset, we found an unbalanced number of elements classes. For example, elements such as Trefoil arch or Serliana represents only 0.87% and 1.16% of total elements respectively. In contrast, elements such as Triangular pediment, Rounded arch, or Lintelled doorway has higher rates, represent 11.17%,15.7%, and 17.29% of total elements respectively. This unbalance makes the detection of some characteristic elements more challenging. It is noteworthy the high repetition rate of several elements. Some are used as a building component which represents part of the structure such as Porthole or Lintelled doorway with 3.27 and 2.73 element repetition rates respectively. However, other frequent elements are decorative but important for an architectural style such as lobed arch to Hispanic-muslim, or Solomonic column to Baroque, with 3.44 and 3.67 elements per image respectively. Accordingly, a high element repetition rate do not always set the predominant architectural style of a monument. 4 MonuNet: optimal lightweight architectural style classification network State-of-the-art architectures such as, the latest Inception, DenseNet and ResNet, provide good performance with less efforts. However, such models contain a large volume of weights and require high computational load which make them prohibitive for small devices, e.g. smartphones and tablets. Our design of the optimal network will be guided by finding a good balance between accuracy, robustness and computation re-
The detection performance of Faster R-CNN on the 15 element classes is evaluated in terms of mAP (equation 2) and mAR (equation 3) standard metrics for object detection tasks given 100 output regions. mAP =PK i=1 APi KAPi=1 10 X r∈[0.5,...,0.95] Z1 0 p(r)dr (2) mAR =PK i=1 ARi KARi= 2 Z1 0.5 recall(o)do (3) where given Kcategories of elements, prepresents the precision and r recall define the area under the interpolated precision-recall curve for each class i. whereas ois IoU (intersection over union) in recall(o) is the corresponding recall under the recall-IoU curve for each class i. The classification models were built and evaluated using PyTorch api [16]. For the classification task, we trained models on MonuMAI dataset for the architectural style classification. As optimization algorithm, we used Stochastic Gradient Descent(SGD) and cross-entropy loss training from scratch. The data augmentation performs equal normalization at train and test, resize to 224 square images from random crop at train and center crop at test. The detection models were built and evaluated using TensorFlow [1] as back-end and its object detection api [6] as front-end. The architectural element detection we used Faster R-CNN architecture based on ResNet-101 pre-trained on COCO [10]. We fine-tuned the weights and retrain model on our dataset. As optimization method, we used SGD: momentum of 0.9, learning rate of 0.0003, and batch size of 1. All the experiments were carried out on a GPU cluster with Nvidia Titan RTX. MonuMAI dataset, pre-trained MonuNet model and all the hyper-parameters for classification and detection are available at 7. 6.2 MonuNet model analysis This section provides an exhaustive analysis of diverse well known CNNs in the task of architectural style classification, in Section 6.2.1. All these models are trained on the new built MonuMAI classification dataset. The evaluation of the new MonuNet model is given in Section 6.2.2. 6.2.1 Results of lightweight architectures We evaluated eight diverse nets in the architectural style classification task using Monu- MAI dataset. The weight, number of layers, trainable layers, FLOPs, macro-precision, macro-recall, and macro-F1 are summarized in Table 4. As we can observe from Table 4, in general, higher performance are achieved by residual connection based models. In particular, ResNet-18 provides the highest performance with 89.3% macro-precision, 88.54% macro-recall, and 88.87% macro-F1. 7github.com/ari-dasci/OD-MonuMAI
#parm(×106)#layer #lrn layer FLOPs(×109)m-prec(%) m-recall(%) m-F1(%) ResNet-18 11.69 69 41 1.82 89.30 88.54 88.87 ResNet-34 21.80 125 73 3.67 88.66 88.13 88.37 DenseNet-121 7.98 371 242 2.87 87.53 87.53 87.51 GoogleNet 7.01 197 115 1.59 87.21 87.01 87.07 ShuffleNetV2 x2.0 7.39 168 113 0.59 85.63 84.39 84.85 MobileNetV2 3.50 159 105 0.31 83.95 83.99 83.91 ShuffleNetV2 x1.0 2.28 168 113 0.15 81.60 80.34 80.79 SqueezeNet 1.0 1.24 66 26 0.35 71.06 66.85 68.37 Table 4: Characteristics and performance of the considered classification models on MonuMAI architectural style classification dataset. Performance metrics are present in terms of macro-precision (m-prec), macro-recall (m-recall), and macro-F1 score (m- F1). Characteristics are presents in terms of number of parameters (#parm), number of layers (#layers), number of learnable layers (#lrn layer), and floating point operations per second (FLOPs). Deeper and heavier models such as ResNet-34 or DenseNet-121 provide respectively 0.5% and 1.36% lower macro-F1. Notice that GoogleNet model based on stacked Inception modules is considerably lighter but provides lower performance than ReseNet- 18, 1.8% lower macro-F1. 6.2.2 MonuNet model performance and optimization MonuNet and preliminary models pursue an optimal balance between size, computation, and performance. In this section we analyse and evaluate both networks. #parm(×106)#layer #lrn layer FLOPs(×109)m-prec(%) m-recall(%) m-F1(%) Preliminary model 7.56 62 37 1.59 88.95 88.15 88.50 MonuNet 6.38 59 35 1.95 90.09 89.59 89.81 Table 5: Characteristics and performance of MonuNet model and preliminary version on MonuMAI architectural style classification dataset. MonuNet model seeks a good balance between accuracy and computation requirements as shown in Table 5. Both preliminary and MonuNet models have high performance and lower computational requirements. The preliminary model has a comparable number of layers to ResNet-18, however, it has 12.6% and 35.3% less FLOPs and number of parameters respectively with only 0.37% lower macro-F1. The best performance on MonuMAI architectural style classification is obtained by MonuNet model. The integration of the modified Inception module in the low level layers boosted the model performance up to 90.09% macro-precision, 89.59% macrorecall, and 89.81% macro-F1. MonuNet model outperforms ResNet-18 by reducing the number of parameters by 45.4%, the number of general layers by 14.5%, the number of trainable layers by 14.6%, but increasing the number of FLOPs by 7.1%. Thus, MonuNet model keeps a low computational cost (FLOPs) but minimizing the model size, which is suitable to be performed along with numerous processes and apps on smartphones. The performance of MonuNet model per each architectural style is shown in Table
6. #img Baroque Gothic Hisp-Muslim Renaissance Precision(%) Recall(%) F1(%) Baroque 516 469 10 3 34 89.50 90.89 90.19 Gothic 359 4 345 6 4 91.03 96.10 93.50 Hisp.-Muslim 327 3 12 307 5 95.05 93.88 94.46 Renaissance 312 48 12 7 245 85.07 78.53 81.67 macro 90.09 89.58 89.81 Table 6: Results of MonuNet classification model on MonuMAI architectural style classification dataset. In general, MonuNet model provides good results in all four styles. In particular, the Hispanic-Muslim style obtains the highest performance with 95.05% precision, 93.88% recall, and 94.46% F1. Unlike the Renaissance style which obtains the lowest performance, with 85.07% precision, 78.53% recall, and 81.67% F1. These differences can be explained by the fact that: •The Hispanic-Muslim monument appearance is quite distinct in architectural forms or decorative painting. •The overlapping between Renaissance and Baroque features such as shared architectural elements, or similar building characteristics make the classification difficult, as it can be seen in the confusion matrix of Table 6. The overall high performance can be explained by the quality of the dataset that includes images with high resolution, the monuments facade is centered filling most of the image area, and very few noise. More monument classification results are shown in Figure 10. As it can be seen, the style classification is accurate in many cases, but some uncertain classifications generated in adverse conditions by contextual elements, shadows, or light conditions.
Figure 10: Examples of architectural style classification in monument facades. MonuNet model is trained on MonuMAI classification dataset. 6.3 MonuMAI-KED model analysis This section analyses the performance and results of the architectural elements detection on the MonuMAI detection dataset, depicted in Section 3.2. mAP mAP[0.5] mAP[0.75] mAP S mAP M mAP L mAR mAR S mAR M mAR L 0.602 0.911 0.712 0.569 0.527 0.64 0.683 0.58 0.602 0.716 Table 7: Detection performance metrics of the architectural element detection model trained on MonuMAI key architectural elements dataset. The evaluation of the object detection model on the fifteen classes are shown in Table 7. As it can be seen, the detection model achieves an mAP of 0.6and mAR of 0.68. The performance mAP can be considered as good since the state-of-the-art detectors on COCO detection challenge with 80 classes is 0.52 taking into consideration the difference in the amount of data. Higher mAP is better.
(a) (b) Figure 11: Examples of architectural elements detection in complex scenes. Figure (a), the College of San Pablo (facade built in 1717, Granada), and figure (b), Gate of justice in Alhambra (1348, Granada). Two examples of monument images in complex scenes are shown in Figure 11. •The monument (a) shows the Faculty of Law in the College of San Pablo, which is a Baroque monument. As it can be seen, this image includes multiple types of noise, part of a tree, a road sign and low light with shadows. However the detection model is able to detect architectural elements as the characteristics Solomonic columns in low light conditions. •The image (b) shows the Royal Monastery of Cartuja, a renaissance monument. The image shows smaller elements that are correctly detected, for instance, the Segmental pediment which is distinctive of Renaissance. Additional detection results giving architectural element information are presented in Figure 12. The figure shows diverse monuments and contexts of the four architectural styles with different perspective and natural light conditions. Hence, the potential of architectural element detection based on CNNs provide outstanding results given contextual background, distance, or monument features. Despite of common elements such as pedestrians, plants in general and cars can occlude some parts of the image, or sometimes urban layout forces the perspective from which the pictures are taken. The potential of CNN based models have proved their ability to differentiate similar architectural elements even when their shapes and building features are similar. The architectural element detection performs in realistic and complex scenarios providing architectural information. In conclusion, the detection of architectural elements shows considerable performance despite external object in the background or parts of urban infrastructure.
Broken pediment Triangular pediment Lintelled doorway Ground truth: Baroque Rounded arch Broken pediment Triangular pediment Lintelled doorway Ground truth: Baroque Segmental pediment Rounded arch Ogee arch Rounded arch Trefoil arch Pointed arch Ground truth: Gothic Broken pediment Triangular pediment Lintelled doorway Ground truth: Baroque Rounded arch Ground truth: Renaissance Lintelled doorway Triangular pediment Porthole Ogee arch Rounded arch Ground truth: Gothic Flat arch Horseshoe arch Ground truth: Hispanic-muslim Lintelled doorway Ground truth: Renaissance Lintelled doorway Triangular pediment Serliana Porthole Figure 12: Examples of architectural element detection for monument facades in diverse situations, brightness, perspective, distance to monument, or urban elements. 7 Conclusion remarks This work presents MonuMAI framework that includes the three main axis proposed in this work. MonuMAI dataset designed according to the defined monumental her-
itage taxonomy, for architectural styles classification and key elements detection tasks. MonuMAI deep learning pipeline based on MonuNet architecture and MonuMAI-KED model for architectural style classification and key element detection respectively. Citizen science based MonuMAI app that integrate MonuMAI deep learning pipeline using MonuMAI dataset for performing in real life conditions. The obtained MonuNet and MonuMAI-KED models trained on MonuMAI dataset show high potential even in low quality images and provides satisfactory results in real condition scenarios as shown by MonuMAI app. Such automatic system could ease the democratization of this kind of knowledge to a much wider segment of the population by integrating it into smartphones or in combination with augmented or virtual reality applications that can be used in several fields, e.g., in tourism, teaching, or science dissemination. In conclusion, we highlight MonuMAI dataset and the monumental heritage taxonomy as primary resources for building automatic models of architectural information extraction. We also point out the potential of MonuMAI deep learning pipeline through MonuNet and MoniMAI-KED models to perform in real life conditions as it is shown by MonuMAI app. As future work, we will work on developing an embedded architecture for the architectural style classification and key elements detection. Both tasks can provide feedback to each other, implement explainable mechanisms, and move embedded model execution to smartphones. Acknowledgements This work was partially supported by the Spanish Ministry of Science and Technology under the project TIN2017-89517-P. S. Tabik was supported by the Ramon y Cajal Programme (RYC-2015-18136). References [1] Mart´ ın Abadi et al. Tensorflow: A system for large-scale machine learning. Operating Systems Design and Implementation, 16:265–283, 2016. [2] Alberto Castillo et al. Brightness guided preprocessing for automatic cold steel weapon detection in surveillance videos with deep learning. Neurocomputing, 330:151–161, 2019. [3] Wei-Ta Chu and Ming-Hung Tsai. Visual pattern discovery for architecture image classification and product image search. In Proceedings of the 2nd ACM International Conference on Multimedia Retrieval, page 27. ACM, 2012. [4] Xuanyi Dong et al. Supervision-by-registration: An unsupervised approach to improve the precision of facial landmark detectors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 360–368, 2018.
[5] Kaiming He et al. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. [6] Jonathan Huang et al. Speed/accuracy trade-offs for modern convolutional object detectors. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7310–7311, 2017. [7] Phillip Isola et al. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1125–1134, 2017. [8] Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436, 2015. [9] Yi Li et al. Fully convolutional instance-aware semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2359–2367, 2017. [10] Tsung-Yi Lin et al. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014. [11] Tsung-Yi Lin et al. Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2117– 2125, 2017. [12] Tsung-Yi Lin et al. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980–2988, 2017. [13] Hantang Liu et al. Deepfacade: a deep learning approach to facade parsing. In Proceedings of the 26th International Joint Conference on Artificial Intelligence, pages 2301–2307. AAAI Press, 2017. [14] Jose Llamas et al. Classification of architectural heritage images using deep learning techniques. Applied Sciences, 7(10):992, 2017. [15] Dhruv Mahajan et al. Exploring the limits of weakly supervised pretraining. In European Conference on Computer Vision, pages 185–201. Springer, 2018. [16] Adam Paszke et al. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, pages 8024– 8035, 2019. [17] Shaoqing Ren et al. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91–99, 2015. [18] Gayane Shalunts. Architectural style classification of building facade towers. In International Symposium on Visual Computing, pages 285–294. Springer, 2015.
[19] Gayane Shalunts, Yll Haxhimusa, and Robert Sablatnig. Classification of gothic and baroque architectural elements. In 2012 19th International Conference on Systems, Signals and Image Processing (IWSSIP), pages 316–319, April 2012. [20] Christian Szegedy et al. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1–9, 2015. [21] Christian Szegedy et al. Inception-v4, inception-resnet and the impact of residual connections on learning. In Thirty-first AAAI conference on artificial intelligence, pages 4278–4284, 2017. [22] Fei Wang et al. Residual attention network for image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3156–3164, 2017. [23] Mengwei Xu et al. A first look at deep learning apps on smartphones. arXiv preprint arXiv:1812.05448, 2018. [24] Zhe Xu et al. Architectural style classification using multinomial latent logistic regression. In European Conference on Computer Vision, pages 600–615. Springer, 2014. [25] Nianyin Zeng et al. Facial expression recognition via learning deep sparse autoencoders. Neurocomputing, 273:643–649, 2018. [26] Nianyin Zeng et al. Deep-reinforcement-learning-based images segmentation for quantitative analysis of gold immunochromatographic strip. Neurocomputing, 2020. [27] Luming Zhang et al. Recognizing architecture styles by hierarchical sparse coding of blocklets. Information Sciences, 254:141–154, 2014. [28] Peipei Zhao et al. Architectural style classification based on feature extraction module. IEEE Access, 6:52598–52606, 2018. [29] Bolei Zhou et al. Learning deep features for scene recognition using places database. In Advances in neural information processing systems, pages 487–495, 2014.