The invention discloses a numerical control machine tool accessory production automation equipment data detection system based on the Internet of Things. The system comprises a camera, a data acquisition module, a Zigbee coordinator, a Zigbee intelligent gateway, a data analysis module, an energy consumption monitoring module, an energy consumption analysis module, a comparison module, a controller, a cloud platform, a big data reference module and an equipment management module. Through the camera and the data analysis module, the production equipment can be automatically identified by combining the Internet, then normal operation information required by the production equipment can be automatically obtained through the big data reference module, and then the operation information of theproduction equipment can be adjusted in time through the data acquisition module and the equipment management module. Based on the production equipment energy consumption monitoring data, the production equipment state is analyzed and diagnosed, and the energy consumption abnormity of the production equipment is identified and predicted.