[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118287728A - Milling morphology state discrimination method based on acoustic signal MFCC characterization - Google Patents

Milling morphology state discrimination method based on acoustic signal MFCC characterization Download PDF

Info

Publication number
CN118287728A
CN118287728A CN202410387301.8A CN202410387301A CN118287728A CN 118287728 A CN118287728 A CN 118287728A CN 202410387301 A CN202410387301 A CN 202410387301A CN 118287728 A CN118287728 A CN 118287728A
Authority
CN
China
Prior art keywords
milling
state
machining
mfcc
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410387301.8A
Other languages
Chinese (zh)
Inventor
谢晋
张竞颖
杨林丰
贺先送
李磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN202410387301.8A priority Critical patent/CN118287728A/en
Publication of CN118287728A publication Critical patent/CN118287728A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23CMILLING
    • B23C3/00Milling particular work; Special milling operations; Machines therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0499Feedforward networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/27Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the analysis technique
    • G10L25/30Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the analysis technique using neural networks
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Biomedical Technology (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Signal Processing (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Mechanical Engineering (AREA)
  • Investigating Or Analyzing Materials By The Use Of Ultrasonic Waves (AREA)

Abstract

The invention discloses a milling morphology state judging method based on acoustic signal MFCC characterization, which comprises the following steps: detecting roughness and waviness of milling surfaces with different process parameters, correlating the data of the roughness and the waviness with the process parameters to obtain a data set, and collecting sound signals generated in the corresponding processing process; classifying the stability of the processing working condition into a stable processing state and an unstable processing state by using a data set of roughness and waviness of the processing surface morphology characterization and using a mean value clustering analysis method; the associated machining condition stability state classifies the acoustic signal into a stable milling signal and an unstable milling signal. The invention has the characteristics of easy installation and industrial application potential, can intelligently classify the characteristics of the acoustic signal MFCC, can replace a contact vibration sensor, realizes the discrimination of the processing morphology, and then improves the quality and the efficiency of the milling surface by adjusting the milling process parameters.

Description

一种基于声音信号MFCC特征化的铣削加工形貌状态判别方法A method for distinguishing milling machining morphology based on MFCC characterization of sound signals

技术领域Technical Field

本发明涉及智能加工技术,尤其涉及一种基于声音信号MFCC特征化的铣削加工形貌状态判别方法。The present invention relates to intelligent processing technology, and in particular to a method for distinguishing milling processing morphology state based on MFCC characterization of sound signals.

背景技术Background technique

机床加工过程容易产生两种振动:强迫振动和自激振动。Two types of vibrations are easily generated during machine tool processing: forced vibration and self-excited vibration.

强迫振动可通过隔离强迫元件加以控制,相比自激振动更易解决。Forced vibrations can be controlled by isolating the forcing element and are easier to resolve than self-excited vibrations.

自激振动又被称为颤振,它是由于切削过程的动态特性和机床-刀具-工件系统的模态特性之间的相互作用造成的。其中,因切削厚度变化效应产生的动态切削力激起切削系统的再生型颤振是最为有害的。这种加工状态称为不稳定加工,对工件的加工精度、刀具和主轴寿命以及加工效率都会产生不利的影响。Self-excited vibration is also called chatter, which is caused by the interaction between the dynamic characteristics of the cutting process and the modal characteristics of the machine tool-tool-workpiece system. Among them, the regenerative chatter of the cutting system caused by the dynamic cutting force generated by the cutting thickness variation effect is the most harmful. This machining state is called unstable machining, which will have an adverse effect on the machining accuracy of the workpiece, the life of the tool and spindle, and the machining efficiency.

传统加工过程中,为了避免不稳定加工状态的发生,通常离线选取保守的切削参数,这严重限制了加工效率,造成了生产上的浪费。因此,自动检测加工状态,保证切削过程的稳定进行,对工件的加工精度及加工效率至关重要。因此,为了保证加工精度和效率,实现铣削加工状态的在线识别尤其重要。目前大部分加工状态在线识别方法使用力传感器、振动传感器等接触式传感器,一方面需要与工件接触,严重影响实际加工;另一方面此类传感器价格昂贵,难以在生产现场大规模应用。In traditional machining processes, in order to avoid the occurrence of unstable machining states, conservative cutting parameters are usually selected offline, which seriously limits machining efficiency and causes waste in production. Therefore, automatic detection of machining states and ensuring the stability of the cutting process are crucial to the machining accuracy and efficiency of the workpiece. Therefore, in order to ensure machining accuracy and efficiency, it is particularly important to realize online recognition of milling machining states. At present, most online machining state recognition methods use contact sensors such as force sensors and vibration sensors. On the one hand, they need to contact with the workpiece, which seriously affects the actual machining; on the other hand, such sensors are expensive and difficult to be used on a large scale in production sites.

为解决接触式传感器安装困难及影响实际加工的问题,现有技术使用加工表面形貌特征化的粗糙度及波纹度的数据集,对加工形貌状态进行数字化分类,使用均值聚类分析方法将加工工况稳定性分类为稳定加工状态和不稳定加工状态。使用声音传感器采集相应工艺参数的声音信号,关联加工工况稳定性状态将声音信号分类为稳定铣削信号和不稳定铣削信号,提取声音信号的MFCC特征,使用BP神经网络模型对信号进行训练,实现了对铣削加工表面状态的判别。该方法使用非接触式传感器,可替代接触式振动传感器,具有大规模应用的潜力,但该方法的铣削加工状态识别仅应用于平面加工,无法适用于复杂曲面加工的监测需求。In order to solve the problem of difficult installation of contact sensors and the impact on actual processing, the existing technology uses a dataset of roughness and waviness that characterizes the machining surface morphology to digitally classify the machining morphology state, and uses the mean clustering analysis method to classify the machining condition stability into stable machining state and unstable machining state. The sound sensor is used to collect the sound signal of the corresponding process parameters, and the sound signal is associated with the machining condition stability state to classify the sound signal into stable milling signal and unstable milling signal. The MFCC features of the sound signal are extracted, and the signal is trained using the BP neural network model to realize the discrimination of the milling surface state. This method uses a non-contact sensor, which can replace a contact vibration sensor and has the potential for large-scale application. However, the milling state recognition of this method is only applied to plane machining and cannot be applied to the monitoring needs of complex curved surface machining.

发明内容Summary of the invention

本发明的目的在于克服上述现有技术的缺点和不足,提供一种基于声音信号MFCC特征化的铣削加工形貌状态判别方法。本发明通过使用声音信号特征替代加工表面形貌特征,解决了现有技术无法适用于复杂曲面加工的监测需求的技术问题。The purpose of the present invention is to overcome the shortcomings and deficiencies of the above-mentioned prior art and provide a method for distinguishing the milling machining morphology state based on the MFCC characterization of sound signals. The present invention solves the technical problem that the prior art cannot be applied to the monitoring needs of complex surface machining by using sound signal features instead of machining surface morphology features.

本发明通过下述技术方案实现:The present invention is achieved through the following technical solutions:

一种基于声音信号MFCC特征化的铣削加工形貌状态判别方法,包含以下步骤:A method for distinguishing milling machining morphology state based on MFCC characterization of sound signals comprises the following steps:

步骤一,通过对不同工艺参数的铣削加工表面进行粗糙度和波纹度的检测,采集相应加工过程中产生的声音信号,将粗糙度和波纹度的数据与工艺参数关联得到数据集;Step 1: Detect the roughness and waviness of the milling surface with different process parameters, collect the sound signals generated in the corresponding processing process, and associate the roughness and waviness data with the process parameters to obtain a data set;

步骤二,使用加工表面形貌特征化的粗糙度及波纹度的数据集,对加工形貌状态进行数字化分类,使用均值聚类分析方法将加工工况稳定性分类为稳定加工状态和不稳定加工状态;Step 2: Use the dataset of roughness and waviness of the machined surface to digitally classify the machining morphology state, and use the mean cluster analysis method to classify the machining condition stability into stable machining state and unstable machining state;

步骤三,关联加工工况稳定性状态将声音信号分类为稳定铣削信号和不稳定铣削信号;对声音信号进行预加重、分帧、加窗预处理步骤,对加窗后的信号进行傅里叶变换,求取能量谱密度;将能量谱密度矩阵与梅尔滤波器矩阵相乘,得到新矩阵H;对新矩阵H进行离散余弦变换,得到MFCC基础参数,进一步求取一阶差分系数与二阶差分系数,将这三个参数合并,得到完整的MFCC特征系数;将每一个声音信号的MFCC特征系数与加工工况稳定性状态结合得到特征矩阵,得到工艺参数关联加工工况状态的MFCC特征系数的数据集;Step three, classify the sound signal into stable milling signal and unstable milling signal by associating with the stability state of the processing condition; perform pre-emphasis, frame division and windowing preprocessing steps on the sound signal, perform Fourier transform on the windowed signal, and obtain the energy spectrum density; multiply the energy spectrum density matrix with the Mel filter matrix to obtain a new matrix H; perform discrete cosine transform on the new matrix H to obtain MFCC basic parameters, further obtain the first-order difference coefficient and the second-order difference coefficient, and combine these three parameters to obtain the complete MFCC feature coefficient; combine the MFCC feature coefficient of each sound signal with the stability state of the processing condition to obtain a feature matrix, and obtain a data set of MFCC feature coefficients of the process parameters associated with the processing condition state;

步骤四,选取部分数据集作为训练集,其它数据集作为测试集,将训练集输入BP神经网络进行训练,使用训练好的BP神经网络对测试集进行加工表面状态的判别。Step 4: Select part of the data set as the training set and the other data set as the test set, input the training set into the BP neural network for training, and use the trained BP neural network to judge the machining surface state of the test set.

上述步骤一具体包括以下步骤:通过对不同工艺参数的铣削加工表面进行粗糙度和波纹度的检测,将声音传感器放置在距离工件50mm处,采集相应加工过程中产生的声音信号,将粗糙度和波纹度的数据与工艺参数关联得到数据集。The above step one specifically includes the following steps: by testing the roughness and waviness of the milling surface with different process parameters, placing the sound sensor 50 mm away from the workpiece, collecting the sound signal generated in the corresponding processing process, and associating the roughness and waviness data with the process parameters to obtain a data set.

上述步骤二具体包括以下步骤:使用加工表面形貌特征化的粗糙度及波纹度的数据集,对加工形貌状态进行数字化分类.使用K_means聚类分析方法将加工工况稳定性分类为稳定加工状态和不稳定加工状态;The above step 2 specifically includes the following steps: using the data set of roughness and waviness characterized by the machined surface morphology, digitally classifying the machining morphology state. Using the K_means clustering analysis method, classifying the machining condition stability into stable machining state and unstable machining state;

每次铣削加工实验的粗糙度和波纹度数据x(i)=(Rai,Wai),i=1,2...8;对这组数据进行K_means聚类分类;由于需要将加工状态分为稳定和不稳定两类,所以K=2;具体步骤如下:The roughness and waviness data of each milling experiment are x (i) = (Ra i , Wa i ), i = 1, 2...8; this set of data is clustered and classified by K_means; because the processing state needs to be divided into stable and unstable categories, K = 2; the specific steps are as follows:

S1:随机选取2个聚类质心点为μ12∈R2S1: Randomly select two cluster centroids as μ 12 ∈R 2 ;

S2:对每一组实验x(i)计算其属于的类c(i)S2: For each set of experiments x (i), calculate the class c (i) to which it belongs;

c(i)=argminj||x(i)i||2c ( i ) = argmin j || x ( i ) − μ i || 2 ;

S3:对每一类c(i),重新计算该类的质心点μ;S3: For each class c (i) , recalculate the centroid point μ of the class;

重复第S2,S3直至算法收敛;能够将其分成稳定铣削状态和不稳定铣削状态。Repeat steps S2 and S3 until the algorithm converges; it can be divided into a stable milling state and an unstable milling state.

上述步骤三具体包括以下步骤:The above step three specifically includes the following steps:

关联加工工况稳定性状态将声音信号分类为稳定铣削信号和不稳定铣削信号;The sound signals are classified into stable milling signals and unstable milling signals by correlating the stability status of the machining conditions;

对原始声音信号进行预加重,加强信号的高频信息,得到预加重信号;Pre-emphasize the original sound signal to enhance the high-frequency information of the signal and obtain a pre-emphasized signal;

式中,α为预加重系数,取0.97;S(n)为原始信号;为预加重信号;Where, α is the pre-emphasis coefficient, which is 0.97; S(n) is the original signal; is the pre-emphasized signal;

对预加重信号进行分帧,选定帧长与帧移,将一段完整的声音信号分成若干帧;将这若干帧信号代入汉明窗函数,消除各个帧两端的不连续性,此过程为加窗;Divide the pre-emphasized signal into frames, select the frame length and frame shift, and divide a complete sound signal into several frames; substitute these several frame signals into the Hamming window function to eliminate the discontinuity at both ends of each frame. This process is called windowing.

S(n)=s(n)*h(n);S(n)=s(n)*h(n);

其中,s(n)为分帧后的信号;h(n)为汉明窗函数;Among them, s(n) is the framed signal; h(n) is the Hamming window function;

对于加窗后的信号,每一帧信号都进行快速傅里叶变换,对每一帧的数据点取模再平方,得到能量谱密度函数;For the windowed signal, each frame of the signal is subjected to a fast Fourier transform, and the data points of each frame are modulo and then squared to obtain the energy spectral density function;

求X(k)的平方获得能量谱,与梅尔滤波器Hp(k)相乘,计算滤波器组的对数能量,第p个滤波器组的对数能量C(p)为:The energy spectrum is obtained by squaring X(k), and then multiplied by the Mel filter Hp (k) to calculate the logarithmic energy of the filter bank. The logarithmic energy C(p) of the p-th filter bank is:

计算得到的对数能量经过离散余弦变换可得到梅尔倒谱系数:The calculated logarithmic energy can be transformed into Mel cepstral coefficients through discrete cosine transformation:

式中,M表示MFCC特征的维数;Where M represents the dimension of MFCC features;

得到的梅尔倒谱系数为MFCC基础参数,进一步求取一阶差分系数与二阶差分系数,将这三个参数合并,得到完整的MFCC系数;将每一个声音信号的MFCC特征系数与加工工况稳定性状态结合得到特征矩阵,得到不同工艺参数关联加工工况状态的MFCC特征系数的数据集。The obtained Mel-frequency cepstral coefficients are the basic parameters of MFCC. The first-order difference coefficients and second-order difference coefficients are further calculated, and these three parameters are combined to obtain the complete MFCC coefficients. The MFCC characteristic coefficients of each sound signal are combined with the stability state of the processing condition to obtain the characteristic matrix, and a data set of MFCC characteristic coefficients of different process parameters associated with the processing condition is obtained.

上述步骤四具体包括以下步骤:The above step 4 specifically includes the following steps:

BP神经网络创建:BP神经网络超参数设置,隐藏层节点个数;最大迭代次数;误差阈值;学习率;BP neural network creation: BP neural network hyperparameter settings, number of hidden layer nodes; maximum number of iterations; error threshold; learning rate;

网络训练和测试:网络训练是一个不断修正权值和阈值的过程,通过训练使网络的输出误差越来越小;Network training and testing: Network training is a process of continuously correcting weights and thresholds, and through training, the output error of the network is made smaller and smaller;

选取训练信号,训练后进行状态判别:步骤三得到的特征矩阵,随机选取若干个特征矩阵作为训练集,通入BP神经网络中训练;剩余数据作为测试集,通入训练好的BP神经网络模型,实现对加工表面状态的判别。Select training signals and perform state discrimination after training: Randomly select several feature matrices obtained in step 3 as training sets and pass them into the BP neural network for training; the remaining data is used as a test set and passed into the trained BP neural network model to realize the discrimination of the machining surface state.

本发明训练数据不低于100组,特征值矩阵的维度不低于30维。The training data of the present invention is not less than 100 groups, and the dimension of the eigenvalue matrix is not less than 30 dimensions.

本发明相对于现有技术,具有如下的优点及效果:Compared with the prior art, the present invention has the following advantages and effects:

本发明通过对不同工艺参数的铣削加工表面进行粗糙度和波纹度的检测,采集相应加工过程中产生的声音信号,将粗糙度和波纹度的数据与工艺参数关联得到数据集。The present invention detects the roughness and waviness of the milling surface with different process parameters, collects the sound signals generated in the corresponding processing process, and associates the roughness and waviness data with the process parameters to obtain a data set.

本发明使用加工表面形貌特征化的粗糙度及波纹度的数据集,对加工形貌状态进行数字化分类,使用均值聚类分析方法将加工工况稳定性分类为稳定加工状态和不稳定加工状态。The present invention uses a data set of roughness and waviness that characterizes the machining surface morphology to digitally classify the machining morphology state, and uses a mean cluster analysis method to classify the machining condition stability into a stable machining state and an unstable machining state.

本发明关联加工工况稳定性状态将声音信号分类为稳定铣削信号和不稳定铣削信号。对所有声音信号进行预处理,然后提取MFCC特征系数,将MFCC特征系数和加工工况稳定性状态结合得到数据集。The present invention classifies the sound signal into stable milling signal and unstable milling signal in association with the stability state of the machining condition. All the sound signals are preprocessed, and then the MFCC feature coefficients are extracted, and the MFCC feature coefficients are combined with the stability state of the machining condition to obtain a data set.

本发明将数据集分成训练集和预测集,将训练集通入BP神经网络训练模型,并使用训练后的神经网络模型对测试集进行铣削加工表面形貌状态的判别。本发明具备对易安装、具备工业应用潜力的特点,可以取代接触式振动传感器,通过改变加工参数,同时提高铣削加工表面质量和效率。The present invention divides the data set into a training set and a prediction set, passes the training set into the BP neural network training model, and uses the trained neural network model to discriminate the milling surface morphology state of the test set. The present invention has the characteristics of easy installation and industrial application potential, can replace the contact vibration sensor, and improve the milling surface quality and efficiency by changing the processing parameters.

本发明具备对易安装、具备工业应用潜力的特点,对声音信号MFCC特征进行智能分类,可以取代接触式振动传感器,实现加工形貌判别,然后通过调整铣削加工工艺参数,同时提高铣削加工表面质量和效率。The present invention is easy to install and has the potential for industrial application. It can intelligently classify the MFCC features of the sound signal, replace the contact vibration sensor, realize the processing morphology discrimination, and then improve the milling surface quality and efficiency by adjusting the milling process parameters.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明方法加工系统示意图;其中1表示主轴箱,2表示铣刀,3表示工件,4表示声音传感器,5表示数据采集卡,6表示电脑。Fig. 1 is a schematic diagram of a processing system of the method of the present invention; wherein 1 represents a spindle box, 2 represents a milling cutter, 3 represents a workpiece, 4 represents a sound sensor, 5 represents a data acquisition card, and 6 represents a computer.

图2为加工示意图。Figure 2 is a schematic diagram of the processing.

图3为不稳定加工状态下的表面轮廓曲线图。FIG3 is a graph showing the surface profile under unstable machining conditions.

图3(a)表面粗糙度曲线。Fig. 3(a) Surface roughness curve.

图3(b)表面波纹度曲线。Fig. 3(b) Surface waviness curve.

图4为稳定加工状态下的表面轮廓曲线图。FIG. 4 is a graph showing the surface profile under stable machining conditions.

图4(a)表面粗糙度曲线。Fig. 4(a) Surface roughness curve.

图4(b)表面波纹度曲线。Fig. 4(b) Surface waviness curve.

图5为表面波纹度预粗糙度聚类分类图。Figure 5 is a surface waviness pre-roughness cluster classification diagram.

图6为声音信号时域图。FIG6 is a time domain diagram of a sound signal.

图6(a)稳定声音信号时域图。Figure 6(a) Time domain diagram of stable sound signal.

图6(b)不稳定声音信号时域图。Fig. 6(b) Time domain diagram of unstable sound signal.

图7为MFCC特征三维图。Figure 7 is a three-dimensional graph of MFCC features.

图8为BP神经网络预测准确率图。Figure 8 is a graph showing the prediction accuracy of the BP neural network.

具体实施方式Detailed ways

下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变化和改进。这些都属于本发明的保护范围。The present invention will be described in further detail below in conjunction with examples and accompanying drawings, but the embodiments of the present invention are not limited thereto. The following examples will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

本发明公开了一种基于声音信号MFCC特征化的铣削加工形貌状态判别方法,可通过如下步骤实现:The present invention discloses a method for distinguishing the milling machining morphology state based on the MFCC characterization of sound signals, which can be achieved through the following steps:

步骤一:通过安装在数控铣床上部的声音传感器,距离工件100mm处,采集铣削过程中的声音信号。采样频率为4096Hz。如图1所示。Step 1: The sound sensor installed on the upper part of the CNC milling machine is 100 mm away from the workpiece to collect the sound signal during the milling process. The sampling frequency is 4096 Hz. See Figure 1.

设计多组平面铣削实验,固定进给速度600mm/mim,径向切深为5mm,工件材料为45钢,工件长度100mm,工件是阶梯形,每一个阶梯高度0.3mm,长度20mm,加工总时长为10s,改变主轴转速和切削深度。如图2所示。Design multiple sets of plane milling experiments, with a fixed feed rate of 600mm/mim, a radial cutting depth of 5mm, a workpiece material of 45 steel, a workpiece length of 100mm, a step-shaped workpiece, each step height of 0.3mm, length of 20mm, a total processing time of 10s, and change of spindle speed and cutting depth. As shown in Figure 2.

一共有40组加工参数组合,每种加工参数组合选取4段时长为0.4秒的声音信号,共有160组声音信号。There are 40 sets of processing parameter combinations in total. For each processing parameter combination, 4 sound signals with a duration of 0.4 seconds are selected, and there are 160 sets of sound signals in total.

采用激光共聚焦显微镜表征表面加工的微槽的三维轮廓,对每一组的工件表面进行粗糙度和波纹度检测。Laser confocal microscopy was used to characterize the three-dimensional profile of the microgrooves machined on the surface, and the roughness and waviness of the workpiece surface of each group were tested.

使用原子力显微镜图像处理软件Gwyddion实现数据可视化,取1mm长度的粗糙度平均值和波纹度平均值作为该工件的粗糙度数据及波纹度数据。如图2、图3所示。The atomic force microscope image processing software Gwyddion was used to realize data visualization, and the average roughness and waviness values of 1 mm in length were taken as the roughness and waviness data of the workpiece, as shown in Figures 2 and 3.

步骤二:Step 2:

使用加工表面形貌特征化的粗糙度及波纹度的数据集,对加工形貌状态进行数字化分类.使用K_means聚类分析方法将加工工况稳定性分类为稳定加工状态和不稳定加工状态。The roughness and waviness data sets that characterize the machined surface morphology are used to digitally classify the machining morphology states. The K_means clustering analysis method is used to classify the machining condition stability into stable machining state and unstable machining state.

每次铣削加工实验的粗糙度和波纹度数据x(i)=(Rai,Wai),i=1,2,...8。对这组数据进行K_means聚类分类。由于需要将加工状态分为稳定和不稳定两类,所以K=2。具体步骤如下:The roughness and waviness data of each milling experiment are x (i) = (Ra i , Wa i ), i = 1, 2, ... 8. This set of data is clustered and classified by K_means. Since the processing state needs to be divided into stable and unstable categories, K = 2. The specific steps are as follows:

步骤S1:随机选取2个聚类质心点为μ12∈R2Step S1: Randomly select two cluster centroids as μ 12 ∈R 2 ;

步骤S2:对每一组实验x(i)计算其属于的类c(i)Step S2: For each group of experiments x (i), calculate the class c (i) to which it belongs;

c(i)=argminj||x(i)i||2c ( i ) = argmin j || x ( i ) − μ i || 2 ;

步骤S3:对每一类c(i),重新计算该类的质心点μ;Step S3: For each class c (i) , recalculate the centroid point μ of the class;

重复步骤S1和S3步直至算法收敛。将工件的表面分成稳定加工表面和不稳定加工表面,如图5所示。Repeat steps S1 and S3 until the algorithm converges. The surface of the workpiece is divided into a stable machining surface and an unstable machining surface, as shown in FIG5 .

步骤三:Step 3:

关联加工工况稳定性状态将声音信号分类为稳定铣削信号和不稳定铣削信号。将这160组声音信号分为稳定加工状态信号和不稳定加工状态信号。稳定声音信号和不稳定声音信号如图6所示。The sound signals are classified into stable milling signals and unstable milling signals by associating the stability state of the machining condition. The 160 groups of sound signals are divided into stable machining state signals and unstable machining state signals. The stable sound signals and the unstable sound signals are shown in FIG6 .

得到的声音信号长度为0.4s,采样频率为4096Hz,共1638个采样点。The obtained sound signal length is 0.4s, the sampling frequency is 4096Hz, and there are 1638 sampling points in total.

对原始声音信号进行预加重,加强信号的高频信息,得到预加重信号。The original sound signal is pre-emphasized to strengthen the high-frequency information of the signal and obtain a pre-emphasized signal.

式中,α为预加重系数,取0.97;S(n)为原始信号;为预加重信号。Where, α is the pre-emphasis coefficient, which is 0.97; S(n) is the original signal; is the pre-emphasized signal.

对预加重信号进行分帧,选定帧长1103与帧移441,将一段完整的声音信号分成4帧,帧信号的长度为1103个点。将这4帧信号代入汉明窗函数,消除各个帧两端的不连续性,此过程为加窗。The pre-emphasized signal is divided into frames, and the frame length is selected as 1103 and the frame shift is 441. A complete sound signal is divided into 4 frames, and the length of the frame signal is 1103 points. These 4 frames of signal are substituted into the Hamming window function to eliminate the discontinuity at both ends of each frame. This process is called windowing.

S(n)=s(n)*h(n);S(n)=s(n)*h(n);

其中,s(n)为分帧后的信号;h(n)为汉明窗函数Among them, s(n) is the framed signal; h(n) is the Hamming window function

对于加窗后的信号,每一帧信号都进行快速傅里叶变换,对每一帧的数据点取模再平方,得到能量谱密度函数。For the windowed signal, each frame of the signal is subjected to a fast Fourier transform, and the data points of each frame are modulo and then squared to obtain the energy spectral density function.

求X(k)的平方获得能量谱,与梅尔滤波器Hp(k)相乘,计算滤波器组的对数能量,第p个滤波器组的对数能量C(p)为The energy spectrum is obtained by squaring X(k), multiplying it with the Mel filter Hp (k), and calculating the logarithmic energy of the filter bank. The logarithmic energy C(p) of the p-th filter bank is

计算得到的对数能量经过离散余弦变换可得到梅尔倒谱系数:The calculated logarithmic energy can be transformed into Mel cepstral coefficients through discrete cosine transformation:

式中,M表示MFCC特征的维数。Where M represents the dimension of MFCC features.

得到的梅尔倒谱系数为MFCC基础参数,进一步求取一阶差分系数与二阶差分系数,将这三个参数合并,得到完整的MFCC系数。将MFCC系数与聚类分类结果相关联,得到特征矩阵。MFCC特征维数共有39维,长度为4,对每一维的4个数据取平均值,作为这段加工信号的MFCC特征系数。MFCC特征系数随时间变化的结果如图7所示。The obtained Mel cepstral coefficient is the basic parameter of MFCC. The first-order difference coefficient and the second-order difference coefficient are further obtained. The three parameters are combined to obtain the complete MFCC coefficient. The MFCC coefficient is associated with the cluster classification result to obtain the feature matrix. The MFCC feature dimension has 39 dimensions and a length of 4. The average value of the 4 data in each dimension is taken as the MFCC feature coefficient of this processed signal. The result of the change of MFCC feature coefficient over time is shown in Figure 7.

聚类结果为不稳定状态,设置为1;聚类结果为稳定状态,设置为2。将所有参数组合的MFCC特征系数及加工工况稳定性结果组合得到数据集R。得到工艺参数关联加工工况状态的MFCC特征系数的数据集。If the clustering result is an unstable state, it is set to 1; if the clustering result is a stable state, it is set to 2. The MFCC characteristic coefficients of all parameter combinations and the stability results of the processing conditions are combined to obtain the data set R. The data set of the MFCC characteristic coefficients of the process parameters associated with the processing conditions is obtained.

步骤四:Step 4:

BP神经网络创建:BP neural network creation:

1.网络创建:BP神经网络超参数设置,隐藏层节点个数为5,最大迭代次数1000,误差阈值10-6,学习率0.011. Network creation: BP neural network hyperparameter settings, the number of hidden layer nodes is 5, the maximum number of iterations is 1000, the error threshold is 10 -6 , and the learning rate is 0.01

2.网络训练和测试:2. Network training and testing:

网络训练是一个不断修正权值和阈值的过程,通过训练使网络的输出误差越来越小。Network training is a process of continuously correcting weights and thresholds, and through training, the output error of the network is made smaller and smaller.

二、选取训练信号,训练后进行状态判别2. Select training signals and perform state discrimination after training

步骤3得到的数据集R,共160个数据,随机选取110个数据作为训练集,通入基于遗传算法的BP神经网络中训练。The data set R obtained in step 3 has a total of 160 data. 110 data are randomly selected as the training set and passed into the BP neural network based on genetic algorithm for training.

剩余50个数据作为测试集,通入BP神经网络分类模型,实现对加工表面状态的判别。训练与测试结果详见图8。The remaining 50 data are used as test sets and fed into the BP neural network classification model to distinguish the state of the machined surface. The training and test results are shown in Figure 8.

以上所述,仅是本发明的较佳实施例而已,并非对本发明的技术范围作任何限制,故凡是依据本发明的技术实质对以上实施例所作的任何细微修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above description is only a preferred embodiment of the present invention and does not limit the technical scope of the present invention. Therefore, any slight modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.

Claims (6)

1.一种基于声音信号MFCC特征化的铣削加工形貌状态判别方法,其特征在于,包含以下步骤:1. A method for distinguishing milling machining morphology based on MFCC characterization of sound signals, characterized in that it comprises the following steps: 步骤一,通过对不同工艺参数的铣削加工表面进行粗糙度和波纹度的检测,采集相应加工过程中产生的声音信号,将粗糙度和波纹度的数据与工艺参数关联得到数据集;Step 1: Detect the roughness and waviness of the milling surface with different process parameters, collect the sound signals generated in the corresponding processing process, and associate the roughness and waviness data with the process parameters to obtain a data set; 步骤二,使用加工表面形貌特征化的粗糙度及波纹度的数据集,对加工形貌状态进行数字化分类,使用均值聚类分析方法将加工工况稳定性分类为稳定加工状态和不稳定加工状态;Step 2: Use the dataset of roughness and waviness of the machined surface to digitally classify the machining morphology state, and use the mean cluster analysis method to classify the machining condition stability into stable machining state and unstable machining state; 步骤三,关联加工工况稳定性状态将声音信号分类为稳定铣削信号和不稳定铣削信号;对声音信号进行预加重、分帧、加窗预处理步骤,对加窗后的信号进行傅里叶变换,求取能量谱密度;将能量谱密度矩阵与梅尔滤波器矩阵相乘,得到新矩阵H;对新矩阵H进行离散余弦变换,得到MFCC基础参数,进一步求取一阶差分系数与二阶差分系数,将这三个参数合并,得到完整的MFCC特征系数;将每一个声音信号的MFCC特征系数与加工工况稳定性状态结合得到特征矩阵,得到工艺参数关联加工工况状态的MFCC特征系数的数据集;Step three, classify the sound signal into stable milling signal and unstable milling signal by associating with the stability state of the processing condition; perform pre-emphasis, frame division and windowing preprocessing steps on the sound signal, perform Fourier transform on the windowed signal, and obtain the energy spectrum density; multiply the energy spectrum density matrix with the Mel filter matrix to obtain a new matrix H; perform discrete cosine transform on the new matrix H to obtain MFCC basic parameters, further obtain the first-order difference coefficient and the second-order difference coefficient, and combine these three parameters to obtain the complete MFCC feature coefficient; combine the MFCC feature coefficient of each sound signal with the stability state of the processing condition to obtain a feature matrix, and obtain a data set of MFCC feature coefficients of the process parameters associated with the processing condition state; 步骤四,选取部分数据集作为训练集,其它数据集作为测试集,将训练集输入BP神经网络进行训练,使用训练好的BP神经网络对测试集进行加工表面状态的判别。Step 4: Select part of the data set as the training set and the other data set as the test set, input the training set into the BP neural network for training, and use the trained BP neural network to judge the machining surface state of the test set. 2.根据权利要求1所述基于声音信号MFCC特征化的铣削加工形貌状态判别方法,其特征在于步骤一具体包括以下步骤:通过对不同工艺参数的铣削加工表面进行粗糙度和波纹度的检测,将声音传感器放置在距离工件50mm处,采集相应加工过程中产生的声音信号,将粗糙度和波纹度的数据与工艺参数关联得到数据集。2. According to claim 1, the method for distinguishing the milling morphology state based on the MFCC characterization of the sound signal is characterized in that step one specifically includes the following steps: by detecting the roughness and waviness of the milling surface with different process parameters, placing the sound sensor at a distance of 50 mm from the workpiece, collecting the sound signal generated in the corresponding processing process, and associating the roughness and waviness data with the process parameters to obtain a data set. 3.根据权利要求1所述基于声音信号MFCC特征化的铣削加工形貌状态判别方法,其特征在于步骤二具体包括以下步骤:使用加工表面形貌特征化的粗糙度及波纹度的数据集,对加工形貌状态进行数字化分类;使用K_means聚类分析方法将加工工况稳定性分类为稳定加工状态和不稳定加工状态;3. According to the method for distinguishing the milling machining morphology state based on the MFCC characterization of the sound signal in claim 1, it is characterized in that step 2 specifically comprises the following steps: using the data set of roughness and waviness characterized by the machining surface morphology to digitally classify the machining morphology state; using the K_means clustering analysis method to classify the machining condition stability into a stable machining state and an unstable machining state; 每次铣削加工实验的粗糙度和波纹度数据x(i)=(Rai,Wai),i=1,2...8;对这组数据进行K_means聚类分类;由于需要将加工状态分为稳定和不稳定两类,所以K=2;具体步骤如下:The roughness and waviness data of each milling experiment are x (i) = (Ra i , Wa i ), i = 1, 2...8; this set of data is clustered and classified by K_means; because the processing state needs to be divided into stable and unstable categories, K = 2; the specific steps are as follows: S1:随机选取2个聚类质心点为μ12∈R2S1: Randomly select two cluster centroids as μ 12 ∈R 2 ; S2:对每一组实验x(i)计算其属于的类c(i)S2: For each set of experiments x (i), calculate the class c (i) to which it belongs; c(i)=argminj||x(i)i||2c ( i ) = argmin j || x ( i ) − μ i || 2 ; S3:对每一类c(i),重新计算该类的质心点μ;S3: For each class c (i) , recalculate the centroid point μ of the class; 重复第S2,S3直至算法收敛;能够将其分成稳定铣削状态和不稳定铣削状态。Repeat steps S2 and S3 until the algorithm converges; it can be divided into a stable milling state and an unstable milling state. 4.根据权利要求1所述基于声音信号MFCC特征化的铣削加工形貌状态判别方法,其特征在于,所述步骤三具体包括以下步骤:4. According to the method for distinguishing the milling machining morphology state based on the MFCC characterization of the sound signal in claim 1, it is characterized in that the step three specifically comprises the following steps: 关联加工工况稳定性状态将声音信号分类为稳定铣削信号和不稳定铣削信号;The sound signals are classified into stable milling signals and unstable milling signals by correlating the stability status of the machining conditions; 对原始声音信号进行预加重,加强信号的高频信息,得到预加重信号;Pre-emphasize the original sound signal to enhance the high-frequency information of the signal and obtain a pre-emphasized signal; 式中,α为预加重系数,取0.97;S(n)为原始信号;为预加重信号;Where, α is the pre-emphasis coefficient, which is 0.97; S(n) is the original signal; is the pre-emphasized signal; 对预加重信号进行分帧,选定帧长与帧移,将一段完整的声音信号分成若干帧;将这若干帧信号代入汉明窗函数,消除各个帧两端的不连续性,此过程为加窗;Divide the pre-emphasized signal into frames, select the frame length and frame shift, and divide a complete sound signal into several frames; substitute these several frame signals into the Hamming window function to eliminate the discontinuity at both ends of each frame. This process is called windowing. S(n)=s(n)*h(n);S(n)=s(n)*h(n); 其中,s(n)为分帧后的信号;h(n)为汉明窗函数;Among them, s(n) is the framed signal; h(n) is the Hamming window function; 对于加窗后的信号,每一帧信号都进行快速傅里叶变换,对每一帧的数据点取模再平方,得到能量谱密度函数;For the windowed signal, each frame of the signal is subjected to a fast Fourier transform, and the data points of each frame are modulo and then squared to obtain the energy spectral density function; 求X(k)的平方获得能量谱,与梅尔滤波器Hp(k)相乘,计算滤波器组的对数能量,第p个滤波器组的对数能量C(p)为:The energy spectrum is obtained by squaring X(k), and then multiplied by the Mel filter Hp (k) to calculate the logarithmic energy of the filter bank. The logarithmic energy C(p) of the p-th filter bank is: 计算得到的对数能量经过离散余弦变换可得到梅尔倒谱系数:The calculated logarithmic energy can be transformed into Mel cepstral coefficients through discrete cosine transformation: 式中,M表示MFCC特征的维数;Where M represents the dimension of MFCC features; 得到的梅尔倒谱系数为MFCC基础参数,进一步求取一阶差分系数与二阶差分系数,将这三个参数合并,得到完整的MFCC系数;将每一个声音信号的MFCC特征系数与加工工况稳定性状态结合得到特征矩阵,得到不同工艺参数关联加工工况状态的MFCC特征系数的数据集。The obtained Mel-frequency cepstral coefficients are the basic parameters of MFCC. The first-order difference coefficients and second-order difference coefficients are further calculated, and these three parameters are combined to obtain the complete MFCC coefficients. The MFCC characteristic coefficients of each sound signal are combined with the stability state of the processing condition to obtain the characteristic matrix, and a data set of MFCC characteristic coefficients of different process parameters associated with the processing condition is obtained. 5.根据权利要求1所述基于声音信号MFCC特征化的铣削加工形貌状态判别方法,其特征在于所述步骤四具体包括以下步骤:5. According to the method for distinguishing the milling machining morphology state based on the MFCC characterization of the sound signal in claim 1, it is characterized in that the step 4 specifically comprises the following steps: BP神经网络创建:BP神经网络超参数设置,隐藏层节点个数;最大迭代次数;误差阈值;学习率;BP neural network creation: BP neural network hyperparameter settings, number of hidden layer nodes; maximum number of iterations; error threshold; learning rate; 网络训练和测试:网络训练是一个不断修正权值和阈值的过程,通过训练使网络的输出误差越来越小;Network training and testing: Network training is a process of continuously correcting weights and thresholds, and through training, the output error of the network is made smaller and smaller; 选取训练信号,训练后进行状态判别:步骤三得到的特征矩阵,随机选取若干个特征矩阵作为训练集,通入BP神经网络中训练;剩余数据作为测试集,通入训练好的BP神经网络模型,实现对加工表面状态的判别。Select training signals and perform state discrimination after training: Randomly select several feature matrices obtained in step 3 as training sets and pass them into the BP neural network for training; the remaining data is used as a test set and passed into the trained BP neural network model to realize the discrimination of the machining surface state. 6.根据权利要求5所述基于声音信号MFCC特征化的铣削加工形貌状态判别方法,其特征在于,训练数据不低于100组,特征值矩阵的维度不低于30维。6. According to the method for distinguishing the milling machining morphology state based on MFCC characterization of sound signals in claim 5, it is characterized in that the training data is not less than 100 groups and the dimension of the eigenvalue matrix is not less than 30 dimensions.
CN202410387301.8A 2024-04-01 2024-04-01 Milling morphology state discrimination method based on acoustic signal MFCC characterization Pending CN118287728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410387301.8A CN118287728A (en) 2024-04-01 2024-04-01 Milling morphology state discrimination method based on acoustic signal MFCC characterization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410387301.8A CN118287728A (en) 2024-04-01 2024-04-01 Milling morphology state discrimination method based on acoustic signal MFCC characterization

Publications (1)

Publication Number Publication Date
CN118287728A true CN118287728A (en) 2024-07-05

Family

ID=91677129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410387301.8A Pending CN118287728A (en) 2024-04-01 2024-04-01 Milling morphology state discrimination method based on acoustic signal MFCC characterization

Country Status (1)

Country Link
CN (1) CN118287728A (en)

Similar Documents

Publication Publication Date Title
US11761930B2 (en) Prediction method of part surface roughness and tool wear based on multi-task learning
Yang et al. Vibration singularity analysis for milling tool condition monitoring
Tran et al. Drill fault diagnosis based on the scalogram and mel spectrogram of sound signals using artificial intelligence
Li et al. Data-driven smart manufacturing: Tool wear monitoring with audio signals and machine learning
Arun et al. Tool condition monitoring of cylindrical grinding process using acoustic emission sensor
Niu et al. Multisensory based tool wear monitoring for practical applications in milling of titanium alloy
Li A brief review: acoustic emission method for tool wear monitoring during turning
CN110059442B (en) Turning tool changing method based on part surface roughness and power information
CN111037365B (en) Tool Condition Monitoring Dataset Enhancement Method Based on Generative Adversarial Networks
CN111633467B (en) A tool wear state monitoring method based on one-dimensional depthwise convolutional autoencoder
CN110153801A (en) A tool wear state identification method based on multi-feature fusion
Sun et al. Detection of tool breakage during milling process through acoustic emission
CN113927371A (en) Cutter wear prediction method based on multi-sensor feature fusion
CN111366123A (en) A prediction method of part surface roughness and tool wear based on multi-task learning
Patra Acoustic emission based tool condition monitoring system in drilling
CN112192319A (en) Tool wear monitoring method and system of unsupervised model
CN114346761B (en) Cutter abrasion condition detection method based on improved condition generation countermeasure network
CN112405072A (en) On-line monitoring method and device for cutting chatter of machine tool
CN114492527A (en) On-line prediction method of surface roughness based on fuzzy neural network and principal component analysis
Du et al. Intelligent turning tool monitoring with neural network adaptive learning
He et al. On-line milling tool wear monitoring under practical machining conditions
CN113369993B (en) Method for monitoring tool wear state under small sample
CN118287728A (en) Milling morphology state discrimination method based on acoustic signal MFCC characterization
Yin et al. Multi-information fusion recognition model and experimental study of grinding wheel wear status
CN105930602A (en) Optimal weighted wavelet package entropy-based chattering detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination