Abstract
As an essential task for the architecture, engineering, and construction (AEC) industry, information retrieval (IR) from unstructured textual data based on natural language processing (NLP) is gaining increasing attention. Although various deep learning (DL) models for IR tasks have been investigated in the AEC domain, it is still unclear how domain corpora and domain-specific pretrained DL models can improve performance in various IR tasks. To this end, this work systematically explores the impacts of domain corpora and various transfer learning techniques on the performance of DL models for IR tasks and proposes a pretrained domain-specific language model for the AEC domain. First, both in-domain and close-domain corpora are developed. Then, two types of pretrained models, including traditional wording embedding models and BERT-based models, are pretrained based on various domain corpora and transfer learning strategies. Finally, several widely used DL models for IR tasks are further trained and tested based on various configurations and pretrained models. The result shows that domain corpora have opposite effects on traditional word embedding models for text classification and named entity recognition tasks but can further improve the performance of BERT-based models in all tasks. Meanwhile, BERT-based models dramatically outperform traditional methods in all IR tasks, with maximum improvements of 5.4% and 10.1% in the F1 score, respectively. This research contributes to the body of knowledge in two ways: 1) demonstrating the advantages of domain corpora and pretrained DL models and 2) opening the first domain-specific dataset and pretrained language model for the AEC domain, to the best of our knowledge. Thus, this work sheds light on the adoption and application of pretrained models in the AEC domain.
Introduction
The Architecture, Engineering, and Construction (AEC) industry generates vast amounts of unstructured textual data, including building codes, safety reports, and design specifications. Extracting meaningful information from these documents is crucial for tasks like Automated Rule Checking (ARC). However, general-purpose Natural Language Processing (NLP) models often struggle with the domain-specific jargon and complex syntax prevalent in AEC regulations. This research addresses the "data desert" in the AEC sector by developing the first publicly available domain-specific language model and corpus, demonstrating how targeted pretraining can bridge the performance gap in information retrieval (IR) tasks.
Methodology
The researchers implemented a systematic workflow encompassing corpora development, transfer learning deployment, and model evaluation.
Corpora Development
Two types of corpora were developed to train the models:
- In-domain: 396 Chinese design codes crawled from official sources, totaling approximately 10.9 million characters.
- Close-domain: AEC-related pages from Wikipedia and the Encyclopedia of China, totaling approximately 12.9 million characters.
Transfer Learning Strategies
The study compared two primary approaches to domain adaptation:
- Traditional Deep Learning (T-models): Models like TextCNN and BiLSTM-CRF utilized domain-specific word embeddings. As shown in Figure 2, general word embeddings were replaced with those trained on the AEC domain corpus using a skip-gram model.
- BERT-based Models (B-models): The authors employed "further pretraining" on general Chinese BERT/ERNIE models using the AEC-specific corpora and Masked Language Modeling (MLM). This resulted in specialized models like RegulatoryBERT and CivilBERT.
Results and Discussion
The evaluation focused on two key IR tasks: Text Classification (TC) and Named Entity Recognition (NER).
The NER Paradox and Contextual Advantage
A significant finding was the "NER Paradox": traditional models actually performed worse when using domain-specific static word embeddings compared to general-purpose ones. This suggests that static embeddings trained on smaller domain datasets lose critical linguistic context. In contrast, BERT-based models, which generate contextualized embeddings, successfully leveraged domain knowledge without sacrificing linguistic flexibility.
Performance Benchmarks
- RegulatoryBERT emerged as the state-of-the-art (SOTA) model for the AEC domain.
- Text Classification: RegulatoryBERT achieved a 92.1% F1 score, outperforming standard BERT by 2.3% and traditional models by 5.4%.
- Named Entity Recognition: RegulatoryBERT reached an 86.8% F1 score, a massive 10.1% improvement over traditional BiLSTM-CRF models.
The results confirm that in-domain pretraining (on actual design codes) is superior to close-domain pretraining (on general engineering knowledge) for regulatory tasks.
Conclusion
This work contributes the first domain-specific dataset and pretrained language model for the AEC industry. By demonstrating the clear advantages of transformer-based architectures with domain-specific pretraining, this research provides a roadmap for future automation in construction. Future work will focus on expanding the corpus size, validating the methodology in other languages, and applying these models to broader tasks such as construction site accident reporting and knowledge graph construction.
Summary updated