The invention relates to a device for collecting data in real time and optimizing a
numerical control spinning machining process, which comprises a
machining platform and a main shaft mechanism arranged on the
machining platform, and a
tail jacking mechanism is arranged on the axially opposite side of the main shaft mechanism; a
spinning roller mechanism is arranged on the side surface of a connecting line of the main shaft mechanism and the
tail jacking mechanism; an industrial computer is arranged on one side of the machining platform, a
pressure sensor, an abrasion sensor, a displacement sensor, a rotating speed sensor, a temperature sensor and a
vibration sensor which are electrically connected with the industrial computer are arranged on the machining platform, and the control output end of the industrial computer is electrically connected with the main shaft mechanism, the
tail jacking mechanism and the
spinning roller mechanism. Information such as the pressure, the temperature and the abrasion condition of the cutter during spinning can be collected in real time through the sensor, then data are processed through the industrial computer, a
control signal is output, then machining parameters can be dynamically adjusted, and spinning is more accurate, efficient and
safer.