The invention belongs to the technical field of operation risk diagnosis and prediction models, and discloses a thoracotomy risk diagnosis and prediction model in thoracoscope lung cancer resection and a construction system. The construction system of the thoracoscope lung cancer resection transfer thoracotomy risk diagnosis and prediction model comprises a data acquisition module, a risk diagnosis model construction module, a data preprocessing module, a data fusion module, a data set training module, a model verification and optimization module, a central control module, a risk diagnosis and prediction module, a data storage module, and an update display module. According to the method, on the basis of tens of thousands of data of the thoracic surgery department of the West China hospital, a risk diagnosis and prediction model for lung cancer thoracoscopic surgery transfer thoracotomy is established through machine learning algorithms such as classical logistic regression, an artificial neural network and a random forest, and after some indexes are input on the basis of an established webpage version nomogram, the size of the chest opening risk in the thoracoscope lung cancer resection can be predicted on line.