A strip steel surface defect detection system

By combining FPGA and ARM processor in the strip surface defect detection system and deploying the neural network model to accelerate the operation, it solves the detection needs of small size and low power consumption applications that cannot be met in the existing technology, and achieves high accuracy and Low power consumption detection effect.

CN116309520BActive Publication Date: 2024-09-13JIANGNAN UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310346339.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2024-09-13
Estimated Expiration
2043-04-03

AI Technical Summary

Technical Problem

The existing technology cannot effectively detect surface defects of strip steel through the combination of software and hardware, and it is difficult to meet the needs of enterprises for small size and low power consumption applications.

Method used

A strip surface defect detection system is designed, which combines a programmable logic module (FPGA) and a processor module (ARM processor) to accelerate the calculation of strip surface image data by deploying a neural network model to detect inclusions and scratches. , identification of intruded oxide scale, cracks, pitting and plaques.

Benefits of technology

It achieves strip surface defect detection with high recognition accuracy, meets the needs of small size and low power consumption applications, and reduces power consumption at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116309520B
    Figure CN116309520B
Patent Text Reader

Abstract

The present invention relates to a strip steel surface defect detection system, comprising: a programmable logic module PL: used to deploy a neural network model, receive strip steel surface image data at the same time, and perform accelerated calculation on the strip steel surface image data through the neural network model to obtain accelerated calculation results; a processor module PS: used to control the execution process of the neural network model, and output the strip steel surface defect type according to the accelerated calculation result of the programmable logic module PL, wherein the strip steel surface defect type includes inclusions, scratches, pressed oxide scale, cracks, pits and plaques. The present invention uses a technology for detecting strip steel surface defects by combining software (i.e., programmable logic module PL) and hardware (processor module PS) to meet the needs of enterprises for small size and low power consumption applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of strip steel surface defect detection, in particular to a strip steel surface defect detection system. Background Art

[0002] As a comprehensive high-tech discipline, artificial intelligence has brought more and more influence to the current society. The intelligence of contemporary science and technology has become a future development trend. Nowadays, robots that realize automation in industrial production, embedded intelligent image recognition and processing, etc. are all important directions for the development of artificial intelligence. Deep learning belongs to a category in the field of artificial intelligence. Deep learning extracts features through multi-layer neural networks to solve a series of problems in machine learning. Convolutional networks and deep neural networks can complete many functions that traditional artificial algorithms cannot complete through their network models and sufficient training data sets. At present, CNN has been applied to handwritten digit recognition, industrial defect detection and other real-life situations.

[0003] China is a manufacturing powerhouse, producing tens of thousands of industrial products every day. There are paper, nuts, steel, pipes, etc. However, with the gradual development of automated production, defective products in industrial production are also produced. As we all know, steel is one of the most important raw materials in industrial production, and my country has a large annual demand. Under such a large demand background, the overall quality of strip steel production is not high, especially the cracks on the surface of the strip steel. If the defective products are not detected early, it will cause very serious consequences. Up to now, most of the strip steel surface defect detection equipment used by most domestic steel companies relies on imports and lacks core technology. These imported equipment are often expensive and have poor adaptability. Steel is the pillar of national defense and infrastructure. It is an urgent task to promote the independence of steel industry detection technology.

[0004] At present, many research institutes and universities at home and abroad have conducted research on strip surface defect detection. The most commonly used detection method is the visual system-based detection method. This method does not require contact with the strip surface. A sensor is installed on the production machine and matched with a dedicated detection system to realize the image acquisition, processing and classification of the strip surface. In order to realize the online detection of surface defects of cold-rolled strip steel, the Collaborative Innovation Center of Iron and Steel Common Technology of Beijing University of Science and Technology studied algorithms such as defect segmentation, feature extraction, and defect classification. A Block-LBP algorithm based on the LBP feature extraction algorithm was proposed, and the defect detection rate reached 90.94%. In view of the wide variety of strip defects, Chongqing Jiaotong University selected the SVM classification model, which achieved 91.7% recognition accuracy while quickly identifying defects. Dalian University of Technology used the VS2010 integrated development platform and combined with OpenCV to design a strip surface image acquisition, recognition and classification system, which ran well in the field application. Sun Guangmin and Liu Peng optimized the edge detection and connected domain analysis steps of various strip surface defects and proposed a strip image binarization algorithm. Without affecting the processing speed, the detection accuracy can reach more than 90%. Xi'an University of Technology has conducted in-depth research on the theory of convolutional neural networks in image processing and used the transfer learning method to train the model. In the strip surface defect classification test, the accuracy rate reached 92.2%. Roman Vorobel proposed a parameterized Retinex image preprocessing method for reliably evaluating the corrosion damage on the steel surface caused by light limitations. On this basis, the image is adaptively segmented. This method improves the reliability of corrosion area segmentation by detecting rust spots on the image. Anirban proposed a comparative study of defect classification methods based on different images, and applied Bayesian networks, artificial neural networks (ANNs) and classification techniques based on probabilistic neural networks (PNNs) to locomotive wheel production to classify the defects on the front surface of grooved steel ingots.

[0005] However, most of the above-mentioned CNN-based strip surface defect detection is implemented on the software platform. Since the neural network has very high requirements for the hardware configuration of the operation, this greatly limits the application of this neural network algorithm in some applications that require small size and low power consumption, and the actual usage rate in general enterprises is not high. At this time, FPGAs with considerable computing resources and short development cycles are gradually favored by researchers to develop applications based on convolutional networks. In 2014, the Chinese Academy of Sciences and Cambrian jointly proposed a CNN accelerator chip. By designing a three-level pipeline structure to store multiplier arrays, addition trees and sigmoid calculations respectively, the accelerator is given internal storage to facilitate the reading of different types of data, which significantly speeds up the calculation process of the convolutional neural network. In the same year, Cambrian made improvements based on the electric nerve and designed a new generation of neural network accelerator-big electric nerve. The accelerator is equipped with 64 chips, including 16 computing arrays, which once again improves the parallel computing speed of this series of accelerators. A year later in 2015, this series of accelerators launched the Shi DianNao structure accelerator, which greatly reduced the overall power consumption of the chip. In 2017, Eriko Nurvitadhi et al. discussed software enhancement and hardware acceleration of binary neural networks on CPU, FPGA and ASIC, respectively, and finally concluded that hardware acceleration using FPGA is a better solution. In 2018, Wei Shaojun et al. from Tsinghua University proposed a general neural network accelerator architecture, which aims to meet different practical needs by providing multiple mappings of data flows. The team soon improved the product for Thinker, Thinker II and Thinker S, Thinker II for low-width computing and Thinker S for speech recognition.

[0006] In summary, although there are methods in the prior art for detecting surface defects of steel strips through software platforms or hardware platforms, there is no technology for detecting surface defects of steel strips through a combination of software and hardware to meet the needs of enterprises for small size and low power consumption applications. Summary of the invention

[0007] To this end, the technical problem to be solved by the present invention is to overcome the problem that there is no technology in the prior art to detect surface defects of strip steel by combining software and hardware to meet the needs of enterprises for small size and low power consumption applications.

[0008] In order to solve the above technical problems, the present invention provides a strip surface defect detection system, comprising:

[0009] Programmable logic module PL: used to deploy the neural network model, receive the strip surface image data at the same time, and perform accelerated calculation on the strip surface image data through the neural network model to obtain the accelerated calculation result;

[0010] Processor module PS: used to control the execution process of the neural network model, and output the type of surface defects of the strip according to the accelerated calculation results of the programmable logic module PL, wherein the type of surface defects of the strip includes inclusions, scratches, pressed oxide scale, cracks, pitting and plaques.

[0011] In one embodiment of the present invention, the programmable logic module PL is provided with:

[0012] DMA unit: used to transfer data;

[0013] On-chip storage unit: after the processor module PS starts the programmable logic module PL, the DMA unit moves the strip surface image data in the DDR unit to the on-chip storage unit;

[0014] Weight buffer unit: after the processor module PS starts the programmable logic module PL, the DMA unit moves the network weights of the neural network model in the DDR unit to the weight buffer unit;

[0015] Instruction RAM unit: After the processor module PS starts the programmable logic module PL, the DMA unit moves the execution instructions of the neural network model in the DDR unit to the instruction RAM unit.

[0016] In one embodiment of the present invention, the processor module PS is provided with an instruction control unit;

[0017] The instruction control unit is used to read the convolution instruction of the neural network model from the instruction RAM unit, and distribute the read convolution instruction to the convolution operation module. The convolution operation module reads the strip surface image data and the network weight of the neural network model from the on-chip storage unit and the weight buffer unit respectively according to the received convolution instruction, and performs convolution operation on the read data to obtain convolution operation data;

[0018] After the convolution operation is completed, the instruction control unit reads the ReLU instruction of the neural network model from the instruction RAM unit, and distributes the read ReLU instruction to the ReLU module; the ReLU module performs the ReLU operation on the convolution operation data to obtain the ReLU operation data, and stores the ReLU operation data and the convolution operation data simultaneously in the on-chip storage unit;

[0019] After the ReLU operation is completed, the instruction control unit reads the pooling instruction of the neural network model from the instruction RAM unit, and distributes the read pooling instruction to the pooling module; the pooling module reads the ReLU operation data and the convolution operation data from the on-chip storage unit, and performs a pooling operation on the read data to obtain the pooling operation data;

[0020] The convolution operation module, ReLU module and pooling module are used to realize accelerated operation of the neural network model.

[0021] In one embodiment of the present invention, the programmable logic module PL is provided with a reconfigurable operation module, wherein the reconfigurable operation module includes m×n reconfigurable operation units PE arranged in an array, and two adjacent reconfigurable operation units PE are interconnected to form a grid structure; the reconfigurable operation module is used to reconstruct a convolution operation module, a ReLU module and a pooling module through the reconfigurable operation unit PE according to different operation modes of the neural network model.

[0022] In one embodiment of the present invention, the specific structure of the convolution operation module is: the reconfigurable operation units PE in the 1st to n-1th columns in the reconfigurable operation module are configured for multiplication and addition operations, and the reconfigurable operation units PE in the 1st to n-1th columns only transmit data horizontally; the reconfigurable operation units PE in the nth column in the reconfigurable operation module are configured for addition operations, and the reconfigurable operation units PE in the nth column only transmit data vertically; the reconfigurable operation units PE in the nth column and the mth row in the reconfigurable operation module are used as outputs.

[0023] In one embodiment of the present invention, the structure of the ReLU module is: each reconfigurable operation unit PE in the reconfigurable operation module is configured as a data transmission function, and the reconfigurable operation units PE from the 1st column to the nth column only transmit data horizontally; the reconfigurable operation unit PE in the nth column of the reconfigurable operation module serves as output.

[0024] In one embodiment of the present invention, the structure of the pooling module is as follows: the reconfigurable operation unit PE in the first column of the reconfigurable operation module is configured to compare and take the larger value operation, and the reconfigurable operation units PE in the second to nth columns are configured as data transmission functions, and the reconfigurable operation units PE in the first to nth columns only transmit data horizontally; the reconfigurable operation unit PE in the nth column of the reconfigurable operation module is used as the output.

[0025] In one embodiment of the present invention, the network weights of the neural network model deployed in the programmable logic module PL are adjusted, specifically by adjusting the network weight precision of the neural network model from 32-bit floating point numbers to 16-bit floating point numbers.

[0026] In one embodiment of the present invention, the instruction control unit is an ARM processor.

[0027] In one embodiment of the present invention, the neural network model deployed by the programmable logic module PL is a VGG-19 convolutional neural network, and the VGG-19 convolutional neural network includes several convolutional layers, several maximum pooling layers, several fully connected layers and a Softmax function layer.

[0028] The above technical solution of the present invention has the following advantages compared with the prior art:

[0029] The strip surface defect detection system of the present invention detects strip surface defects by combining software (i.e., programmable logic module PL) and hardware (processor module PS) to meet the needs of enterprises for small size and low power consumption applications;

[0030] The present invention can meet the computing requirements of different neural network models by reconfiguring and arranging the reconfigurable computing units PE in the reconfigurable computing module in the programmable logic module PL, and can change the original neural network serial computing process (such as convolution computing) into a parallel computing process through the reconfigurable computing module, which greatly speeds up the computing speed. Therefore, the detection system of the present invention meets the needs of enterprises for small size and low power consumption applications.

[0031] Experimental results show that the present invention has a high recognition accuracy while significantly reducing power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.

[0033] Figure 1 is a structural diagram of a strip steel surface defect detection system in an embodiment of the present invention;

[0034] Figure 2 Schematic diagram of a VGG-19 convolutional neural network model in an embodiment of the present invention;

[0035] Figure 3 It is a dataset of strip steel surface defects from Northeastern University in an embodiment of the present invention;

[0036] Figure 4 is a schematic diagram of the structure of a reconfigurable computing module in an embodiment of the present invention;

[0037] Figure 5 Schematic diagram of the structure of a convolution operation module in an embodiment of the present invention;

[0038] Figure 6 Schematic diagram of the ReLU module structure in an embodiment of the present invention;

[0039] Figure 7 Schematic diagram of the structure of the pooling module in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0041] Reference Figure 1 As shown, the present invention relates to a strip steel surface defect detection system (based on ZYNQ7020 series development board), comprising:

[0042] The programmable logic module PL (i.e., FPGA platform) belongs to the hardware platform: it is used to deploy the neural network model, receive the strip surface image data at the same time, and perform accelerated calculation on the strip surface image data through the neural network model to obtain the accelerated calculation result;

[0043] The processor module PS (i.e., embedded processor) belongs to the software platform: it is used to control the execution process of the neural network model, and output the surface defect type of the strip according to the accelerated calculation result of the programmable logic module PL, wherein the surface defect type of the strip includes inclusions, scratches, pressed oxide scale, cracks, pitting and plaques.

[0044] The design experiment of this embodiment deployed a neural network model on the FPGA platform, realized the application of the embedded neural network model, and finally achieved image classification and recognition of surface defects of strip steel through a combination of software and hardware, meeting the company's needs for small size and low power consumption applications.

[0045] Specifically, as a computationally intensive algorithm, neural network models (such as convolutional neural networks) are not realistic to design only by serial methods. Therefore, how to improve the parallel design of neural network models has become a current research hotspot. Since the algorithm has high requirements for the hardware configuration of the operation, this greatly limits the application of convolutional neural network algorithms in some scenarios that require small size and low power consumption. For example, implementing convolutional neural networks on embedded systems can more easily perform image processing tasks. Embedded image processing is emerging in an endless stream, but the computing power of traditional embedded processors is very limited, and many scene applications can no longer meet the requirements of real-time processing. At this stage, FPGAs and embedded processors are both low-energy, small-sized devices, but each has its own advantages and limitations. For FPGAs with rich logic resources and multiple multipliers, it is very suitable for processing large-scale multiplication and addition operations. In addition, FPGAs also have the advantages of low power consumption and small size. However, FPGAs also have their limitations. FPGAs lack an independent operating system and can only be developed using hardware description languages. It is not very convenient to transplant neural network algorithms. Embedded processors, such as ARM processors, are not very good at large-scale matrix multiplication operations in convolutional neural networks due to their serial working characteristics. In view of the above problems, the software and hardware co-design solution of the embedded system based on FPGA+ARM (i.e., programmable logic module PL+processor module PS) can make up for the shortcomings of the above series of platforms. Therefore, this embodiment uses the feature of parallel operation of convolutional neural network to realize a complete software and hardware co-design system through the collaborative processing of processor module (PS) and programmable logic module (PL), providing a low-power and low-configuration detection method for defect detection on the surface of strip steel.

[0046] The neural network model in this embodiment adopts the VGG-19 convolutional neural network, please refer to Figure 2 The feature input of the model design is: 224×224×3. The network structure includes 16 convolution layers (convolution+ReLU), 5 maximum pooling layers (max pooling), 3 fully connected layers (fullyconnected+ReLU) and a Softmax function layer. The dimension of the last fully connected layer is 1000. The last fully connected layer of the VGG-19 convolutional neural network is connected to Softmax to achieve classification.

[0047] The steel strip surface image data used in this implementation is the Northeastern University steel strip surface defect dataset, which contains 1,800 images, 1,200 of which are training sets and 600 are test sets. Figure 3 , the surface defects of strip steel are divided into 6 categories, including inclusions, scratches, pressed oxide scale, cracks, pitting and plaques. Figure 3From left to right, each column of images represents inclusions, scratches, indentations, cracks, pits, and plaques).

[0048] This embodiment is based on Xilinx's ZYNQ7020 series development board to accelerate the neural network model. The ZYNQ7020 development board is a heterogeneous system, that is, a processor module (PS) composed of two A9 arm processors and a programmable logic module (PL). The experiment is based on the Xilinx development tool vivado 2018.3 software, and the processor module PS and the programmable logic module PL are interconnected through the AXI bus. The comparative experiment in the later stage of this embodiment is tested on three platforms, the first is the GPU platform (a software platform), the second is the CPU platform (a software platform), and the third is the hardware and software heterogeneous FPGA platform built in this embodiment. The parameters of each platform are shown in Table 1.

[0049] Table 1 Parameters of each test platform

[0050]

[0051] For further information, see Figure 1 , the programmable logic module PL of this embodiment is provided with:

[0052] DMA unit: used to transfer data;

[0053] On-chip storage unit: after the processor module PS starts the programmable logic module PL, the DMA unit moves the strip surface image data in the DDR unit to the on-chip storage unit;

[0054] Weight buffer unit: after the processor module PS starts the programmable logic module PL, the DMA unit moves the network weights of the neural network model in the DDR unit to the weight buffer unit;

[0055] Instruction RAM unit: After the processor module PS starts the programmable logic module PL, the DMA unit moves the execution instructions of the neural network model in the DDR unit to the instruction RAM unit.

[0056] Furthermore, the processor module PS is provided with an instruction control unit, and the instruction control unit is an ARM processor.

[0057] The instruction control unit is used to read the convolution instruction of the neural network model from the instruction RAM unit, and distribute the read convolution instruction to the convolution operation module. The convolution operation module reads the strip surface image data and the network weight of the neural network model from the on-chip storage unit and the weight buffer unit respectively according to the received convolution instruction, and performs convolution operation on the read data to obtain convolution operation data;

[0058] After the convolution operation is completed, the instruction control unit reads the ReLU instruction of the neural network model from the instruction RAM unit, and distributes the read ReLU instruction to the ReLU module; the ReLU module performs the ReLU operation on the convolution operation data to obtain the ReLU operation data, and stores the ReLU operation data and the convolution operation data simultaneously in the on-chip storage unit;

[0059] After the ReLU operation is completed, the instruction control unit reads the pooling instruction of the neural network model from the instruction RAM unit, and distributes the read pooling instruction to the pooling module; the pooling module reads the ReLU operation data and the convolution operation data from the on-chip storage unit, and performs a pooling operation on the read data to obtain the pooling operation data;

[0060] The convolution operation module, ReLU module and pooling module are used to realize accelerated operation of the neural network model.

[0061] The actual operation process is as follows:

[0062] The first step is to convert the neural network model into a neural network execution instruction that can be recognized by the programmable logic module PL. The second step is to store the strip surface image data, the network weights of the neural network model and the converted neural network execution instructions in the DDR unit on the programmable logic module PL. The third step is to start the programmable logic module PL through the processor module PS. The DMA unit of the programmable logic module PL is started first, and the strip surface image data is transferred to the on-chip storage unit, the weights of the neural network model are transferred to the weight buffer unit, and the neural network execution instructions are transferred to the instruction RAM unit. The fourth step is that after the strip surface image data and the neural network execution instructions are transferred, the instruction control unit of the processor module PS is started, and the neural network execution instructions are read from the instruction RAM unit and distributed to the convolution operation module. After receiving the instruction, the convolution operation module reads the strip surface image data from the on-chip storage unit and the weights of the neural network model from the weight buffer unit according to the instruction requirements, and performs convolution operation. After the convolution operation, the data is sent to the ReLU module to complete the ReLU operation. The fifth step is that after the convolution and ReLU operations are completed, the instruction control unit distributes the corresponding instructions to the pooling module. After receiving the instruction, the pooling module reads the data after the fourth step operation from the on-chip storage unit, performs the pooling operation according to the instruction requirements, and writes the result back to the on-chip storage unit after the operation. Repeat the fourth and fifth steps until the entire neural network model operation is completed, and then the operation result is transferred back to the DDR unit through the DMA unit to complete the entire acceleration process. The actual acceleration process is mainly reflected in the parallel operation of convolution.

[0063] Furthermore, the programmable logic module PL is provided with a reconfigurable operation module, wherein the reconfigurable operation module includes m×n reconfigurable operation units PE arranged in an array, and two adjacent reconfigurable operation units PE are interconnected to form a grid structure. The structural schematic diagram of the reconfigurable operation module is shown in Figure 4 (Only taking the 4*4 array as an example for demonstration); the reconfigurable operation module is used to reconstruct the convolution calculation module, ReLU module and pooling module through the reconfigurable operation unit PE according to different operation modes of the neural network model.

[0064] For further information, see Figure 5 (Only taking the 4*4 array as an example for demonstration), the specific structure of the convolution operation module is: the reconfigurable operation units PE in the 1st to n-1th columns in the reconfigurable operation module are configured for multiplication and addition operations, and the reconfigurable operation units PE in the 1st to n-1th columns only transmit data horizontally; the reconfigurable operation units PE in the nth column in the reconfigurable operation module are configured for accumulation operations, and the reconfigurable operation units PE in the nth column only transmit data vertically; the reconfigurable operation units PE in the nth column and the mth row in the reconfigurable operation module are used as output.

[0065] For further information, see Figure 6 (Only taking the 4*4 array as an example for demonstration), the structure of the ReLU module is: each reconfigurable operation unit PE in the reconfigurable operation module is configured as a data transmission function, and the reconfigurable operation units PE from the 1st column to the nth column only transmit data horizontally; the reconfigurable operation unit PE in the nth column of the reconfigurable operation module is used as the output.

[0066] Furthermore, the structure of the pooling module is as follows: the reconfigurable operation unit PE in the first column of the reconfigurable operation module is configured to perform a comparison and larger value operation, and the reconfigurable operation units PE in the second to nth columns are configured as data transmission functions, and the reconfigurable operation units PE in the first to nth columns only transmit data horizontally; the reconfigurable operation unit PE in the nth column of the reconfigurable operation module is used as the output.

[0067] Furthermore, this embodiment also adjusts the network weights of the neural network model deployed in the programmable logic module PL, specifically: adjusting the network weight precision of the neural network model from 32-bit floating point numbers to 16-bit floating point numbers.

[0068] Specifically, 32-bit floating point numbers are used in computers to represent real numbers, mainly following the IEEE 754 standard. A 32-bit floating point number consists of three parts: a sign bit, an exponent, and a mantissa.

[0069] However, if 32-bit floating point numbers are used for calculation, the hardware resource usage generated by Zynq FPGA is too large. Before this experiment, this embodiment conducted experiments on an image with an input size of three channels 32 times 32 and a 5 times 5 convolution kernel with a step size of 1. This convolution can be converted into a multiplication of size (1024*75)*(75*32). The experimental results are shown in Table 2. By testing such a small CNN layer, 25% of the on-chip resources have been occupied, so the calculation based on 32-bit floating point numbers is not suitable for large neural network models to perform on-chip parallel operations. Therefore, this embodiment quantizes the network weights from the high-precision 32-bit floating point numbers to 16-bit or lower fixed-point numbers. The prediction accuracy of the network model will be somewhat reduced, but the weight fixed-point can reduce the storage space of the weights, improve the inference speed and calculation parallelism, which is currently a commonly used method for model compression. Therefore, there is a compromise and balance between the fixed-point quantization bit width and classification accuracy. In order to obtain the best data format suitable for this embodiment, the same convolution model mentioned above was used to test 8, 16, and 32-bit fixed-point numbers. The experimental results show that 16-bit fixed-point numbers are the most ideal. Therefore, this embodiment uses a 16-bit fixed-point number format to implement the entire neural network model. Table 3 is a comparison of the accuracy before and after the network is fixed-pointed. Due to the loss of precision, the accuracy has dropped slightly, but it is within an acceptable range (selecting 100 Northeastern University strip surface defect test sets).

[0070] Table 2 Convolutional network resource usage

[0071] resource Occupancy total Proportion BRAM 40 140 29 DSP 47 220 21 LUT 4912 53200 9

[0072] Table 3 Accuracy of different data types

[0073] Data Types Accuracy / % Number of errors 32-bit floating point 89 11 16-bit fixed-point number 87 13

[0074] The experimental results and analysis are as follows:

[0075] FPGA resource utilization of this embodiment: As shown in Table 4, nearly 90% of the FPGA's on-chip BRAM resources have been used, making full use of the on-chip resources for parallel computing. The pipeline processing effect is good, and the hardware utilization rate can be further improved in the future, and there is still room for improvement.

[0076] Table 4 FPGA hardware resource utilization

[0077] resource Occupancy total BRAM 125 140 DSP 76 220 LUT 29220 53200

[0078] The comparison of recognition time and accuracy between the CPU platform (a software platform) and the software and hardware heterogeneous platform (FPGA) is shown in Table 5. It is obvious that the design method combining software and hardware in this embodiment consumes much less time than the CPU, which is improved by 6 times.

[0079] Table 5 Comparison of platform time consumption and accuracy

[0080] platform Time spent on each picture / s Accuracy / % CPU Platform 16.37 89.7 FPGA platform in this embodiment 2.79 87.6

[0081] The comparison of power consumption and accuracy between the GPU platform (a software platform) and the software and hardware heterogeneous platform (FPGA) is shown in Table 6. It is obvious that with a loss of 2.1 accuracy, the power consumption of this embodiment is only one twelfth of that of the CPU platform. As a balance between accuracy and power consumption, this level of accuracy loss is reasonable.

[0082] Table 6 Platform power consumption and accuracy comparison

[0083] platform Power consumption / w Accuracy / % GPU Platform 130 89.7 CPU Platform 43 89.7 FPGA platform in this embodiment 3.4 87.6

[0084] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0085] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A strip surface defect detection system, characterized in that: include: Programmable logic module PL: used to deploy the neural network model, receive the strip surface image data at the same time, and perform accelerated calculation on the strip surface image data through the neural network model to obtain the accelerated calculation result; Processor module PS: used to control the execution process of the neural network model, and output the type of surface defects of the strip according to the accelerated calculation result of the programmable logic module PL, wherein the type of surface defects of the strip includes inclusions, scratches, pressed oxide scale, cracks, pits and plaques; The programmable logic module PL is provided with: DDR unit: used to store execution instructions of the neural network model, network weights of the neural network model and strip surface image data, wherein the execution instructions of the neural network model include convolution instructions, pooling instructions and ReLU instructions; DMA unit: used to transfer data; On-chip storage unit: after the processor module PS starts the programmable logic module PL, the DMA unit moves the strip surface image data in the DDR unit to the on-chip storage unit; Weight buffer unit: after the processor module PS starts the programmable logic module PL, the DMA unit moves the network weights of the neural network model in the DDR unit to the weight buffer unit; Instruction RAM unit: after the processor module PS starts the programmable logic module PL, the DMA unit moves the execution instructions of the neural network model in the DDR unit to the instruction RAM unit; The processor module PS is provided with an instruction control unit; The instruction control unit is used to read the convolution instruction of the neural network model from the instruction RAM unit, and distribute the read convolution instruction to the convolution operation module. The convolution operation module reads the strip surface image data and the network weight of the neural network model from the on-chip storage unit and the weight buffer unit respectively according to the received convolution instruction, and performs convolution operation on the read data to obtain convolution operation data; After the convolution operation is completed, the instruction control unit reads the ReLU instruction of the neural network model from the instruction RAM unit, and distributes the read ReLU instruction to the ReLU module; the ReLU module performs the ReLU operation on the convolution operation data to obtain the ReLU operation data, and stores the ReLU operation data and the convolution operation data simultaneously in the on-chip storage unit; After the ReLU operation is completed, the instruction control unit reads the pooling instruction of the neural network model from the instruction RAM unit, and distributes the read pooling instruction to the pooling module; the pooling module reads the ReLU operation data and the convolution operation data from the on-chip storage unit, and performs a pooling operation on the read data to obtain the pooling operation data; The convolution operation module, ReLU module and pooling module are used to realize accelerated operation of the neural network model; The programmable logic module PL is provided with a reconfigurable operation module, wherein the reconfigurable operation module includes m×n reconfigurable operation units PE arranged in an array, and two adjacent reconfigurable operation units PE are interconnected to form a grid structure; the reconfigurable operation module is used to reconstruct a convolution operation module, a ReLU module and a pooling module through the reconfigurable operation unit PE according to different operation modes of the neural network model; The specific structure of the convolution operation module is as follows: the reconfigurable operation units PE in the 1st to n-1th columns in the reconfigurable operation module are configured for multiplication and addition operations, and the reconfigurable operation units PE in the 1st to n-1th columns only transmit data horizontally; the reconfigurable operation units PE in the nth column in the reconfigurable operation module are configured for accumulation operations, and the reconfigurable operation units PE in the nth column only transmit data vertically; the reconfigurable operation units PE in the nth column and the mth row in the reconfigurable operation module are used as outputs; The structure of the ReLU module is as follows: each reconfigurable operation unit PE in the reconfigurable operation module is configured as a data transmission function, and the reconfigurable operation units PE in the first to nth columns only transmit data horizontally; the reconfigurable operation unit PE in the nth column of the reconfigurable operation module is used as an output; The structure of the pooling module is as follows: the reconfigurable operation unit PE in the first column of the reconfigurable operation module is configured to compare and take the larger value operation, and the reconfigurable operation units PE in the second to nth columns are configured to have a data transmission function, and the reconfigurable operation units PE in the first to nth columns only transmit data horizontally; the reconfigurable operation unit PE in the nth column of the reconfigurable operation module is used as an output; Adjust the network weights of the neural network model deployed in the programmable logic module PL, specifically: adjust the network weight precision of the neural network model from 32-bit floating point numbers to 16-bit floating point numbers.

2. The strip steel surface defect detection system according to claim 1, characterized in that: The instruction control unit is an ARM processor.

3. The strip surface defect detection system according to claim 1, characterized in that: The neural network model deployed by the programmable logic module PL is a VGG-19 convolutional neural network, which includes several convolutional layers, several maximum pooling layers, several fully connected layers and a Softmax function layer.

Citation Information

Patent Citations

  • ASIC and VGG16-based image classification acceleration method and device

    CN112396072A

  • Convolutional neural network software and hardware collaborative acceleration heterogeneous SoC implementation method

    CN113240101A

  • Strip steel defect detection method based on shallow neural network

    CN114445397A

  • Power artificial-intelligence visual-analysis system on basis of multi-core heterogeneous parallel computing

    WO2019109771A1

  • BNRP-based configurable parallel general convolutional neural network accelerator

    WO2020258529A1