This chapter mainly introduces production processing optimization, especially for machining processing optimization on CNC. The sensor collects the original vibration data in time domain and converts them to the main feature vector using signal processing technologies, such as fast Fourier transform (FFT), short-time Fourier transform (STFT), and wavelet packet in the 5G AI edge computing. Subsequently, the main feature will be sent for cloud computing using genetic programming, Space Vector Machine (SVM), etc. to obtain optimization results. The optimization parameters in this work include machining spindle rotation velocity, cutting speed, and cutting depth, while, the result is the optimized main spindle rotation speed range of CNC, which met machining roughness requirements. Finally, the relationship between vibration velocity and machining quality is further studied to optimize the three operational parameters.