Banknote identification method based on AI and banknote sorter

By introducing an AI recognition module into the banknote sorting machine and using a neural network model to identify torn and wrinkled damaged coins, combined with the anti-counterfeiting features of the classic banknote verification recognition module, the problem of difficulty in identifying torn and wrinkled coins in the existing technology is solved. problem, significantly improving the detection rate and the market competitiveness of the equipment.

CN118675183APending Publication Date: 2024-09-20GLORY DENSHI IND SUZHOU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410453988.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

It is difficult for existing banknote sorting machines to accurately identify torn, wrinkled and damaged coins, and it is also difficult to detect simple soft and damaged coins, which affects the detection capability and market competitiveness of the equipment.

Method used

It adopts an AI-based banknote recognition method and uses AI data training and neural network models to identify torn, wrinkled and damaged coins. It combines the anti-counterfeiting features of the classic banknote detection recognition module and sets the damaged currency type to improve detection capabilities.

Benefits of technology

By introducing the AI ​​recognition module, the detection rate of torn and wrinkled coins exceeds 90%, and the overall detection rate increases by more than 36%, improving the product's competitiveness and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675183A
    Figure CN118675183A
Patent Text Reader

Abstract

The invention relates to an AI-based paper money identification method and a paper money sorter, the method comprises the steps of AI identification, and the AI identification comprises the following steps: AI data training: collecting paper money images including damaged paper money images and normal paper money images, taking the collected paper money images as a training set and a verification set, inputting the collected paper money images into a neural network model for learning, generating a damaged paper money model file, the damaged currency image comprises a torn damaged currency image and a wrinkled damaged currency image, scanning the paper currency to be detected, generating a visual image of the paper currency, judging the visual image of the paper currency to be detected by using the damaged currency model file, and outputting a damaged currency type and an evaluation value. According to the invention, a deep learning method is used for detecting torn coins and wrinkled coins, the detection rate exceeds 90%, and the detection rate of the whole machine can be improved by more than 36%; the AI identification module can be installed as an optional accessory on the basis of not changing the structure of the original sorter, does not conflict with the original sorter, and can improve the user experience and enhance the product competitiveness at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of financial machines and tools, and in particular to an AI-based paper currency recognition method and a paper currency sorting machine. Background Art

[0002] At present, banks have higher and higher requirements for banknote sorting machines, which require banknote sorting machines to detect damaged banknotes more accurately. According to the existing damaged banknote standards, damaged banknotes can be divided into dirty, stained, de-inked, missing, pasted, torn (such as Figure 1a as shown), splicing, deformation, graffiti, wrinkles (as shown Figure 1b For the above damaged banknotes, the banknote sorting machine uses the classic banknote verification and recognition module to identify them (such as Figure 2 However, if the torn banknotes are partially restored to their original state during transportation (the torn part is smoothed out), and the feature points are randomly distributed over the entire area of ​​the banknotes, it is impossible to determine the coordinates. Therefore, it is difficult for existing banknote sorting machines to detect them. The same is true for wrinkled banknotes. In addition, it is also difficult to detect simply soft banknotes, but in the market, soft banknotes are generally accompanied by dirt.

[0003] Table 1: Table of damaged currency detection capabilities of banknote verification modules of existing banknote sorting machines

[0004] No. Damaged coin type Banknote Verification Module Detection Capability No. Damaged coin type Banknote Verification Module Detection Capability No. Damaged coin type Banknote Verification Module Detection Capability 1 Dirty ○ 4 Paste ○ 9 Scribble ○ 2 Stains ○ 6 Tear × 10 Wrinkles × 3 Deinking ○ 7 Splicing ○ 11 Soft △ 4 Missing ○ 8 Deformation ○ 12 Carbonization ○

[0005] Therefore, detecting tears and wrinkles will definitely greatly enhance the product competitiveness of banknote sorting machines. Summary of the invention

[0006] An object of the present invention is to provide an AI-based banknote recognition method, particularly a banknote recognition method that can recognize torn and wrinkled banknotes.

[0007] To achieve the above object, a technical solution adopted by the present invention is:

[0008] A banknote recognition method based on AI, the method has the steps of AI recognition, and the AI ​​recognition includes:

[0009] S1. AI data training: Collect banknote images, including damaged banknote images and normal banknote images, use the collected banknote images as training sets and verification sets, input them into the neural network model for learning, and generate damaged banknote model files, where damaged banknote images include torn damaged banknote images and wrinkled damaged banknote images.

[0010] S2. Scan the banknote to be inspected and generate a visual image of the banknote. Use the damaged banknote model file to judge the visual image of the banknote to be inspected. When it is determined that there are damaged banknote features and the evaluation value reaches a threshold, the damaged banknote type and evaluation value are output.

[0011] Preferably, the above technical solution further comprises, in S1, performing the following steps on the collected banknote image:

[0012] S1.1, Image data classification: divide the banknote images into training set and verification set according to the set ratio.

[0013] S1.2, Image preprocessing: Change the banknote images of the training set and the validation set to images of a set pixel size.

[0014] S1.3, Image data enhancement: Randomly scale, randomly crop, randomly arrange and then splice multiple banknote images.

[0015] S1.4, Evaluation indicators: Use the validation set to evaluate the training set, including precision P, average precision mAP of the category, and recall R.

[0016]

[0017]

[0018]

[0019] Among them, TP is the number of positive samples predicted correctly, FN is the number of negative samples predicted incorrectly, FP is the number of positive samples predicted incorrectly, and TN is the number of negative samples predicted correctly.

[0020] Preferably, the above technical solution comprises the following steps when determining the image in S2:

[0021] S2.1, load model weights and configuration,

[0022] S2.2, Image preprocessing: resizing, normalizing and format conversion of images.

[0023] S2.3, Feature extraction: Use the trained neural network to extract image features,

[0024] S2.4, Positioning prediction: Through the regression layer, the model predicts the location coordinates and probability of the bounding box.

[0025] S2.5, classification prediction: For each bounding box, classification prediction is performed through the fully connected layer.

[0026] S2.6, non-maximum suppression: merge overlapping prediction boxes, remove non-maximum prediction boxes, and retain the best prediction box.

[0027] Preferably, the above technical solution comprises the following steps: performing anti-counterfeiting features on the inspected banknotes, setting the types of damaged banknotes for detection, and outputting banknote identification results after comprehensive judgment of the output damaged banknote types identified by the AI, wherein: the anti-counterfeiting features include watermarks, ink, and fluorescence; the set damaged banknote types include dirty, stained, de-inked, missing, pasted, spliced, deformed, scribbled, and carbonized damaged banknotes.

[0028] Preferably, in the above technical solution, the neural network model adopts the YOLOV5 neural network model.

[0029] To achieve the above object, a technical solution adopted by the present invention is:

[0030] A banknote recognition method based on AI includes banknote verification recognition, AI recognition and comprehensive judgment, wherein:

[0031] The banknote verification and identification includes detecting the anti-counterfeiting features of the banknote to be inspected and setting the type of damaged banknotes for detection, wherein: the anti-counterfeiting features include watermarks, ink, and fluorescence; the set types of damaged banknotes include dirty, stained, de-inked, missing, pasted, spliced, deformed, scribbled, and carbonized damaged banknotes;

[0032] The AI ​​recognition includes:

[0033] S1. AI data training: Collect banknote images, including damaged banknote images and normal banknote images, use the collected banknote images as training sets, input them into the neural network model for learning, and generate damaged banknote model files, where damaged banknote images include torn damaged banknote images and wrinkled damaged banknote images.

[0034] S2. Scan the banknote to be inspected and generate a visual image of the banknote. Use the damaged banknote model file to judge the visual image of the banknote to be inspected. When it is determined that there are damaged banknote features and the evaluation value reaches a threshold, the damaged banknote type and evaluation value are output.

[0035] The comprehensive judgment combines the result of the banknote verification and recognition and the result of the AI ​​recognition to output the banknote recognition result.

[0036] Preferably, in the above technical solution, the banknote verification and AI recognition are performed sequentially.

[0037] Another object of the present invention is to provide a banknote sorting machine.

[0038] To achieve the above object, a technical solution adopted by the present invention is:

[0039] A banknote sorting machine comprises an AI recognition module, wherein the AI ​​recognition module adopts an AI-based banknote recognition method.

[0040] Preferably, in the above technical solution, the AI ​​recognition module comprises:

[0041] Image sensor: used to scan banknotes to be inspected;

[0042] Image acquisition board: connected to the image sensor, used to generate a visual image of the banknote scanned by the image sensor;

[0043] AI recognition board: connected to the image acquisition board, used to store damaged banknote model files, receive the banknote visualization images generated by the image acquisition board and determine the damaged banknote characteristics.

[0044] Further preferably, the image resolution of the image sensor is not less than 100dpi*100dpi.

[0045] Further preferably, the type of image captured by the image sensor is an infrared transmission image.

[0046] Further preferably, the image sensor is a CIS image sensor.

[0047] The AI ​​recognition module includes:

[0048] Shell: including bottom plate and upper cover;

[0049] Guide plate assembly: used to transport banknotes;

[0050] Image sensors: respectively arranged on the upper and lower sides of the guide plate assembly, used for scanning the upper and lower images of the banknotes during the conveying process;

[0051] Substrate: used to generate a visual image of the banknote scanned by the image sensor and perform AI judgment.

[0052] The upper cover, substrate, image sensor, guide plate assembly, image sensor and bottom plate are arranged in sequence from top to bottom, and the image sensor, upper guide plate, lower guide plate and image sensor are fixed by the upper cover and substrate to form an integrated structure.

[0053] Further preferably, the substrate includes an image acquisition board and an AI recognition board. The image acquisition board is connected to the image sensor and is used to generate a visual image of the banknote to be inspected scanned by the image sensor. The AI ​​recognition board is connected to the image acquisition board and is used to store a damaged banknote model file, and receive the visual image of the banknote generated by the image acquisition board and determine the characteristics of the damaged banknote.

[0054] More preferably, the image acquisition board and AI recognition board are integrated on the substrate.

[0055] Preferably, in the above technical solution, the banknote sorting machine further comprises a banknote verification and recognition module, and the banknote verification and recognition module is used to recognize the anti-counterfeiting features of the banknotes and the set damaged banknote types.

[0056] Preferably, in the above technical solution, the banknote verification and recognition module and the AI ​​recognition module are arranged in sequence according to the banknote conveying process.

[0057] To achieve the above object, a technical solution adopted by the present invention is:

[0058] A banknote sorting machine includes a banknote verification and recognition module and an AI recognition module.

[0059] The banknote verification and recognition module is used to identify the anti-counterfeiting features of banknotes and the set damaged banknote types;

[0060] The AI ​​recognition module includes an image sensor, an image acquisition board and an AI recognition board. The image sensor is used to scan the banknotes to be inspected; the image acquisition board is connected to the image sensor and is used to generate a visual image of the banknotes to be inspected scanned by the image sensor; the AI ​​recognition board is connected to the image acquisition board and is used to store a damaged banknote model file, receive the visual image of the banknotes generated by the image acquisition board and determine the damaged banknote characteristics.

[0061] Due to the application of the above technical solution, the present invention has the following advantages compared with the prior art:

[0062] The present invention introduces AI recognition in the process of banknote detection and uses deep learning methods to detect torn and wrinkled banknotes that cannot be detected by classic banknote detection. The detection rate of torn and wrinkled banknotes exceeds 90%, and the detection rate of the whole machine can be increased by more than 36%.

[0063] The AI ​​recognition module of the present invention can be installed as an optional accessory without changing the structure of the original sorting machine, and does not conflict with the original machine. At the same time, it can improve user experience and enhance product competitiveness. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Attached Figure 1a This is a schematic diagram of a torn and damaged coin;

[0065] Attached Figure 1b This is a schematic diagram of a wrinkled and damaged coin;

[0066] Attached Figure 2 It is a schematic diagram of the process framework of the classic banknote verification and recognition method of the banknote sorting machine;

[0067] Attached Figure 3 It is a flowchart of the AI ​​recognition method of the present invention;

[0068] Attached Figure 4A schematic diagram of data enhancement of the present invention;

[0069] Attached Figure 5a , Figure 5b , Figure 5c These are the banknote images of Case 1, Case 2, and Case 3 respectively;

[0070] Attached Figure 6 It is a schematic diagram of the structure of the AI ​​recognition module of the present invention;

[0071] Attached Figure 7 It is an external schematic diagram of the banknote sorting machine of the present invention;

[0072] Attached Figure 8 It is a schematic diagram of the interior of the banknote sorting machine of the present invention;

[0073] Attached Fig. 9 This is a schematic diagram of the structure of the AI ​​recognition module of the present invention;

[0074] Attached Fig.10 This is a schematic diagram of the AI ​​recognition module structure breakdown of the present invention.

[0075] Among them: 1. AI recognition module; 10. Bottom plate; 11. Top cover; 12. Upper guide plate; 13. Lower guide plate; 14. Image sensor. DETAILED DESCRIPTION

[0076] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0077] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0078] Embodiment 1:

[0079] like Figure 3The AI-based banknote recognition method shown in the figure is only for detecting torn and wrinkled banknotes. The method includes banknote verification recognition, AI recognition and comprehensive judgment. Among them: banknote verification recognition and AI recognition respectively recognize different forms of damaged banknotes, and the order of the two is not specifically limited. In this application, banknote verification recognition is performed first, and then AI recognition is performed as an example.

[0080] Banknote verification and recognition, also known as BV recognition, is the recognition module of traditional banknote sorting machines. It is mainly used to identify the anti-counterfeiting features of the banknotes to be inspected and set the type of damaged banknotes for identification. Among them: Banknote verification and recognition mainly identifies anti-counterfeiting features including watermarks, ink, fluorescence, etc. to determine whether the banknote is a counterfeit banknote; and identifies set types of damaged banknotes including dirt, stains, de-inking, missing, pasted, spliced, deformed, scribbled, and carbonized damaged banknotes.

[0081] AI recognition is mainly used to identify torn, wrinkled and damaged banknotes. Of course, AI recognition can also be used to identify other types of damaged banknotes, but since other types of damaged banknotes can be detected by banknote verification, torn and wrinkled banknotes that cannot be detected by banknote verification are identified by AI, thereby improving the detection ability of the sorting machine.

[0082] In this embodiment: the steps of AI recognition include:

[0083] First, AI data training is performed: a large number of training coins are prepared. Tears can be formed by hand tearing, scissor cutting or knife scratching, and wrinkles can be formed by folding, kneading and other methods. These torn and wrinkled coins and some normal coins are collected as training sets and verification sets. The damaged banknote images are labeled using the labelimg tool, and the damaged banknote type and coordinates need to be labeled.

[0084] Then, the collected banknote image is used as the input neural network model for learning to generate a damaged bill model file. In this embodiment, the neural network model adopts the YOLOV5 neural network model. The damaged bill model file generated by AI training is the best.pt model file, which cannot be run on the Linux-based AI recognition board, so a template conversion step is required. Specifically: first use the RK chip-specific conversion tool to convert the pt template to the onnx template, and then use the RK chip development kit rknn-toolkit2 to convert the onnx template to the rknn template. After the rknn template is converted, the rknn template is imported into the AI ​​recognition board for image judgment.

[0085] In order to improve the accuracy of the model, this embodiment also includes image data classification, image preprocessing, image data enhancement and evaluation index for the collected banknote images. Among them:

[0086] Image data classification divides banknote images into training sets and validation sets according to the set ratio, and inputs them into the YOLOV5 neural network for learning. In order to obtain better training results, the images are divided into training sets and validation sets using the following method:

[0087] First, put all images into the image source file (database) folder, and create training set (train) and validation set (val) folders;

[0088] Use Python tools to import the os module, use the walk method under the os module to traverse all image files in the database folder, obtain the paths of all images, and store them in a list;

[0089] Use Python tools to import the random module and use the shuffle method under the random module to shuffle the list containing all image paths, that is, randomly disrupt the order;

[0090] Use Python tools, use the rename method under the os module, and move the files in the list to the training set and validation set folders respectively. The ratio of the training set and validation set folders is approximately 8:2, that is, the ratio of images in the training set to images in the validation set is 8:2. For example, for 10,000 banknote images, there are 8,000 training sets and 2,000 validation sets.

[0091] Image preprocessing is to change the banknote images of the training set and the validation set into images of a set pixel size, specifically:

[0092] According to the characteristics of the image sensor, the length of the collected image is fixed, and the length resolution is 736 pixels, but the width is variable, averaging about 416 pixels. Use Python tools, import the opencv module, use the resize method under the opencv module, change all images to 736*416 pixel size images, and input them into the neural network model for training.

[0093] Image data enhancement is to randomly scale, crop, and arrange multiple banknote images and then splice them. In this embodiment, in order to obtain better training results during training, the Mosaic data enhancement method is used: four images are randomly read from the training set and the validation set each time, and the four images are flipped (the original images are flipped left and right), scaled (the original images are scaled in size), and the color gamut is changed (the brightness, saturation, and hue of the original images are changed). Figure 4As shown in the figure, data augmentation can enrich the training set and validation set, especially random scaling adds many small targets, thereby improving the robustness of the neural network model; the data augmented image is composed of four original images, so that each image has a greater probability of containing small targets, thereby improving the detection ability of the neural network model.

[0094] Evaluation indicators: The validation set is used to evaluate the quality of the training set training results, including precision P, average precision mAP of the category, and recall R.

[0095]

[0096]

[0097]

[0098] Among them, TP is the number of positive samples predicted correctly, FN is the number of negative samples predicted incorrectly, FP is the number of positive samples predicted incorrectly, and TN is the number of negative samples predicted correctly.

[0099] Subsequently, the banknote to be inspected is scanned, and both sides of the banknote are scanned simultaneously, and visual images of the two sides of the banknote are generated, and the visual images of the banknote to be inspected are judged using the damaged banknote model file.

[0100] During scanning, an infrared transmission light source is used to finally form an infrared transmission image, and the image resolution is not less than 100dpi*100dpi. Among them:

[0101] Select infrared transmission images for AI learning and judgment. From the results, the detection rate of infrared transmission images in detecting torn coins is very high, which is lower than that of infrared reflection images. Infrared reflection images and infrared transmission images are used for damaged coin recognition respectively:

[0102] Case 1: Using infrared reflection images, the damaged coin type is tear point, the evaluation value S = 0.60, the evaluation value S> threshold 0.5, it is judged as damaged, and according to manual verification of the actual normal coin (with creases), it is mistakenly judged as damaged. Figure 5a shown.

[0103] Case 2: Using infrared transmission images, the type of damaged coin is tear point, the evaluation value S = 0.84, 0.83, 0.83, any evaluation value S> threshold 0.5, it is judged as damaged banknotes, according to manual verification, the actual torn coin is judged as damaged coin, such as Figure 5b shown.

[0104] Case 3: Using infrared transmission images, the damaged coin type is tear point 1, the evaluation value S = 0.88, the damaged coin type is tear point 2, the evaluation value S = 0.87, any evaluation value S> threshold 0.5, it is judged as a damaged note, according to manual verification, the actual torn coin is judged as a damaged coin, such as Figure 5c shown.

[0105] Table 2: Comparison of torn coin detection rates between infrared reflection images and infrared transmission images

[0106]

[0107] The banknote sorting machine processes about 1,000 banknotes per minute. Theoretically, the processing time of a single banknote is only 60ms (image acquisition, transmission, judgment, feedback). Although the image resolution of 100dpi*100dpi is low, it can greatly reduce the time of each recognition link. The entire recognition time can be controlled within 58.4ms, and the damaged banknote judgment time is controlled within 22ms, which can meet the time requirements and ensure the recognition effect. Compared with 600dpi*400dpi image analysis, although the resolution is high and the image quality is high, the file is also large, and it takes 2465ms to transmit, and the entire recognition time is longer.

[0108] Specifically, when making a judgment, firstly, it is determined whether there are damaged coin features, and secondly, the evaluation value is determined. When determining the damaged coin features, it is mainly determined whether it is a torn damaged coin or a wrinkled damaged coin; when determining the evaluation value, the evaluation value is compared with the threshold value. When the evaluation value reaches (is greater than or equal to) the threshold value, it is determined to be a damaged coin. The evaluation value is also the judgment accuracy.

[0109] In this embodiment, the determination process mainly includes the following steps:

[0110] Load the model weights and configurations, including similarity values ​​and evaluation values. Use the similarity values ​​to determine whether it is a torn or wrinkled coin, and use the evaluation values ​​to determine the accuracy of the judgment.

[0111] The scanned image will also be preprocessed during judgment: including reading the image, scaling and normalizing the image, and finally converting the image into the format required by the model (tensor tensor).

[0112] Then perform feature extraction on the image and use the trained neural network to extract image features.

[0113] Then through the regression layer, the model predicts the position coordinates and probability of the bounding box for positioning prediction.

[0114] For each bounding box, a classification prediction is made through a fully connected layer.

[0115] Finally, the overlapping prediction boxes are merged, the non-maximum prediction boxes are removed, and the best prediction box is retained.

[0116] After completing the two judgments, the banknote recognition result is output after comprehensively judging the output damaged currency types of banknote verification recognition and AI recognition.

[0117] Embodiment 2:

[0118] like Figure 7 A banknote sorting machine is shown, which includes a banknote verification and recognition module and an AI recognition module. The banknote verification and recognition module and the AI ​​recognition module are arranged in sequence according to the banknote conveying process.

[0119] The banknote verification and recognition module is used to identify the anti-counterfeiting features of banknotes and the set damaged banknote types, that is, to perform the banknote verification and recognition steps in Example 1. The structure of the banknote verification and recognition module belongs to the prior art and will not be described in detail here.

[0120] The AI ​​recognition module is used to identify torn, wrinkled and damaged banknotes to be inspected, that is, to perform the AI ​​recognition steps in the first embodiment.

[0121] like Figure 6 The AI ​​recognition module shown includes an image sensor, an image acquisition board and an AI recognition board.

[0122] The image sensor is used to scan the banknotes to be inspected. Two image sensors need to be set, one for scanning the front of the banknotes and the other for scanning the back of the banknotes. In this embodiment: the image sensor is a CIS image sensor equipped with an infrared light source (IR light source); the image acquisition board is connected to the image sensor, and is used to generate a visual image of the banknotes to be inspected by the image sensor; the AI ​​recognition board is connected to the image acquisition board, and is used to store the damaged bill model file, and receive the banknote visual image generated by the image acquisition board and determine the damaged banknote characteristics. The image acquisition board and the AI ​​recognition board can use a combination of an FPGA substrate and a PC or a combination of a CPUPC substrate (a PC motherboard with a built-in CPU), and are connected to the image sensor via LVDS.

[0123] The image sensor, image acquisition board and AI recognition board are integrated into one, that is, an integrated AI recognition module, which can be used as a part of a banknote sorting machine, such as Figure 8 As shown, it can also be used as an accessory to transform existing banknote sorting machines.

[0124] Specifically:

[0125] like Figure 8-10 As shown, in this embodiment: the AI ​​recognition module 1 includes a shell, a guide plate assembly, an image sensor, and a substrate, wherein: the shell includes a bottom plate 10 and an upper cover 11, and the shell serves as a carrier of the entire AI recognition module 1 and is used to install the guide plate assembly, the substrate and the image sensor.

[0126] The guide plate assembly comprises an upper guide plate 12 and a lower guide plate 13. The guide plate assembly is mainly used for currency movement, that is, banknotes are transported through the guide plate assembly.

[0127] Two image sensors 14 are provided, which are respectively provided on the upper and lower sides of the guide plate assembly, and are used to scan the upper and lower images of the banknotes during the conveying process.

[0128] The substrate 15 is disposed above the upper image sensor 14 , and the image acquisition board and the AI ​​recognition board are both integrated on the substrate 15 .

[0129] like Fig.10 As shown, the upper cover 11, the substrate 15, the image sensor 14, the upper guide plate 12, the lower guide plate 13, the image sensor 14 and the bottom plate 10 are arranged in sequence from top to bottom, and the image sensor 14, the upper guide plate 12, the lower guide plate 13, and the image sensor 14 are fixed by the upper cover 11 and the substrate 15 to form an integrated structure, and the overall structure is compact.

[0130] Case 4:

[0131] ①. The image sensor uses the popular USF-52C, the image acquisition board and AI recognition board use a combination of CPU+PC substrate, and the AI ​​recognition module is loaded into the Guangrong Electronics UW-F4 model banknote sorting machine;

[0132] ②. Use Wuhan Mi Chuangsuo coins as verification coins (1,000 pieces);

[0133] ③. Take JR / T 0153-2022 Banknotes Not Suitable for Circulation as the standard.

[0134] Table 3: Comparison of detection rates before and after the banknote sorting machine is equipped with AI recognition module

[0135]

[0136] It can be seen from Table 3 that the detection rate of the speed ratio sample of this embodiment can be improved by 36%, and the average detection rate of damaged coin samples of all currencies reaches more than 92%.

[0137] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A banknote recognition method based on AI, Features: The method comprises the step of AI recognition, wherein the AI ​​recognition comprises: S1. AI data training: Collect banknote images, including damaged banknote images and normal banknote images, and use the collected banknote images as training sets and verification sets, input them into the neural network model for learning, and generate damaged banknote model files, where damaged banknote images include torn damaged banknote images and wrinkled damaged banknote images. S2. Scan the banknote to be inspected and generate a visual image of the banknote. Use the damaged banknote model file to judge the visual image of the banknote to be inspected. When it is determined that there are damaged banknote features and the evaluation value reaches a threshold, the damaged banknote type and evaluation value are output.

2. The AI-based banknote recognition method according to claim 1, Features: S1 also includes processing the collected banknote image: S1.1, Image data classification: divide the banknote images into training set and verification set according to the set ratio. S1.2, Image preprocessing: Change the banknote images of the training set and the validation set to images of a set pixel size. S1.3, Image data enhancement: Randomly scale, randomly crop, randomly arrange and then splice multiple banknote images. S1.4, Evaluation indicators: Use the validation set to evaluate the training set, including precision P, average mean precision mAP of the category, and recall rate R. Among them, TP is the number of positive samples predicted correctly, FN is the number of negative samples predicted incorrectly, FP is the number of positive samples predicted incorrectly, and TN is the number of negative samples predicted correctly.

3. The AI-based banknote recognition method according to claim 1, Features: The image judgment in S2 includes: S2.1, load model weights and configuration, S2.2, Image preprocessing: resizing, normalizing and format conversion of images. S2.3, Feature extraction: Use the trained neural network to extract image features, S2.4, Positioning prediction: Through the regression layer, the model predicts the location coordinates and probability of the bounding box. S2.5, classification prediction: For each bounding box, classification prediction is performed through the fully connected layer. S2.6, non-maximum suppression: merge overlapping prediction boxes, remove non-maximum prediction boxes, and retain the best prediction box.

4. The AI-based banknote recognition method according to claim 1, Features: The method also includes detecting the anti-counterfeiting features of the banknotes to be inspected, setting the types of damaged banknotes for detection, and outputting the banknote identification results after comprehensive judgment of the output damaged banknote types identified by the AI, wherein: the anti-counterfeiting features include watermarks, ink, and fluorescence; the set damaged banknote types include dirty, stained, de-inked, missing, pasted, spliced, deformed, scribbled, and carbonized damaged banknotes.

5. A banknote sorting machine, Features: The banknote sorting machine comprises an AI recognition module, and the AI ​​recognition module adopts the AI-based banknote recognition method described in any one of claims 1 to 3.

6. The banknote sorting machine according to claim 5, Features: The AI ​​recognition module includes: Image sensor: used to scan banknotes to be inspected; Image acquisition board: connected to the image sensor, used to generate a visual image of the banknote scanned by the image sensor; AI recognition board: connected to the image acquisition board, used to store damaged banknote model files, receive the banknote visualization images generated by the image acquisition board and determine the damaged banknote characteristics.

7. The banknote sorting machine according to claim 5, Features: The AI ​​recognition module includes: Shell: including bottom plate and upper cover; Guide plate assembly: used to transport banknotes; Image sensors: respectively arranged on the upper and lower sides of the guide plate assembly, used for scanning the upper and lower images of the banknotes during the conveying process; Substrate: used to generate a visual image of the banknote scanned by the image sensor and perform AI judgment. The upper cover, substrate, image sensor, guide plate assembly, image sensor and bottom plate are arranged in sequence from top to bottom, and the image sensor, upper guide plate, lower guide plate and image sensor are fixed by the upper cover and substrate to form an integrated structure.

8. The banknote sorting machine according to claim 6 or 7, Features: The image resolution of the image sensor is not less than 100dpi*100dpi; and / or The image type collected by the image sensor is an infrared transmission image.

9. The banknote sorting machine according to claim 6 or 7, Features: The image sensor is a CIS image sensor.

10. The banknote sorting machine according to claim 5, Features: The banknote sorting machine also includes a banknote verification and recognition module, which is used to identify the anti-counterfeiting features of banknotes and the set damaged banknote types. The banknote verification and recognition module and the AI ​​recognition module are set in sequence according to the banknote conveying process.