Method for training an image recognition model, method for inspecting a spinneret, device for training an image recognition model, device for inspecting a spinneret, electronic device, and program

An image recognition model automates spinneret pore inspection, addressing labor-intensive manual methods by accurately detecting defects in spinneret pores, thus improving efficiency and yarn quality.

JP7535682B1Active Publication Date: 2024-08-16ZHEJIANG HENGYI PETROCHEMICAL CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024100541
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2023-11-21
Filing Date
2024-06-21
Publication Date
2024-08-16
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Manual inspection of spinneret pores is labor-intensive due to their small size and high number, leading to inefficiencies in detecting defects such as clogging or cracking, which affects yarn quality.

Method used

An image recognition model is trained using a spinneret sample image processed by a light source and magnifying member to obtain label state information, followed by a target image recognition model that automatically inspects pore states, eliminating the need for manual inspection.

Benefits of technology

Automated inspection of spinneret pores improves efficiency and accuracy by reducing labor requirements and ensuring timely detection of defects, thereby enhancing yarn quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007535682000001
    Figure 0007535682000001
Patent Text Reader

Abstract

The present invention provides an image recognition model training method, a spinneret inspection method, an image recognition model training device, a spinneret inspection device, an electronic device, and a program, which relate to the computer technology field, particularly the technical fields of image recognition and deep learning. [Solution] Specifically, the method processes a spinneret sample image based on a first image recognition model to obtain label status information of each fine hole in the spinneret sample image, where the spinneret sample image is a projection image formed on an imaging member after light emitted from a light source passes through each fine hole of the spinneret sample and is magnified by a magnifying member, and the label status information of each fine hole is used to represent the shape status of each corresponding fine hole. Based on the spinneret sample image and the label status information of each fine hole, a preset image recognition model is trained to obtain a target image recognition model, and the status information of each fine hole in the spinneret can be automatically inspected by the target image recognition model, so that the inspection result of the spinneret can be determined, reducing manpower and improving inspection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to the field of computer technology, in particular to the technical fields of image recognition and deep learning, and in particular to a method for training an image recognition model, and a method and device for inspecting a spinneret. [Background technology]

[0002] In the spinning process, the spinneret converts the viscous, fluid polymer melt or polymer solution into a stream with a specific cross-sectional shape through pores, and then solidifies it through a coagulation medium or coagulation bath to form a thread. Mechanical impurities, gels, carbon fibers, thermal cracks, and other particles in the melt tend to block the pores of the spinneret, resulting in unevenness in the fineness of the raw yarn and defects such as neps, fine threads, and hairs. Therefore, the spinneret must be inspected periodically. Summary of the Invention [Problem to be solved by the invention]

[0003] The present disclosure provides a method for training an image recognition model, a spinneret inspection method, a device for training an image recognition model, a spinneret inspection device, an electronic device, and a program to solve or alleviate one or more technical problems in the prior art. [Means for solving the problem]

[0004] In a first aspect, the present disclosure provides a method for training an image recognition model, the method comprising: Processing the spinneret sample image based on the first image recognition model to obtain label state information of each pore in the spinneret sample image, where the spinneret sample image is a projection image formed on an imaging member after light emitted from a light source passes through each pore of the spinneret sample and is magnified by a magnifying member, and the label state information of each pore is used to represent the shape state of each corresponding pore; The method includes training a pre-established image recognition model based on the spinneret sample image and the label status information of each hole to obtain a target image recognition model, which is used to process the spinneret projection image to obtain status information of each hole in the spinneret.

[0005] In a second aspect, the present disclosure provides a method for spinneret inspection, the method comprising: A spinneret inspection method for use in a spinneret inspection device comprising a gripping member for gripping a spinneret, a light source and an imaging member disposed on both sides of the gripping member, respectively, and a magnifying member disposed between the imaging member and the gripping member, wherein light emitted from the light source passes through each inspection target hole of the spinneret and is magnified by the magnifying member, and then forms a spinneret projection image on the imaging member, acquiring a spinneret projection image on an imaging member; Using a target image recognition model to process the spinneret projection image to obtain status information of each inspection target hole in the spinneret, the target image recognition model is trained according to any one of the training methods in the above embodiments; and determining an inspection result for the spinneret based on the status information for each inspected orifice.

[0006] In a third aspect, the present disclosure provides a device for training an image recognition model, the device comprising: a processing unit for processing the spinneret sample image based on the first image recognition model to obtain label state information of each pore in the spinneret sample image, where the spinneret sample image is a projection image formed on an imaging member after light emitted from a light source passes through each pore of the spinneret sample in sequence and is magnified by a magnifying member, and the label state information of each pore is used to represent the shape state of each corresponding pore; a training unit for training a preset image recognition model to obtain a target image recognition model based on the spinneret sample image and the label status information of each hole, the target image recognition model being used to process the spinneret projection image to obtain the status information of each hole in the spinneret.

[0007] In a fourth aspect, the present disclosure provides a spinneret inspection device, the device comprising: A spinneret inspection device for use in a spinneret inspection apparatus, comprising: a gripping member for gripping a spinneret; a light source and an imaging member disposed on both sides of the gripping member, respectively; and a magnifying member disposed between the imaging member and the gripping member, wherein light emitted from the light source passes through each inspection target hole of the spinneret and is magnified by the magnifying member, and then forms a spinneret projection image on the imaging member, an acquisition unit for acquiring a spinneret projection image on an imaging member; A prediction unit for processing the spinneret projection image using a target image recognition model to obtain status information of each inspection target orifice in the spinneret, the target image recognition model being trained according to any one of the training methods described above; and and a determining unit for determining an inspection result of the spinneret based on the status information of each inspected orifice.

[0008] In a fifth aspect, the present disclosure provides an electronic device, the device comprising: At least one processor; a memory in communication with the at least one processor; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, cause the implementation of any one of the methods in the embodiments of the present disclosure.

[0009] In a sixth aspect, there is provided a non-transitory computer-readable storage medium having stored thereon computer instructions for causing a computer to perform any one of the methods in the embodiments of the present disclosure.

[0010] In a seventh aspect, a program is provided, which, when executed by a processor, implements any one of the methods in the embodiments of the present disclosure.

[0011] The image recognition model training method, spinneret inspection method, and device according to the embodiments of the present disclosure can automatically inspect the status information of each inspected orifice of the spinneret to determine the inspection result of the spinneret, eliminating the need for manual inspection, reducing manpower and improving inspection efficiency.

[0012] It should be understood that the contents described herein are not intended to describe key points or important features of the embodiments of the present disclosure, nor are they used to limit the scope of the present disclosure. Other features of the present disclosure are facilitated by the following description. [Brief description of the drawings]

[0013] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the several accompanying drawings indicate the same or similar components or elements. The accompanying drawings are not necessarily drawn to scale. It should be understood that the drawings depict only some examples provided by the present disclosure and should not be considered as limiting the scope of the present disclosure. [Figure 1] FIG. 1 is a schematic diagram showing a configuration of a spinneret inspection device according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a schematic diagram showing the configuration of the spinneret in FIG. [Diagram 3] FIG. 12 is a schematic flow chart of a method for training an image recognition model according to another embodiment of the present disclosure. [Figure 4] FIG. 2 is a flow chart schematic of a spinneret inspection method according to one embodiment of the present disclosure. [Diagram 5]FIG. 1 is a schematic block diagram illustrating a training device for an image recognition model according to an embodiment of the present disclosure. [Figure 6] FIG. 13 is a schematic block diagram illustrating a spinneret inspection device according to another embodiment of the present disclosure. [Figure 7] FIG. 1 is a block diagram of an electronic device for implementing a method for training an image recognition model or a method for inspecting a spinneret according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] The present disclosure will now be described in more detail with reference to the accompanying drawings, in which like reference numbers represent the same or similar elements, and in which various aspects of the embodiments are illustrated, and which, unless otherwise noted, are not necessarily drawn to scale.

[0015] Furthermore, in order to better explain the present disclosure, many specific details are described in the following specific embodiments. Those skilled in the art should understand that the present disclosure can be similarly implemented without some details. In some embodiments, methods, means, components, circuits, etc. that are well known to those skilled in the art are not described in detail so that the gist of the present disclosure is clear.

[0016] In related technologies, spinneret inspection must be done manually, and workers must inspect each orifice on the spinneret for problems such as blockages and cracks. However, because there are a large number of orifices on the spinneret and the size of the orifices is relatively small, inspecting the spinneret is time-consuming.

[0017] In order to solve at least one of the above problems, the embodiments of the present disclosure provide a method for training an image recognition model, a method for inspecting a spinneret, a device for training an image recognition model, a spinneret inspection device, an electronic device and a program, and process a spinneret sample image based on a first image recognition model to obtain label state information of each pore in the spinneret sample image, where the spinneret sample image is a projection image formed on an imaging member after the light emitted from a light source passes through the spinneret sample and the magnifying member in sequence, and the label state information of each pore is used to represent the shape state of each corresponding pore. Based on the spinneret sample image and the label state information of each pore, a preset image recognition model is trained to obtain a target image recognition model, and the target image recognition model is used to process the spinneret projection image to obtain the state information of each pore in the spinneret. By using the target image recognition model, the state information of each pore in the spinneret can be automatically inspected, so that the inspection result of the spinneret can be determined, and manual inspection is unnecessary, which can reduce manpower and improve inspection efficiency.

[0018] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings.

[0019] Fig. 1 is a schematic diagram showing the configuration of a spinneret inspection device according to an embodiment of the present disclosure, and Fig. 2 is a schematic diagram showing the configuration of the spinneret in Fig. 1.

[0020] 1 and 2, an embodiment of the present disclosure provides a spinneret inspection device comprising a gripping member 110, a light source 120, an imaging member 130, and a magnifying member 140, in which the gripping member 110 is used to grip the spinneret 200, the light source 120 and the imaging member 130 are respectively arranged on both sides of the gripping member 110, and the magnifying member 140 is arranged between the imaging member 130 and the gripping member 110, and the light emitted from the light source 120 passes through each inspection target hole 210 of the spinneret 200 and is magnified by the magnifying member 140, and then a spinneret projection image can be formed on the imaging member 130.

[0021] In addition, the spinneret 200 may have a number of tiny holes, abbreviated as pores, and the pore of the spinneret to be inspected is referred to as the pore to be inspected 210, and the shape of the pore to be inspected 210 may be various shapes such as a circle, a triangle, a rice shape, a line shape, a caterpillar shape, etc.

[0022] In the spinning production process, the spinneret converts the viscous, fluid polymer melt or polymer solution into a fine stream with a specific cross-sectional shape through the pores, and then solidifies it through a coagulation medium or coagulation bath to form a thread. Mechanical impurities, gels, carbon fibers, thermal cracks, and other fine particles present in the melt tend to block the pores of the spinneret (irregular pore shape and reduced area) or cause problems such as pore cracks (irregular pore shape and expanded area), which change the pore shape and further affect the quality of the formed fiber filament.

[0023] The main types of fiber filaments according to the solution of the embodiments of the present disclosure may include one or more of partially oriented yarns (POY), fully drawn yarns (FDY), polyester staple fibers, etc. Specific examples of the types of filaments include polyester partially oriented yarns, polyester fully drawn yarns, polyester draft yarns, polyester staple fibers, etc.

[0024] The gripping member 110 of the spinneret inspection apparatus can be used to grip or secure the spinneret, and may be a grip-like structure.

[0025] The light source 120 is a structure capable of emitting a light beam, and may be, for example, a light emitting diode, and in some embodiments, the light source 120 may emit parallel light, and the diameter of the light source may be larger than the diameter of the spinneret, and the centerlines of the two may overlap.

[0026] The magnifying member 140 may be any conventional device that allows for the amplification of an optical signal, such as a convex lens-like structure.

[0027] The imaging member 130 may be any structure capable of presenting an image, such as a curtain, and may be perpendicular to the axis of light emitted by the light source.

[0028] It can be understood that the light emitted from the light source 120 can pass through the spinneret 200 and can pass through the inspection target pores 210 of the spinneret 200 to form an imaging beam, and the imaging beam passes through the magnifying member 140 and is magnified, and then irradiated on the imaging member 130 and imaged, so that the shape of each inspection target pore is magnified and projected on the imaging member 130. When inspecting a spinneret sample through a spinneret inspection device, the projected image on the imaging member 130 can be the spinneret sample image, and a target image recognition model can be obtained by training a preset image recognition model, which can accurately output the status information of each inspection target pore in the spinneret.

[0029] The following describes a method for training an image recognition model. Figure 3 is a schematic flow chart diagram of a method for training an image recognition model according to another embodiment of the present disclosure. Referring to Figure 3, the embodiment of the present disclosure further provides a method 300 for training an image recognition model, including the following steps S301 to S302.

[0030] In step S301, the spinneret sample image is processed based on the first image recognition model to obtain label state information of each pore in the spinneret sample image, where the spinneret sample image is a projection image formed on the imaging member after light emitted from the light source passes through each pore of the spinneret sample and is magnified by the magnifying member, and the label state information of each pore is used to represent the shape state of each corresponding pore.

[0031] In step S302, a pre-established image recognition model is trained based on the spinneret sample image and the label status information of each hole to obtain a target image recognition model, and the target image recognition model is used to process the spinneret projection image to obtain the status information of each hole in the spinneret.

[0032] The spinneret sample image may be a spinneret projection image obtained by passing through the spinneret inspection device, and this projection image includes the shape of each pore in the spinneret sample. Since the size of the pores is generally small, if the spinneret image is used as the sample image as it is, the quality of the sample will be poor and it will easily affect the accuracy of the model obtained by the final training. On the other hand, in this embodiment, the spinneret projection image is enlarged by the enlargement member, so that the quality of the sample can be improved and the accuracy of the target image recognition model can be improved.

[0033] The first image recognition model may be an image recognition, object detection or image segmentation model, such as a Segment Anything (SA) model or a YOLOv8 (you only look once version 8) model. These models can be used to relatively quickly identify pores in an image and the label state information of the pores, which can be used to represent the shape state of the pores. For example, a circular pore has a label state information of a perfect circle, and for example, a clogged or cracked pore has a label state information of a non-perfect circle. Of course, the pores may have other shapes, which can be inferred.

[0034] It can be understood that the first image recognition model is a trained model in the related art, and can obtain the label state information of the pores relatively accurately.

[0035] In step S301, a spinneret sample image can be input into a first image recognition model to obtain label state information for each orifice.

[0036] The first image recognition model can rapidly obtain label state information of each hole in the spinneret sample image without manual labeling.

[0037] In step S302, a pre-established image recognition model is trained using the spinneret sample image and the label state information, and a trained image recognition model, i.e., a target image recognition model, can be obtained.

[0038] It can be seen that the target image recognition model can be used to process the spinneret projection image obtained by the spinneret inspection device, thereby obtaining the status information of each orifice, and further inspecting the pass / fail of the spinneret; this process does not require manual inspection, saves effort and time, and has higher inspection efficiency and accuracy.

[0039] In some embodiments, in step S301, processing the spinneret sample image based on the first image recognition model to obtain label state information for each hole in the spinneret sample image includes: inputting the spinneret sample image into a first sub-model in the first image recognition model to obtain a first information set for each hole, the first information set including first status information for each hole, first position information for each hole, and a first confidence level corresponding to the first status information for each hole; inputting the spinneret sample image into a second sub-model in the first image recognition model to obtain a second information set for each hole, the second information set including second state information for each hole, second position information for each hole, and a second confidence level corresponding to the second state information for each hole; determining label state information for each pore based on the first set of information and the second set of information.

[0040] In this embodiment, the first image recognition model may include two sub-models, such as a first sub-model and a second sub-model, which may be different models.

[0041] A first information set can be obtained by processing the spinneret sample image with the first sub-model, the first information set can include first state information, first position information, and a first confidence level for each hole.

[0042] Here, the first status information is used to represent the shape status of the pore, and the first position information is the position of the pore in the spinneret sample image, and it can be understood that since there are many pores in the spinneret, each pore can be identified by the first position information. The first reliability is the probability of the first status information, and if the first status information is a perfect circle, the first reliability is the probability of the perfect circle.

[0043] Similarly, a second set of information can be obtained by processing the spinneret sample image with a second sub-model, the second set of information can include second state information, second position information, and a second confidence level for each hole.

[0044] Here, the second state information is used to represent the shape state of the pore, and the second position information is the position of the pore in the spinneret sample image, and since there are many pores in the spinneret, it can be understood that each pore can be identified by the second position information. The second reliability is the probability of the second state information, and if the second state information is a perfect circle, the second reliability is the probability of the perfect circle.

[0045] The first and second sets of information provide label status information for each pore.

[0046] It can be appreciated that by recognizing the spinneret sample image through different models and combining the results of both to obtain label status information for each orifice, the accuracy of the label status information can be improved and the sample quality can be improved.

[0047] In one embodiment, the first sub-model can be, for example, a segment-anything model, which can obtain a higher accuracy of the first information set, and the second sub-model can be, for example, a YOLOv8 model, which can obtain a second information set more quickly.

[0048] In another embodiment, the first image recognition model may be a model trained using artificially labeled samples and capable of outputting label state information of pores.

[0049] In some embodiments, determining the label state information for each pore based on the first set of information and the second set of information comprises: determining a state information subset for each pore based on the first location information in the first information set and the second location information in the second information set, the state information subset including the first state information and the second state information for the same pore; For the first pore state information subset in each pore, when the first state information of the first pore does not match the second state information of the first pore, determining an overall reliability of the first pore based on a first reliability corresponding to the first state information and a second reliability corresponding to the second state information; determining labeling state information of the first pore based on the overall reliability of the first pore and the reliability threshold; determining label status information for each pore based on the label status information of at least the first pore.

[0050] It can be understood that since both the first sub-model and the second sub-model process spinneret sample images, the position information obtained from both can be located in the same coordinate system.

[0051] By matching the first position information of the pore and the second position information of the pore, it can be determined whether the two pores belong to the same pore, and if both belong to the same pore, it can be decided to add the first state information and the second state information of the pore to the state information subset of the pore, thereby determining one state information subset for each pore.

[0052] Also, taking the first pore in each pore as an example, if the first state information and the second state information in the state information subset of this first pore match (they have the same meaning), this first state information is set as the label state information of the first pore. If the first state information and the second state information in the first pore do not match (they have different meanings, such as one being a perfect circle and the other being a non-perfect circle), the first reliability and the second reliability of the first pore are obtained, and the overall reliability of the first pore can be determined from the first reliability and the second reliability.

[0053] For example, the first reliability indicates that the probability that the first pore is a perfect circle is 85%, and the second reliability indicates that the probability that the first pore is not a perfect circle is 65%, and by using 1-65%=35%, the probability that the first pore is a perfect circle is 35% can be obtained. Based on 85% and 35%, the overall reliability of the first pore can be obtained by the power addition method, and the overall reliability can determine the overall probability that the first pore is a perfect circle, which comprehensively considers each reliability, and the obtained overall reliability is relatively accurate. Then, the integrated reliability threshold is compared with the reliability threshold to determine the final state information of the first pore, i.e., the label state information.

[0054] By performing the above process for each pore, the label state information of each pore can be obtained. In this embodiment, when the first state information and the second state information do not match, the overall reliability is determined to obtain more accurate label state information, which is favorable for improving the quality of the sample and improving the accuracy of the trained model.

[0055] In some embodiments, in step S302, training a pre-established image recognition model based on the spinneret sample image and the label state information of each hole to obtain a target image recognition model, processing the spinneret sample image based on a pre-established image recognition model to obtain predicted state information for each hole; determining a first loss function based on the predicted state information of each pore and the label state information of each pore; adding a temperature scalar to the first loss function to obtain a second loss function, the temperature scalar balancing the sensitivity of the pre-defined image inspection model to the difference between the pores in different geometric states; and adjusting parameters of the preset image recognition model based on the second loss function to obtain a target image recognition model.

[0056] In this embodiment, by inputting a spinneret sample image into a preset image recognition model, predicted state information for each fine hole, i.e., a predicted shape state for each fine hole, can be obtained.

[0057] Then, a first loss function can be determined based on the predicted state information and the label state information of each pore.

[0058] The temperature scalar is used to adjust the temperature parameter in the first loss function to balance the sensitivity of the pre-defined image inspection model to the differences between pores of different shape categories, thereby improving the classification and recognition accuracy. The temperature parameter is a parameter that controls the relative distance between categories.

[0059] In this embodiment, the first loss function can be realized using the following formula:

number

[0060] By adding the temperature scalar w to the first loss function loss1(x,y), i.e., adding the temperature scalar w to the second loss function as an adjustable variable in the second loss function, the resulting second loss function loss2(x,y,w) can be realized using the following formula:

number

[0061] The second loss function in the above embodiment can adjust the parameters of the preset image recognition model to obtain the target loss function. The temperature scalar increases the flexibility of the loss function and is advantageous for further improving the performance of the model.

[0062] In some embodiments, adding a temperature scalar to the first loss function to obtain a second loss function may be determining a dynamic temperature function based on the temperature scalar to represent a relationship of change of the temperature scalar over time; and adding the dynamic temperature function to the first loss function to obtain a second loss function.

[0063] In this embodiment, the dynamic temperature function f is calculated by the temperature scalar w. w (t) can also be introduced,

number

[0064] By adding the dynamic temperature function to the first loss function, the resulting second loss function loss2(x,y,w) is as follows:

number

[0065] Here, δ(y i ) is yi where is the classification scaling factor of the corresponding y, and δ(y) is the classification scaling factor of the corresponding y.

[0066] Because temperature can rise or fall over time, a second loss function with a dynamic temperature function can make the prediction distribution smoother or sharper, which can facilitate convergence of the second loss function.

[0067] In some embodiments, determining the first loss function based on the predicted state information for each pore and the label state information for each pore includes determining the first loss function based on the predicted state information for each pore, the label state information for each pore, and a loss function of the first image recognition model.

[0068] In this embodiment, the first loss function can also be obtained in conjunction with the loss function of the first image recognition model. For example, by using the loss function of the first image recognition model as one reference term of the first loss function, the first loss function can be obtained in conjunction with referring to the first image recognition model, thereby simplifying the process of determining the loss function.

[0069] 4 is a flow chart schematic diagram of a spinneret inspection method according to an embodiment of the present disclosure. With reference to FIG. 1, FIG. 2 and FIG. 4, the embodiment of the present disclosure provides a spinneret inspection method 400 used in a spinneret inspection device including a gripping member 110 for gripping a spinneret 200, a light source 120 and an imaging member 130 disposed on both sides of the gripping member 110, respectively, and a magnifying member 140 disposed between the imaging member 130 and the gripping member 110, in which the light emitted from the light source 120 passes through each inspection target hole 210 of the spinneret 200 and is magnified by the magnifying member 140, and then forms a spinneret projection image on the imaging member 130. The method 400 includes steps S401 to S403.

[0070] In step S401, a spinneret projection image on an imaging member is acquired.

[0071] In step S402, the spinneret projection image is processed using a target image recognition model to obtain status information of each inspected orifice in the spinneret, and the target image recognition model is trained according to any of the training methods mentioned above.

[0072] In step S403, the spinneret inspection result is determined based on the status information of each inspected orifice.

[0073] The configuration of the spinneret inspection device can be referred to in the explanation of the above embodiment, so it will not be explained repeatedly. However, in step S401, an imaging component such as a camera in the spinneret inspection device captures a projection image on an imaging member, and a spinneret projection image can be obtained.

[0074] Next, the target image recognition model trained using the above training method can be used to process the spinneret projection image, and the status information of each inspected orifice in the spinneret, i.e., the geometric status of each inspected orifice, can be output.

[0075] In step S403, the inspection result of the spinneret can be obtained based on the state information of each inspected orifice.

[0076] In the inspection method of this embodiment, the target image recognition model is used to process the spinneret projection image to obtain the status information of each inspected orifice, and the pass / fail of the spinneret can be inspected, eliminating the need for manual inspection, saving time and effort, and achieving higher inspection efficiency and accuracy.

[0077] In some embodiments, in step S403, determining an inspection result for the spinneret based on the status information for each inspected aperture includes: determining a pore pass rate based on the state information of each of the inspected pores, the rate being the number of inspected pores whose state information matches a preset state to the total number of inspected pores; and determining an inspection result for the spinneret based on the pore pass rate and the pass rate threshold.

[0078] The preset state may be the standard state of the pores to be inspected, i.e., the shape of the pores to be inspected that are neither clogged nor cracked. From the state information of each pore to be inspected, the number of pores to be inspected that match the preset state, i.e., the number of pores to be inspected that have not undergone any change in shape, can be determined. By dividing this number by the total number of pores to be inspected, the pass rate of the pores can be determined.

[0079] The pass rate threshold can be set according to the actual situation, such as 1 or 0.98, and can be specifically set according to the situation. If the pass rate threshold is 1, it means that there is no shape change in all the inspected holes, and the spinneret is pass; otherwise, it means that the spinneret is a non-qualified product and needs to be cleaned or replaced.

[0080] In some embodiments, the method 400 further includes controlling a robotic arm in the spinneret inspection device to move the spinneret to a first area for placing passing spinnerets if the inspection results meet a preset pass condition.

[0081] Referring to FIG. 1, the spinneret inspection apparatus may be provided with a robotic arm 150, which may be of any conventional structure allowing for a high degree of freedom of movement.

[0082] If the inspection result meets the preset pass condition, the pore pass rate may be equal to or greater than the pass rate threshold, under which condition the robot arm 150 may transport the passed spinneret to a first area, which may be a storage area.

[0083] By transporting the spinnerets using a robot arm, spinneret inspection can be achieved while also sorting the spinnerets, further reducing labor costs.

[0084] In some embodiments, the method 400 includes: If the inspection result does not satisfy the preset pass condition, control the robot arm in the spinneret inspection device to move the spinneret to a second area for placing rejected spinnerets; The method further includes sending a first notification indicating that the spinneret is rejected, the first notification including the spinneret number.

[0085] If the inspection results do not satisfy the preset pass criteria, the robot arm 150 can transport the spinneret to a second area which serves as a storage area for rejected spinnerets, making it easy for an operator to clean that area in a timely manner.

[0086] In addition, a first notification can be sent to the operator during transport to the second area to notify the operator that a rejected spinneret is present in the second area, and the first notification can further include information such as the spinneret number, thereby making it easier to manage the spinnerets.

[0087] In some embodiments, with reference to FIG. 1, the spinneret inspection apparatus includes a first imaging element 161 and a second imaging element 162 disposed on either side of an axis of the imaging member 130, respectively.

[0088] In step S401, acquiring a spinneret projection image on an imaging member includes: controlling a first imaging element to capture a first projected image on the imaging member; controlling the second imaging element to capture a second projected image on the imaging member, the first projected image and the second projected image being the same spinneret projected image; determining a spinneret projection image based on the first projection image and the second projection image.

[0089] In this embodiment, the spinneret inspection device may include two imaging elements arranged on either the left or right side of the imaging member 130, so that the projected image of the spinneret on the imaging member 130 can be captured from different angles.

[0090] Acquiring the spinneret projection image on the imaging member can include acquiring a first projection image on the imaging member by a first imaging element and acquiring a second projection image on the imaging member by a second imaging element, the first projection image and the second projection image being projection images of the same spinneret at different angles.

[0091] Furthermore, since a spinneret throw image can be obtained based on the first projected image and the second projected image, the accuracy of the spinneret throw image can be improved based on the projected images at different angles.

[0092] In some embodiments, determining a spinneret projection image based on the first projection image and the second projection image includes: performing perspective correction on the first projection image to obtain a first corrected image; performing perspective correction on the second projection image to obtain a second corrected image; and fusing the first corrected image and the second corrected image to obtain a spinneret projection image.

[0093] Since the first and second projected images are located on either side of the axis of the imaging member, respectively, certain deformations may occur due to the angle of view, so it can be understood that the projected images are first processed by perspective correction to obtain the first and second corrected images, which may have the same angle of view as the orthogonal projection image of the spinneret on the imaging member 130.

[0094] Next, the first corrected image and the second corrected image can be fused, for example, by overlapping the edges of the projections presented by both images, thereby improving the clarity and accuracy of the spinneret projection image, and helping to improve the accuracy of the inspection results.

[0095] 5 is a schematic block diagram of an image recognition model training device according to an embodiment of the present disclosure. Referring to FIG. 5, the image recognition model training device 500 provided by the embodiment of the present disclosure includes: a processing unit 501 for processing the spinneret sample image according to a first image recognition model to obtain label state information of each pore in the spinneret sample image, where the spinneret sample image is a projection image formed on an imaging member after the light emitted from the light source passes through each pore of the spinneret sample in sequence and is magnified by a magnifying member, and the label state information of each pore is used to represent the shape state of each corresponding pore; and a training unit 502 for training a pre-established image recognition model to obtain a target image recognition model based on the spinneret sample image and the label status information of each hole, the target image recognition model being used to process the spinneret projection image to obtain the status information of each hole in the spinneret.

[0096] In some embodiments, the processing unit 501 further comprises: inputting the spinneret sample image into a first sub-model in the first image recognition model to obtain a first information set for each hole, the first information set including first status information for each hole, first position information for each hole, and a first confidence level corresponding to the first status information for each hole; inputting the spinneret sample image into a second sub-model in the first image recognition model to obtain a second information set for each hole, the second information set including second state information for each hole, second position information for each hole, and a second confidence level corresponding to the second state information for each hole; and determining label state information for each pore based on the first information set and the second information set.

[0097] In some embodiments, the processing unit 501 further comprises: determining a state information subset for each pore based on first position information in the first information set and second position information in the second information set, the state information subset including first state information and second state information for the same pore; For the first pore state information subset in each pore, when the first state information of the first pore and the second state information of the first pore do not match, determining an overall reliability of the first pore based on a first reliability corresponding to the first state information and a second reliability corresponding to the second state information; determining label state information of the first pore according to the overall reliability of the first pore and the reliability threshold; determining label status information for each pore based on the label status information of at least the first pore.

[0098] In some embodiments, the training unit 502 further comprises: processing the spinneret sample image based on a pre-established image recognition model to obtain predicted state information for each hole; determining a first loss function based on the predicted state information of each pore and the label state information of each pore; adding a temperature scalar to the first loss function to obtain a second loss function, the temperature scalar balancing the sensitivity of the pre-defined image inspection model to the difference between the pores in different geometric states; and adjusting parameters of the preset image recognition model based on the second loss function to obtain a target image recognition model.

[0099] In some embodiments, the training unit 502 further comprises: determining a dynamic temperature function based on the temperature scalar to represent a relationship of change of the temperature scalar over time; A dynamic temperature function is added to the first loss function to obtain a second loss function. In some embodiments, the training unit 502 further comprises: The first loss function is determined based on the predicted state information of each pore, the label state information of each pore, and the loss function of the first image recognition model.

[0100] Fig. 6 is a schematic block diagram showing a spinneret inspection device according to another embodiment of the present disclosure. Referring to Fig. 6, the spinneret inspection device 600 provided by the embodiment of the present disclosure is a spinneret inspection device used in a spinneret inspection apparatus, the spinneret inspection device 600 includes a gripping member 110 for gripping a spinneret, a light source 120 and an imaging member 130 arranged on both sides of the gripping member 110, respectively, and a magnifying member 140 arranged between the imaging member 130 and the gripping member 110, and the light emitted from the light source 120 passes through each inspection target hole 210 of the spinneret 200 and is magnified by the magnifying member 140, and then forms a spinneret projection image on the imaging member 130; an acquisition unit 601 for acquiring a spinneret projection image on an imaging member; A prediction unit 602 for processing the spinneret projection image using a target image recognition model to obtain status information of each inspection target aperture in the spinneret, where the target image recognition model is trained according to any one of the training methods in the above embodiments; and a determining unit 603 for determining the inspection result of the spinneret based on the status information of each inspected orifice.

[0101] In some embodiments, the determining unit 603 further comprises: It is used to control a robot arm in a spinneret inspection device to move the spinneret to a first area for placing the passed spinneret when the inspection result meets the preset pass condition.

[0102] In some embodiments, the determining unit 603 further comprises: Controlling the robot arm in the spinneret inspection device to move the spinneret to a second area for placing rejected spinnerets when the inspection result does not satisfy a preset pass condition; sending a first notification indicating that the spinneret is rejected, the first notification including the spinneret number.

[0103] In some embodiments, the spinneret inspection apparatus includes a first imaging element and a second imaging element disposed on opposite sides of an axis of the imaging member; The acquisition unit 601 further includes: controlling a first imaging element to capture a first projected image on the imaging member; controlling the second imaging element to capture a second projected image on the imaging member, the first projected image and the second projected image being the same spinneret projected image; and determining a spinneret projection image based on the first projection image and the second projection image.

[0104] In some embodiments, the acquisition unit 601 further comprises: performing perspective correction on the first projection image to obtain a first corrected image; performing perspective correction on the second projection image to obtain a second corrected image; and fusing the first corrected image and the second corrected image to obtain a spinneret projection image.

[0105] In some embodiments, the determining unit 603 further comprises: determining a pore pass rate based on the state information of each of the inspected pores, the rate being the number of inspected pores whose state information matches a preset state to the total number of inspected pores; and determining an inspection result for the spinneret based on the pore pass rate and the pass rate threshold.

[0106] The specific functions and exemplary descriptions of each module and sub-module of the apparatus in the embodiments of the present disclosure may refer to the relevant descriptions of the corresponding steps in the embodiments of the above method, and will not be repeated here.

[0107] According to an embodiment of the present disclosure, an electronic device is provided, At least one processor; a memory in communication with the at least one processor; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, cause the implementation of any one of the methods in the embodiments of the present disclosure.

[0108] In an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided having stored thereon computer instructions for causing a computer to perform any one of the methods in the embodiment of the present disclosure.

[0109] In an embodiment of the present disclosure, a program is provided, which, when executed by a processor, realizes any one of the methods in the embodiments of the present disclosure.

[0110] FIG. 7 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 7, the electronic device includes a memory 710 and a processor 720, and the memory 710 stores a computer program executable by the processor 720. The number of the memory 710 and the processor 720 may be one or more. The memory 710 may store one or more computer programs, which, when executed by the electronic device, cause the electronic device to perform the method provided by the above method embodiment. The electronic device may further include: The communication interface 730 is used for communicating with an external device and performing data interaction and transmission.

[0111] When the memory 710, the processor 720, and the communication interface 730 are implemented independently, the memory 710, the processor 720, and the communication interface 730 are connected to each other via a bus and can communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be classified into an address bus, a data bus, a control bus, and the like. For ease of explanation, only one thick line is shown in FIG. 7, but this does not indicate only one bus or only one type of bus.

[0112] Optionally, in a specific implementation, when the memory 710, the processor 720, and the communication interface 730 are integrated on one chip, the memory 710, the processor 720, and the communication interface 730 can communicate with each other via an internal interface.

[0113] It should be understood that the processor may be a Central Processing Unit (CPU) or may be other general purpose processors, Digital Signal Processing (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware assemblies, etc. The general purpose processor may be a microprocessor or any conventional processor, etc. Additionally, the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.

[0114] Additionally, optionally, the memory may include read-only memory and random access memory, and may further include non-volatile random access memory. The memory may be either volatile or non-volatile memory, or may include both volatile and non-volatile memory. Here, non-volatile memory may include Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically EPROM (EEPROM), or flash memory. Volatile memory may include Random Access Memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available. For example, static random access memory (Static RAM, SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (Double Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced SDRAM, ESDRAM), synchlink DRAM (Synchlink DRAM, SLDRAM), and direct RAMBUS RAM (DR RAM).

[0115] The above-mentioned embodiments may be implemented in whole or in part in software, hardware, firmware, or any combination thereof. When implemented in software, the whole or in part may be implemented in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, a process or function according to the embodiments of the present disclosure is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, Bluetooth, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a server, a data center, etc. integrated with one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Versatile Disc (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)). Note that the computer-readable storage medium referred to in this disclosure may be a non-volatile storage medium, in other words, a non-transitory storage medium.

[0116] Those skilled in the art can understand that all or part of the steps for realizing the above embodiments may be implemented by hardware, or may be implemented by instructing relevant hardware by a program, and the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.

[0117] In the description of the embodiments of the present disclosure, the reference words "one embodiment", "several embodiments", "examples", "specific examples", or "several examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. And, the specific features, structures, materials, or characteristics described can be combined in any suitable manner in any one or more embodiments or examples. Furthermore, a person skilled in the art may combine different embodiments or examples and features of different embodiments or examples described in the present disclosure to the extent that they are not mutually inconsistent.

[0118] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means "or", for example, A / B can mean either A or B. "And / or" in the present disclosure is merely for describing the related relationship of related objects, and indicates that three kinds of relationships may exist, for example, A and / or B can indicate the following three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0119] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying a relative importance, nor should they be construed as implying a number of technical features shown. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, "plurality" means two or more, unless otherwise specified.

[0120] The above are merely illustrative examples of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure should be included within the scope of protection of the present disclosure.

Claims

1. A method for training an image recognition model, comprising: inputting a spinneret sample image into a first sub-model in a first image recognition model to obtain a first information set for each hole, the first information set including first status information for each hole, first position information for each hole, and a first confidence level corresponding to the first status information for each hole; inputting the spinneret sample image into a second sub-model in the first image recognition model to obtain a second set of information for each of the holes, the second set of information including second state information for each of the holes, second position information for each of the holes, and a second confidence level corresponding to the second state information for each of the holes; determining label state information of each of the pores based on the first information set and the second information set, where the spinneret sample image is a projection image formed on an imaging member after light emitted from a light source passes through each of the pores of the spinneret sample and is magnified by a magnifying member, and the label state information of each of the pores is used to represent a shape state of each corresponding pore; and training a preset image recognition model based on the spinneret sample image and the label status information of each of the holes to obtain a target image recognition model, the target image recognition model being used to process the spinneret projection image to obtain status information of each of the holes in the spinneret. How to train an image recognition model.

2. determining label state information for each of the pores based on the first set of information and the second set of information, determining a state information subset for each of the pores based on first location information in the first information set and second location information in the second information set, the state information subset including first state information and second state information for the same pore; For a first pore state information subset in each of the pores, when the first state information of the first pore does not match the second state information of the first pore, determining an overall reliability of the first pore based on a first reliability corresponding to the first state information and a second reliability corresponding to the second state information; determining label status information of the first pore based on a total reliability of the first pore and a reliability threshold; determining label status information for each of the pores based on label status information for at least the first pore; The method of training an image recognition model according to claim 1 .

3. Training a preset image recognition model based on the spinneret sample image and the label state information of each of the holes to obtain a target image recognition model; processing the spinneret sample image based on a pre-established image recognition model to obtain predicted state information for each hole; determining a first loss function based on the predicted state information of each of the pores and the label state information of each of the pores; adding a temperature scalar to the first loss function to obtain a second loss function, the temperature scalar balancing the sensitivity of a pre-defined image inspection model to differences between pores of different geometric states; and adjusting parameters of the preset image recognition model based on the second loss function to obtain the target image recognition model. The method of training an image recognition model according to claim 1 .

4. Adding a temperature scalar to the first loss function to obtain a second loss function, determining a dynamic temperature function based on a temperature scalar to represent a relationship of change of the temperature scalar over time; and adding the dynamic temperature function to the first loss function to obtain the second loss function. The method for training an image recognition model according to claim 3.

5. Determining a first loss function based on the predicted state information of each of the pores and the label state information of each of the pores, determining a first loss function based on predicted state information of each of the pores, label state information of each of the pores, and a loss function of the first image recognition model; The method for training an image recognition model according to claim 3.

6. A device for training an image recognition model, comprising: a processing unit for inputting a spinneret sample image into a first sub-model in a first image recognition model to obtain a first information set for each pore, the first information set including first state information for each pore, first position information for each pore, and a first confidence level corresponding to the first state information for each pore; inputting the spinneret sample image into a second sub-model in the first image recognition model to obtain a second information set for each pore, the second information set including second state information for each pore, second position information for each pore, and a second confidence level corresponding to the second state information for each pore; and determining label state information for each pore based on the first information set and the second information set, where the spinneret sample image is a projection image formed on an imaging member after light emitted from a light source passes through each pore of a spinneret sample in sequence and is magnified by a magnifying member, and the label state information for each pore is used to represent the shape state of each corresponding pore; a training unit for training a preset image recognition model based on the spinneret sample image and the label state information of each of the holes to obtain a target image recognition model, the target image recognition model being used to process the spinneret projection image to obtain the state information of each of the holes in the spinneret; A training device for image recognition models.

7. At least one processor; a memory in communication with the at least one processor; The memory stores instructions executable by the at least one processor, the instructions, when executed by the at least one processor, causing the at least one processor to perform a method according to any one of claims 1 to 5. Electronic devices.

8. A non-transitory computer readable storage medium for storing instructions that cause a computer to perform the method of any one of claims 1 to 5.

9. A program for implementing the method according to any one of claims 1 to 5 when executed by a processor in a computer.

Citation Information

Patent Citations

  • Spinneret plate surface defect detection method and device based on deep separable convolutional neural network, storage medium and equipment

    CN112730437A

  • Abnormality inspection device for spinneret and abnormality inspection method

    JP2011058871A

  • Attribute recognition system, learning server, and attribute recognition program

    JP2021009645A