This invention proposes a method,
system, device, and medium for relation completion in
cement-based materials, belonging to the field of
cement-based composite materials technology. The method includes: constructing a set of triples for a material spectrum based on original text samples of the
cement-based material's formulation, process, and properties; training an
encoder based on the triple set to obtain a first relation encoding model; mixing unlabeled samples into the original text samples and using the first relation encoding model as a model base, semi-
supervised training of the first relation encoding model using a self-adversarial
loss function to obtain a second relation encoding model, and extracting the source node embedding, target node embedding, and relation embedding of all triples; constructing a positive and
negative sample pair input self-interference decoder to predict missing relations in the material spectrum; traversing the material spectrum, inputting the embeddings of any two nodes, and completing the missing relations based on the self-interference decoder. This invention achieves relational semantic reasoning for cement-based materials, thereby improving the accuracy of relation completion.