International Journal of BIM and Engineering Science

Dispute Management in Engineering Contracts Using Artificial Intelligence

Rania Bashir, Marek Salamak, Sonia Ahmed
Volume 11, Issue 2, pp. 13–21 (2025)
DOI: https://doi.org/10.54216/IJBES.110202
Online: https://americaspg.com/journal/22/article/4241

Abstract

The study put forward an integrated artificial intelligence-based approach to the analysis and prediction of contracting disputes in Engineering Projects, especially through Machine Learning methods and Deep Learning methods. Current ways of managing contracts cannot effectively deal with the complicated nature of Legal Texts and do not provide for early identification of potential disputes. This developed System was built using the Python Programming Language, using key libraries for Natural Language Processing (NLP) and Machine Learning (ML). The cache of Contract Documents in all formats was transformed into numerical vectors using TF-IDF once all Document Processing and Clean-up Procedures were completed. Multiple Models were built, with trained versions of each, including Logistic Regression, SVM, Voting Classifiers and an MLP (Multi-Layer Perceptron) based Neural Network model. Since each Contracting Dispute was modelled separately to improve overall prediction accuracy, initial recommendations for resolution are generated. Results show that the MLP performed in a SUPERIOR fashion, with an Overall Model Accuracy of 88%, and F1 Score of 0.874, effectively classifying Contracting Disputes relating to Delays, Payments and Scope Variations. The application of this framework to an actual example taken from the construction industry in Syria reaffirmed the capability of automating contract text review and improving risk management. This reinforces the importance of artificial intelligence as a tool for increasing proactive decision-making and minimizing conflict in engineering projects.

Keywords: Engineering Contract; Building Information Modeling (BIM); Artificial Intelligence (AI); Legal Dispute Resolution; Machine Learning; Dispute Prediction

1. INTRODUCTION

complex, data-driven projects, such as delayed dispute detection, inconsistent interpretations, limited capacity to handle large-scale data, and the absence of proactive mechanisms for risk prediction [4].

The construction industry is one of the most complex sectors due to the involvement of multiple stakeholders, diverse contracts, and constantly changing environments throughout a project’s lifecycle [1]. Traditional methods of contract management and dispute detection often rely on manual reviews conducted by legal and engineering experts [2, 3]. While these methods are valuable, they face significant challenges in

Artificial intelligence has emerged as an effective tool to address these challenges, particularly through machine-learning and deep-learning techniques. By leveraging Natural Language Processing (NLP) [5], these technologies enable the analysis of complex legal texts and the extraction of contractual patterns that may lead to disputes, offering early warnings and allowing legal and engineering teams sufficient time to make informed decisions [6, 7].

This research focuses on developing an integrated intelligent system for analyzing engineering contracts by combining machine-learning algorithms with neural-network architectures. Advanced programming languages and tools such as Python, Scikit-learn, spaCy, and TfidfVectorizer were utilized to build and train the system [8]. The framework was practically tested on a real-world Syrian construction project, demonstrating its efficiency in enhancing transparency, simplifying dispute management, and improving the quality of contractual decision-making, thereby supporting the digital transformation of the construction sector [9].

To clarify the theoretical foundation for this project, the following definitions describe the concepts and tools related to the intelligent system:

and to extract important entities, such as parties, durations, and amounts, before establishing an ML model [17].

2. LITERATURE REVIEW

Engineering contracts set the legal foundation for project execution [18]. They define the responsibilities and rights of the parties involved, outline implementation procedures, establish quality standards, and specify the steps to follow in case of a dispute [19]. However, the complexity of these contracts and the presence of multiple stakeholders often lead to ongoing disputes [20]. These can arise from delayed payments, changes in work scope, or poor coordination. Minor claims can escalate over time without clear resolution methods, negatively affecting execution quality, schedules, and costs [21, 22].

In the past, managing disputes in engineering contracts depended on manual reviews by legal or engineering experts [23]. Unfortunately, these traditional methods often struggle with large data volumes and do not provide proactive signs that could identify disputes before they worsen [24]. Artificial intelligence has therefore emerged as a valuable tool because it can analyze complex texts and predict risks quickly and accurately [25]. AI techniques such as Machine Learning, Deep Learning, Natural Language Processing, and expert systems help extract patterns from large datasets, classify contractual clauses, and identify gaps that might lead to future disputes [26].

Several international studies have explored this topic. Putera et al. [27] showed that AI can help improve future justice by automating dispute analysis. Alqaisi et al. [9] created a model to predict the results of contract-change disputes using machine-learning algorithms. Francis et al. [28] reviewed AI applications for proactive dispute management. Similarly, Un et al. [29] focused on using machine-learning techniques to predict contract-dispute outcomes, while Raslan and Nassar [30] proposed a framework that combines AI with sustainability for dispute resolution. Harode et al. [31] introduced a machine-learning model for predicting design-clash resolution options.

These studies show that using AI in engineering contracts has moved beyond being an experimental trend [32]. It has become a practical way to improve dispute-management efficiency while lowering costs and time. However, there is still a gap in real-world applications within complex local settings, such as the Syrian contractual environment, where these technologies are seldom used systematically. This research aims to fill this gap by proposing an integrated AI-based system for dispute analysis and prediction tailored to the specific characteristics of Syrian engineering contracts [33].

3. METHODOLOGY

The study was concerned with creating an intelligent system that would analyze engineering contracts, classify high-risk contractual clauses [34], and give proactive recommendations to resolve disputes. The intelligent system was built with Python 3.10 and the Visual Studio Code environment [35]; its files are organized within a folder hierarchy that includes contract data, trained models, results, and visualizations.

The work started with data preparation using a file of

Figure 2. Part of the training code of the Multi-Layer Perceptron (MLP) model.
Figure 2. Part of the training code of the Multi-Layer Perceptron (MLP) model.

engineering-contract texts labelled with the dispute type [36]. During preprocessing, the texts were organized and cleaned by removing symbols and known stop words in Arabic and English, establishing a standard encoding, and transforming the texts into numerical vectors through TF–IDF. The data were then split into 80% for training and 20% for testing using stratified splitting, ensuring that all categories were represented in both sets.

In Stage One, Logistic Regression was used as the first model to check the processing pipeline. Its performance was then compared with additional algorithms such as SVM, MLP, and a Voting ensemble classifier. Specialized sub-models were also created for each dispute type and trained using texts identified with the target dispute type, providing more accurate predictions. The models were evaluated on the test set using accuracy, precision, recall, and F1-score; confusion matrices were used to assess errors and model performance.

The results suggested that MLP had the highest accuracy, recall, and F1-score, making it the most appropriate model for relatively short legal-text data. It was therefore selected as the final model, while Logistic Regression and SVM were retained in the final system for comparison and analysis. Both the trained model and the TF–IDF vectorizer were saved in .pkl files to avoid retraining and enable reproducibility. This reduces processing time in the production environment and facilitates rapid prediction of disputes and litigation [37].

4. DATA ANALYSIS

Figure 1. Visual Studio Code (VS Code).
Figure 1. Visual Studio Code (VS Code).
Figure 3. Part of the testing code of the Multi-Layer Perceptron (MLP) model.
Figure 3. Part of the testing code of the Multi-Layer Perceptron (MLP) model.

The following confusion matrices were generated during the training and testing phases of the models. They were used to compare the results and consequently justify the adoption of the Multi-Layer Perceptron model.

Figure 4. Confusion matrix during the training of the Logistic Regression model.
Figure 4. Confusion matrix during the training of the Logistic Regression model.
Figure 7. Confusion matrix during the testing of the Logistic Regression model.
Figure 7. Confusion matrix during the testing of the Logistic Regression model.
Figure 5. Confusion matrix obtained during the training phase of the Support Vector Machine (SVM) model.
Figure 5. Confusion matrix obtained during the training phase of the Support Vector Machine (SVM) model.
Figure 8. Confusion matrix during the testing of the Support Vector Machine (SVM) model.
Figure 8. Confusion matrix during the testing of the Support Vector Machine (SVM) model.
Figure 9. Confusion matrix during the testing of the adopted Multi-Layer Perceptron (MLP) neural-network model.
Figure 9. Confusion matrix during the testing of the adopted Multi-Layer Perceptron (MLP) neural-network model.
Figure 6. Confusion matrix during the training of the adopted Multi-Layer Perceptron (MLP) neural-network model.
Figure 6. Confusion matrix during the training of the adopted Multi-Layer Perceptron (MLP) neural-network model.
Table 1. Model performance on the test sample. Precision, recall, and F1 are weighted metrics.
Table 1. Model performance on the test sample. Precision, recall, and F1 are weighted metrics.

The model-performance results in Table 1 lead to the following observations:

a. The MLP provided the best overall performance, producing accurate results 88% of the time and the highest precision, recall, and F1-score among all models.

b. The Soft Voting model came second overall, maintaining a good accuracy of 72% and reasonably balanced performance across metrics, but it was still 16 percentage points less accurate than the MLP.

c. Logistic Regression, SVM, and Hard Voting produced almost identical results, indicating that Hard Voting did not improve the performance of these models.

d. The large performance gap between MLP and the other models indicates the MLP’s versatility in capturing complex patterns in legal texts, even with only small amounts of training data.

Figure 10. Comparison of performance metrics among the models.
Figure 10. Comparison of performance metrics among the models.

4.1 Integrating the Interface with the Custom GPT Model

A custom language model named BIM Contract Dispute Analys v2 by Eng. Rania Bashir was created to analyze contractual clauses in construction contracts, identify the potential dispute type, and suggest the best resolution process.

4.1.1 Configuration Specifications

The primary functions are to:

1. Analyze written contractual clauses in Arabic or English.

2. Identify the potential type of dispute, such as delay, payments, or scope of work.

3. Suggest the optimal resolution method, such as negotiation, mediation, arbitration, or litigation.

4. Reference the relevant article or clause from documents uploaded to the knowledge base, if available.

The model uses a formal and academic response style, even if a question is asked in colloquial language. Answers are strictly limited to contracts and project management; questions outside this scope receive an appropriate refusal.

The knowledge base contains contract files and specialized legal references, including:

I. FIDIC Conditions of Contract (General Conditions and

Red Book 2017),

II. NEC3 Engineering and Construction Contract and

Guidance Notes,

III. Integrated Project Delivery Guide,

IV. BIM Execution Plan,

V. BS EN ISO 19650-1:2018, and

VI. specialized references on dispute management, claims, and construction-contract law.

4.1.2 Workflow with the Language Model

The workflow consists of four stages:

1. Inputting the Contract Clause: The user inputs a paragraph or clause from a contract in PDF, Word, or plain-text form.

2. Text Analysis: The model finds legally significant words and phrases and classifies the dispute using its knowledge of FIDIC, NEC3, and IPD rules.

3. Recommending a Resolution: The model identifies the most appropriate form of resolution—negotiation, mediation, arbitration, adjudication, or court—and validates the recommendation with the appropriate clause or legal source from the uploaded files.

4. Producing the Output: The system produces formatted output in PDF or DOCX form that includes the analysis, classification, and recommended resolution, with diagrams or tables where appropriate.

Figure 11. Link to the intelligent model.
Figure 11. Link to the intelligent model.

4.2 Testing the Artificial Intelligence Model: Case Study

The case-study contract concerns the rehabilitation of the Ballet School in Homs. It represents a formal agreement between the Ministry of Culture of the Syrian Arab Republic (the employer) and the contractor for rehabilitation and maintenance works at the Ballet School in the city of Homs.

The contract defines the scope of works, financial framework, execution period, and legal references, based on the Public Entities Contracts Law No. 51 of 2004 and the General Conditions issued by Decree No. 450 of 2004. Its purpose is to

Figure 12. Preparation of the model for integration with the MLP classification model using OpenAI and GPT libraries.
Figure 12. Preparation of the model for integration with the MLP classification model using OpenAI and GPT libraries.
Figure 16. File upload to the intelligent model.
Figure 16. File upload to the intelligent model.
Figure 13. Restriction and training of the model to respond only regarding engineering contracts.
Figure 13. Restriction and training of the model to respond only regarding engineering contracts.

carry out all construction, renovation, and maintenance works specified in the approved technical specifications, drawings, and bills of quantities. The total contract value amounts to an unspecified sum in Syrian pounds, and the specified execution period is 100 calendar days starting from the day after either notification of the commencement order or handover of the work site, whichever occurs first.

Figure 14. Interaction mechanism with the trained model.
Figure 14. Interaction mechanism with the trained model.
Figure 15. Further interaction with the trained model.
Figure 15. Further interaction with the trained model.

The complete model-testing outputs are collected in Table 2.

5. DISCUSSION

The findings of this study showed that developing an artificialintelligence system to manage disputes in Syrian engineering contracts represents a significant advancement toward improving contractual practices and enhancing decision-making efficiency. The results demonstrated that an intelligent system capable of automatically analyzing contract clauses can substantially reduce the likelihood of disputes emerging or re-occurring in the future. This improvement stems from the system’s ability to process legal texts rapidly and consistently, overcoming the limitations of traditional manual review methods, which are often affected by interpretation differences, time pressure, and incomplete information.

The Multi-Layer Perceptron neural network emerged as the most efficient model in this study, showing a strong capability to understand contractual language and accurately identify dispute types. It achieved the highest performance scores (accuracy = 0.88 and weighted F1-score = 0.874), outperforming Soft Voting, SVM, and Logistic Regression classifiers. This superiority highlights the strength of non-linear models in capturing the linguistic and semantic complexity of legal text, even when trained on a limited dataset—one of the primary challenges in legal-AI applications. It also confirms that models such as MLP are better suited for handling nuanced variations in wording and contractual structure than more conventional linear models.

The findings further indicated that the model performed strongly in scope-related and payment-related disputes while demonstrating moderate performance in delay-related disputes due to insufficient representation in the dataset. The low or absent performance for under-represented categories such as “Contractor Delay” and “Force Majeure” was directly linked to the lack of available samples in the evaluation set rather than a flaw in the algorithm itself. This emphasizes the importance of expanding and balancing the dataset to unlock the full predictive potential of the system.

From a practical perspective, the study demonstrated the feasibility of deploying the intelligent system in real engineering contexts. The system was applied to the rehabilitation project of the Ballet School in Homs, where it proved capable of automatically analyzing contractual language and generating structured reports that included dispute descriptions and recommended pathways for resolution. It suggested routes such as negotiation, mediation, or arbitration, providing real value to decision-makers by enabling faster, clearer, and more

Table 2. Screens from testing the intelligent model.
Table 2. Screens from testing the intelligent model.

informed dispute-resolution processes.

Overall, these findings confirm that integrating artificial intelligence into engineering-contract management is not merely a technological enhancement but a methodological shift toward greater transparency, predictive analysis, and proactive risk mitigation within the Syrian construction sector.

6. CONCLUSION

6.1 Summary of Key Findings

The system starts by accepting inputs in various formats (PDF, DOCX, and CSV) and converting them to processable text. The text is then subjected to cleansing and numerical transformation using the TF–IDF algorithm to extract salient features.

Next, the text is processed by the main classifier (MLP), which assigns a type of dispute to the text, such as delay, payments, or scope of work. The output is then passed to a sub-model trained to give recommendations for the same dispute type. This provides an automated recommendation for resolution—negotiation, mediation, arbitration, or litigation— based on performance during training and evaluation.

This sequence reduces the time needed for consultation through manual contract analysis and improves the chance of detecting high-risk clauses. It also helps legal and engineering project-management teams make fast and informed decisions.

By integrating the system with a custom GPT model and a knowledge library containing FIDIC, NEC3, and IPD material, it becomes possible to further interpret legal clauses and generate consolidated, structured reports in which automated analysis and direct references to standard documents are combined.

6.2 Concluding Remarks

1. Use the MLP as the primary model in the initial operational phase while keeping the Soft Voting model as a secondary option where some disputes have similar text patterns.

2. Increase the training database by collecting new and varied data covering all categories, particularly under-represented categories such as “Contractor Delay” and “Force Majeure,” to improve dispute classification.

3. Regularly evaluate model performance using confusion matrices and per-category metrics to monitor performance and correct deviations as necessary.

4. Enhance the calibration of probabilistic models to improve the performance of ensemble-voting techniques in subsequent analytical phases.

5. Create pilot projects in selected government institutions to evaluate the effect of AI techniques on dispute resolution and on reducing the cost and time required to find solutions.

6. Invest in educational training for engineering and legal staff working with AI tools to maximize the sustainability of digital transformation and performance gains.

References

[1] K. Oti-Sarpong et al., “Transforming the construction sector: An institutional complexity perspective,” Construction Innovation, vol. 22, no. 2, pp. 361–387, 2022.

[2] X. Qi, Y. Chen, J. Lai, and F. Meng, “Multifunctional analysis of construction contracts using a machine learning approach,” Journal of Management in Engineering, vol. 40, no. 2, p. 04024002, 2024.

[3] M. S. Zeberga, H. Haaskjold, and B. Hussein, “Digital technologies for preventing, mitigating, and resolving contractual disagreements in the AEC industry: A systematic literature review,” Journal of Construction Engineering and Management, vol. 150, no. 6, p. 03124002, 2024.

[4] M. Kalogeraki and F. Antoniou, “Claim management and dispute resolution in the construction industry: Current research trends using novel technologies,” Buildings, vol. 14, no. 4, p. 967, 2024.

[5] Y. Chen et al., “Artificial intelligence methods in natural language processing: A comprehensive review,” Highlights in Science, Engineering and Technology, vol. 85, pp. 545–550, 2024.

[6] D. Hendrycks, C. Burns, A. Chen, and S. Ball, “CUAD: An expert-annotated NLP dataset for legal contract review,” in Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, vol. 1, 2021.

[7] Y. Xi and Y. Zhang, “Measuring time and quality efficiency in human–AI collaborative legal contract review: A multi-industry comparative analysis,” Annals of Applied Sciences, vol. 5, no. 1, 2024.

[8] D. A. Dahl, Natural Language Understanding with Python: Combine Natural Language Technology, Deep Learning, and Large Language Models. Birmingham, U.K.: Packt Publishing Ltd., 2023.

[9] S. Alqaisi et al., “Predicting the outcome of construction change disputes using machine-learning algorithms,” Journal of Legal Affairs and Dispute Resolution in Engineering and Construction, vol. 16, no. 1, p. 04523051, 2024.

[10] Harry, “Role of AI in education,” Interdisciplinary Journal & Humanity, vol. 2, no. 3, 2023.

[11] M. Prabu et al., “Contribution of python to improving efficiency in artificial intelligence and advancing automation capabilities,” in Smart Computing Techniques in Industrial IoT. Singapore: Springer, 2024, pp. 201– 218.

[12] J.-F. Masson, J. S. Biggins, and E. Ringe, “Machine learning for nanoplasmonics,” Nature Nanotechnology, vol. 18, no. 2, pp. 111–123, 2023.

[13] Younesi et al., “A comprehensive survey of convolutions in deep learning: Applications, challenges, and future trends,” IEEE Access, vol. 12, pp. 41 180–41 218, 2024.

[14] D. Khurana, A. Koli, K. Khatter, and S. Singh, “Natural language processing: State of the art, current trends and challenges,” Multimedia Tools and Applications, vol. 82, no. 3, pp. 3713–3744, 2023.

[15] R. F. Zhang and R. J. Urbanowicz, “A scikit-learn compatible learning classifier system,” in Proceedings of the Genetic and Evolutionary Computation Conference Companion, 2020.

[16] H. Chen, L.Wu, J. Chen,W. Lu, and J. Ding, “A comparative study of automated legal text classification using random forests and deep learning,” Information Processing & Management, vol. 59, no. 2, p. 102798, 2022.

[17] R. Dumbre et al., “spacy and nltk nlp techniques for text summarization: A comprehensive comparison,” in Proceedings of the International Conference on Machine Learning, IoT and Big Data. Cham, Switzerland: Springer, 2024.

[18] A. K. Agrawal, M. Jagannathan, and V. S. K. Delhi, “Control focus in standard forms: An assessment through text mining and NLP,” Journal of Legal Affairs and Dispute Resolution in Engineering and Construction, vol. 13, no. 1, p. 04520040, 2021.

[19] F. Fakhereldin, “Construction claims management practices and dispute resolution mechanisms in construction contracts,” 2024.

[20] P. I. Cakmak, “The stakeholders’ perspective on the factors contributing to construction disputes,” International Journal of Building Pathology and Adaptation, vol. 40, no. 5, pp. 712–727, 2022.

[21] P. Bauer, “Claim management,” in A Comprehensive Project Management Guide: Quality Management, Integrated Six-Sigma and Change Management Compilation. Cham, Switzerland: Springer, 2025, pp. 281–302.

[22] M. Cevikbas, O. Okudan, and Z. I¸sık, “Identification and assessment of disruption claim management risks in construction projects: A life cycle-based approach,” Engineering, Construction and Architectural Management, vol. 31, no. 1, pp. 1–27, 2024.

[23] H. T. T. L. Pham and S. Han, “Natural language processing with multitask classification for semantic prediction of risk-handling actions in construction contracts,” Journal of Computing in Civil Engineering, vol. 37, no. 6, p. 04023027, 2023.

[24] M. Fayyad et al., “Disputes settlement of private housing construction agreements: Contract management challenges,” Journal of Legal Affairs and Dispute Resolution in Engineering and Construction, vol. 14, no. 3, p. 04522015, 2022.

[25] S. Kalogiannidis et al., “The role of artificial intelligence technology in predictive risk assessment for business continuity: A case study of greece,” Risks, vol. 12, no. 2, p. 19, 2024.

[26] S. Wong, C. Zheng, X. Su, and Y. Tang, “Construction contract risk identification based on knowledgeaugmented language models,” Computers in Industry, vol. 157–158, p. 104082, 2024.

[27] N. S. F. M. S. Putera et al., “Artificial intelligence for construction dispute resolution: Justice of the future,” International Journal of Academic Research in Business and Social Sciences, vol. 11, no. 11, pp. 139–151, 2021.

[28] M. Francis et al., “Artificial intelligence applications for proactive dispute management in the construction industry: A systematic literature review,” Journal of Information Technology in Construction, vol. 30, no. 29, pp. 711–730, 2025.

[29] Un et al., “Forecasting the outcomes of construction contract disputes using machine learning techniques,” Engineering, Construction and Architectural Management, 2024.

[30] N. D. Raslan and A. H. Nassar, “An integrated approach to resolving construction disputes: A framework and ai-based solution with a focus on sustainability,” in Proceedings of the International Conference on Sustainability: Developments and Innovations. Cham, Switzerland: Springer, 2024.

[31] Harode,W. Thabet, and X. Gao, “Developing a machinelearning model to predict clash resolution options,” Journal of Computing in Civil Engineering, vol. 38, no. 2, p. 04024005, 2024.

[32] T. G. Tapeh and M. Naser, “Artificial intelligence, machine learning, and deep learning in structural engineering: A scientometrics review of trends and best practices,” Archives of Computational Methods in Engineering, vol. 30, no. 1, pp. 115–159, 2023.

[33] S. O. Abioye, L. O. Oyedele, L. Akanbi, A. Ajayi, J. M. D. Delgado, M. Bilal, O. O. Akinade, and A. Ahmed, “Artificial intelligence in the construction industry: A review of present status, opportunities and future challenges,” Journal of Building Engineering, vol. 44, p. 103299, 2021.

[34] S. J. Choi et al., “Ai and text-mining applications for analyzing contractor’s risk in invitation to bid (itb) and contracts for engineering procurement and construction (epc) projects,” Energies, vol. 14, no. 15, p. 4632, 2021.

[35] F. X. G. III, Artificial Intelligence for Robotics: Build Intelligent Robots Using ROS 2, Python, OpenCV, and AI/ML Techniques. Birmingham, U.K.: Packt Publishing Ltd., 2024.

[36] Zhong et al., “Dispute classification and analysis: Deep learning-based text mining for construction contract management,” Journal of Construction Engineering and Management, vol. 150, no. 1, p. 04023151, 2024.

[37] Yeni¸sehirlio˘glu, “A model for evaluating the potential of litigation due to contract ambiguity in international construction projects,” Master’s thesis, Middle East Technical University, Ankara, Turkey, 2022.