Journal of Shandong University(Engineering Science) ›› 2026, Vol. 56 ›› Issue (4): 10-16.doi: 10.6040/j.issn.1672-3961.0.2025.137

• Machine Learning & Data Mining • Previous Articles    

Contract text detection based on multi-channel BERT pretraining

Liu Yanbei1,2, Zhao Minquan3*, Tan Songtai3, Zhou Liliang3, Dong Xinran2,4   

  1. Liu Yanbei1, 2, Zhao Minquan3*, Tan Songtai3, Zhou Liliang3, Dong Xinran2, 4(1. School of Life Sciences, Tiangong University, Tianjin 300387, China;
    2. Tianjin Key Laboratory of Optoelectronic Detection Technology and Systems, Tiangong University, Tianjin 300387, China;
    3. Southern Power Grid Digital Platform Technology(Guangdong)Co., Ltd., Shenzhen 518000, Guangdong, China;
    4. School of Electronic and Information Engineering, Tiangong University, Tianjin 300387, China
  • Published:2026-08-12

Abstract: Contract risk detection helped prevent project risks and protect rights, improving the efficiency of contract review. However, existing methods still faced limitations in understanding the complex semantics of contract texts and extracting multi-scale features, which made it challenging to balance global semantic relations with the capture of local key information. This study proposed a novel multi-channel BERT-based pretraining method for contract text detection. The BERT pretraining model was utilized to extract the global features of the text, while a multi-channel convolution module was designed to capture multi-scale local features. An integrated attention mechanism adaptively learned the weight distribution between global and local features, enabling the precise extraction of key information from the text. On a publicly available contract text dataset, the proposed algorithm improved the contract risk classification accuracy by 4.6% compared to existing popular methods, validating the effectiveness of the proposed model. The model integrated the advantages of BERT pretraining, multi-channel convolution modules, and attention mechanisms, offering new research ideas and technical support for the field of text detection, with broad application prospects and significant practical value.

Key words: contract risk detection, text detection, BERT pre-training, attention mechanism, multi-channel

CLC Number: 

  • TP311.13
[1] 朱璋颖, 陆亦恬, 唐祝寿, 等. 基于隐私政策条款和机器学习的应用分类[J]. 通信技术, 2020, 53(11): 2749-2757. Zhu Zhangying, Lu Yitian, Tang Zhushou, et al. Application classification based on privacy policy terms and machine learning[J]. Communications Technology, 2020, 53(11): 2749-2757.
[2] 高恒源. 基于深度学习的合同风险检测方法及应用[D]. 保定: 河北大学, 2024: 1-3. Gao Hengyuan. Contract risk detection method and application based on deep learning[D]. Baoding: Hebei University, 2024: 1-3.
[3] 曾寒毓. 合同风险预判技术研究及应用[D]. 绵阳: 西南科技大学, 2021: 2-5. Zeng Hanyu. Research and application of contract risk prediction technology[D]. Mianyang: Southwest University of Science and Technology, 2021: 2-5.
[4] Mikolov T, Chen K, Corrado G, et al. Efficient estimation of word representations in vector space[PP/OL]. V2.(2013-09-07)[2025-03-05]. https://arxiv.org/abs/1301
[5] Guntamukkala N, Dara R, Grewal G. A machine-learning based approach for measuring the completeness of online privacy policies[C] //2015 IEEE 14th International Conference on Machine Learning and Applications. 2015, Miami, USA: IEEE, 2016: 289-294.
[6] Lippi M, Palka P, Contissa G, et al. CLAUDETTE: an automated detector of potentially unfair clauses in online terms of service[J]. Artificial Intelligence and Law, 2019, 27: 117-139.
[7] Hendrycks D, Burns C, Chen A, et al. CUAD: an expert-annotated NLP dataset for legal contract review[PP/OL] V2.(2021-11-08)[2025-03-05].https://doi.org/10.48550/arXiv.2103.06268
[8] Torre D, Abualhaija S, Sabetzadeh M, et al. An AI-assisted approach for checking the completeness of privacy policies against GDPR[C] //2020 IEEE 28th International Requirements Engineering Conference. 2020, Zurich, Switzerland: IEEE, 2020: 136-146.
[9] 周红, 王书钰, 黄文路. 基于NLP技术的建设工程合同风险智能检测框架研究[J]. 建筑经济, 2021, 42(6): 94-98. Zhou Hong, Wang Shuyu, Huang Wenlu. Research on intelligent detection framework of construction contract risks based on NLP[J]. Construction Economy, 2021, 42(6): 94-98.
[10] 王书钰. 基于NLP和深度学习的建设工程合同条款缺漏风险智能化检测研究[D]. 厦门: 厦门大学, 2021: 11-13. Wang Shuyu. Research on intelligent detection of missing risk of construction project contract clauses based on NLP and deep learning[D]. Xiamen:Xiamen University, 2021: 11-13.
[11] Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need[C] //NeurIPS 2017. Long Beach, USA:Curran Associates, Inc, 2017: 5998-6008.
[12] 王金政, 杨颖, 余本功. 基于多头协同注意力机制的客户投诉文本分类模型[J]. 数据分析与知识发现, 2023, 7(1): 128-137. Wang Jinzheng, Yang Ying, Yu Bengong. Classifying customer complaints based on multi-head co-attention mechanism[J]. Data Analysis and Knowledge Discovery, 2023, 7(1): 128-137.
[13] 李浩君, 王耀东, 汪旭辉. 中文短文本情感分类: 融入位置感知强化的Transformer-TextCNN模型研究[J]. 计算机工程与应用, 2025, 61(11): 216-226. Li Haojun, Wang Yaodong, Wang Xuhui. Chinese short text sentiment classification: research on Transformer-TextCNN model with location-aware enhancement[J]. Computer Engineering and Applications, 2025, 61(11): 216-226.
[14] Kim Y. Convolutional neural networks for sentence classification[PP/OL]. V2.(2014-09-03)[2025-03-05].https://doi.org/10.48550/arXiv.1408.5882
[15] 国家市场监督管理总局. 全国合同示范文本库[EB/OL].(2022-06-17)[2025-03-05]. https://htsfwb.samr.gov.cn/
[16] Koroteev, Mikhail V. BERT: a review of applications in natural language processing and understanding[PP/OL].(2021-03-22)[2025-03-05]. https://arxiv.org/abs/2103.11943
[17] Cui Y, Che W, Liu T, et al. Revisiting pre-trained models for Chinese natural language processing[PP/OL]. V2.(2020-11-02)[2025-03-05]. https://doi.org/10.48550/arXiv.2004.13922
[18] Yan H, Yi B S, Li H X, et al. Sentiment knowledge-induced neural network for aspect-level sentiment analysis[J]. Neural Computing and Applications, 2022, 34(24): 22275-22286.
[19] Hong Y Z, Yu X G, He N, et al. FASPell: a fast, adaptable, simple, powerful Chinese spell checker based on DAE-decoder paradigm[C] //Proceedings of the 5th Workshop on Noisy User-generated Text(W-NUT 2019). Hong Kong, China:Association for Computational Linguistics, 2019: 160-169.
[20] Cheng X Y, Xu W D, Chen K L, et al. SpellGCN: incorporating phonological and visual similarities into language models for Chinese spelling check[PP/OL]. V2.(2020-03-13)[2025-03-05]. https://arxiv.org/abs/2004.14166
[21] Zhang Riqing, Pang Chao, Zhang Chuanqiang, et al. Correcting Chinese spelling errors with phonetic pre-training[C] //Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021. [S.l.] : Association for Computational Linguistics, 2021: 2250- 2261.
[22] Xu Hengda, Li Zhongli, Zhou Qingyu, et al. Read, listen, and see: leveraging multimodal information helps Chinese spell checking[C] //Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021. [S.l.] : Association for Computational Linguistics, 2021: 716-728.
[23] Sun Y, Wang S H, Li Y K, et al. ERNIE 2.0: a continual pre-training framework for language understanding[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2020, 34(5): 8968-8975.
[24] Loshchilov I, Hutter F. Decoupled weight decay regularization[PP/OL]. V3.(2019-01-04)[2025-03-05]. https://arxiv.org/abs/1711.05101
[25] Van der maaten L. Accelerating t-SNE using tree-based algorithms[J]. J Mach Learn Res, 2014, 15: 3221-3245.
[1] Liu Zhigang, Feng Hanlin, Zhou Yuanhe, Su Jianheng, Zhang Yan. Person re-identification for cross-resolution identity matching [J]. Journal of Shandong University(Engineering Science), 2026, 56(4): 1-9.
[2] REN Hongwei, MENG Fei, WANG Jikai, TIAN Weiyang, WEI Mingzhao, CHENG Zhiheng, DU Cong, WU Jianqing. Intelligent detection method for subgrade disease based on deep learning [J]. Journal of Shandong University(Engineering Science), 2026, 56(3): 93-105.
[3] WANG Qian, ZHANG Ruimin, LI Mingjin, MENG Xianjing, GENG Leilei. Spatio-temporal series prediction based on frequency domain graph convolution network [J]. Journal of Shandong University(Engineering Science), 2026, 56(3): 84-92.
[4] ZHENG Zheming, KONG Lingling, HE Yin. Short-term wind power prediction model based on spatial-temporal graph convolutional network with dual-graph structure [J]. Journal of Shandong University(Engineering Science), 2026, 56(2): 130-138.
[5] LIU Feiyu, ZHANG Jing, WANG Yinan. Lightweight SAR ship detection algorithm based on asymptotic feature fusion [J]. Journal of Shandong University(Engineering Science), 2026, 56(2): 52-59.
[6] ZHAO Feng, LIU Rui,WANG Ying, CHEN Xiaoqiang, GE Leijiao, MA Aiping. Multi-scale fusion and dynamic self-calibrating rotation-based catenary dropper detection algorithm [J]. Journal of Shandong University(Engineering Science), 2026, 56(2): 1-10.
[7] WANG Yuou, YUAN Yingchun, HE Zhenxue, HE Chen. University academic named entity recognition based on the fusion of multi-feature and multi-head self-attention mechanism [J]. Journal of Shandong University(Engineering Science), 2025, 55(6): 35-44.
[8] ZHOU Qunying, SUI Jiacheng, ZHANG Ji, WANG Hongyuan. Industrial product surface defect detection based on self supervised convolution and parameter free attention mechanism [J]. Journal of Shandong University(Engineering Science), 2025, 55(4): 40-47.
[9] LI Feng, WEN Yimin. Multi-scale visual and textual semantic feature fusion for image captioning [J]. Journal of Shandong University(Engineering Science), 2025, 55(3): 80-87.
[10] WANG Yuou, YUAN Yingchun, HE Zhenxue, WANG Kejian. A relation extraction method based on improved RoBERTa, multiple-instance learning and dual attention mechanism [J]. Journal of Shandong University(Engineering Science), 2025, 55(2): 78-87.
[11] Jiachun LI,Bowen LI,Jianbo CHANG. An efficient and lightweight RGB frame-level face anti-spoofing model [J]. Journal of Shandong University(Engineering Science), 2023, 53(6): 1-7.
[12] Xinzhang WU,Xiangyu LIANG,Hongyu ZHU,Dongdong ZHANG. Short-term wind power prediction based on CEEMDAN-GRA-PCC-ATCN [J]. Journal of Shandong University(Engineering Science), 2022, 52(6): 146-156.
[13] Ye LIANG,Nan MA,Hongzhe LIU. Image-dependent fusion method for saliency maps [J]. Journal of Shandong University(Engineering Science), 2021, 51(4): 1-7.
[14] Junsan ZHANG,Qiaoqiao CHENG,Yao WAN,Jie ZHU,Shidong ZHANG. MIRGAN: a medical image report generation model based on GAN [J]. Journal of Shandong University(Engineering Science), 2021, 51(2): 9-18.
[15] ZHANG Qinyang, LI Xu, YAO Chunlong, LI Changwu. Aspect-level sentiment classification combined with syntactic dependency information [J]. Journal of Shandong University(Engineering Science), 2021, 51(2): 83-89.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!