Abstract:The accuracy of question classification was crucial for question-answering systems, particularly in the agricultural domain where question categories were diverse and semantic content was complex. Effectively classifying user-submitted questions was a key task in the development of intelligent agricultural question-answering systems. To address the issue of effectively classifying user-submitted questions in the agricultural domain, an agricultural question classification method (TAB, topic model with agriculture BERT (AgCBERT) for agricultural text classification) was proposed, combining domain-specific BERT pre-training with topic modeling to improve classification performance. To manage the professional and complex nature of agricultural data, a specialized pre-trained language model, AgCBERT, was developed for text feature vector representation. Additionally, the LDA model was employed to represent topic feature vectors as a supplement to the text vectors. The TAB method linearly combined these two types of features and input them into a fully connected network for classification prediction. The efficacy of this approach was underscored by experimental results obtained from a real-world agricultural question dataset. The method achieved F1 score of 72.72%, which was substantially higher than those achieved by commonly used text classification models, indicating a significant improvement in classification performance. The results demonstrated that the TAB method, which integrated AgCBERT with a topic probability model, excelled in agricultural question classification. This integration allowed for a more nuanced understanding and processing of complex question types, leading to more accurate classifications.