The invention relates to a multi-
machine-tool thermal error prediction space-time diagram modeling method based on meta-learning, and the method comprises the following steps: data collection: collecting the
thermal deformation data of a main shaft and the temperature data of each part of a
machine tool at a corresponding moment within a certain time from the starting to the operation of the
machine tool at an interval time; then arranging temperature and
thermal deformation data into a graph format required by SGAT, dividing a
data set into a meta-
training set, a meta-
test set and a meta-task, and then dividing a training structure into internal circulation and external training by a meta-learning method; the processed graph data is put into an SGAT-Transform, training is carried out in combination with the divided meta
training set, meta
test set and subtasks, and a complete MAML-SGAT-Transform model capable of adapting to unknown working conditions is obtained; and after the MAML-SGAT-Transform model is trained, rapid
adaptation is carried out on a support set of a corresponding meta
test set, and the robust performance of modeling under multiple working conditions of a single
machine tool and different working conditions of multiple machine tools can be enhanced.