WO2023036346A1 - Yolov5-based method and apparatus for performing real-time detection of blade crack during operation and maintenance of aero engine - Google Patents

Yolov5-based method and apparatus for performing real-time detection of blade crack during operation and maintenance of aero engine Download PDF

Info

Publication number
WO2023036346A1
WO2023036346A1 PCT/CN2022/119657 CN2022119657W WO2023036346A1 WO 2023036346 A1 WO2023036346 A1 WO 2023036346A1 CN 2022119657 W CN2022119657 W CN 2022119657W WO 2023036346 A1 WO2023036346 A1 WO 2023036346A1
Authority
WO
WIPO (PCT)
Prior art keywords
data set
engine
blade
training
image
Prior art date
Application number
PCT/CN2022/119657
Other languages
French (fr)
Chinese (zh)
Inventor
李双宝
于婧仪
Original Assignee
中国民航大学
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 中国民航大学 filed Critical 中国民航大学
Publication of WO2023036346A1 publication Critical patent/WO2023036346A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • 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/045Combinations of 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning

Definitions

  • the invention relates to the technical field of aero-generator detection, in particular to a method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5.
  • Existing methods for detecting blade cracks include traditional methods such as borescope and penetrant testing, X-ray and magnetic particle testing, eddy current and ultrasonic testing, and image processing methods such as Faster R-CNN two-stage algorithm.
  • the main problems of the traditional method are: limited number of manual marking and poor robustness, many process steps, time-consuming and labor-intensive, etc.
  • the target detection algorithm is divided into single-stage and two-stage algorithms.
  • the single-stage algorithm performs positioning prediction after the image information is input, and directly outputs the result.
  • the detection speed is fast but there are many anchor frames, and the selection of anchor frames needs to be optimized.
  • YOLO is a single-stage algorithm.
  • the representative algorithm of stage target detection which outputs the position and category confidence of the target frame at one time; the two-stage algorithm classifies and regresses the anchor frame, performs multiple detections and updates, the speed is slower than the single-stage algorithm, and the structure is not flexible enough, but the network fusion high degree.
  • the blade crack detection method in the prior art relies on manual marking, which is inefficient, and the target detection algorithm cannot satisfy both the speed of blade detection and the flexibility of blade detection network.
  • the purpose of the present invention is to provide a method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5, so as to improve the detection speed of blade cracks in the prior art and improve the network flexibility of blade crack detection algorithms.
  • the embodiment of the present invention provides a method for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5, which is applied to a host computer and specifically includes the following steps:
  • the step of preprocessing the internal blade image of the engine to obtain a test data set, a training data set and a verification data set includes:
  • Crack marking, zooming and flipping are performed on the internal blade image of the engine to expand the data set to obtain the test data set, training data set and verification data set.
  • the preset YOLOv5 network model includes an input terminal, a Backbone backbone network, a Neck neck network and an output terminal;
  • the input terminal includes a data enhancement module and an anchor frame selection module, which are used to splicing the input data in a manner of scaling, clipping, and random arrangement, and the anchor frame selection module is used for the internal blade image of the engine
  • the marked crack anchor box calculate and update the size of the crack anchor box;
  • Described Backbone backbone network comprises Focus structure, CBL structure, CSP structure and SPP module;
  • the Focus structure obtains the crack picture at the input end to perform a slice parallel convolution operation, and the CBL structure extracts the feature information of the crack picture through the parallel convolution operation of the Focus structure slice;
  • the SPP module is used to equally divide the feature map of the crack image feature and perform a pooling operation
  • the Neck network includes an FPN structure and a PAN structure, the FPN structure and the CBL structure increase the size of the crack picture feature map, and the PAN structure and the FPN structure perform feature fusion to reduce the crack picture features Figure size;
  • the output terminal marks the crack information and outputs the confidence level to obtain the precision rate and recall rate.
  • the pooling operation is performed using the following formula:
  • the accuracy rate is obtained using the following formula
  • n the total number of identified pictures
  • n the total number of pictures to be identified
  • FN Numberer of pictures that were targeted but not recognized by the system.
  • the recognized area is larger than the IOU threshold, it is judged as TP, and if it is smaller than the IOU threshold, it is judged as FP.
  • the mAP value is the average of the AP values of the categorical features.
  • the present invention provides a real-time detection device for blade cracks in aero-engine operation and maintenance based on YOLOv5, including:
  • Image acquisition instruction sending module send the first instruction to acquire the internal blade image of the engine
  • Sample collection module used to preprocess the internal blade image of the engine to obtain a test data set, a training data set and a verification data set;
  • Training and testing module used to input the training data set to the pre-set YOLOv5 network model for training, use the verification data set to conduct a preliminary evaluation of the model effect derived from training to adjust the model, use the trained weight file and test data The set is tested, and the mAP value and P-R curve are obtained for the final evaluation of the model;
  • Output module acquire the internal blade image of the engine in real time and use the weight file to detect the engine blade in real time and output the detection result.
  • the present invention provides a method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5.
  • the specific steps of the method include: sending a first command to obtain an image of the blade inside the engine; Preprocess the internal blade image of the engine to obtain the test data set, training data set and verification data set; input the training data set to the preset YOLOv5 network model for training, and use the verification data set to conduct a preliminary evaluation of the model effect derived from the training.
  • the invention can improve the detection speed of blade cracks in the prior art, and improve the network flexibility of the blade crack detection algorithm.
  • Fig. 1 is a flow chart of a method for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5 provided by an embodiment of the present invention
  • Figure 2 is a schematic diagram of the overlapping degree of a real-time detection method for blade cracks in aero-engine operation and maintenance based on YOLOv5;
  • Figure 3 is a P-R curve of a YOLOv5-based real-time detection method for blade cracks in aero-engine operation and maintenance at a mAP value of 0.625.
  • the target detection algorithm is divided into single-stage and two-stage algorithms.
  • the single-stage algorithm performs positioning prediction after the image information is input, and directly outputs the result.
  • the detection speed is fast but there are many anchor boxes.
  • the selection of anchor boxes needs to be optimized.
  • YOLO It is a representative algorithm of single-stage target detection, which outputs the position and category confidence of the target frame at one time; the two-stage algorithm classifies and regresses the anchor frame, performs multiple detections and updates, and is slower than the single-stage algorithm, and the structure is not flexible enough, but The degree of network integration is high.
  • a method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5 provided by the embodiment of the present invention can improve the detection speed of blade cracks in the prior art and improve the performance of blade crack detection algorithms. Network flexibility.
  • a YOLOv5-based method for real-time detection of blade cracks in aero-engine operation and maintenance disclosed in the embodiment of the present invention is firstly introduced in detail.
  • an embodiment of the present invention provides a YOLOv5-based method for real-time detection of blade cracks in the operation and maintenance of aero-engines, which is applied to a host computer and specifically includes the following steps:
  • the step of preprocessing the internal blade image of the engine to obtain a test data set, a training data set and a verification data set includes:
  • Crack marking, zooming and flipping are performed on the internal blade image of the engine to expand the data set to obtain the test data set, training data set and verification data set.
  • Labelimg image annotation tool can be used to expand the data set by turning the image horizontally, vertically, and horizontally and vertically;
  • the present invention obtains 300 pictures and preprocesses them to obtain 1500 pictures. Specifically, the division of data sets is shown in Table 1:
  • Table 1 Dataset distribution table
  • the preset YOLOv5 network model includes an input terminal, a Backbone backbone network, a Neck neck network and an output terminal;
  • the input terminal includes a data enhancement module and an anchor frame selection module, which are used to splicing the input data in a manner of scaling, clipping, and random arrangement, and the anchor frame selection module is used for the internal blade image of the engine
  • the marked crack anchor box calculate and update the size of the crack anchor box;
  • Described Backbone backbone network comprises Focus structure, CBL structure, CSP structure and SPP module;
  • the Focus structure obtains the crack picture at the input end to perform a slice parallel convolution operation, and the CBL structure extracts the feature information of the crack picture through the parallel convolution operation of the Focus structure slice;
  • the SPP module is used to equally divide the feature map of the crack image feature and perform a pooling operation
  • the Neck network includes an FPN structure and a PAN structure, the FPN structure and the CBL structure increase the size of the crack picture feature map, and the PAN structure and the FPN structure perform feature fusion to reduce the crack picture features Figure size;
  • the output terminal marks the crack information and outputs the confidence level to obtain the precision rate and recall rate.
  • the output includes GIOU loss function and NMS non-maximum suppression, further
  • the pooling operation is performed using the following formula:
  • the accuracy rate is obtained using the following formula
  • n the total number of identified pictures
  • n the total number of pictures to be identified
  • FN Numberer of pictures that were targeted but not recognized by the system.
  • the recognized area is larger than the IOU threshold, it is judged as TP, and if it is smaller than the IOU threshold, it is judged as FP.
  • the mAP value is the average of the AP values of the categorical features.
  • Table 2 TP, FP, NP, FN classification content
  • Embodiment 2 of the present invention provides a real-time detection device for blade cracks in aero-engine operation and maintenance based on YOLOv5, including:
  • Image acquisition instruction sending module used to send the first instruction to acquire the image of the internal blade of the engine
  • Sample collection module used to preprocess the internal blade image of the engine to obtain a test data set, a training data set and a verification data set;
  • Training and testing module It is used to input the training data set to the pre-set YOLOv5 network model for training, use the verification data set to conduct a preliminary evaluation of the model effect derived from training to adjust the model, and use the trained weight file and test data set for training. Test, and obtain mAP value and P-R curve for final evaluation of the model;
  • Output module used for real-time acquisition of blade images inside the engine, real-time detection of engine blades using the weight file, and output of detection results.
  • each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
  • connection should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components.
  • installation should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Biophysics (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The present invention provides a YOLOv5-based method and apparatus for performing real-time detection of a blade crack during the operation and maintenance of an aero engine, and relates to the technical field of aero generator detection. The method comprises: sending a first instruction to acquire an internal blade image of an engine; preprocessing the internal blade image of the engine to acquire a test data set, a training data set and a verification data set; inputting the training data set into a preset YOLOv5 network model to perform training, performing, by using the verification data set, a preliminary evaluation on a model effect that is exported from the training, so as to adjust the model, performing a test by using a trained weight file and the test data set, and acquiring an mAP value and a P-R curve to perform a final evaluation on the model; and acquiring the internal blade image of the engine in real time, performing real-time detection on an engine blade by using the weight file, and then outputting a detection result. By means of the present invention, the detection speed of a blade crack in the prior art can be increased, and the network flexibility of a blade crack detection algorithm is improved.

Description

基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法及装置Method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5 技术领域technical field
本发明涉及航空发电机检测技术领域,尤其是涉及一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法及装置。The invention relates to the technical field of aero-generator detection, in particular to a method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5.
背景技术Background technique
航空发动机叶片的正常运转可以为发动机提供持续不断的飞行动力,它服役时间往往较长,这样的环境容易使其产生疲劳裂纹,这些发动机叶片上的裂纹对航空发动机的正常运行构成了潜在的威胁。未及时处理的裂纹会进一步恶化,进而导致整个发动机的瘫痪失效,这对正常的航空飞行产生了严重的威胁。事实上,只要发动机叶片上存在裂纹,无论其大小如何,都会危及人员并对机器构成严重的威胁,重则机毁人亡,造成不可挽回的损失。长期以来,涡轮叶片断裂引发的飞行事故在飞行中屡见不鲜,因此为了保障航空发动机安全地运行,对叶片裂纹的定期检测至关重要。The normal operation of aero-engine blades can provide continuous flight power for the engine, and its service time is often longer. Such an environment is prone to fatigue cracks, and these cracks on the engine blades pose a potential threat to the normal operation of the aero-engine. . Cracks that are not treated in time will further deteriorate, leading to the paralysis of the entire engine, which poses a serious threat to normal aviation flight. In fact, as long as there are cracks on the blades of the engine, no matter how big or small it is, it will endanger people and pose a serious threat to the machine. For a long time, flight accidents caused by fracture of turbine blades have been common in flight. Therefore, in order to ensure the safe operation of aero-engines, regular detection of blade cracks is very important.
现有检测叶片裂纹的方法包括:孔探仪和渗透检测法、X射线和磁粉检测法、涡流和超声检测等传统方法;Faster R-CNN双阶段算法等图像处理方法。传统方法主要存在的问题:人工标记数量有限且鲁棒性较差,工艺流程步骤多,耗时费力等。Existing methods for detecting blade cracks include traditional methods such as borescope and penetrant testing, X-ray and magnetic particle testing, eddy current and ultrasonic testing, and image processing methods such as Faster R-CNN two-stage algorithm. The main problems of the traditional method are: limited number of manual marking and poor robustness, many process steps, time-consuming and labor-intensive, etc.
目标检测算法分为单阶段和双阶段算法,单阶段算法在图像信息输入后进行定位预测,并直接输出结果,检测速度快但锚框较多,需要对锚框的选取进行优化,YOLO是单阶段目标检测的代表算法,一次性输出目标框 的位置和类别置信度;双阶段算法将锚框进行分类回归,进行多次检测及更新,速度较单阶段算法慢,结构不够灵活,但网络融合度高。The target detection algorithm is divided into single-stage and two-stage algorithms. The single-stage algorithm performs positioning prediction after the image information is input, and directly outputs the result. The detection speed is fast but there are many anchor frames, and the selection of anchor frames needs to be optimized. YOLO is a single-stage algorithm. The representative algorithm of stage target detection, which outputs the position and category confidence of the target frame at one time; the two-stage algorithm classifies and regresses the anchor frame, performs multiple detections and updates, the speed is slower than the single-stage algorithm, and the structure is not flexible enough, but the network fusion high degree.
综上所述,现有技术中叶片裂纹检测方法依靠人工标记,效率低下,同时目标检测算法无法满足同时兼顾叶片检测速度与叶片检测网络灵活度。To sum up, the blade crack detection method in the prior art relies on manual marking, which is inefficient, and the target detection algorithm cannot satisfy both the speed of blade detection and the flexibility of blade detection network.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法及装置,以提高现有技术中叶片裂纹的检测速度,提高叶片裂纹检测算法的网络灵活度。In view of this, the purpose of the present invention is to provide a method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5, so as to improve the detection speed of blade cracks in the prior art and improve the network flexibility of blade crack detection algorithms.
第一方面,本发明实施例提供了一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法,应用于上位机,具体包括如下步骤:In the first aspect, the embodiment of the present invention provides a method for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5, which is applied to a host computer and specifically includes the following steps:
发送第一指令以获取发动机内部叶片图像;Sending a first command to obtain an image of the blades inside the engine;
对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集;Preprocessing the internal blade image of the engine to obtain a test data set, a training data set and a verification data set;
输入所述训练数据集至预先设置的YOLOv5网络模型进行训练,利用验证数据集对训练导出的模型效果进行初步评估以对模型进行调整,利用训练好的权重文件与测试数据集进行测试,并获取mAP值以及P-R曲线对模型进行最终评估;Input the training data set to the pre-set YOLOv5 network model for training, use the verification data set to conduct a preliminary evaluation of the model effect derived from the training to adjust the model, use the trained weight file and test data set to test, and obtain mAP value and P-R curve for final evaluation of the model;
实时获取发动机内部叶片图像并利用所述权重文件对发动机叶片进行实时检测并输出检测结果。Obtain the blade image inside the engine in real time and use the weight file to detect the engine blade in real time and output the detection result.
优选的,所述对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集的步骤包括:Preferably, the step of preprocessing the internal blade image of the engine to obtain a test data set, a training data set and a verification data set includes:
对所述发动机内部叶片图像进行裂纹标注、缩放以及翻折以对数据集进行扩充获取所述测试数据集、训练数据集以及验证数据集。Crack marking, zooming and flipping are performed on the internal blade image of the engine to expand the data set to obtain the test data set, training data set and verification data set.
优选的,所述预先设置的YOLOv5网络模型包括输入端、Backbone主干网络、Neck颈部网络和输出端;Preferably, the preset YOLOv5 network model includes an input terminal, a Backbone backbone network, a Neck neck network and an output terminal;
所述输入端包括数据增强模块以及锚框选取模块,所述用于对输入的数据进行缩放、剪裁以及随机排布的方式进行拼接,所述锚框选取模块用于对所述发动机内部叶片图像标注的裂纹锚框,计算并更新裂纹锚框的大小;The input terminal includes a data enhancement module and an anchor frame selection module, which are used to splicing the input data in a manner of scaling, clipping, and random arrangement, and the anchor frame selection module is used for the internal blade image of the engine The marked crack anchor box, calculate and update the size of the crack anchor box;
所述Backbone主干网络包括Focus结构、CBL结构、CSP结构和SPP模块;Described Backbone backbone network comprises Focus structure, CBL structure, CSP structure and SPP module;
所述Focus结构获取所述输入端的裂纹图片进行切片并行卷积操作,所述CBL结构提取经所述Focus结构片并行卷积操作的裂纹图片特征信息;The Focus structure obtains the crack picture at the input end to perform a slice parallel convolution operation, and the CBL structure extracts the feature information of the crack picture through the parallel convolution operation of the Focus structure slice;
所述SPP模块用于将裂纹图片特征的特征映射进行等分并进行池化操作;The SPP module is used to equally divide the feature map of the crack image feature and perform a pooling operation;
所述Neck颈部网络包括FPN结构和PAN结构,所述FPN结构与所述CBL结构增大所述裂纹图片特征图尺寸,所述PAN结构与所述FPN结构进行特征融合以缩小述裂纹图片特征图尺寸;The Neck network includes an FPN structure and a PAN structure, the FPN structure and the CBL structure increase the size of the crack picture feature map, and the PAN structure and the FPN structure perform feature fusion to reduce the crack picture features Figure size;
所述输出端对裂纹信息进行标注并输出置信度,以获取精确率以及召回率。The output terminal marks the crack information and outputs the confidence level to obtain the precision rate and recall rate.
优选的,采用如下公式进行池化操作:Preferably, the pooling operation is performed using the following formula:
Figure PCTCN2022119657-appb-000001
Figure PCTCN2022119657-appb-000001
S H—矩阵的高度; S H — the height of the matrix;
S W—矩阵的宽度; S W — the width of the matrix;
h—图片的高度;h—the height of the image;
w—图片的宽度;w—the width of the picture;
p—填充数量;p—fill quantity;
f—过滤器尺寸;f—filter size;
s—步长。s—step size.
优选的,采用如下公式获取精确率Preferably, the accuracy rate is obtained using the following formula
Figure PCTCN2022119657-appb-000002
Figure PCTCN2022119657-appb-000002
n—识别出来的图片总数;n—the total number of identified pictures;
TP—正确识别出来的图片数量;TP—the number of correctly identified pictures;
FP—错误识别出来的图片数量。FP—Number of incorrectly identified images.
采用如下公式获取召回率:Use the following formula to obtain the recall rate:
Figure PCTCN2022119657-appb-000003
Figure PCTCN2022119657-appb-000003
m—有待识别目标的图片总数;m—the total number of pictures to be identified;
FN—目标但未被系统识别的图片数量。FN—Number of pictures that were targeted but not recognized by the system.
优选的,采用如下步骤获取TP以及FP:Preferably, the following steps are used to obtain TP and FP:
获取置信度以及重叠度IOU,所述重叠度IOU采用如下公式获取:Obtain the confidence degree and the degree of overlap IOU, and the degree of overlap IOU is obtained by the following formula:
Figure PCTCN2022119657-appb-000004
Figure PCTCN2022119657-appb-000004
B p—预测框; B p —prediction box;
B gt—真实框; B gt — ground truth box;
基于重叠度IOU获取所述TP以及所述FP:Obtain the TP and the FP based on the overlap IOU:
若识别的区域面积大于IOU阈值判定为TP,小于IOU阈值判定为FP。If the recognized area is larger than the IOU threshold, it is judged as TP, and if it is smaller than the IOU threshold, it is judged as FP.
优选的,采用如下公式获取mAP值:Preferably, the following formula is used to obtain the mAP value:
Figure PCTCN2022119657-appb-000005
Figure PCTCN2022119657-appb-000005
P—精确度;P—precision;
r—召回率;r—recall rate;
mAP值为类别特征的AP值的求平均值。The mAP value is the average of the AP values of the categorical features.
另一方面.本发明提供了一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测装置,包括:On the other hand, the present invention provides a real-time detection device for blade cracks in aero-engine operation and maintenance based on YOLOv5, including:
图像获取指令发送模块:发送第一指令以获取发动机内部叶片图像;Image acquisition instruction sending module: send the first instruction to acquire the internal blade image of the engine;
样本采集模块:用于对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集;Sample collection module: used to preprocess the internal blade image of the engine to obtain a test data set, a training data set and a verification data set;
训练测试模块:用于输入所述训练数据集至预先设置的YOLOv5网络模型进行训练,利用验证数据集对训练导出的模型效果进行初步评估以对模型进行调整,利用训练好的权重文件与测试数据集进行测试,并获取mAP值以及P-R曲线对模型进行最终评估;Training and testing module: used to input the training data set to the pre-set YOLOv5 network model for training, use the verification data set to conduct a preliminary evaluation of the model effect derived from training to adjust the model, use the trained weight file and test data The set is tested, and the mAP value and P-R curve are obtained for the final evaluation of the model;
输出模块:实时获取发动机内部叶片图像并利用所述权重文件对发动机叶片进行实时检测并输出检测结果。Output module: acquire the internal blade image of the engine in real time and use the weight file to detect the engine blade in real time and output the detection result.
本发明实施例带来了以下有益效果:本发明提供了一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法及装置,方法的具体步骤包括:发送第一指令以获取发动机内部叶片图像;对发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集;输入训练数据集至预先设置的YOLOv5网络模型进行训练,利用验证数据集对训练导出的模型效果进行初步评估以对模型进行调整,利用训练好的权重文件与测试数据集进行测试,并获取mAP值以及P-R曲线对模型进行最终评估;实时获取发动机内部叶片图像并利用权重文件对发动机叶片进行实时检测并输出检测结果。通过本发明可以提高现有技术中叶片裂纹的检测速度,提高叶片裂纹检测算法的网络灵活度。The embodiment of the present invention brings the following beneficial effects: the present invention provides a method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5. The specific steps of the method include: sending a first command to obtain an image of the blade inside the engine; Preprocess the internal blade image of the engine to obtain the test data set, training data set and verification data set; input the training data set to the preset YOLOv5 network model for training, and use the verification data set to conduct a preliminary evaluation of the model effect derived from the training. Adjust the model, use the trained weight file and test data set to test, and obtain the mAP value and P-R curve for final evaluation of the model; obtain the internal blade image of the engine in real time and use the weight file to detect the engine blade in real time and output the detection result. The invention can improve the detection speed of blade cracks in the prior art, and improve the network flexibility of the blade crack detection algorithm.
本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通 技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the specific implementation or description of the prior art. Obviously, the accompanying drawings in the following description The drawings show some implementations of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图1为本发明实施例提供的一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法流程图;Fig. 1 is a flow chart of a method for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5 provided by an embodiment of the present invention;
图2为一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法重叠度示意图;Figure 2 is a schematic diagram of the overlapping degree of a real-time detection method for blade cracks in aero-engine operation and maintenance based on YOLOv5;
图3为一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法在mAP值为0.625下的P-R曲线。Figure 3 is a P-R curve of a YOLOv5-based real-time detection method for blade cracks in aero-engine operation and maintenance at a mAP value of 0.625.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. the embodiment. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
目前,目标检测算法分为单阶段和双阶段算法,单阶段算法在图像信息输入后进行定位预测,并直接输出结果,检测速度快但锚框较多,需要对锚框的选取进行优化,YOLO是单阶段目标检测的代表算法,一次性输出目标框的位置和类别置信度;双阶段算法将锚框进行分类回归,进行多次检测及更新,速度较单阶段算法慢,结构不够灵活,但网络融合度高,基于此,本发明实施例提供的一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法及装置,可以提高现有技术中叶片裂纹的检测速度,提高叶片裂纹检测算法的网络灵活度。At present, the target detection algorithm is divided into single-stage and two-stage algorithms. The single-stage algorithm performs positioning prediction after the image information is input, and directly outputs the result. The detection speed is fast but there are many anchor boxes. The selection of anchor boxes needs to be optimized. YOLO It is a representative algorithm of single-stage target detection, which outputs the position and category confidence of the target frame at one time; the two-stage algorithm classifies and regresses the anchor frame, performs multiple detections and updates, and is slower than the single-stage algorithm, and the structure is not flexible enough, but The degree of network integration is high. Based on this, a method and device for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5 provided by the embodiment of the present invention can improve the detection speed of blade cracks in the prior art and improve the performance of blade crack detection algorithms. Network flexibility.
为便于对本实施例进行理解,首先对本发明实施例所公开的一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法进行详细介绍。In order to facilitate the understanding of this embodiment, a YOLOv5-based method for real-time detection of blade cracks in aero-engine operation and maintenance disclosed in the embodiment of the present invention is firstly introduced in detail.
实施例一:Embodiment one:
如图1所示,本发明实施一例提供了一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法,应用于上位机,具体包括如下步骤:As shown in Figure 1, an embodiment of the present invention provides a YOLOv5-based method for real-time detection of blade cracks in the operation and maintenance of aero-engines, which is applied to a host computer and specifically includes the following steps:
发送第一指令以获取发动机内部叶片图像;Sending a first command to obtain an image of the blades inside the engine;
对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集;Preprocessing the internal blade image of the engine to obtain a test data set, a training data set and a verification data set;
输入训练数据集至预先设置的YOLOv5网络模型进行训练,利用验证数据集对训练导出的模型效果进行初步评估以对模型进行调整,利用训练好的权重文件与测试数据集进行测试,并获取mAP值以及P-R曲线对模型进行最终评估;Input the training data set to the pre-set YOLOv5 network model for training, use the verification data set to conduct a preliminary evaluation of the model effect derived from the training to adjust the model, use the trained weight file and test data set for testing, and obtain the mAP value And the P-R curve for the final evaluation of the model;
实时获取发动机内部叶片图像并利用所述权重文件对发动机叶片进行实时检测并输出检测结果。Obtain the blade image inside the engine in real time and use the weight file to detect the engine blade in real time and output the detection result.
优选的,所述对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集的步骤包括:Preferably, the step of preprocessing the internal blade image of the engine to obtain a test data set, a training data set and a verification data set includes:
对所述发动机内部叶片图像进行裂纹标注、缩放以及翻折以对数据集进行扩充获取所述测试数据集、训练数据集以及验证数据集。Crack marking, zooming and flipping are performed on the internal blade image of the engine to expand the data set to obtain the test data set, training data set and verification data set.
进一步的,可采用Labelimg图片标注工具并对图片经过水平方向、垂直方向、水平垂直方向的翻折以对数据集进行扩充;Further, the Labelimg image annotation tool can be used to expand the data set by turning the image horizontally, vertically, and horizontally and vertically;
本发明获取了300张图片并对其进行了预处理以获取1500张图片,具体的,数据集划分参照表1所示:The present invention obtains 300 pictures and preprocesses them to obtain 1500 pictures. Specifically, the division of data sets is shown in Table 1:
表一:数据集分布表Table 1: Dataset distribution table
Figure PCTCN2022119657-appb-000006
Figure PCTCN2022119657-appb-000006
优选的,所述预先设置的YOLOv5网络模型包括输入端、Backbone主干网络、Neck颈部网络和输出端;Preferably, the preset YOLOv5 network model includes an input terminal, a Backbone backbone network, a Neck neck network and an output terminal;
所述输入端包括数据增强模块以及锚框选取模块,所述用于对输入的数据进行缩放、剪裁以及随机排布的方式进行拼接,所述锚框选取模块用于对所述发动机内部叶片图像标注的裂纹锚框,计算并更新裂纹锚框的大小;The input terminal includes a data enhancement module and an anchor frame selection module, which are used to splicing the input data in a manner of scaling, clipping, and random arrangement, and the anchor frame selection module is used for the internal blade image of the engine The marked crack anchor box, calculate and update the size of the crack anchor box;
所述Backbone主干网络包括Focus结构、CBL结构、CSP结构和SPP模块;Described Backbone backbone network comprises Focus structure, CBL structure, CSP structure and SPP module;
所述Focus结构获取所述输入端的裂纹图片进行切片并行卷积操作,所述CBL结构提取经所述Focus结构片并行卷积操作的裂纹图片特征信息;The Focus structure obtains the crack picture at the input end to perform a slice parallel convolution operation, and the CBL structure extracts the feature information of the crack picture through the parallel convolution operation of the Focus structure slice;
所述SPP模块用于将裂纹图片特征的特征映射进行等分并进行池化操作;The SPP module is used to equally divide the feature map of the crack image feature and perform a pooling operation;
所述Neck颈部网络包括FPN结构和PAN结构,所述FPN结构与所述CBL结构增大所述裂纹图片特征图尺寸,所述PAN结构与所述FPN结构进行特征融合以缩小述裂纹图片特征图尺寸;The Neck network includes an FPN structure and a PAN structure, the FPN structure and the CBL structure increase the size of the crack picture feature map, and the PAN structure and the FPN structure perform feature fusion to reduce the crack picture features Figure size;
所述输出端对裂纹信息进行标注并输出置信度,以获取精确率以及召回率。所述输出端包括GIOU损失函数和NMS非极大值抑制,进一步的The output terminal marks the crack information and outputs the confidence level to obtain the precision rate and recall rate. The output includes GIOU loss function and NMS non-maximum suppression, further
优选的,采用如下公式进行池化操作:Preferably, the pooling operation is performed using the following formula:
Figure PCTCN2022119657-appb-000007
Figure PCTCN2022119657-appb-000007
S H—矩阵的高度; S H — the height of the matrix;
S W—矩阵的宽度; S W — the width of the matrix;
h—图片的高度;h—the height of the picture;
w—图片的宽度;w—the width of the image;
p—填充数量;p—fill quantity;
f—过滤器尺寸;f—filter size;
s—步长。s—step size.
优选的,采用如下公式获取精确率Preferably, the accuracy rate is obtained using the following formula
Figure PCTCN2022119657-appb-000008
Figure PCTCN2022119657-appb-000008
n—识别出来的图片总数;n—the total number of identified pictures;
TP—正确识别出来的图片数量;TP—the number of correctly identified pictures;
FP—错误识别出来的图片数量。FP—Number of incorrectly identified images.
采用如下公式获取召回率:Use the following formula to obtain the recall rate:
Figure PCTCN2022119657-appb-000009
Figure PCTCN2022119657-appb-000009
m—有待识别目标的图片总数;m—the total number of pictures to be identified;
FN—目标但未被系统识别的图片数量。FN—Number of pictures that were targeted but not recognized by the system.
优选的,采用如下步骤获取TP以及FP:Preferably, the following steps are used to obtain TP and FP:
结合图2,获取置信度以及重叠度IOU,所述重叠度IOU采用如下公式获取:In conjunction with Fig. 2, the confidence degree and the degree of overlap IOU are obtained, and the degree of overlap IOU is obtained by the following formula:
Figure PCTCN2022119657-appb-000010
Figure PCTCN2022119657-appb-000010
B p—预测框; B p —prediction box;
B gt—真实框; B gt — ground truth box;
基于重叠度IOU获取所述TP以及所述FP:Obtain the TP and the FP based on the overlap IOU:
若识别的区域面积大于IOU阈值判定为TP,小于IOU阈值判定为FP。If the recognized area is larger than the IOU threshold, it is judged as TP, and if it is smaller than the IOU threshold, it is judged as FP.
优选的,采用如下公式获取mAP值:Preferably, the following formula is used to obtain the mAP value:
Figure PCTCN2022119657-appb-000011
Figure PCTCN2022119657-appb-000011
P—精确度;P—precision;
r—召回率;r—recall rate;
mAP值为类别特征的AP值的求平均值。The mAP value is the average of the AP values of the categorical features.
进一步的,TP、FP、NP、FN分类内容如下表所示:Further, the classification contents of TP, FP, NP, and FN are shown in the following table:
表二:TP、FP、NP、FN分类内容Table 2: TP, FP, NP, FN classification content
Figure PCTCN2022119657-appb-000012
Figure PCTCN2022119657-appb-000012
Figure PCTCN2022119657-appb-000013
Figure PCTCN2022119657-appb-000013
需要说明的是在本发明提供的实施例中,权重文件下的mAP值为0.625,具体测试结果如下所示,P-R曲线如图3所示:It should be noted that in the embodiment provided by the present invention, the mAP value under the weight file is 0.625, the specific test results are as follows, and the P-R curve is shown in Figure 3:
表3:mAP在0.625下的测试结果:Table 3: Test results of mAP at 0.625:
Figure PCTCN2022119657-appb-000014
Figure PCTCN2022119657-appb-000014
实施例二:Embodiment two:
本发明实施例二提供了一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测装置,包括:Embodiment 2 of the present invention provides a real-time detection device for blade cracks in aero-engine operation and maintenance based on YOLOv5, including:
图像获取指令发送模块:用于发送第一指令以获取发动机内部叶片图像;Image acquisition instruction sending module: used to send the first instruction to acquire the image of the internal blade of the engine;
样本采集模块:用于对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集;Sample collection module: used to preprocess the internal blade image of the engine to obtain a test data set, a training data set and a verification data set;
训练测试模块:用于输入训练数据集至预先设置的YOLOv5网络模型进行训练,利用验证数据集对训练导出的模型效果进行初步评估以对模型进行调整,利用训练好的权重文件与测试数据集进行测试,并获取mAP值以及P-R曲线对模型进行最终评估;Training and testing module: It is used to input the training data set to the pre-set YOLOv5 network model for training, use the verification data set to conduct a preliminary evaluation of the model effect derived from training to adjust the model, and use the trained weight file and test data set for training. Test, and obtain mAP value and P-R curve for final evaluation of the model;
输出模块:用于实时获取发动机内部叶片图像并利用所述权重文件对发动机叶片进行实时检测并输出检测结果。Output module: used for real-time acquisition of blade images inside the engine, real-time detection of engine blades using the weight file, and output of detection results.
除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对步骤、数字表达式和数值并不限制本发明的范围。Relative steps, numerical expressions and numerical values of components and steps set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
本发明实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principles and technical effects of the device provided by the embodiment of the present invention are the same as those of the foregoing method embodiment. For brief description, for the parts not mentioned in the device embodiment, reference may be made to the corresponding content in the foregoing method embodiment.
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
另外,在本发明实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In addition, in the description of the embodiments of the present invention, unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations.
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因 此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, or in a specific orientation. construction and operation, therefore, should not be construed as limiting the invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and should not be construed as indicating or implying relative importance.
最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-described embodiments are only specific implementations of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting them, and the scope of protection of the present invention is not limited thereto, although referring to the foregoing The embodiment has described the present invention in detail, and those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention Changes can be easily thought of, or equivalent replacements are made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of the present invention within the scope of protection. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (8)

  1. 一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测方法,其特征在于,应用于上位机,具体包括如下步骤:A method for real-time detection of blade cracks in aero-engine operation and maintenance based on YOLOv5 is characterized in that it is applied to a host computer, and specifically includes the following steps:
    发送第一指令以获取发动机内部叶片图像;Sending a first command to obtain an image of the blades inside the engine;
    对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集;Preprocessing the internal blade image of the engine to obtain a test data set, a training data set and a verification data set;
    输入所述训练数据集至预先设置的YOLOv5网络模型进行训练,利用验证数据集对训练导出的模型效果进行初步评估以对模型进行调整,利用训练好的权重文件与测试数据集进行测试,并获取mAP值以及P-R曲线对模型进行最终评估;Input the training data set to the pre-set YOLOv5 network model for training, use the verification data set to conduct a preliminary evaluation of the model effect derived from the training to adjust the model, use the trained weight file and test data set to test, and obtain mAP value and P-R curve for final evaluation of the model;
    实时获取发动机内部叶片图像并利用所述权重文件对发动机叶片进行实时检测并输出检测结果。Obtain the blade image inside the engine in real time and use the weight file to detect the engine blade in real time and output the detection result.
  2. 根据权利要求1所述方法,其特征在于,所述对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集的步骤包括:The method according to claim 1, wherein the step of preprocessing the internal blade image of the engine to obtain a test data set, a training data set and a verification data set comprises:
    对所述发动机内部叶片图像进行裂纹标注、缩放以及翻折以对数据集进行扩充获取所述测试数据集、训练数据集以及验证数据集。Crack marking, zooming and flipping are performed on the internal blade image of the engine to expand the data set to obtain the test data set, training data set and verification data set.
  3. 根据权利要求1所述的方法,其特征在于,所述预先设置的YOLOv5网络模型包括输入端、Backbone主干网络、Neck颈部网络和输出端;The method according to claim 1, wherein the preset YOLOv5 network model includes an input terminal, a Backbone backbone network, a Neck neck network and an output terminal;
    所述输入端包括数据增强模块以及锚框选取模块,所述用于对输入的数据进行缩放、剪裁以及随机排布的方式进行拼接,所述锚框选取模块用于对所述发动机内部叶片图像标注的裂纹锚框,计算并更新裂纹锚框的大小;The input terminal includes a data enhancement module and an anchor frame selection module, which are used to splicing the input data in a manner of scaling, clipping, and random arrangement, and the anchor frame selection module is used for the internal blade image of the engine The marked crack anchor box, calculate and update the size of the crack anchor box;
    所述Backbone主干网络包括Focus结构、CBL结构、CSP结构和SPP模块;Described Backbone backbone network comprises Focus structure, CBL structure, CSP structure and SPP module;
    所述Focus结构获取所述输入端的裂纹图片进行切片并行卷积操作,所述CBL结构提取经所述Focus结构片并行卷积操作的裂纹图片特征信息;The Focus structure obtains the crack picture at the input end to perform a slice parallel convolution operation, and the CBL structure extracts the feature information of the crack picture through the parallel convolution operation of the Focus structure slice;
    所述SPP模块用于将裂纹图片特征的特征映射进行等分并进行池化操作;The SPP module is used to equally divide the feature map of the crack image feature and perform a pooling operation;
    所述Neck颈部网络包括FPN结构和PAN结构,所述FPN结构与所述CBL结构增大所述裂纹图片特征图尺寸,所述PAN结构与所述FPN结构进行特征融合以缩小述裂纹图片特征图尺寸;The Neck network includes an FPN structure and a PAN structure, the FPN structure and the CBL structure increase the size of the crack picture feature map, and the PAN structure and the FPN structure perform feature fusion to reduce the crack picture features Figure size;
    所述输出端对裂纹信息进行标注并输出置信度,以获取精确率以及召回率。The output terminal marks the crack information and outputs the confidence level to obtain the precision rate and recall rate.
  4. 根据权利要求3所述的方法,其特征在于,采用如下公式进行池化操作:The method according to claim 3, wherein the pooling operation is performed using the following formula:
    Figure PCTCN2022119657-appb-100001
    Figure PCTCN2022119657-appb-100001
    S H—矩阵的高度; S H — the height of the matrix;
    S W—矩阵的宽度; S W — the width of the matrix;
    h—图片的高度;h—the height of the image;
    w—图片的宽度;w—the width of the image;
    p—填充数量;p—fill quantity;
    f—过滤器尺寸;f—filter size;
    s—步长。s—step size.
  5. 根据权利要求3所述的方法,其特征在于,采用如下公式获取精确率The method according to claim 3, characterized in that, the following formula is used to obtain the accuracy
    Figure PCTCN2022119657-appb-100002
    Figure PCTCN2022119657-appb-100002
    n—识别出来的图片总数;n—the total number of identified pictures;
    TP—正确识别出来的图片数量;TP—the number of correctly identified pictures;
    FP—错误识别出来的图片数量。FP—Number of incorrectly identified images.
    采用如下公式获取召回率:Use the following formula to obtain the recall rate:
    Figure PCTCN2022119657-appb-100003
    Figure PCTCN2022119657-appb-100003
    m—有待识别目标的图片总数;m—the total number of pictures to be identified;
    FN—目标但未被系统识别的图片数量。FN—Number of pictures that were targeted but not recognized by the system.
  6. 根据权利要求5所述的方法,其特征在于,采用如下步骤获取TP以及FP:The method according to claim 5, wherein the following steps are used to obtain TP and FP:
    获取置信度以及重叠度IOU,所述重叠度IOU采用如下公式获取:Obtain the confidence degree and the degree of overlap IOU, and the degree of overlap IOU is obtained by the following formula:
    Figure PCTCN2022119657-appb-100004
    Figure PCTCN2022119657-appb-100004
    B p—预测框; B p —prediction box;
    B gt—真实框; B gt — ground truth box;
    基于重叠度IOU获取所述TP以及所述FP:Obtain the TP and the FP based on the overlap IOU:
    若识别的区域面积大于IOU阈值判定为TP,小于IOU阈值判定为FP。If the recognized area is larger than the IOU threshold, it is judged as TP, and if it is smaller than the IOU threshold, it is judged as FP.
  7. 根据权利要求6所述的方法,其特征在于,采用如下公式获取mAP值:method according to claim 6, is characterized in that, adopts following formula to obtain mAP value:
    Figure PCTCN2022119657-appb-100005
    Figure PCTCN2022119657-appb-100005
    P—精确度;P—precision;
    r—召回率;r—recall rate;
    mAP值为类别特征的AP值的求平均值。The mAP value is the average of the AP values of the categorical features.
  8. 一种基于YOLOv5的航空发动机运维中叶片裂纹实时检测装置,其特征在于,包括:A YOLOv5-based real-time detection device for blade cracks in aero-engine operation and maintenance, characterized in that it includes:
    图像获取指令发送模块:发送第一指令以获取发动机内部叶片图像;Image acquisition instruction sending module: send the first instruction to acquire the internal blade image of the engine;
    样本采集模块:用于对所述发动机内部叶片图像进行预处理以获取测试数据集、训练数据集以及验证数据集;Sample collection module: used to preprocess the internal blade image of the engine to obtain a test data set, a training data set and a verification data set;
    训练测试模块:用于输入所述训练数据集至预先设置的YOLOv5网络模型进行训练,利用验证数据集对训练导出的模型效果进行初步评估以对模型进行调整,利用训练好的权重文件与测试数据集进行测试,并获取mAP值以及P-R曲线对模型进行最终评估;Training and testing module: used to input the training data set to the pre-set YOLOv5 network model for training, use the verification data set to conduct a preliminary evaluation of the model effect derived from training to adjust the model, and use the trained weight file and test data The set is tested, and the mAP value and P-R curve are obtained for the final evaluation of the model;
    输出模块:用于实时获取发动机内部叶片图像并利用所述权重文件对发动机叶片进行实时检测并输出检测结果。Output module: for real-time acquisition of blade images inside the engine, real-time detection of engine blades using the weight file, and output of detection results.
PCT/CN2022/119657 2021-09-13 2022-09-19 Yolov5-based method and apparatus for performing real-time detection of blade crack during operation and maintenance of aero engine WO2023036346A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111068098.0 2021-09-13
CN202111068098.0A CN113838013A (en) 2021-09-13 2021-09-13 Blade crack real-time detection method and device in aero-engine operation and maintenance based on YOLOv5

Publications (1)

Publication Number Publication Date
WO2023036346A1 true WO2023036346A1 (en) 2023-03-16

Family

ID=78959170

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/119657 WO2023036346A1 (en) 2021-09-13 2022-09-19 Yolov5-based method and apparatus for performing real-time detection of blade crack during operation and maintenance of aero engine

Country Status (2)

Country Link
CN (1) CN113838013A (en)
WO (1) WO2023036346A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116580285A (en) * 2023-07-14 2023-08-11 西安益迪惟科智能科技有限责任公司 Railway insulator night target identification and detection method
CN116777895A (en) * 2023-07-05 2023-09-19 重庆大学 Concrete bridge Liang Biaoguan disease intelligent detection method based on interpretable deep learning
CN117456389A (en) * 2023-11-07 2024-01-26 西安电子科技大学 Improved unmanned aerial vehicle aerial image dense and small target identification method, system, equipment and medium based on YOLOv5s
CN116777895B (en) * 2023-07-05 2024-05-31 重庆大学 Concrete bridge Liang Biaoguan disease intelligent detection method based on interpretable deep learning

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838013A (en) * 2021-09-13 2021-12-24 中国民航大学 Blade crack real-time detection method and device in aero-engine operation and maintenance based on YOLOv5
CN114782778B (en) * 2022-04-25 2023-01-06 广东工业大学 Assembly state monitoring method and system based on machine vision technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020046213A1 (en) * 2018-08-31 2020-03-05 Agency For Science, Technology And Research A method and apparatus for training a neural network to identify cracks
CN112287899A (en) * 2020-11-26 2021-01-29 山东捷讯通信技术有限公司 Unmanned aerial vehicle aerial image river drain detection method and system based on YOLO V5
CN112581443A (en) * 2020-12-14 2021-03-30 北京华能新锐控制技术有限公司 Light-weight identification method for surface damage of wind driven generator blade
CN112581430A (en) * 2020-12-03 2021-03-30 厦门大学 Deep learning-based aeroengine nondestructive testing method, device, equipment and storage medium
CN113838013A (en) * 2021-09-13 2021-12-24 中国民航大学 Blade crack real-time detection method and device in aero-engine operation and maintenance based on YOLOv5

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582320B (en) * 2020-04-17 2022-10-14 电子科技大学 Dynamic individual identification method based on semi-supervised learning
CN112285504B (en) * 2020-10-27 2023-11-17 华北电力大学 Multispectral solar blind narrow-band ultraviolet imager and method for detecting different discharge states thereof
CN113313695A (en) * 2021-06-05 2021-08-27 西北工业大学 Automatic deep learning defect detection and identification method based on small sample aeroengine blade CT image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020046213A1 (en) * 2018-08-31 2020-03-05 Agency For Science, Technology And Research A method and apparatus for training a neural network to identify cracks
CN112287899A (en) * 2020-11-26 2021-01-29 山东捷讯通信技术有限公司 Unmanned aerial vehicle aerial image river drain detection method and system based on YOLO V5
CN112581430A (en) * 2020-12-03 2021-03-30 厦门大学 Deep learning-based aeroengine nondestructive testing method, device, equipment and storage medium
CN112581443A (en) * 2020-12-14 2021-03-30 北京华能新锐控制技术有限公司 Light-weight identification method for surface damage of wind driven generator blade
CN113838013A (en) * 2021-09-13 2021-12-24 中国民航大学 Blade crack real-time detection method and device in aero-engine operation and maintenance based on YOLOv5

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YE LIWEI; SONG ZONGBO: "Classroom behavior based on Yolo-v5 improved model Real-time detection method", INFORMATION & COMMUNICATIONS, CN, no. 7, 31 July 2021 (2021-07-31), CN, pages 41 - 45, XP009544270, ISSN: 2096-9759 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116777895A (en) * 2023-07-05 2023-09-19 重庆大学 Concrete bridge Liang Biaoguan disease intelligent detection method based on interpretable deep learning
CN116777895B (en) * 2023-07-05 2024-05-31 重庆大学 Concrete bridge Liang Biaoguan disease intelligent detection method based on interpretable deep learning
CN116580285A (en) * 2023-07-14 2023-08-11 西安益迪惟科智能科技有限责任公司 Railway insulator night target identification and detection method
CN116580285B (en) * 2023-07-14 2023-09-22 西安益迪惟科智能科技有限责任公司 Railway insulator night target identification and detection method
CN117456389A (en) * 2023-11-07 2024-01-26 西安电子科技大学 Improved unmanned aerial vehicle aerial image dense and small target identification method, system, equipment and medium based on YOLOv5s

Also Published As

Publication number Publication date
CN113838013A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
WO2023036346A1 (en) Yolov5-based method and apparatus for performing real-time detection of blade crack during operation and maintenance of aero engine
TWI770757B (en) Defect detection method, electronic equipment and computer-readable storage medium thereof
WO2018214195A1 (en) Remote sensing imaging bridge detection method based on convolutional neural network
CN111507958B (en) Target detection method, training method of detection model and electronic equipment
CN108960135B (en) Dense ship target accurate detection method based on high-resolution remote sensing image
WO2020119103A1 (en) Aero-engine hole detection image damage intelligent identification method based on deep learning
CN109615611A (en) A kind of insulator self-destruction defect inspection method based on inspection image
CN111968084B (en) Rapid and accurate identification method for defects of aero-engine blade based on artificial intelligence
WO2022148109A1 (en) Product defect detection method and apparatus, device and computer-readable storage medium
CN112668696A (en) Unmanned aerial vehicle power grid inspection method and system based on embedded deep learning
EP3889588A1 (en) Inspection assistance device, inspection assistance method, and inspection assistance program for concrete structure
CN111738056B (en) Heavy truck blind area target detection method based on improved YOLO v3
CN112446852B (en) Tunnel imaging plane display method and defect intelligent recognition system
CN111259878A (en) Method and equipment for detecting text
EP3781944A1 (en) Automated analysis of petrographic thin section images using advanced machine learning techniques
CN106934829A (en) The detection method and system of a kind of surface crack
CN111257329A (en) Smartphone camera defect detection method and detection system
CN114022761A (en) Detection and positioning method and device for power transmission line tower based on satellite remote sensing image
CN110969610A (en) Power equipment infrared chart identification method and system based on deep learning
CN112967221A (en) Shield constructs section of jurisdiction production and assembles information management system
CN108664886A (en) A kind of fast face recognition method adapting to substation's disengaging monitoring demand
CN116823839A (en) Pipeline leakage detection method based on thermal infrared image
CN115661057A (en) Industrial nondestructive testing system and method based on cloud edge cooperation and deep learning
CN115060343A (en) Point cloud-based river water level detection system, detection method and program product
CN110197483A (en) Deep basal pit crack detection method based on vision signal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22866807

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18576275

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE