This invention discloses an intelligent
software compatibility problem detection method based on a pre-trained
language model. It collects unlabeled and labeled Python
stack trace data to construct a pre-training dataset and a fine-tuning dataset; parses the traceback data and standardizes its format; processes traceback data exceeding the model's maximum length limit; uses the unlabeled traceback data to perform unsupervised retraining on the BERT model to learn traceback semantic features; constructs an intelligent
software compatibility problem detection model; divides the fine-tuning dataset, selects positive examples from the
training set to construct a class-balanced fine-tuning
training set, and uses a small amount of
labeled data to fine-tune the classification model. This invention solves the problem that existing methods cannot automatically detect compatibility problems occurring during the operation of intelligent
software, overcomes the limitations of existing models in understanding the semantic features of Python traceback context, and can fully capture the dependencies between stack frames and exception information, effectively improving the accuracy of intelligent software compatibility problem detection.