Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (10): 3133-3142.DOI: 10.11772/j.issn.1001-9081.2025081057

• Artificial intelligence • Previous Articles    

Criminal psychological attribution classification model based on TF-Chi probability features and hybrid prompt learning

Congcong LI1,2, Guandong GAO2,3(), Ke XIAO1, Bowei SHEN2,3   

  1. 1.College of Information Science and Technology,Hebei Agricultural University,Baoding Hebei 071001,China
    2.The Centre of Data Science and Intelligent Correction Technology,The National Police University for Criminal Justice,Baoding Hebei 071000,China
    3.Department of Information Management,The National Police University for Criminal Justice,Baoding Hebei 071000,China
  • Received:2025-09-12 Revised:2025-12-18 Accepted:2026-01-04 Online:2026-10-21 Published:2026-10-10
  • Contact: Guandong GAO
  • About author:LI Congcong, born in 2001, M. S. candidate. His research interests include natural language processing, criminal psychology.
    XIAO Ke, born in 1980, Ph. D., professor. Her research interests include agricultural engineering, internet of things, machine vision.
    SHEN Bowei, born in 1993, M. S. candidate, lecturer. His research interests include machine vision, 3D reconstruction.
  • Supported by:
    Research Fund of the National Police University for Criminal Justice(XYZ202301)

基于TF-Chi概率特征和混合提示学习的犯罪心理归因模型

李聪聪1,2, 高冠东2,3(), 肖珂1, 沈伯玮2,3   

  1. 1.河北农业大学 信息科学与技术学院,河北 保定 071001
    2.中央司法警官学院 数据科学与智能矫正技术研究中心,河北 保定 071000
    3.中央司法警官学院 信息管理系,河北 保定 071000
  • 通讯作者: 高冠东
  • 作者简介:李聪聪(2001—),男,河北邯郸人,硕士研究生,主要研究方向:自然语言处理、犯罪心理
    肖珂(1980—),女,四川内江人,教授,博士,CCF会员,主要研究方向:农业工程、物联网、机器视觉
    沈伯玮(1993—),男,河北保定人,讲师,硕士研究生,主要研究方向:机器视觉、三维重建。
  • 基金资助:
    中央司法警官学院研究基金资助项目(XYZ202301)

Abstract:

Analyzing the causes of criminal psychology is crucial for assessing criminal risks and develop psychological correction plans. Traditional models have limitations in comprehending criminal psychology texts, revealing correlations between prompt vectors and downstream tasks, and identifying the importance of key terms dynamically. Therefore, a CP-BERT (Criminal Psychology-Bidirectional Encoder Representations from Transformers)-based attribution classification model for criminal psychology was proposed, enabling four-class classification of psychological causes of crime. First, an 8.03-million-character criminal psychology corpus was constructed for domain-adaptive pre-training, and semantic modeling capability of the model was enhanced. Second, a hybrid prompt learning method was employed to divide prompt templates into prefix and suffix segments: highly relevant prior information was injected into the prefix segment during the initialization phase, while random initialization was performed on the suffix segment by using normal distribution to supplement information uncovered by the prefix segment, and optimal proportions were determined experimentally. Third, an improved TF-Chi (Term Frequency-Chi-Square) association probability feature method was proposed, in which numerical features were mapped to information relevance probability values dynamically, and feature fusion was achieved by constructing a weight matrix. Finally, an annotated dataset consisting of 3 484 personal and criminal histories was constructed for model training and evaluation. Experimental results demonstrate that this model has an accuracy of 91.25% and an F1 score of 91.56%, significantly outperforming multiple baseline models such as ChatGLM and DeepSeek in all metrics, verifying its effectiveness in criminal psychological attribution tasks.

Key words: criminal psychology, domain-adaptive pre-training, prompt learning, feature fusion, deep learning

摘要:

分析犯罪心理的成因对评估犯罪风险及制定心理矫治方案至关重要。传统模型在理解犯罪心理文本、揭示提示向量与下游任务的关联性,以及动态识别特征词重要性等方面仍存在局限。为此,提出一种基于CP-BERT(Criminal Psychology-Bidirectional Encoder Representations from Transformers)的犯罪心理归因分类模型,以实现对犯罪心理成因的四分类。首先,构建803万字符的犯罪心理语料库,进行领域自适应预训练,增强模型的语义建模能力。其次,设计混合提示(Hybrid Prompt)学习方法,将提示模板划分为前缀与后缀两部分:前缀在初始化阶段注入与归因任务高度相关的先验信息,后缀则采用正态分布随机初始化,用于补充前缀未覆盖的信息,并通过实验确定最优比例。再次,提出改进的TF-Chi(Term Frequency-Chi-Square)关联概率特征方法,将数值特征动态映射为信息关联性概率值,并通过构建权重矩阵实现特征融合。最后,构建一个包含3 484条成长史和犯罪史的标注样本数据集进行模型训练与评估。实验结果表明,该模型的准确率和F1值分别达到91.25%与91.56%,在所有指标上均显著优于ChatGLM、DeepSeek等基线模型,验证了它在犯罪心理归因任务中的有效性。

关键词: 犯罪心理, 领域自适应预训练, 提示学习, 特征融合, 深度学习

CLC Number: