人工智慧應用於海關豬肉製品X光儀檢查緝之研究
Artificial Intelligence Applied to Customs X-ray Inspection of Pork Products
摘要
海關為兼顧邊境安全及通關便捷,運用X光儀器檢驗(儀檢)旅客行李已行之多年,為邊境攔檢走私之利器。且為防範含非洲豬瘟之豬肉製品入侵臺灣,自非洲豬瘟高風險疫區抵臺之旅客手提及託運行李需全數經X光儀器檢查。如何在查緝人力有限且需兼顧貿易便捷與安全、不影響通關效率之前提下,善用科技強化查緝效能,已成海關之重要課題。
本研究目的為探討如何將人工智慧科技應用在海關豬肉製品X光儀檢查緝,經由科學的方法,逐步建構去獲得效能及效率兼具之影像偵測組合演算法組合。
本研究依據過往海關儀檢X光機查獲豬肉製品案例影像,進行特徵分類以建立特定樣本數據資料庫,並參考特定樣本之種類,進行X光機目標影像之擷取及分析,並實際測試最佳化之類神經學習方法。為使AI輔助儀檢判讀影像軟體具有可靠之辨識判讀率與低誤警率,本研究優先運用監督式類神經學習網路技術及豬肉製品樣本幾何擴充技術,完成色階轉換、色階分離、影像還原等影像處理技術;其次搭配各類影像特徵及物件偵測技術,藉由大量豬肉製品X光影像樣本持續學習及發展,並結合各類豬肉製品X光影像特徵(如形狀、紋理和色階)分析技術,完成以旅客行李中之豬肉製品(如肉包、肉丸、香腸、火腿腸、臘肉、小香腸及粽子等)為偵測警示目標的AI輔助儀檢豬肉製品影像判讀軟體。
本研究結果顯示,含有豬肉製品之影像正確辨識出的比率不論是電腦模擬或是到機場進行實地測試的效果都較為優秀,有接近95%的準確度,也就是說經過機器學習的影像,絕大部分都可成功辨識的出來。另外未含豬肉製品之影像正確辨識的部分,在模擬測試及實地測試則有大約12%的準確度差異,實地測試的準確度較差,透過大量收集真實旅客正常態樣行李之X光影像並導入讓AI軟體學習,應可有效改善於實地測試時判讀軟體的誤判率。
本研究目的為探討如何將人工智慧科技應用在海關豬肉製品X光儀檢查緝,經由科學的方法,逐步建構去獲得效能及效率兼具之影像偵測組合演算法組合。
本研究依據過往海關儀檢X光機查獲豬肉製品案例影像,進行特徵分類以建立特定樣本數據資料庫,並參考特定樣本之種類,進行X光機目標影像之擷取及分析,並實際測試最佳化之類神經學習方法。為使AI輔助儀檢判讀影像軟體具有可靠之辨識判讀率與低誤警率,本研究優先運用監督式類神經學習網路技術及豬肉製品樣本幾何擴充技術,完成色階轉換、色階分離、影像還原等影像處理技術;其次搭配各類影像特徵及物件偵測技術,藉由大量豬肉製品X光影像樣本持續學習及發展,並結合各類豬肉製品X光影像特徵(如形狀、紋理和色階)分析技術,完成以旅客行李中之豬肉製品(如肉包、肉丸、香腸、火腿腸、臘肉、小香腸及粽子等)為偵測警示目標的AI輔助儀檢豬肉製品影像判讀軟體。
本研究結果顯示,含有豬肉製品之影像正確辨識出的比率不論是電腦模擬或是到機場進行實地測試的效果都較為優秀,有接近95%的準確度,也就是說經過機器學習的影像,絕大部分都可成功辨識的出來。另外未含豬肉製品之影像正確辨識的部分,在模擬測試及實地測試則有大約12%的準確度差異,實地測試的準確度較差,透過大量收集真實旅客正常態樣行李之X光影像並導入讓AI軟體學習,應可有效改善於實地測試時判讀軟體的誤判率。
In order to balance border security and trade facilitation, the Customs has used X-ray equipment to inspect passengers’ luggage for many years. X-ray inspection is a useful tool for border control. In addition, in order to prevent pork products containing African swine fever from invading Taiwan, passengers arriving in Taiwan from areas with high risk of African swine fever must go through X-ray inspection in their hand and checked luggage. How to make good use of technology to enhance the efficiency of inspections has become an important issue for the customs under the premise of limited manpower for inspections and the need to take into account the convenience of trade and safety without affecting the efficiency of customs clearance.
The purpose of this study is to explore how to apply artificial intelligence technology to the X-ray inspection of pork products at customs.
This study is based on the images of pork products seized by the X-ray machine of the customs instrument inspection in the past, and classifies the characteristics to establish a specific sample data database. With reference to the type of specific sample, the target image of the X-ray machine is extracted and analyzed. In order to make the AI-assisted instrument inspection software have a reliable recognition and interpretation rate and a low false alarm rate, this study prioritizes the use of supervised neural learning network technology and pork product sample geometric expansion technology to complete color scale conversion, color scale separation, Image restoration and other image processing technologies; secondly, with various image features and object detection technologies, continuous learning and development with a large number of X-ray image samples of pork products, combined with various X-ray image features of pork products (such as shape, texture and color) analysis technology, completed the AI-assisted instrument inspection pork product software that uses pork products in passenger luggage (such as meat buns, meatballs, sausages, ham sausages, bacon, small sausages, and rice dumplings, etc.) as detection and warning targets.
The results of this study show that the rate of correct identification of images containing pork products is excellent, whether it is computer simulation or field testing at the airport, with an accuracy close to 95%. That is to say, images that have undergone machine learning are recognized. Most of them can be identified successfully. In addition, there is an accuracy difference of about 12% between the simulated test and the field test for the correct identification of images that do not contain pork products. Making AI software learn should effectively improve the misjudgment rate of software during field tests.
The purpose of this study is to explore how to apply artificial intelligence technology to the X-ray inspection of pork products at customs.
This study is based on the images of pork products seized by the X-ray machine of the customs instrument inspection in the past, and classifies the characteristics to establish a specific sample data database. With reference to the type of specific sample, the target image of the X-ray machine is extracted and analyzed. In order to make the AI-assisted instrument inspection software have a reliable recognition and interpretation rate and a low false alarm rate, this study prioritizes the use of supervised neural learning network technology and pork product sample geometric expansion technology to complete color scale conversion, color scale separation, Image restoration and other image processing technologies; secondly, with various image features and object detection technologies, continuous learning and development with a large number of X-ray image samples of pork products, combined with various X-ray image features of pork products (such as shape, texture and color) analysis technology, completed the AI-assisted instrument inspection pork product software that uses pork products in passenger luggage (such as meat buns, meatballs, sausages, ham sausages, bacon, small sausages, and rice dumplings, etc.) as detection and warning targets.
The results of this study show that the rate of correct identification of images containing pork products is excellent, whether it is computer simulation or field testing at the airport, with an accuracy close to 95%. That is to say, images that have undergone machine learning are recognized. Most of them can be identified successfully. In addition, there is an accuracy difference of about 12% between the simulated test and the field test for the correct identification of images that do not contain pork products. Making AI software learn should effectively improve the misjudgment rate of software during field tests.