Image processing device, image processing method, and program

The image processing device efficiently creates teacher images by predicting contour lines in images, addressing the challenge of manual effort and time in conventional methods, and enabling the rapid development of accurate machine learning models for complex image analysis tasks.

WO2024214705A1PCT designated stage expired Publication Date: 2024-10-17RESONAC CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/014430
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-14
Filing Date
2024-04-09
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Conventional methods for creating teacher images for machine learning require significant human effort and time, especially when dealing with complex outline shapes, as existing annotation tools are inadequate for automatically generating accurate contour lines.

Method used

An image processing device and method that uses a learned model to predict contour lines in images, allowing for the efficient creation of teacher images by acquiring target images, predicting contours, and outputting teacher images, which can be used to train machine learning models for tasks like edge detection and semantic segmentation.

Benefits of technology

This approach reduces the effort and time required to create teacher images, enabling the efficient generation of highly accurate machine learning models by automating the process of selecting and drawing necessary contour lines, thus facilitating the training of predictive models for complex image analysis tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024014430_17102024_PF_FP_ABST
    Figure JP2024014430_17102024_PF_FP_ABST
Patent Text Reader

Abstract

This image processing device comprises: an image acquisition unit that acquires a target image in which a target position designated by a user is indicated; a contour line prediction unit that predicts a contour line in the vicinity of the target position on the basis of a trained model obtained by learning a relationship between positions in the image and contour lines in the vicinity of the positions; and an image output unit that outputs a teacher image indicating a prediction result of the contour line.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing device, image processing method and program

[0001] The present disclosure relates to an image processing device, an image processing method, and a program.

[0002] Techniques for analyzing images using machine learning models are known. In order to analyze images with high accuracy using machine learning models, a large number of highly accurate training images are required.

[0003] For example, Patent Document 1 discloses a teacher data creation support method for creating teacher data used when constructing a learning model for performing image processing using machine learning.

[0004] Japanese Patent Application Laid-Open No. 2020-126414

[0005] However, in conventional techniques, creating training images requires a lot of manual work, which requires a lot of time and effort. Although annotation tools exist that can automatically create training images for input images, they cannot handle images with complex contour lines.

[0006] One aspect of the present disclosure aims to efficiently create training images to be used in machine learning.

[0007] The present disclosure has the following configuration.

[0008] [1] An image processing device comprising: an image acquisition unit configured to acquire a target image showing a target position designated by a user; a contour prediction unit configured to predict a contour near the target position based on a trained model that has learned the relationship between a position in the image and a contour near the position; and an image output unit configured to output a teacher image showing the predicted contour.

[0009] [2] The image processing device according to [1] above, wherein the image acquisition unit acquires the target image in which the new target position is indicated, and the contour prediction unit predicts the contour in the vicinity of the new target position.

[0010] [3] The image processing device according to [1] or [2] above, wherein the trained model is one that has learned the relationship between a region showing a predetermined brightness and the contour line near the region based on training data including a training image in which the region is drawn and a ground truth image in which the contour line included in the training image is shown.

[0011] [4] The image processing device according to [3] above, wherein the region is drawn at a position randomly selected from the contour line included in the learning image.

[0012] [5] The image processing device according to [3] or [4] above, wherein the learning data includes the learning image obtained by extracting a part of a basic image including a contour line, and a correct answer image obtained by extracting a part of a contour line image showing the contour line included in the basic image.

[0013] [6] An image processing method in which a computer executes the steps of: acquiring a target image showing a target position designated by a user; predicting a contour line near the target position based on a trained model that has learned the relationship between a position in the image and a contour line near the position; and outputting a teacher image showing the predicted contour line.

[0014] [7] A program for causing a computer to execute the steps of: acquiring a target image showing a target position designated by a user; predicting a contour line near the target position based on a trained model that has learned the relationship between a position in the image and a contour line near the position; and outputting a teacher image showing the predicted contour line.

[0015] According to one aspect of the present disclosure, it is possible to efficiently create teacher images to be used in machine learning.

[0016] FIG. 1 is a diagram showing an example of a target image. FIG. 2 is a diagram showing an example of a teacher image. FIG. 3 is a diagram showing an example of a contour image. FIG. 4 is a block diagram showing an example of the overall configuration of a teacher image creation support system. FIG. 5 is a block diagram showing an example of the hardware configuration of a computer. FIG. 6 is a block diagram showing an example of the functional configuration of the teacher image creation support system. FIG. 7 is a flowchart showing an example of a teacher image creation support method. FIG. 8 is a flowchart showing an example of a training data generation process. FIG. 9 is a diagram showing an example of a training image. FIG. 10 is a diagram showing an example of a correct image. FIG. 11 is a diagram showing an example of a training image in which a training position is indicated. FIG. 12 is a diagram showing an example of a correct image in which a correct contour has been extracted. FIG. 13 is a flowchart showing an example of a model training process. FIG. 14 is a sequence diagram showing an example of a teacher image generation process. FIG. 15 is a diagram showing an example of a verification image. FIG. 16 is a diagram showing an example of a contour image. FIG. 17 is a diagram showing an example of a prediction result.

[0017] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. In this specification and drawings, components having substantially the same functional configurations are designated by the same reference numerals, and redundant description will be omitted.

[0018] [Embodiment] One embodiment of the present disclosure is a training image creation support system that supports the creation of training images used in machine learning. The training images in this embodiment are used to train a machine learning model that analyzes images. The training images in this embodiment are images that show correct contours in an image to be analyzed. The training images in this embodiment can be used to train a machine learning model that performs tasks such as edge detection, semantic segmentation, or instance segmentation.

[0019] Hereinafter, the image to be analyzed will also be referred to as a "target image." In this embodiment, the target image is an image in which the contour line of a complex shape is captured. As an example, the target image may be an image in which a large number of particles are dispersed. As another example, the target image may be an image in which the surface of a metal deposit is captured.

[0020] Fig. 1 is a diagram showing an example of a target image in this embodiment. The target image 900 shown in Fig. 1 is an image of the surface of a metal deposit. As shown in Fig. 1, the target image 900 contains a large number of contour lines with complex shapes.

[0021] 1 is an image captured by a scanning electron microscope (SEM). The target image in this embodiment may be captured by, for example, an optical microscope or a transmission electron microscope (TEM) depending on the characteristics of the object to be captured and the purpose of image analysis.

[0022] Fig. 2 is a diagram showing an example of a teacher image in this embodiment. The teacher image 910 shown in Fig. 2 is an image in which contour lines are drawn on the target image shown in Fig. 1. In Fig. 2, the area corresponding to the contour lines is drawn with a thick line of a brightness different from the brightness of each pixel of the target image 900.

[0023] In the past, teacher images were created manually using a computer. However, since it is difficult to draw the contours of a complex shape such as the target image 900 shown in Figure 1 using a general input device such as a mouse or keyboard, an input device specialized for image editing, such as a pen tablet, is often used.

[0024] Manually drawing the contours of complex shapes such as those shown in Figure 2 can take several hours per image, depending on the complexity of the image. Training a machine learning model based on deep learning requires hundreds of training images. Therefore, training a highly accurate machine learning model requires a great deal of effort and time.

[0025] Creating a training image does not simply involve drawing all the contour lines captured in the image, but requires selectively drawing only the contour lines required for the purpose of image analysis. This makes it difficult to create a general-purpose annotation tool that can handle any image and any analysis target.

[0026] FIG. 3 is a diagram showing an example of a contour line image. The contour line image is an image in which only the contour lines drawn in the teacher image are extracted. The contour line image 920 shown in FIG. 3 is drawn by selecting only the contour lines to be analyzed from the contour lines contained in the target image 900 shown in FIG. 1. In FIG. 3, the areas corresponding to the contour lines are drawn in white, and the other areas are drawn in black. As shown in FIG. 3, in the contour line image 920, the fine contour lines contained in the target image 900 are omitted.

[0027] The training image creation support system of this embodiment aims to efficiently create training images to be used in machine learning. In one aspect, this embodiment can reduce the effort and time required to create training images.

[0028] <Overall Configuration of Teacher Image Creation Support System> The overall configuration of the teacher image creation support system in this embodiment will be described with reference to Fig. 4. Fig. 4 is a block diagram showing an example of the overall configuration of the teacher image creation support system in this embodiment.

[0029] 4, the teacher image creation support system 1 in this embodiment includes a model learning device 10, an image processing device 20, and a user terminal 30. The model learning device 10, the image processing device 20, and the user terminal 30 are connected to each other so as to be able to communicate data with each other via a communication network N1 such as a LAN (Local Area Network) or the Internet.

[0030] The model learning device 10 is an information processing device such as a personal computer, workstation, or server that learns a machine learning model (hereinafter also referred to as a "prediction model") that predicts contours included in an image. The model learning device 10 learns the prediction model based on a teacher image created in advance. The model learning device 10 transmits the learned prediction model to the image processing device 20.

[0031] The image processing device 20 is an information processing device such as a personal computer, workstation, or server that generates a teacher image based on a trained prediction model. The image processing device 20 receives a target image from a user terminal 30. The target image shows a position specified by the user (hereinafter also referred to as a "target position"). The image processing device 20 predicts a contour line near the target position from the received target image, and transmits a teacher image showing the prediction result to the user terminal 30.

[0032] The user terminal 30 is an information processing terminal such as a personal computer, tablet terminal, or smartphone operated by a user. The user terminal 30 accepts a target position designated by the user and transmits a target image indicating the target position to the image processing device 20. The user terminal 30 receives a teacher image indicating the contour prediction result from the image processing device 20 and outputs it to the user.

[0033] A user of the training image creation support system 1 inputs a target image into the user terminal 30 and performs an operation to specify a target position where a contour line is desired to be drawn. The user terminal 30 outputs to the user a training image showing a predicted result of the contour line near the position specified by the user. The user may be able to perform an operation to further specify a target position on the output training image. The user may also be able to perform an operation to edit the contour line shown in the training image. The user can create a desired training image simply by performing an operation to select the target image in the training image.

[0034] The overall configuration of the teacher image creation support system 1 shown in Figure 4 is one example, and various system configuration examples are possible depending on the application and purpose. For example, the teacher image creation support system 1 may include multiple units of one or more of the model learning device 10, image processing device 20, and user terminal 30. For example, the model learning device 10 or image processing device 20 may be implemented by multiple computers, or may be implemented as a cloud computing service. The division of devices such as the model learning device 10, image processing device 20, and user terminal 30 shown in Figure 4 is one example.

[0035] <Hardware Configuration of Teacher Image Creation Support System> The hardware configuration of the teacher image creation support system 1 in this embodiment will be described with reference to FIG.

[0036] <Hardware Configuration of Computer> The model learning device 10, the image processing device 20, and the user terminal 30 in this embodiment are realized by, for example, a computer. Fig. 5 is a block diagram showing an example of the hardware configuration of a computer 500 in this embodiment.

[0037] 5, the computer 500 includes a CPU (Central Processing Unit) 501, a ROM (Read Only Memory) 502, a RAM (Random Access Memory) 503, a HDD (Hard Disk Drive) 504, an input device 505, a display device 506, a communication I / F (Interface) 507, and an external I / F 508. The CPU 501, the ROM 502, and the RAM 503 form a so-called computer. The hardware components of the computer 500 are connected to each other via a bus line 509. The input device 505 and the display device 506 may be connected to the external I / F 508 for use.

[0038] The CPU 501 is a computing device that reads programs and data from a storage device such as the ROM 502 or the HDD 504 onto the RAM 503 and executes processing to realize overall control and functions of the computer 500 .

[0039] The ROM 502 is an example of a non-volatile semiconductor memory (storage device) that can retain programs and data even when the power is turned off. The ROM 502 functions as a main storage device that stores various programs, data, etc. required for the CPU 501 to execute various programs installed in the HDD 504. Specifically, the ROM 502 stores boot programs such as a Basic Input / Output System (BIOS) and an Extensible Firmware Interface (EFI) that are executed when the computer 500 starts up, as well as data such as OS (Operating System) settings and network settings.

[0040] The RAM 503 is an example of a volatile semiconductor memory (storage device) in which programs and data are erased when the power is turned off. The RAM 503 is, for example, a dynamic random access memory (DRAM) or a static random access memory (SRAM). The RAM 503 provides a working area in which various programs installed in the HDD 504 are expanded when executed by the CPU 501.

[0041] The HDD 504 is an example of a non-volatile storage device that stores programs and data. The programs and data stored in the HDD 504 include an OS, which is basic software that controls the entire computer 500, and applications that provide various functions on the OS. Note that the computer 500 may use a storage device that uses flash memory as a storage medium (e.g., an SSD (Solid State Drive)) instead of the HDD 504.

[0042] The input device 505 includes a touch panel, operation keys and buttons, a keyboard and mouse, a microphone for inputting sound data such as voice, and the like, which are used by the user to input various signals.

[0043] The display device 506 is composed of a display such as a liquid crystal display or organic electroluminescence (EL) display for displaying a screen, a speaker for outputting sound data such as voice, and the like.

[0044] The communication I / F 507 is an interface that connects to a communication network and enables the computer 500 to perform data communication.

[0045] The external I / F 508 is an interface with external devices, such as a drive device 510.

[0046] The drive device 510 is a device for loading a recording medium 511. The recording medium 511 here includes media that record information optically, electrically, or magnetically, such as CD-ROMs, flexible disks, and magneto-optical disks. The recording medium 511 may also include semiconductor memories that record information electrically, such as ROMs and flash memories. This allows the computer 500 to read from and / or write to the recording medium 511 via the external I / F 508.

[0047] The various programs to be installed in the HDD 504 are installed, for example, by setting the distributed recording medium 511 in a drive device 510 connected to the external I / F 508 and reading the various programs recorded on the recording medium 511 by the drive device 510. Alternatively, the various programs to be installed in the HDD 504 may be installed by being downloaded via the communication I / F 507 from a network different from the communication network.

[0048] <Functional Configuration of Teacher Image Creation Support System> The functional configuration of the teacher image creation support system in this embodiment will be described with reference to Fig. 6. Fig. 6 is a block diagram showing an example of the functional configuration of the teacher image creation support system 1 in this embodiment.

[0049] <Functional Configuration of Model Learning Device> As shown in FIG. 6 , the model learning device 10 in this embodiment includes an image storage unit 100 , a learning data generation unit 101 , and a model learning unit 102 .

[0050] The image storage unit 100 is realized by the HDD 504 shown in Fig. 5. The learning data generation unit 101 and the model learning unit 102 are realized by a process that the CPU 501 executes by a program loaded from the HDD 504 onto the RAM 503 shown in Fig. 5.

[0051] Image data used for training a prediction model is stored in advance in the image storage unit 100. The image storage unit 100 may store one or more pieces of image data.

[0052] The image data includes a base image and a contour image. The base image is an image in which a contour is captured. The contour image is an image in which the correct contour contained in the base image is shown. The image data can be generated from a training image created in advance. The base image is an actual image that is the basis for creating the training image. The contour image is an image in which the contour area is extracted from the training image.

[0053] The training data generation unit 101 generates training data for training a prediction model based on image data read from the image storage unit 100. The number of training data may be a number sufficient for training a prediction model. The number sufficient for training a prediction model may be determined based on the type of prediction model and the type of training algorithm.

[0054] The training data includes training images and correct images from which correct contour lines have been extracted. The training images are images in which contour lines have been captured and training positions have been indicated. The training positions are positions that serve as references for the prediction model to learn the relationship between positions in the image and contour lines. The correct images from which correct contour lines have been extracted are images in which contour lines in the vicinity of the training positions have been indicated, among the contour lines contained in the training images.

[0055] The model learning unit 102 learns a prediction model based on the learning data generated by the learning data generation unit 101. The model learning unit 102 transmits the learned prediction model to the image processing device 20.

[0056] The structure of the prediction model in this embodiment can use, for example, U-Net or various models derived from U-Net (for example, Nested U-Net, Attention U-Net, Swing U-Net, etc.).

[0057] <Functional Configuration of Image Processing Apparatus> As shown in FIG. 6, the image processing apparatus 20 in this embodiment includes a model storage unit 200, an image acquisition unit 201, a contour prediction unit 202, and an image output unit 203.

[0058] The model storage unit 200 is realized by the HDD 504 shown in Fig. 5. The image acquisition unit 201, the contour prediction unit 202, and the image output unit 203 are realized by the processing that the CPU 501 executes by a program loaded from the HDD 504 onto the RAM 503 shown in Fig. 5.

[0059] A trained prediction model is stored in the model storage unit 200. The trained prediction model is generated by the model learning device 10 and transferred to the image processing device 20.

[0060] The image acquisition unit 201 acquires a target image in which a target position is indicated. The image acquisition unit 201 may acquire the target image by receiving the target image from the user terminal 30. The image acquisition unit 201 may acquire the target image by accepting input of the target image via the input device 505 or the external I / F 508 of the image processing device 20.

[0061] The contour prediction unit 202 predicts a contour near a target position in a target image based on a trained prediction model read from the model storage unit 200. Specifically, the contour prediction unit 202 inputs a target image in which a target position is indicated into the trained prediction model, and obtains a prediction result of a contour near the target position output from the prediction model. The prediction result is two-dimensional data indicating the probability that each pixel in the target image is a contour.

[0062] The image output unit 203 generates a teacher image by displaying the prediction result of the contour prediction unit 202 for the target image. The image output unit 203 transmits the teacher image to the user terminal 30.

[0063] <Functional Configuration of User Terminal> As shown in FIG. 6, the user terminal 30 in this embodiment includes an image input unit 301, an image display unit 302, and a position designation unit 303.

[0064] The image input unit 301, image display unit 302, and position designation unit 303 are realized by the processing that the CPU 501 executes by a program loaded from the HDD 504 shown in FIG. 5 onto the RAM 503.

[0065] The image input unit 301 receives an input of a target image in response to a user's operation, and sends the input target image to the image display unit 302.

[0066] The image display unit 302 displays the target image on the display device 506. When the image display unit 302 receives the target image from the image input unit 301, it displays the image on the display device 506. When the image display unit 302 receives the teacher image from the image processing device 20, it displays the teacher image on the display device 506 as a new target image.

[0067] In response to a user's operation, the position designation unit 303 accepts designation of a target position for the target image displayed by the image display unit 302. The position designation unit 303 indicates the accepted target position on the target image, and sends the target image with the target position indicated to the image processing device 20.

[0068] <Processing Procedure of Teacher Image Creation Support System> The processing procedure of the teacher image creation support method executed by the teacher image creation support system 1 in this embodiment will be described with reference to Fig. 7 to Fig. 14. Fig. 7 is a flowchart showing an example of the processing procedure of the teacher image creation support method.

[0069] In step S1, the model learning device 10 executes a learning data generation process. The learning data generation process is a process for generating learning data for learning a prediction model.

[0070] In step S2, the model learning device 10 executes a model learning process, which is a process of learning a prediction model using the learning data generated in step S1.

[0071] In step S3, the image processing device 20 executes a teacher image generation process, which is a process for generating a teacher image using the trained prediction model trained in step S2.

[0072] <Learning Data Generation Process> The learning data generation process (step S1 in FIG. 7) in this embodiment will be described in more detail with reference to FIG. 8. FIG. 8 is a flowchart showing an example of the learning data generation process.

[0073] In step S11, the learning data generation unit 101 of the model learning device 10 reads image data stored in the image storage unit 100. The learning data generation unit 101 may read all image data stored in the image storage unit 100. The learning data generation unit 101 may also read one piece of image data arbitrarily selected from the image data stored in the image storage unit 100.

[0074] In step S12, the training data generation unit 101 of the model training device 10 generates training images based on the image data read in step S11. The training data generation unit 101 may generate the basic images themselves included in the image data as training images. The training data generation unit 101 may also generate multiple training images by randomly extracting images of a predetermined size from one basic image.

[0075] Fig. 9 is a diagram showing an example of a training image. The training image 930 shown in Fig. 9 is an image obtained by extracting a portion from the target image 900 shown in Fig. 1. As shown in Fig. 9, the training image 930 contains an image of a contour line with a complex shape.

[0076] When the size of the image to be analyzed is large, training a predictive model using the entire image can result in a huge amount of calculation during training. However, by training a predictive model using an image extracted from a large image, the amount of calculation during training can be reduced.

[0077] Returning to Fig. 8, in step S13, the training data generation unit 101 of the model training device 10 generates a correct image based on the image data read out in step S11. The training data generation unit 101 generates the correct image by extracting from the contour image an area corresponding to the training image generated in step S12.

[0078] When the training data generation unit 101 uses the base image itself as the training image, it may generate the contour image itself as the correct image. When the training data generation unit 101 extracts multiple training images from one base image, it may generate multiple correct images by extracting areas corresponding to each training image from the contour image.

[0079] To create training images used in training a predictive model, contours must be drawn manually. Manually drawing contours of complex shapes requires a great deal of time and effort. If multiple training data sets could be generated from a single image, the number of training images that must be prepared in advance could be reduced, enabling the predictive model to be trained more efficiently overall.

[0080] Fig. 10 is a diagram showing an example of a correct answer image. The correct answer image 940 shown in Fig. 10 is an image obtained by extracting the same area as the training image 930 from the contour line image 920 shown in Fig. 3. As shown in Fig. 10, the correct answer image 940 shows the contour lines included in the training image 930.

[0081] Returning to Fig. 8, in step S14, the training data generation unit 101 of the model training device 10 sets training positions in the training images generated in step S12. The training positions are selected from the contour lines shown in the correct image generated in step S13.

[0082] For example, the training data generation unit 101 may randomly select a training position from the contour line shown in the correct image. Alternatively, for example, the training data generation unit 101 may select a training position from the contour line shown in the correct image according to a predetermined rule.

[0083] For example, the training data generation unit 101 may indicate the training position on the training image by drawing an area indicating a predetermined brightness at the training position. Furthermore, for example, the training data generation unit 101 may indicate the training position on the training image by generating two-dimensional data indicating a truth value indicating whether or not each pixel of the training image is at the training position.

[0084] The brightness used to draw the learning position is different from the brightness contained in the image. If the brightness that can be contained in the image is limited, a brightness different from that brightness can be determined in advance. If the brightness that can be contained in the image is indefinite, the range of brightness contained in the learning image can be obtained, and a brightness that is not included in that range can be dynamically determined.

[0085] The number of learning positions may be specified by the user or may be determined in advance. The learning data generation unit 101 may select the number of learning positions specified by the user. The learning data generation unit 101 may also select the number of learning positions determined in advance.

[0086] Fig. 11 is a diagram showing an example of a training image to which training positions have been assigned. A training image 950 shown in Fig. 11 is an image in which three training positions 951 to 953 have been set in the training image 930 shown in Fig. 9.

[0087] Returning to Fig. 8, in step S15, the training data generation unit 101 of the model training device 10 extracts a correct contour line from the correct image generated in step S13. The correct contour line is a contour line in the vicinity of the training position selected in step S14.

[0088] The neighborhood range may be specified by the user or may be determined in advance. That is, the training data generation unit 101 may accept a distance specified by the user and extract contour lines that exist within the specified distance range centered on the training position. The training data generation unit 101 may also determine in advance a distance that defines the neighborhood range and extract contour lines that exist within the predetermined distance range centered on the training position.

[0089] Fig. 12 is a diagram showing an example of a correct image from which correct contour lines have been extracted. The correct image 960 shown in Fig. 12 is an image in which correct contour lines 961 to 963 near learning positions 951 to 953 have been extracted from the contour lines shown in the correct image 940 shown in Fig. 10.

[0090] 8 , in step S16, the training data generation unit 101 of the model training device 10 outputs training data. The training data includes the training image for which the training position was indicated in step S14 and the correct image from which the correct contour line was extracted in step S15.

[0091] <Model Learning Process> The model learning process (step S2 in FIG. 7) in this embodiment will be described in more detail with reference to Fig. 13. Fig. 13 is a flowchart showing an example of the model learning process.

[0092] In step S21, the model learning unit 102 of the model learning device 10 receives the learning data output by the learning data generation unit 101. Next, the model learning unit 102 selects learning images to be used for learning from the received learning data.

[0093] In step S22, the model learning unit 102 of the model learning device 10 inputs the training image selected in step S21 into a prediction model. The prediction model predicts the contour near the training position shown in the training image and outputs an image showing the prediction result.

[0094] In step S23, the model learning unit 102 of the model learning device 10 calculates the error between the correct image corresponding to the training image selected in step S21 and the prediction result predicted in step S22. For example, the error may be calculated using L1 loss or cross-entropy error. The model learning unit 102 then updates the parameters of the prediction model so as to minimize the error. The parameter update may be performed according to a learning algorithm that corresponds to the structure of the prediction model.

[0095] In step S24, the model learning unit 102 of the model learning device 10 determines whether the error calculated in step S23 has converged (is sufficiently small). Whether the error has converged may be determined according to a learning algorithm that corresponds to the type of prediction model.

[0096] If the error has not converged (NO), the model learning unit 102 returns to step S22. Thereafter, the model learning unit 102 selects a different training image and executes steps S22 to S24 again. If the error has converged (YES), the model learning unit 102 proceeds to step S25.

[0097] In step S25, the model learning unit 102 of the model learning device 10 outputs the trained prediction model. The model learning device 10 transmits the trained prediction model output by the model learning unit 102 to the image processing device 20.

[0098] The image processing device 20 receives the trained prediction model from the model learning device 10. Next, the image processing device 20 stores the received trained prediction model in the model storage unit 200.

[0099] <<Teacher Image Generation Process>> The teacher image generation process (step S3 in Fig. 7) in this embodiment will be described in more detail with reference to Fig. 14. Fig. 14 is a sequence diagram showing an example of the teacher image generation process.

[0100] In step S31, the image input unit 301 of the user terminal 30 accepts input of a target image in response to a user operation. Next, the image input unit 301 sends the input target image to the image display unit 302. The image display unit 302 receives the target image from the image input unit 301. Then, the image display unit 302 displays the received target image on the display device 506.

[0101] In step S32, the user operates the input device 505 to specify a target position at which a contour line is to be drawn in the target image displayed on the display device 506. The user may specify multiple target positions.

[0102] When a new target position is designated following the operation of continuing the prediction of the contour line in step S37 described later, the predicted contour line is removed and the target position is designated.

[0103] The position designation unit 303 of the user terminal 30 accepts the designation of a target position in response to a user operation. Next, the position designation unit 303 indicates the target position in the target image. Then, the position designation unit 303 transmits the target image with the target position indicated to the image processing device 20.

[0104] For example, the position designation unit 303 may indicate the target position on the target image by drawing an area showing a predetermined brightness at the target position. Furthermore, for example, the position designation unit 303 may indicate the target position on the target image by associating two-dimensional data indicating a truth value for each pixel of the target image, which truth value indicates whether or not each pixel is at the target position, with the target image.

[0105] Furthermore, the position designation unit 303 may automatically indicate a target position in the target image based on the luminance of pixels, without relying on a user operation. In this case, the indicated target position may be selected in response to a user operation.

[0106] In step S33, the image acquisition unit 201 of the image processing device 20 receives the target image in which the target position is indicated from the user terminal 30. Next, the image acquisition unit 201 sends the received target image to the contour prediction unit 202 and the image output unit 203.

[0107] In step S34, the contour line prediction unit 202 of the image processing device 20 receives the target image in which the target position is indicated from the image acquisition unit 201. Next, the contour line prediction unit 202 reads out the trained prediction model from the model storage unit 200.

[0108] Next, the contour prediction unit 202 inputs the target image, in which the target position is indicated, into the trained prediction model. The prediction model predicts the contour near the target position in the target image and outputs an image indicating the prediction result. The contour prediction unit 202 then sends the prediction result to the image output unit 203.

[0109] In step S35, the image output unit 203 of the image processing device 20 receives the target image from the image acquisition unit 201. Next, the image output unit 203 receives the contour prediction result from the contour prediction unit 202.

[0110] Next, the image output unit 203 generates a teacher image by displaying the predicted result of the contour line in the target image, and then transmits the teacher image with the predicted result of the contour line displayed to the user terminal 30.

[0111] For example, the image output unit 203 may display the prediction result on the target image by drawing the contour line indicated in the prediction result on the target image. Furthermore, for example, the image output unit 203 may display the prediction result on the target image by associating two-dimensional data indicating a truth value indicating whether or not each pixel of the target image is a contour line with the target image.

[0112] The brightness at which the contour lines are drawn is different from the brightness contained in the image. The brightness at which the contour lines are drawn is also different from the brightness at which the learning positions are drawn. The brightness at which the contour lines are drawn may be determined in advance or may be determined dynamically depending on the range of brightness contained in the target image.

[0113] In step S36, the image display unit 302 of the user terminal 30 receives the teacher image from the image processing device 20. Next, the image display unit 302 displays the received teacher image on the display device 506 as a new target image.

[0114] In step S37, the user refers to the target image displayed on the display device 506 and determines whether or not to continue contour line prediction. If contour line prediction is to be continued (YES), the user performs an operation to continue contour line prediction. An operation to continue contour line prediction is, for example, an operation to specify a new target position on the target image. When the user performs an operation to continue contour line prediction, the user terminal 30 returns the process to step S32.

[0115] On the other hand, if the contour prediction is not to be continued (NO), the user terminal 30 proceeds to step S38. The case where the contour prediction is not to be continued occurs when an operation other than the operation of specifying a new target position on the target image is performed. Examples of the other operation include an operation for editing the contour, an operation for storing a teacher image, etc.

[0116] In step S38, the image display unit 302 of the user terminal 30 edits the contour lines displayed in the target image in response to the user's operation to edit the contour lines. Editing the contour lines includes operations to delete excess contour lines, add missing contour lines, etc. If the user does not perform an operation to edit the contour lines, step S38 may be omitted.

[0117] Following the operation for editing the contour line, it is possible to continue predicting the contour line. In the case where contour line prediction is to be continued, when the user performs an operation for continuing contour line prediction, the user terminal 30 returns the process to step S32.

[0118] In step S39, the user terminal 30 stores the target image displayed on the display device 506 as a teacher image in a storage unit such as the HDD 504 in response to an operation by the user to store the teacher image.

[0119] <Verification Results> The results of verifying the prediction accuracy of contours using the prediction model of this embodiment will be described with reference to FIGS. 15 to 17. FIG.

[0120] Fig. 15 is a diagram showing an example of a verification image. As shown in Fig. 15, a contour line of a complex shape is captured in the verification image 970. Furthermore, in the verification image 970 shown in Fig. 15, a large number of target positions are drawn with a brightness different from the brightness of each pixel of the verification image 970.

[0121] Fig. 16 is a diagram showing an example of a contour image. The contour image 980 shown in Fig. 16 is an image obtained by extracting contours near the target position from among the contours included in the verification image 970 shown in Fig. 15. In Fig. 16, the areas corresponding to the contours are drawn with high brightness, and the other areas are drawn in black. In other words, the contour image 980 is an image showing an ideal prediction result for the verification image 970.

[0122] FIG. 17 is a diagram showing an example of a prediction result. The prediction result 990 shown in FIG. 17 is the prediction result output from the trained prediction model when the verification image 970 shown in FIG. 15 is input to the trained prediction model. In FIG. 17, the area corresponding to the contour shown in the prediction result is drawn with high brightness, and the other area is drawn in black. As shown in FIG. 17, in the prediction result 990, the contour near the target position selected in the verification image 970 can be predicted with high accuracy.

[0123] The verification results shown in FIGS. 15 to 17 demonstrate that by using the prediction model of this embodiment, it is possible to efficiently create a training image that accurately shows the contour lines desired by the user.

[0124] Effects of the Embodiment The image processing device 20 in this embodiment predicts a contour near a target position in a target image based on a trained model that has learned the relationship between a position in an image and the contour near that position. A user can draw a contour simply by specifying a desired position in the target image. Furthermore, because contours at positions not specified by the user are not drawn, the user can select and draw contours appropriate for the analysis target. Therefore, this embodiment makes it possible to efficiently create training images to be used in machine learning.

[0125] The image processing device 20 in this embodiment may repeatedly acquire a target image showing a new target position and predict a contour line near the new target position. The user can select the necessary contour line while checking the prediction results. Therefore, according to this embodiment, it is possible to efficiently create a teacher image according to the analysis target.

[0126] The model learning device 10 in this embodiment may generate training data for training a predictive model by extracting a portion of a pre-created teacher image. A user can generate a large amount of training data by preparing a single teacher image. Therefore, this embodiment allows a highly accurate predictive model to be trained with little effort and time.

[0127] The model training device 10 in this embodiment may randomly select a training position from the contour lines included in the training image and extract a contour line near the training position from the ground truth image. The user does not need to specify a training position when training a predictive model. Therefore, this embodiment makes it possible to generate training data for training a predictive model with minimal operations.

[0128] [Supplementary Note] Each function of the above-described embodiments can be realized by one or more processing circuits. Here, the term "processing circuit" in this specification includes a processor programmed to execute each function by software, such as a processor implemented by an electronic circuit, as well as devices such as an ASIC (Application Specific Integrated Circuit), a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), and conventional circuit modules designed to execute each of the above-described functions.

[0129] Although the embodiments of the present disclosure have been described in detail above, the embodiments disclosed herein are illustrative in all respects and are not limiting. The embodiments can be modified and improved in various ways without departing from the scope and spirit of the appended claims. The matters described in the above embodiments can be configured in other ways as long as they are not inconsistent, and can be combined as long as they are not inconsistent.

[0130] This application claims priority from Japanese Patent Application No. 2023-66531, filed with the Japan Patent Office on April 14, 2023, the entire contents of which are incorporated herein by reference.

[0131] REFERENCE SIGNS LIST 1 Teacher image creation support system 10 Model learning device 100 Image storage unit 101 Learning data generation unit 102 Model learning unit 20 Image processing device 200 Model storage unit 201 Image acquisition unit 202 Contour line prediction unit 203 Image output unit 30 User terminal 301 Image input unit 302 Image display unit 303 Position designation unit

Claims

1. An image processing device comprising: an image acquisition unit configured to acquire a target image showing a target position specified by a user; a contour prediction unit configured to predict a contour near the target position based on a trained model that has learned the relationship between a position in an image and a contour near the position; and an image output unit configured to output a teacher image showing the predicted result of the contour.

2. An image processing device as described in claim 1, which repeatedly executes the steps of: acquiring the target image in which a new target position is indicated by the image acquisition unit; and predicting the contour in the vicinity of the new target position by the contour prediction unit.

3. An image processing device according to claim 1 or 2, wherein the trained model is one which has learned the relationship between an area and the contour line in the vicinity of the area based on training data including a training image in which an area showing a predetermined brightness is drawn and a correct answer image in which the contour line in the vicinity of the area contained in the training image is shown.

4. An image processing device according to claim 3, wherein the region is drawn at a position randomly selected from the contour line included in the learning image.

5. An image processing device according to claim 3 or 4, wherein the learning data includes the learning image obtained by extracting a portion of a basic image including a contour line, and a correct answer image obtained by extracting a portion of a contour line image showing the contour line included in the basic image.

6. An image processing method in which a computer executes the steps of: acquiring a target image showing a target position specified by a user; predicting a contour line near the target position based on a trained model that has learned the relationship between a position in the image and a contour line near the position; and outputting a teacher image showing the predicted contour line.

7. A program for causing a computer to execute the steps of: acquiring a target image showing a target position specified by a user; predicting a contour line near the target position based on a trained model that has learned the relationship between a position in the image and a contour line near the position; and outputting a teacher image showing the predicted contour line.

Citation Information

Patent Citations

  • Machine learning tutor data creation assisting method and machine learning tutor data creation assisting program

    JP2020126414A

  • Method and device for evaluating hub unit bearing

    JP2023066531A

  • Image processor and its program

    JP2008212396A