Ball screw is one of the main basic transmission components in CNC machine tool feed system because of its high transmission efficiency, positioning accuracy, and rigidity. It plays an irreplaceable role in the process of machine tool torque transmission and positioning. However, ball screw is also one of the parts which are easy to break down in the feed system. If it breaks down, it will affect the processing accuracy of the whole machine tool and even cause shutdown. Numerical control means that digital control is a high-efficiency technology that uses digital information to control mechanical movement and processing processes. Therefore, to increase the high-speed and high-precision operation ability of CNC machine tools, research and development of efficient and reliable predictive maintenance and issue identification technology to guide maintenance of CNC machine tools are critical. Throughout this study, a bispectrum image-based embedded defect fight against the disease for cylindrical gears is provided. Firstly, the bispectrum of fault signal is generated by Wavelet Packet Threshold denoising, wavelet packet reconstruction, and bispectrum analysis, and the characteristics of bispectrum are represented by the first kind of gray moments. These feature statistics are used as input feature vectors of BP neural network pattern recognition algorithm to classify these feature sets and identify the corresponding gear fault types. Experiments show that under the condition of noise, after 14.5 hours of testing, the NGI has increased significantly and can be used to diagnose faults in the gear system, and the method achieves relatively ideal recognition rate and verifies the feasibility of gear box fault diagnosis method based on image recognition. The code compiled by OpenCV library is easy to transplant to embedded system, with high development efficiency and reliable program operation. OpenCV has the characteristics of powerful matrix computing capability and convenient and flexible interface, and it is a general algorithm that can realize real-time image processing.