A fast internal fingerprint extraction method based on OCT
By dividing the input frame and using the segmentation model for rapid judgment and reconstruction, the problem of slow internal fingerprint extraction in traditional OCT is solved, achieving rapid extraction of internal fingerprints and a solution suitable for embedded devices.
Patent Information
- Application Number
- CN202410993925.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-24
AI Technical Summary
The traditional OCT internal fingerprint extraction method requires each B-scan to be processed by a large image segmentation model, resulting in slow extraction speed and unsuitable for deployment on embedded devices.
A fast internal fingerprint extraction method based on OCT is proposed. By dividing the input frame into the first type of frame, the second type of frame, the third type of frame or the fourth type of frame, the preset index value and segmentation model are used for judgment and reconstruction. Eliminate unnecessary segmentation model calculations and directly use the latest segmentation results for reconstruction to improve extraction speed.
It achieves rapid extraction of internal fingerprints, reduces segmentation calculation time, speeds up processing, and is suitable for deployment on embedded devices.
Smart Images

Figure CN118552988B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of fingerprint extraction, and in particular relates to an internal fingerprint rapid extraction method based on OCT. Background Art
[0002] Traditional identification methods are based on knowledge (passwords, user names, etc.) and tokens (ID cards, keys, etc.), which are easy to be forged and forgotten. The identification method based on biometrics relies on the universality, uniqueness, stability and collectability of biometrics. Fingerprints are one of the most commonly used biometrics in biometric identification methods. They are easy to collect and not easy to lose, and are used in many places.
[0003] Fingerprints can be divided into internal fingerprints and external fingerprints. The internal fingerprint is located between the dermis and the epidermis, that is, the papillary layer, which is the source of the fingerprint structure. The external fingerprint is located in the epidermis and is easily affected by moisture, wear and tear of the finger and can be forged. However, there is no such concern for the internal fingerprint, which is not easily deceived by fake fingerprints. Traditional fingerprint collection systems can only collect external fingerprints. Optical Coherence Tomography (OCT) technology is a non-invasive, non-contact and non-destructive technology that can collect internal fingerprints. The collected data consists of multiple B-scans (B-type imaging).
[0004] In the previous OCT internal fingerprint extraction methods, large image segmentation models such as U-Net are generally used to extract internal fingerprint segmentation results for each B-scan in the OCT data, and then the final reconstruction results are calculated through the segmentation results and the corresponding B-scan to achieve fingerprint extraction. However, in the existing methods, each B-scan needs to be processed by a large segmentation model, so the fingerprint extraction speed is slow, and the network model used for processing is itself large in size and complex in process, and is not suitable for deployment on embedded devices. Summary of the invention
[0005] The purpose of the present invention is to solve the problem raised in the background technology and to propose a method for fast extraction of internal fingerprints based on OCT.
[0006] To achieve the above object, the technical solution adopted by the present invention is:
[0007] The present invention proposes an internal fingerprint fast extraction method based on OCT, comprising collecting internal fingerprint data, wherein the internal fingerprint data comprises a preset number of input frames, and each input frame is divided into a first-category frame, a second-category frame, a third-category frame, or a fourth-category frame, wherein the first-category frame belongs to a type of the second-category frame, and an index value is set for all input frames, and each input frame is traversed in sequence according to the index value, and judged and reconstructed according to the following steps:
[0008] Check whether there is the latest segmentation result of the first-category frame saved. If there is no segmentation result of the first-category frame saved, calculate the segmentation result of the current input frame through the segmentation model;
[0009] Then, the segmentation result of the current input frame is used to reconstruct the current input frame, and then it is determined whether the reconstructed current input frame is a first-category frame. If it is a first-category frame, the current input frame is set as a first-category frame, and the reconstruction of the current input frame is the reconstruction of the first-category frame, and the segmentation result of the current input frame is saved as the latest segmentation result of the first-category frame and the latest segmentation result of the second-category frame, and then the next frame is entered. If it is not a first-category frame, the current input frame is a fourth-category frame, and the reconstruction of the current input frame is the reconstruction of the fourth-category frame, and then the next frame is entered;
[0010] If the latest segmentation result of the first type of frame is saved, determine whether the current input frame is a third type of frame;
[0011] If it is a third-class frame, the segmentation result of the latest second-class frame is used to reconstruct the third-class frame, and then the next frame is entered;
[0012] If it is not a third-class frame, determine whether the index value of the current input frame exceeds the preset coverage range of the latest first-class frame. If it exceeds, clear the currently saved first-class frame segmentation results and second-class frame segmentation results, and then enter the next frame;
[0013] If it does not exceed, it means that the current input frame is a second-class frame, and then the segmentation result of the second-class frame is calculated by the segmentation model, and the calculated segmentation result of the second-class frame is saved as the latest segmentation result of the second-class frame;
[0014] Then, the second-class frame is reconstructed using the segmentation result of the latest second-class frame, and then the next frame is entered;
[0015] After all input frames are traversed, the reconstructed frame images are stitched in sequence according to the index value to form an internal fingerprint image, thereby realizing rapid extraction of the internal fingerprint.
[0016] Preferably, the segmentation model includes an encoder, a decoder and a fully connected module; the encoder includes a backbone network and a dilated space convolutional pooling pyramid structure, and the backbone network is connected to the dilated space convolutional pooling pyramid structure and the decoder respectively, the dilated space convolutional pooling pyramid structure is connected to the fully connected module, and the backbone network adopts a MobileNetv2 network structure;
[0017] The atrous spatial convolution pooling pyramid structure includes a first convolution layer, a first dilated convolution layer, a second dilated convolution layer, a third dilated convolution layer, a first average pooling layer, and a second convolution layer in parallel. The input of the atrous spatial convolution pooling pyramid structure passes through the first convolution layer, the first dilated convolution layer, the second dilated convolution layer, the third dilated convolution layer, and the first average pooling layer in parallel, performs a first splicing, and then passes through the second convolution layer to obtain the output of the atrous spatial convolution pooling pyramid structure.
[0018] The decoder comprises a third convolution layer, a first upsampling layer, a fifth convolution layer, a second upsampling layer, and a fourth convolution layer which are arranged in sequence;
[0019] The fully connected module includes a second average pooling layer, a first fully connected layer, and a second fully connected layer which are arranged in sequence.
[0020] Preferably, calculating the segmentation result of the current input frame by using the segmentation model includes:
[0021] The current input frame is input into the backbone network to obtain three feature blocks of different dimensions, namely the first feature block Block_1, the second feature block Block_2 and the third feature block Block_3. The output of the third feature block Block_3 after the dilated spatial convolution pooling pyramid structure is second-joined with the second feature block Block_2, and then the second-joined features are sequentially passed through the third convolution layer and the first upsampling layer. The first feature block Block_1 is third-joined with the output features of the first upsampling layer after passing through the fourth convolution layer, and finally the third-joined features are passed through the fifth convolution layer and the second upsampling layer to obtain the segmentation result of the current input frame.
[0022] Preferably, reconstructing the current input frame using the segmentation result of the current input frame comprises:
[0023] Each column of the current input frame is reconstructed using the segmentation result of the current input frame, and the reconstruction formula of each column of the current input frame is as follows:
[0024] (1);
[0025] in, Indicates that the current index value is The segmentation result of the input frame Line Column pixels, Indicates that the current index value is The input frame is reconstructed before Line Column pixels, Indicates that the current index value is The first input frame The results after column reconstruction are: Indicates the total number of rows of each input frame or each segmentation result. The value range is , Indicates the total number of columns of each input frame or each segmentation result. is the first preset value.
[0026] Preferably, the determining whether the reconstructed current input frame is a first-category frame comprises:
[0027] Input the current input frame to the backbone network of the segmentation model to obtain three feature blocks of different dimensions, namely the first feature block Block_1, the second feature block Block_2 and the third feature block Block_3. The first feature block Block_1 and the second feature block Block_2 are not processed, and the third feature block Block_3 is processed by the dilated spatial convolution pooling pyramid structure and the fully connected module in sequence to obtain the output classification value;
[0028] The output classification value is then compared with the first threshold. When it is greater than the first threshold, it is a first-category frame. When it is less than or equal to the first threshold, it is a fourth-category frame.
[0029] Preferably, the determining whether the current input frame is a third type frame includes:
[0030] Extract the data of the current input frame from the second type of frame segmentation results , the specific formula is as follows:
[0031] ;
[0032] in, represents the segmentation result of the second type of frame, Indicates that the current index value is Input frame of
[0033] Then calculate the first-order differential value of the current input frame data , the calculation formula is as follows:
[0034] ;
[0035] in, Indicates the data of the current input frame. Line The first-order differential value of the data in the column, Indicates the data of the current input frame. Line Column data, Indicates the data of the current input frame. Line Column data;
[0036] Then the current input frame is judged by the following formula:
[0037] ;
[0038] in, Indicates the result of judging the current input frame. Represents the total number of columns of each input frame, Indicates the total number of rows in each input frame, Indicates the interval value between the columns involved in the judgment of the current input frame. represents the second preset value, represents the third preset value, Indicates the rounding symbol;
[0039] Finally It is compared with the second threshold. When it is greater than the second threshold, it is a third-category frame. When it is less than or equal to the second threshold, it cannot be a third-category frame.
[0040] Preferably, reconstructing the third type of frame by using the latest segmentation result of the second type of frame comprises:
[0041] Each column of the third type frame is reconstructed using the latest segmentation result of the second type frame, and the reconstruction of each column of the third type frame is calculated using formula (1), and the type of the segmentation result of the current input frame in formula (1) is the segmentation result of the second type frame, and the type of the current input frame to be reconstructed is the third type frame.
[0042] Preferably, the determining whether the index value of the current input frame exceeds the preset coverage range of the latest first-category frame includes:
[0043] Define the preset coverage as , the judgment formula is as follows:
[0044] ;
[0045] in, Indicates the index value of the current input frame. Indicates the index value of the latest first-category frame.
[0046] Preferably, calculating the segmentation result of the second type of frame by using the segmentation model includes:
[0047] Input the second type of frame into the backbone network of the segmentation model to extract the first feature block Block_1 of the second type of frame m , and the second feature block Block_2 obtained by outputting the latest first-class frame through the backbone network k and the third feature block Block_3 k As the second feature block Block_2 of the second type of frame m and the third feature block Block_3 m , and then the third feature block Block_3 k The output obtained after the dilated spatial convolutional pooling pyramid structure is consistent with the second feature block Block_2 k The fourth concatenation is performed, and then the fourth concatenated features are sequentially passed through the third convolution layer and the first upsampling layer. The first feature block Block_1 m After passing through the fourth convolution layer, the output features of the first upsampling layer are concatenated for the fifth time. Finally, the features after the fifth concatenation are sequentially passed through the fifth convolution layer and the second upsampling layer to obtain the segmentation results of the second type of frames.
[0048] Preferably, reconstructing the second-category frame using the latest segmentation result of the second-category frame comprises:
[0049] Each column of the second-category frame is reconstructed using the latest segmentation result of the second-category frame, and the reconstruction of each column of the second-category frame is calculated using formula (1), and the type of the segmentation result of the current input frame in formula (1) is the segmentation result of the second-category frame, and the type of the current input frame to be reconstructed is the second-category frame.
[0050] Compared with the prior art, the present invention has the following beneficial effects:
[0051] The OCT-based internal fingerprint rapid extraction method does not require each input frame to be calculated by a segmentation model to obtain a segmentation result. Each first-category frame is calculated by a segmentation model to obtain a segmentation result of the first-category frame. When the second-category frame calculates the segmentation result by the segmentation model, there is no need to extract the second feature block and the third feature block through the backbone network. The second feature block and the third feature block of the latest first-category frame obtained by outputting the latest first-category frame through the backbone network are directly used to replace them. Therefore, the extraction time is saved and the segmentation calculation speed is accelerated. At the same time, the third-category frame is directly reconstructed using the segmentation result of the second-category frame without the need to use a segmentation model for calculation, which further speeds up the speed, thereby realizing rapid extraction of internal fingerprints. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1It is a flow chart of the internal fingerprint rapid extraction method based on OCT of the present invention;
[0053] Figure 2 Schematic diagram of each input frame of the present invention;
[0054] Figure 3 It is a structural schematic diagram of the segmentation model of the present invention;
[0055] Figure 4 Schematic diagram of each segmentation result of the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] It should be noted that when a component is referred to as being "connected" to another component, it may be directly connected to the other component or there may be an intermediate component. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0058] like Figure 1-Figure 4 As shown, a method for rapid extraction of internal fingerprints based on OCT includes:
[0059] The method does not require each input frame to be calculated by the segmentation model to obtain the segmentation result. Each first-category frame is calculated by the segmentation model to obtain the segmentation result of the first-category frame. When the second-category frame is calculated by the segmentation model, there is no need to extract the second feature block and the third feature block through the backbone network. The second feature block and the third feature block of the latest first-category frame output by the backbone network are directly used to replace them. Therefore, the extraction time is saved and the segmentation calculation speed is accelerated. At the same time, the third-category frame is directly reconstructed using the segmentation result of the second-category frame without the need to use the segmentation model for calculation, which further speeds up the speed, thereby realizing rapid extraction of internal fingerprints.
[0060] The OCT-based internal fingerprint fast extraction method includes:
[0061] Collect internal fingerprint data, and the internal fingerprint data includes a preset number of input frames, and classify each input frame into a first-category frame, a second-category frame, a third-category frame, or a fourth-category frame, wherein the first-category frame belongs to a type of the second-category frame, set an index value for all input frames, traverse each input frame in order according to the index value, and judge and reconstruct according to the following steps:
[0062] Check whether there is the latest segmentation result of the first-category frame saved. If there is no segmentation result of the first-category frame saved, calculate the segmentation result of the current input frame through the segmentation model;
[0063] Then, the segmentation result of the current input frame is used to reconstruct the current input frame, and then it is determined whether the reconstructed current input frame is a first-category frame. If it is a first-category frame, the current input frame is set as a first-category frame, and the reconstruction of the current input frame is the reconstruction of the first-category frame, and the segmentation result of the current input frame is saved as the latest segmentation result of the first-category frame and the latest segmentation result of the second-category frame, and then the next frame is entered. If it is not a first-category frame, the current input frame is a fourth-category frame, and the reconstruction of the current input frame is the reconstruction of the fourth-category frame, and then the next frame is entered;
[0064] If the latest segmentation result of the first type of frame is saved, determine whether the current input frame is a third type of frame;
[0065] If it is a third-class frame, the latest segmentation result of the second-class frame is used to reconstruct the third-class frame, and then the next frame is entered;
[0066] If it is not a third-class frame, determine whether the index value of the current input frame exceeds the preset coverage range of the latest first-class frame. If it exceeds, clear the currently saved first-class frame segmentation results and second-class frame segmentation results, and then enter the next frame;
[0067] If it does not exceed, it means that the current input frame is a second-class frame, and then the segmentation result of the second-class frame is calculated by the segmentation model, and the calculated segmentation result of the second-class frame is saved as the latest segmentation result of the second-class frame;
[0068] Then, the second-class frame is reconstructed using the segmentation result of the latest second-class frame, and then the next frame is entered;
[0069] After all input frames are traversed, the reconstructed frame images are stitched in sequence according to the index value to form an internal fingerprint image, thereby realizing rapid extraction of the internal fingerprint.
[0070] The OCT-based internal fingerprint rapid extraction method includes the following steps:
[0071] S1. Collect internal fingerprint data, and the internal fingerprint data includes a preset number of input frames, and classify each input frame into a first-category frame, a second-category frame, a third-category frame, or a fourth-category frame (pre-set by the program), wherein the first-category frame belongs to a type of the second-category frame, set index values for all input frames, traverse each input frame in order according to the index values, and judge and reconstruct according to the following steps:
[0072] It should be noted that the internal fingerprint data is collected by OCT technology (this process belongs to the prior art and the specific process is not described here), and a preset number of input frame images (B-scan, i.e. B-type imaging, and Figure 2The input frame images are shown), wherein the number and size of the input frame images are not limited. For example, in this embodiment, 1400 input frames and the size of each frame image is 500×1800 as an example, and the type of each input frame is a first-category frame, a second-category frame, a third-category frame or a fourth-category frame. For example, in this embodiment, among the 1400 input frames, frames with index values of 258, 385, 567, 733, 891, 1017, 1118, 1247, and 1356 are all first-category frames, and frames with index values of 258, 259, 264, 273, 279, 287, 289, 291, 293, 294, 295, 296, 297, 299, 300, 301, 302, 305, 307, 310, 311, 312, 313, 314, 334, 348, 356, 357, 385, 431, 440, 441, 442, 473, 567, 635, 733, 736, 738, 740, 746, 748, 751, 752, 753, 754, 755, 758, 759, 760, 761, 762 62, 763, 764, 765, 766, 770, 775, 776, 777, 782, 783, 785, 787, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 800, 804, 808, 809, 810, 811, 813, 814, 81 5, 816, 817, 818, 819, 820, 823, 825, 826, 830, 831, 832, 891, 892, 893, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 91 2. 913, 914, 915, 916, 917, 918, 919, 920, 921, 923, 924, 927, 931, 932, 934, 935, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951 , 952, 953, 954, 955, 956, 957, 958, 959, 960, 964, 966, 967, 969, 970, 971, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 1017、1019、1020、1021、1022、1025、1027、1028、1049、1051、1053、1054、1055、1056、1058、1063、1064、1067、1068、1069、1070、1071、1072、1073、1074、1075, 1076, 1078, 1079, 1080, 1081, 1082, 1083, 1085, 1086, 1087, 1088, 1094, 1095, 1096, 1097, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114 , 1118, 1131, 1134, 1135, 1141, 1142, 1150, 1151, 1161, 1162, 1163, 1193, 1204, 1214, 1247, 1255, 1287, 1356, 1360, 1386, 1389, 1390, 1392, 1393, 1394 , 1395, 1396, and 1397 are all second-class frames, with index values of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77 ,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,1 14, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145 5, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176 、177、178、179、180、181、182、183、184、185、186、187、188、189、190、191、192、193、194、195、196、197、198、199、200、201、202、203、204、205、206、207、208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248 8, 249, 250, 251, 252, 253, 254, 255, 256, 257, 378, 379, 380, 381, 382, 383, 384 are all fourth-category frames, and the rest of the index values are third-category frames. The relationship between the second-category frames and the first-category frames is an inclusion relationship (the second-category frames include the first-category frames, and the first-category frames are a type of the second-category frames). The index values are set according to the order of the acquired input frames (the index values of each input frame are expressed in, express, , is the number of input frames. In this embodiment, =1400, such as the index value of the first input frame =1...The index value of the last input frame is =1400), traverse each input frame in the order of index values, and the process is as S2-S5.
[0073] S2. Determine and reconstruct the first type of frame:
[0074] S2.1, starting from one frame, check whether there is the latest segmentation result of the first type of frame saved, if yes, go to S3.1, otherwise go to S2.2;
[0075] It should be noted that, in the process of this method, the latest first-category frame, the latest second-category frame, the latest segmentation result of the second-category frame, and the latest segmentation result of the first-category frame are saved, that is, among the input frames that have been traversed, the first-category frame closest to the current input frame and the segmentation result of the first-category frame, the closest second-category frame and the segmentation result of the second-category frame are saved (only the latest ones are saved), and the saved first-category frame and the segmentation result of the first-category frame, the second-category frame and the segmentation result of the second-category frame are continuously updated during the post-order traversal process.
[0076] S2.2, calculating the segmentation result of the current input frame through the segmentation model;
[0077] Among them, Figure 3 As shown ( Figure 3The S in the image represents the size ratio change of the input image, C represents the current number of channels of the feature map, and L represents the length of the fully connected layer). The segmentation model includes an encoder, a decoder, and a fully connected module. The encoder includes a backbone network and a dilated spatial convolutional pooling pyramid structure, and the backbone network is connected to the dilated spatial convolutional pooling pyramid structure and the decoder, respectively. The dilated spatial convolutional pooling pyramid structure is connected to the fully connected module. The backbone network adopts the MobileNetv2 network structure. Figure 3 The encoder plus decoder is used as net m The segmentation part, encoder plus fully connected module as net k Judgment part;
[0078] The dilated spatial convolution pooling pyramid structure includes a parallel first convolution layer (using 1×1 convolution), a first dilated convolution layer (using 3×3 convolution, and expansion rate Rate=6), a second dilated convolution layer (using 3×3 convolution, and expansion rate Rate=12), a third dilated convolution layer (using 3×3 convolution, and expansion rate Rate=18) and a first average pooling layer, as well as a second convolution layer (using 1×1 convolution). The input of the dilated spatial convolution pooling pyramid structure passes through the first convolution layer, the first dilated convolution layer, the second dilated convolution layer, the third dilated convolution layer and the first average pooling layer in parallel, and then performs the first splicing (the number of channels after splicing is 128×5, and the plane size of the obtained feature is consistent with that before the input to the dilated spatial convolution pooling pyramid structure), and then passes through the second convolution layer to obtain the output of the dilated spatial convolution pooling pyramid structure (the number of channels is 128);
[0079] The decoder includes the third convolution layer (using 1×1 convolution), the first upsampling layer (with an expansion rate of 2, the number of channels becomes 192, and the plane size becomes 1 / 4 of the original image), the fifth convolution layer (using 3×3 convolution) and the second upsampling layer (with an expansion rate of 4), and the fourth convolution layer (using 1×1 convolution).
[0080] The fully connected module includes a second average pooling layer, a first fully connected layer, and a second fully connected layer (the lengths of the two fully connected layers are 256 and 128, respectively).
[0081] The segmentation result of the current input frame is calculated through the segmentation model, including:
[0082] The current input frame is input into the backbone network to obtain three feature blocks of different dimensions, namely the first feature block Block_1, the second feature block Block_2 and the third feature block Block_3 (where the number of channels of Block_1 is 24, and the plane size is 1 / 4 of the original current input frame; the number of channels of Block_2 is 64, and the plane size is 1 / 8 of the original current input frame; the number of channels of Block_3 is 256, and the plane size is 1 / 8 of the original current input frame). The output of the third feature block Block_3 after the dilated spatial convolution pooling pyramid structure is second-joined with the second feature block Block_2 (i.e., the third feature block Block_3 passes through the first convolution layer, the first hole convolution layer, the second hole convolution layer, the third hole convolution layer and the first average pooling layer in parallel, and then the five output results are spliced and passed through the second convolution layer to obtain the output of the hole spatial convolution pooling pyramid structure, and then the output is spliced with the second feature block Block_2), and then the second spliced features are passed through the third convolution layer and the first upsampling layer in turn, the first feature block Block_1 passes through the fourth convolution layer and is spliced with the output features of the first upsampling layer for the third time, and finally the third spliced features are passed through the fifth convolution layer and the second upsampling layer to obtain the segmentation result of the current input frame (the styles of each segmentation result are as follows Figure 4 as shown).
[0083] S2.3, reconstructing the current input frame using the segmentation result of the current input frame, including:
[0084] Each column of the current input frame is reconstructed using the segmentation result of the current input frame, and the reconstruction formula of each column of the current input frame is as follows:
[0085] (1);
[0086] in, Indicates that the current index value is The segmentation result of the input frame Line Column pixels, Indicates that the current index value is The input frame is reconstructed before Line Column pixels, Indicates that the current index value is The first input frame The results after column reconstruction are: Indicates the total number of rows of each input frame or each segmentation result. The value range is , Indicates the total number of columns of each input frame or each segmentation result. is the first preset value ( is a very small number, the purpose of which is to ensure that the denominator of formula (1) is never zero).
[0087] S2.4, determine whether the reconstructed current input frame can be used as a first-category frame. If it can be used as a first-category frame, enter S2.5; otherwise, the reconstructed current input frame is a fourth-category frame, and the reconstruction of the current input frame is the reconstruction of the fourth-category frame, and then enter S5; the specific process of determining whether the reconstructed current input frame is a first-category frame is as follows (the parameters of the backbone network and the dilated spatial convolution pooling pyramid structure in S2.4 are shared with the parameters of the backbone network and the dilated spatial convolution pooling pyramid structure in S2.2):
[0088] Input the current input frame to the backbone network of the segmentation model to obtain three feature blocks of different dimensions, namely the first feature block Block_1, the second feature block Block_2 and the third feature block Block_3. The first feature block Block_1 and the second feature block Block_2 are not processed, and the third feature block Block_3 is processed in sequence by the dilated spatial convolution pooling pyramid structure and the fully connected module to obtain the output classification value (that is, the third feature block Block_3 is processed in parallel by the first convolution layer, the first dilated convolution layer, the second dilated convolution layer, the third dilated convolution layer and the first average pooling layer of the dilated spatial convolution pooling pyramid structure, and then the five output results are spliced and then passed through the second convolution layer to obtain the output of the dilated spatial convolution pooling pyramid structure, and the output is then passed through the second average pooling layer, the first fully connected layer and the second fully connected layer of the fully connected module to obtain the output classification value);
[0089] The output classification value is then compared with a first threshold value (the first threshold value is 0.5 in this embodiment). When the output classification value is greater than the first threshold value, it is a first-category frame. When the output classification value is less than or equal to the first threshold value, it is a fourth-category frame.
[0090] S2.5, set the current input frame to be a first-category frame, then the reconstruction of the current input frame is the reconstruction of the first-category frame, and save the segmentation result of the current input frame as the latest segmentation result of the first-category frame and the latest segmentation result of the second-category frame (because the second-category frame contains the first-category frame, the first-category frame must also be a second-category frame, so the segmentation result of the first-category frame is also the segmentation result of the second-category frame), and then enter S5.
[0091] S3. Determine and reconstruct the third type of frame:
[0092] S3.1, determine whether the current input frame is a third-category frame. If yes, proceed to S3.2, otherwise proceed to S4.1; determine whether the current input frame is a third-category frame, including:
[0093] Extract the data of the current input frame from the second type of frame segmentation results , the specific formula is as follows:
[0094] ;
[0095] in, represents the segmentation result of the second type of frame, Indicates that the current index value is Input frame of
[0096] Then calculate the first-order differential value of the current input frame data , the calculation formula is as follows:
[0097] ;
[0098] in, Indicates the data of the current input frame. Line The first-order differential value of the data in the column, Indicates the data of the current input frame. Line Column data, Indicates the data of the current input frame. Line Column data;
[0099] Then the current input frame is judged by the following formula:
[0100] ;
[0101] in, Indicates the result of judging the current input frame. Represents the total number of columns of each input frame, Indicates the total number of rows in each input frame, Indicates the interval value between the columns involved in the judgment of the current input frame. represents the second preset value, represents the third preset value, Indicates the rounding symbol; in this embodiment, the width of each input frame is 1800 and the height is 500, then , When judging whether the current input frame is a third type frame, instead of judging each column of the input frame, only some columns need to be selected from the input frame. For example, in this embodiment, the first column and the last column are selected, and every 100 columns from the first column to the last column are selected. , and set the second preset value based on experience , , then the formula for judging the current input frame is substituted into the specific data:
[0102] ;
[0103] Finally It is compared with the second threshold (in this embodiment, the second threshold is 0.5). When it is greater than the second threshold, it is a third-category frame. When it is less than or equal to the second threshold, it cannot be a third-category frame.
[0104] S3.2, reconstructing the third type of frame using the latest segmentation result of the second type of frame, and then entering S5; specifically, reconstructing the third type of frame using the latest segmentation result of the second type of frame includes:
[0105] Each column of the third-type frame is reconstructed using the latest segmentation result of the second-type frame, and the reconstruction of each column of the third-type frame is calculated using formula (1). In formula (1), the type of the segmentation result of the current input frame is the segmentation result of the second-type frame, and the type of the current input frame to be reconstructed is the third-type frame. That is, the type of the segmentation result of the current input frame is the segmentation result of the second-type frame and the type of the current input frame to be reconstructed is the third-type frame. Substitute the segmentation result of the current input frame, which is the segmentation result of the second-type frame, and the type of the current input frame to be reconstructed is the third-type frame into formula (1), and transform it into:
[0106] ;
[0107] in, Indicates the segmentation result of the second type of frame Line Column pixels, Indicates that the current index value is The input frame is reconstructed before Line Column pixels, Indicates that the current index value is The first input frame The result after column reconstruction, and the current index value is The input frame type is the third type frame, and .
[0108] S4. Determine and reconstruct the second type of frame:
[0109] S4.1, determine whether the index value of the current input frame exceeds the preset coverage range of the latest first-category frame. If so, clear the currently saved first-category frame segmentation results and second-category frame segmentation results, and then enter S2.1; otherwise, it indicates that the current input frame is a second-category frame, and enter S4.2;
[0110] The process of judging whether the index value of the current input frame exceeds the preset coverage range of the latest first-category frame includes:
[0111] Define the preset coverage as (Coverage The value of is not limited, according to the actual setting, such as 100), the judgment formula is as follows:
[0112] ;
[0113] in, Indicates the index value of the current input frame. Indicates the index value of the current latest first-category frame (the latest first-category frame is the latest first-category frame relative to the current input frame).
[0114] S4.2, calculating the segmentation result of the second type of frame by the segmentation model, and saving the calculated segmentation result of the second type of frame (saving it as the latest segmentation result of the second type of frame); wherein the segmentation result of the second type of frame calculated by the segmentation model is specifically as follows:
[0115] Input the second type of frame into the backbone network of the segmentation model to extract the first feature block Block_1 of the second type of frame m , and the second feature block Block_2 obtained by outputting the latest first-class frame through the backbone network k and the third feature block Block_3 k As the second feature block Block_2 of the second type of frame m and the third feature block Block_3 m , and then the third feature block Block_3 k The output obtained after the dilated spatial convolution pooling pyramid structure (the third feature block Block_3 k The first convolution layer, the first dilated convolution layer, the second dilated convolution layer, the third dilated convolution layer and the first average pooling layer of the dilated spatial convolution pooling pyramid structure are passed in parallel, and then the five output results are spliced and passed through the second convolution layer to obtain the output of the dilated spatial convolution pooling pyramid structure) and the second feature block Block_2 k The fourth concatenation is performed, and then the fourth concatenated features are sequentially passed through the third convolution layer and the first upsampling layer. The first feature block Block_1 m After passing through the fourth convolution layer, the output features of the first upsampling layer are concatenated for the fifth time. Finally, the features after the fifth concatenation are sequentially passed through the fifth convolution layer and the second upsampling layer to obtain the segmentation results of the second type of frames.
[0116] S4.3, reconstruct the second-category frame using the latest segmentation result of the second-category frame, and then enter S5;
[0117] Specifically, the second-category frame is reconstructed using the latest segmentation result of the second-category frame, including:
[0118] Each column of the second-class frame is reconstructed using the latest segmentation result of the second-class frame, and the reconstruction of each column of the second-class frame is calculated using formula (1), and the type of the segmentation result of the current input frame in formula (1) is the segmentation result of the second-class frame, and the type of the current input frame to be reconstructed is the second-class frame, that is, the type of the segmentation result of the current input frame is the segmentation result of the second-class frame and the type of the current input frame to be reconstructed is the second-class frame. Substitute the segmentation result of the current input frame as the segmentation result of the second-class frame and the type of the current input frame to be reconstructed as the second-class frame into formula (1), and transform it into:
[0119] ;
[0120] in, Indicates the segmentation result of the second type of frame Line Column pixels, Indicates that the current index value is The input frame is reconstructed before Line Column pixels, Indicates that the current index value is The first input frame The result after column reconstruction, and the current index value is The input frame type is the second type frame, and .
[0121] S5. Determine whether the traversal of all frame images has been completed. If not, proceed to the next frame and return to S2.1. If it has been completed, stitch the reconstructed frame images in sequence according to the index value to form an internal fingerprint image, so as to realize rapid extraction of the internal fingerprint.
[0122] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0123] The above-described embodiments only express the more specific and detailed embodiments described in this application, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this application, which all belong to the protection scope of this application. Therefore, the protection scope of the patent application shall be based on the attached claims.
Claims
1. A method for rapid extraction of internal fingerprints based on OCT, characterized in that: The OCT-based internal fingerprint rapid extraction method comprises: Collect internal fingerprint data, and the internal fingerprint data includes a preset number of input frames, divide each input frame into a first-category frame, a second-category frame, a third-category frame, or a fourth-category frame, wherein the first-category frame belongs to a type of the second-category frame, set an index value for all input frames, traverse each input frame in sequence according to the index value, and judge and reconstruct according to the following steps: Check whether there is the latest segmentation result of the first-category frame saved. If there is no segmentation result of the first-category frame saved, calculate the segmentation result of the current input frame through the segmentation model; Then, the segmentation result of the current input frame is used to reconstruct the current input frame, and then it is determined whether the reconstructed current input frame is a first-category frame. If it is a first-category frame, the current input frame is set as a first-category frame, and the reconstruction of the current input frame is the reconstruction of the first-category frame, and the segmentation result of the current input frame is saved as the latest segmentation result of the first-category frame and the latest segmentation result of the second-category frame, and then the next frame is entered. If it is not a first-category frame, the current input frame is a fourth-category frame, and the reconstruction of the current input frame is the reconstruction of the fourth-category frame, and then the next frame is entered; If the latest segmentation result of the first type of frame is saved, determine whether the current input frame is a third type of frame; If it is a third-class frame, the latest segmentation result of the second-class frame is used to reconstruct the third-class frame, and then the next frame is entered; If it is not a third-class frame, determine whether the index value of the current input frame exceeds the preset coverage range of the latest first-class frame. If it exceeds, clear the currently saved first-class frame segmentation results and second-class frame segmentation results, and then enter the next frame; If it does not exceed, it means that the current input frame is a second-class frame, and then the segmentation result of the second-class frame is calculated by the segmentation model, and the calculated segmentation result of the second-class frame is saved as the latest segmentation result of the second-class frame; Then, the second-class frame is reconstructed using the segmentation result of the latest second-class frame, and then the next frame is entered; After all input frames are traversed, the reconstructed frame images are stitched in sequence according to the index value to form an internal fingerprint image, thereby realizing rapid extraction of the internal fingerprint.
2. The method for rapid extraction of internal fingerprints based on OCT according to claim 1, characterized in that: The segmentation model includes an encoder, a decoder and a fully connected module; the encoder includes a backbone network and a dilated space convolutional pooling pyramid structure, and the backbone network is connected to the dilated space convolutional pooling pyramid structure and the decoder respectively, and the dilated space convolutional pooling pyramid structure is connected to the fully connected module, and the backbone network adopts a MobileNetv2 network structure; The atrous spatial convolution pooling pyramid structure includes a first convolution layer, a first dilated convolution layer, a second dilated convolution layer, a third dilated convolution layer, a first average pooling layer, and a second convolution layer in parallel. The input of the atrous spatial convolution pooling pyramid structure passes through the first convolution layer, the first dilated convolution layer, the second dilated convolution layer, the third dilated convolution layer, and the first average pooling layer in parallel, performs a first splicing, and then passes through the second convolution layer to obtain the output of the atrous spatial convolution pooling pyramid structure. The decoder comprises a third convolution layer, a first upsampling layer, a fifth convolution layer, a second upsampling layer, and a fourth convolution layer which are arranged in sequence; The fully connected module includes a second average pooling layer, a first fully connected layer, and a second fully connected layer which are arranged in sequence.
3. The method for rapid extraction of internal fingerprints based on OCT as claimed in claim 2, characterized in that: The calculating the segmentation result of the current input frame by the segmentation model includes: The current input frame is input into the backbone network to obtain three feature blocks of different dimensions, namely the first feature block Block_1, the second feature block Block_2 and the third feature block Block_3. The output of the third feature block Block_3 after the dilated spatial convolution pooling pyramid structure is second-joined with the second feature block Block_2, and then the second-joined features are sequentially passed through the third convolution layer and the first upsampling layer. The first feature block Block_1 is third-joined with the output features of the first upsampling layer after passing through the fourth convolution layer, and finally the third-joined features are passed through the fifth convolution layer and the second upsampling layer to obtain the segmentation result of the current input frame.
4. The method for rapid extraction of internal fingerprints based on OCT according to claim 1, characterized in that: The step of reconstructing the current input frame using the segmentation result of the current input frame comprises: Each column of the current input frame is reconstructed using the segmentation result of the current input frame, and the reconstruction formula of each column of the current input frame is as follows: (1); in, Indicates that the current index value is The segmentation result of the input frame Line Column pixels, Indicates that the current index value is The input frame is reconstructed before Line Column pixels, Indicates that the current index value is The first input frame The results after column reconstruction are: Indicates the total number of rows of each input frame or each segmentation result. The value range is , Indicates the total number of columns of each input frame or each segmentation result. is the first preset value.
5. The method for rapid extraction of internal fingerprints based on OCT as claimed in claim 2, characterized in that: The determining whether the reconstructed current input frame is a first-category frame comprises: Input the current input frame to the backbone network of the segmentation model to obtain three feature blocks of different dimensions, namely the first feature block Block_1, the second feature block Block_2 and the third feature block Block_3. The first feature block Block_1 and the second feature block Block_2 are not processed, and the third feature block Block_3 is processed by the dilated spatial convolution pooling pyramid structure and the fully connected module in sequence to obtain the output classification value; The output classification value is then compared with the first threshold. When it is greater than the first threshold, it is a first-category frame. When it is less than or equal to the first threshold, it is a fourth-category frame.
6. The method for rapid extraction of internal fingerprints based on OCT according to claim 1, characterized in that: The determining whether the current input frame is a third type frame comprises: Extract the data of the current input frame from the second type of frame segmentation results , the specific formula is as follows: ; in, represents the segmentation result of the second type of frame, Indicates that the current index value is Input frame of Then calculate the first-order differential value of the current input frame data , the calculation formula is as follows: ; in, Indicates the data of the current input frame. Line The first-order differential value of the data in the column, Indicates the data of the current input frame. Line Column data, Indicates the data of the current input frame. Line Column data; Then the current input frame is judged by the following formula: ; in, Indicates the result of judging the current input frame. Represents the total number of columns of each input frame, Indicates the total number of rows in each input frame, Indicates the interval value between the columns involved in the judgment of the current input frame. represents the second preset value, represents the third preset value, Indicates the rounding symbol; Finally It is compared with the second threshold. When it is greater than the second threshold, it is a third-category frame. When it is less than or equal to the second threshold, it cannot be a third-category frame.
7. The method for rapid extraction of internal fingerprints based on OCT as claimed in claim 4, characterized in that: The method of reconstructing the third type of frame by using the latest segmentation result of the second type of frame comprises: Each column of the third type frame is reconstructed using the latest segmentation result of the second type frame, and the reconstruction of each column of the third type frame is calculated using formula (1), and the type of the segmentation result of the current input frame in formula (1) is the segmentation result of the second type frame, and the type of the current input frame to be reconstructed is the third type frame.
8. The method for rapid extraction of internal fingerprints based on OCT as claimed in claim 1, characterized in that: The step of determining whether the index value of the current input frame exceeds the preset coverage range of the latest first-category frame includes: Define the preset coverage as , the judgment formula is as follows: ; in, Indicates the index value of the current input frame. Indicates the index value of the latest first-category frame.
9. The method for rapid extraction of internal fingerprints based on OCT as claimed in claim 2, characterized in that: The calculating the segmentation result of the second type of frame by using the segmentation model includes: Input the second type of frame into the backbone network of the segmentation model to extract the first feature block Block_1 of the second type of frame m , and the second feature block Block_2 obtained by outputting the latest first-class frame through the backbone network k and the third feature block Block_3 k As the second feature block Block_2 of the second type of frame m and the third feature block Block_3 m , and then the third feature block Block_3 k The output obtained after the dilated spatial convolutional pooling pyramid structure is consistent with the second feature block Block_2 k The fourth concatenation is performed, and then the fourth concatenated features are sequentially passed through the third convolution layer and the first upsampling layer. The first feature block Block_1 m After passing through the fourth convolution layer, the output features of the first upsampling layer are concatenated for the fifth time. Finally, the features after the fifth concatenation are sequentially passed through the fifth convolution layer and the second upsampling layer to obtain the segmentation results of the second type of frames.
10. The method for rapid extraction of internal fingerprints based on OCT according to claim 4, characterized in that: The step of reconstructing the second-category frame by using the latest segmentation result of the second-category frame comprises: Each column of the second-category frame is reconstructed using the latest segmentation result of the second-category frame, and the reconstruction of each column of the second-category frame is calculated using formula (1), and the type of the segmentation result of the current input frame in formula (1) is the segmentation result of the second-category frame, and the type of the current input frame to be reconstructed is the second-category frame.
