The invention relates to the field of artificial intelligence and model construction, and by uploading model parameters of a local classification model and a local classification result to a federatedlearning server for joint learning, the security of text data in a model training process can be improved. The invention relates to a text classification model training method and device, a text classification method, computer equipment and a medium, and the training method comprises the steps: obtaining a text training set, and carrying out text classification training on a local classificationmodel according to the text training set; encrypting the model parameters of the trained local classification model and the local classification result, and uploading the encrypted model parameters and local classification result to a federated learning server for joint learning to obtain learning parameters; and receiving the learning parameters sent by the federated learning server, updating thetrained local classification model according to the learning parameters, and taking the updated local classification model as a trained text classification model. In addition, the invention also relates to a blockchain technology, and the text training set can be stored in the blockchain.