非監督式深度學習之變分自動編碼器於工業機器之單一分類異常聲音檢測
Unsupervised Deep Learning of Variational Autoencoder for One-Class Anomalous Sound Detection of Industrial Machine
摘要
在工業化初期,當工廠機器設備出現異常或故障時,經驗豐富的工人通常可以通過聽聲音等方式探尋問題,然而這種方式相當仰賴工人的知識和經驗。在設備日益複雜的情況下,越來越難單純只靠人工的方法檢查機器的狀態,為了降低工廠機器維護的人力及時間成本,針對工廠機器的自動化異常檢測技術也逐漸受到關注。
目前已經有許多統計學及機器學習相關的技術被應用於異常檢測,但由於現今設備的發展都已相當成熟,在故障率極低的情況下,要收集到異常樣本相當困難,難以應用監督式學習的方法。且多數基於深度學習方法的相關研究皆著重於改善神經網路架構的設計,而未針對原始聲音資料嘗試使用不同的前處理方法,在結果的探討中也僅探討系統效能,未提及在實際使用時如何設定檢測系統之閾值。
因此,本論文針對工廠內機器聲音之狀態提出一套完整的異常檢測系統,以變分自編碼器作為基礎模型,僅以正常狀態資料建模訓練,達到非監督式單一分類檢測的效果。且透過所提之前處理方法,能將原始聲音資料有效轉換為特徵明顯之頻譜圖,並利用自注意力機制提升模型的特徵學習能力。最後,以所提方法設計檢測系統之閾值,測試時即可將輸入影像經由模型產生之重建誤差與該閾值比較,判斷資料異常與否。
目前已經有許多統計學及機器學習相關的技術被應用於異常檢測,但由於現今設備的發展都已相當成熟,在故障率極低的情況下,要收集到異常樣本相當困難,難以應用監督式學習的方法。且多數基於深度學習方法的相關研究皆著重於改善神經網路架構的設計,而未針對原始聲音資料嘗試使用不同的前處理方法,在結果的探討中也僅探討系統效能,未提及在實際使用時如何設定檢測系統之閾值。
因此,本論文針對工廠內機器聲音之狀態提出一套完整的異常檢測系統,以變分自編碼器作為基礎模型,僅以正常狀態資料建模訓練,達到非監督式單一分類檢測的效果。且透過所提之前處理方法,能將原始聲音資料有效轉換為特徵明顯之頻譜圖,並利用自注意力機制提升模型的特徵學習能力。最後,以所提方法設計檢測系統之閾值,測試時即可將輸入影像經由模型產生之重建誤差與該閾值比較,判斷資料異常與否。
In the beginning of industrialization, experienced workers can know what the problem is by sounds when an abnormal situation occurs. However, this method relies on the knowledge and experience of the workers. As factory equipment becomes more and more complex, it’s difficult to check the status of machines only by experienced workers. In order to reduce the costs of maintenance, automated anomaly detection technology for industrial machines is developing rapidly.
Nowadays, many statistics and machine learning methods have been applied to anomaly detection. However, since the failure rate of machine is usually quite low, it’s hard to get abnormal data. In other words, it’s difficult to apply supervised learning methods. Moreover, most related research based on deep learning methods focuses on improving the design of the architecture of neural network, but nobody try to use different pre-processing methods for the original sound data. And, they only show the performance of the system in the discussion of their results, but they didn’t mention how to set the threshold of the detection system.
Therefore, this paper proposes a complete anomalous sound detection system to monitor the status of industrial machine. Our model based on the architecture of variational autoencoder, and the system only uses normal data for training as an unsupervised one-class classification. And, by the proposed pre-processing method, the original sound data can be effectively converted into a spectrogram with obvious features, and the self-attention mechanism is used to improve the ability of the model to learn feature. Finally, the threshold of the detection system is designed with the proposed method, and the reconstruction error generated by the model of the input image can be compared with the threshold to determine whether the data is abnormal or not during testing.
Nowadays, many statistics and machine learning methods have been applied to anomaly detection. However, since the failure rate of machine is usually quite low, it’s hard to get abnormal data. In other words, it’s difficult to apply supervised learning methods. Moreover, most related research based on deep learning methods focuses on improving the design of the architecture of neural network, but nobody try to use different pre-processing methods for the original sound data. And, they only show the performance of the system in the discussion of their results, but they didn’t mention how to set the threshold of the detection system.
Therefore, this paper proposes a complete anomalous sound detection system to monitor the status of industrial machine. Our model based on the architecture of variational autoencoder, and the system only uses normal data for training as an unsupervised one-class classification. And, by the proposed pre-processing method, the original sound data can be effectively converted into a spectrogram with obvious features, and the self-attention mechanism is used to improve the ability of the model to learn feature. Finally, the threshold of the detection system is designed with the proposed method, and the reconstruction error generated by the model of the input image can be compared with the threshold to determine whether the data is abnormal or not during testing.