Abstract:Rice phenotype has an important guiding role in rice research by analyzing genetic information of various phenotype data. Knowledge graph technology has been widely used in knowledge storage and search engines by structurally describing the information, concepts, entities and relationships in data. As a key task in the knowledge graph, the relation extraction task can extract the connection between two entity words in the text. Within this research, rice phenotypic data was collected from the National Rice Data Center, and the data were preprocessed and annotated. The rice phenotype relationship was proposed based on the plant ontology, and then method of bidirectional encoder representation from transformers (BERT) was applied for classifying relation between rice genomics, environment, and phenotype data based on plant ontology. Then the word vector, position vector and sentence vector were extracted in the relation dataset, and rice phenotype relation extraction model was realized based on BERT. Finally, the results of BERT model was compared with the convolutional neural network and the piecewise convolutional network model. In the comparison of the three relationship extraction models, BERT achieved the best performance, and reached an accuracy of 95.11% and F1 value of 95.85%. Deep learning methods were used to improve the performance of relation extraction of knowledge graphs, which can provide technical support for the efficient construction of a rice phenotype knowledge graph system.