Learning device, learning method, and image segmentation device

The learning device and method improve image segmentation accuracy by using a neural network to refine edge detection and geometric parameter estimation, addressing the distortion issues in existing technologies.

WO2024180696A1PCT designated stage expired Publication Date: 2024-09-06MITSUBISHI ELECTRIC CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/007448
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing image segmentation technologies suffer from low estimation accuracy, particularly when dealing with linear contours, where the edge estimation results often become distorted into zigzag shapes.

Method used

A learning device and method that includes a neural network-based edge estimation unit, which acquires learning data comprising images with correct edges and geometric parameters, calculates costs to evaluate estimation accuracy, and updates model parameters to improve edge detection accuracy by incorporating geometric parameter estimation.

Benefits of technology

The solution significantly enhances the estimation accuracy of image segmentation by refining edge detection and geometric parameter estimation, resulting in more precise image segmentation outcomes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023007448_06092024_PF_FP
    Figure JP2023007448_06092024_PF_FP
Patent Text Reader

Abstract

The present invention comprises: a training data acquisition unit (100) that acquires training data, the training data being a combination of a training image, a ground-truth edge image indicating a ground-truth edge in the training image, and a ground-truth geometric parameter pertaining to the shape of the ground-truth edge; an edge estimation unit (200) which comprises a neural network and which outputs an estimated edge image indicating an estimated edge in the training image and an estimated geometric parameter pertaining to the shape of the estimated edge in response to an input of the training image into the neural network; a cost calculation unit (300) that uses the ground-truth edge image, the ground-truth geometric parameter, the estimated edge image, and the estimated geometric parameter to calculate a cost for evaluating the accuracy of estimation by the edge estimation unit; and a model parameter update unit (400) that uses the cost calculated by the cost calculation unit to update a model parameter for the neural network.
Need to check novelty before this filing date? Find Prior Art

Description

Learning device, learning method, and image segmentation device

[0001] The disclosed technology relates to the technology of image segmentation.

[0002] Image segmentation is an image recognition technology that identifies what each pixel in an image belongs to and divides the image according to the identified attributes. Image segmentation includes a technology that extracts features by inputting an image into a neural network and then detects the position, contour, and area based on the features. For example, Patent Document 1 discloses image segmentation that combines a pixel estimation stream, which is a neural network that performs general pixel-by-pixel class classification (e.g., contour or non-contour classification), with a feature estimation stream, which is a neural network that extracts features of an arbitrary area (e.g., features such as people, cars, and trees). According to the image segmentation described in Patent Document 1, "For an input image in which a person appears, by providing approximate position information of the person detected in the feature estimation stream to the pixel estimation stream, more accurate contours and areas of the person can be obtained. On the other hand, by providing approximate contours and areas of the person detected in the pixel estimation stream to the feature estimation stream, more accurate position of the person can be obtained." (Paragraph

[0055] of Patent Document 1)

[0003] Japanese Patent Application Laid-Open No. 2019-101519

[0004] However, in the image segmentation described in Patent Document 1, for example, even if the segmentation target is actually a linear contour (edge), the edge of the estimated result may be distorted into a zigzag shape. In other words, the image segmentation described in Patent Document 1 has a problem in that the estimation accuracy of the image segmentation is low.

[0005] The present disclosure is intended to solve the above problem and aims to improve the estimation accuracy of image segmentation.

[0006] The learning device of the present disclosure includes: a learning data acquisition unit that acquires learning data that is a combination of a learning image, a correct edge image that indicates a correct edge in the learning image, and correct geometric parameters related to the shape of the correct edge; an edge estimation unit that is configured with a neural network and outputs an estimated edge image that indicates an estimated edge of the learning image and estimated geometric parameters related to the shape of the estimated edge when the learning image is input to the neural network; a cost calculation unit that uses the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters to calculate a cost for evaluating the estimation accuracy by the edge estimation unit; and a model parameter update unit that updates the model parameters of the neural network using the cost calculated by the cost calculation unit.

[0007] The present disclosure provides an advantage in that it is possible to improve the estimation accuracy of image segmentation.

[0008] FIG. 1 is a diagram illustrating an example of a configuration according to a first embodiment of the present disclosure. FIG. 2 is a diagram illustrating an example of training data 1000 used in the first embodiment of the present disclosure. FIG. 3 is a flowchart illustrating an example of processing by the configuration according to the first embodiment of the present disclosure. FIG. 4 is a diagram illustrating an effect of the present disclosure. FIG. 4A is a diagram illustrating an image of image segmentation when training by the configuration according to the present disclosure has not been performed. FIG. 4B is a diagram illustrating an image of image segmentation after training by the configuration according to the present disclosure. FIG. 5 is a diagram illustrating an example of a configuration according to a second embodiment of the present disclosure. FIG. 6 is a diagram illustrating an example of the internal configuration of a geometric parameter estimation layer in the configuration according to the second embodiment of the present disclosure. FIG. 7 is a flowchart illustrating a detailed example of training data acquisition processing in the configuration according to the second embodiment of the present disclosure. FIG. 8 is a flowchart illustrating a detailed example of edge estimation processing in the configuration according to the second embodiment of the present disclosure. FIG. 9 is a flowchart illustrating a detailed example of cost calculation processing in the configuration according to the second embodiment of the present disclosure. FIG. 10 is a diagram illustrating an example of a configuration according to a third embodiment of the present disclosure. FIG. 11 is a flowchart illustrating an example of processing by the configuration according to the third embodiment of the present disclosure. Fig. 12 is a diagram illustrating a first example of a hardware configuration for realizing functions according to the configuration of the present disclosure. Fig. 13 is a diagram illustrating a second example of a hardware configuration for realizing functions according to the configuration of the present disclosure.

[0009] In order to explain the present disclosure in more detail, embodiments of the present disclosure will be described below with reference to the accompanying drawings.

[0010] First Embodiment In the first embodiment, a learning device will be described.

[0011] 1 is a diagram illustrating an example of a configuration according to a first embodiment of the present disclosure. A learning device 10 updates model parameters of an edge estimation model used for image segmentation through a learning process. The learning device 10 illustrated in FIG. 1 includes a learning data acquisition unit 100, an edge estimation unit 200, a cost calculation unit 300, and a model parameter update unit 400.

[0012] The training data acquisition unit 100 acquires training data to be used in the training process by the training device 10. The training data acquisition unit 100 acquires training data that is a combination of training images, correct edge images, and correct geometric parameters. FIG. 2 is a diagram showing an example of training data 1000 (1000-1, 1000-2, ..., 1000-n) used in the first embodiment of the present disclosure. As shown in FIG. 2, each of the training data 1000 (1000-1, 1000-2, ..., 1000-n) is training data that is a set of a combination of a training image 1100, a correct edge image 1200, and a correct geometric parameter 1300. Multiple sets of the training data 1000 (1000-1, 1000-2, ..., 1000-n) are prepared in advance and stored, for example, in a training database. When the training database is included in the training device 10, the training database is configured by a storage unit (not shown) of the training device 10. The correct edge image 1200 is an image that indicates the correct edge in the training image 1100, for example, an image in which an edge is indicated by 255 and a non-edge is indicated by 0. The correct geometric parameters 1300 are parameters related to the shape of the correct edge, for example, parameters expressed by coefficients of a mathematical formula that represents the shape of the correct edge. The coefficients include constants for constant terms. In other words, the training data acquisition unit 100 acquires training data 1000 (1000-1, 1000-2, ..., 1000-n) that is a combination of the training image 1100, the correct edge image 1200 that indicates the correct edge of the training image, and the correct geometric parameters 1300 related to the shape of the correct edge.

[0013] The correct geometry parameters 1300 are expressed in the form of vector data, for example, with each coefficient of a mathematical formula representing the shape of the correct edge as an element. When the correct edge is a two-dimensional geometric shape, the correct geometry parameters 1300 are parameters (coefficients in the mathematical formula) constituting the mathematical formula representing the two-dimensional geometric shape.

[0014] When the correct edge has a straight line shape, the correct geometric parameters 1300 are parameters (coefficients in the formula) constituting the formula representing the line. More specifically, the correct geometric parameters 1300 are expressed in the form of vector data with a vector size of "3" and whose elements are the coefficients (a, b, c) in the formula (1) representing the line. ax+by+c=0 ... (1)

[0015] When the correct edge is elliptical (or circular), the correct geometric parameters 1300 are parameters (coefficients in the formula) that constitute the formula representing the ellipse (or circle). More specifically, the correct geometric parameters 1300 are expressed in the form of vector data with a vector size of "4" and whose elements are the coefficients (a, b, v, w) in the formula (formula (2)) that represents the ellipse (or circle). {(x-v) 2} / (a 2 ) + {(y-w) 2} / (b 2 ) = 1 ... (2)

[0016] When the correct edge has a quadratic curve shape, the correct geometric parameters 1300 are parameters (coefficients in the formula) constituting the formula representing the quadratic curve. More specifically, the correct geometric parameters 1300 are expressed in the form of vector data with a vector size of "6" and whose elements are the coefficients (a, b, c, d, e, f) in the formula (formula (3)) representing the quadratic curve. ax 2 +bxy+cy 2 +dx+ey+f=0...(3)

[0017] In this way, the vector size of the correct geometric parameters 1300 varies depending on the shape of the correct edge. Naturally, the estimated geometric parameters estimated using a trained edge estimation model that has been trained using such a correct edge image and the correct geometric parameters 1300 will have different vector sizes, just like the correct geometric parameters 1300.

[0018] Note that the curve shape is not limited to quadratic curves, and based on the same concept, it is possible to naturally include curve shapes such as cubic curves, quartic curves, ..., and n-th degree curves (n is an integer greater than or equal to 2). In this case, the correct geometric parameters are the coefficients of the mathematical equations representing the cubic curves, quartic curves, ..., and n-th degree curves. Naturally, the estimated geometric parameters estimated using a trained edge estimation model trained using correct geometric parameters indicating the coefficients of the mathematical equations representing the cubic curves, quartic curves, ..., and n-th degree curves are parameters indicating the coefficients of the mathematical equations representing the cubic curves, quartic curves, ..., and n-th degree curves.

[0019] The vector size of vector data indicating the parameters described above is smaller for simpler shapes such as straight lines, and larger for more complex shapes such as ellipses, quadratic curves, cubic curves, quartic curves, ..., n-th order curves.

[0020] When an image is input, the edge estimation unit 200 estimates edges in the image and outputs an estimated edge image. The edge estimation unit 200 also estimates geometric parameters related to the shape of the edge shown in the estimated edge image and outputs the estimated geometric parameters. The edge estimation unit 200 is configured with a neural network, and when a training image is input to the neural network, it outputs an estimated edge image showing the estimated edge of the training image and estimated geometric parameters related to the shape of the estimated edge. The edge shape whose estimation accuracy is improved by the edge estimation unit 200 after learning through the learning process of the present disclosure is a geometric pattern consisting of a two-dimensional geometric shape that can be expressed by a mathematical formula. Examples of two-dimensional geometric shapes include a linear shape, an elliptical shape, a circular shape, and a quadratic curve shape.

[0021] The cost calculation unit 300 calculates a cost by comparing the estimation result by the edge estimation unit 200 with the correct data indicated in the learning data. The cost calculation unit 300 calculates a cost for evaluating the estimation accuracy by the edge estimation unit 200 using the correct edge image, correct geometric parameters, estimated edge image, and estimated geometric parameters. The cost calculation unit 300, for example, calculates a cost for evaluating the estimation accuracy of the edge image using the estimated edge image and correct edge image, and also calculates a cost for evaluating the estimation accuracy of the geometric parameters using the estimated geometric parameters and correct geometric parameters.

[0022] The model parameter update unit 400 uses the cost calculated by the cost calculation unit 300 to update the model parameters of the neural network that constitutes the edge estimation unit 200. The model parameter update unit 400 optimizes the model parameters so as to reduce the cost using a known method such as backpropagation or stochastic gradient descent (SGD). The model parameter update unit 400 stores the updated model parameters so that they can be used by the edge estimation unit 200 that performs image segmentation processing.

[0023] In addition to the above configuration, the learning device 10 may also be configured to include a control unit (not shown) and a storage unit (not shown). The control unit (not shown) controls the entire learning device 10. The control unit (not shown) controls, for example, the startup and shutdown of the learning device 10. The control unit (not shown) also determines and issues commands to start a learning process or a normal segmentation process, for example. The storage unit (not shown) stores various data used in the learning device 10. The storage unit (not shown) stores, for example, learning data, model parameters, estimated edge images, and estimated geometric parameters.

[0024] This section will explain the processing of the learning device 10. Fig. 3 is a flowchart showing an example of processing by the configuration according to the first embodiment of the present disclosure. When the learning device 10 starts the learning processing, it starts a learning loop processing (step ST100).

[0025] When the learning device 10 starts the learning loop process, it determines whether learning data can be acquired (step ST110).

[0026] If the learning device 10 determines that learning data cannot be acquired ("NO" in step ST110), the learning device 10 ends the process without executing the subsequent learning loop process.

[0027] When the learning device 10 determines that it is possible to acquire learning data ("YES" in step ST110), it executes a learning data acquisition process (step ST120). In the learning data acquisition process, the learning data acquisition unit 100 of the learning device 10 acquires learning data, which is a combination of a learning image, a correct edge image, and a correct geometric parameter. The learning data acquisition unit 100 acquires, for example, one set of learning data at a time, randomly or in order of identification number, from the learning data stored in a storage unit (not shown).

[0028] The learning device 10 executes edge estimation processing (step ST130). In the edge estimation processing, when a training image is input, the edge estimation unit 200 of the learning device 10 first acquires model parameters (model parameters of the edge estimation model) to be used in the neural network from a storage unit (not shown). The edge estimation unit 200 then estimates edges in the input training image through a neural network (deep neural network) according to the model parameters, and outputs an estimated edge image. The edge estimation unit 200 further estimates geometric parameters related to the shape of the estimated edge shown in the estimated edge image through the neural network (deep neural network) according to the model parameters, and outputs the estimated geometric parameters. Note that the initial values ​​of each model parameter may be randomly determined values.

[0029] The learning device 10 executes a cost calculation process (step ST140). In the cost calculation process, the cost calculation unit 300 of the learning device 10 calculates a cost by comparing the estimation result by the edge estimation unit 200 with the correct data indicated in the learning data. Specifically, the cost calculation unit 300 calculates a cost for evaluating the estimation accuracy by the edge estimation unit 200 using the correct edge image, correct geometric parameters, estimated edge image, and estimated geometric parameters.

[0030] The learning device 10 executes a model parameter update process (step ST150). In the model parameter update process, the model parameter update unit 400 in the learning device 10 updates the model parameters of the neural network in the edge estimation unit 200 using the costs calculated by the cost calculation unit 300. The model parameter update unit 400 stores each of the updated model parameters in, for example, a storage unit (not shown).

[0031] After executing the model parameter update process, the learning device 10 ends one learning loop process (step ST160) and starts the next learning loop process (step ST100). The learning device 10 repeats the learning process for all sets of training data to acquire model parameters for edge estimation specialized for estimating edges of geometric shapes. While the explanation has been given for learning using one set of training data at a time (online learning), mini-batch learning or batch learning, in which multiple sets are processed at once, may also be used.

[0032] The effects of the configuration of the present disclosure will be described. FIG. 4 is a diagram for explaining the effects of the present disclosure. FIG. 4A is a diagram illustrating an image segmentation when learning using the configuration of the present disclosure has not been performed. FIG. 4B is a diagram illustrating an image segmentation after learning using the configuration of the present disclosure has been performed. As shown in FIG. 4A, an edge estimation unit 2120 that has not been trained using the configuration of the present disclosure may output an estimated edge image 2130 in which the edge estimated from the input processing target image 2100 is distorted into a zigzag shape. In contrast, an edge estimation unit 200 that has been trained using the configuration of the present disclosure outputs an estimated edge image 2200 in which the edge estimated from the input processing target image 2100 shows an original linear shape, and geometric parameters 2210 related to the linear shape of the estimated edge, as shown in FIG. 4B. In this way, the present disclosure is configured to estimate parameters of the geometric pattern of the segmentation target, and since the estimation model acquires geometric pattern information during learning, it estimates something close to the geometric pattern, resulting in improved segmentation accuracy compared to when no geometric pattern is estimated.

[0033] The learning device of the present disclosure is configured as follows: "A learning device comprising: a learning data acquisition unit that acquires learning data that is a combination of a learning image, a correct edge image that indicates a correct edge of the learning image, and correct geometric parameters related to the shape of the correct edge; an edge estimation unit that is configured with a neural network and that outputs an estimated edge image that indicates an estimated edge of the learning image and estimated geometric parameters related to the shape of the estimated edge when the learning image is input to the neural network; a cost calculation unit that calculates a cost for evaluating the estimation accuracy by the edge estimation unit using the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters; and a model parameter update unit that updates model parameters of the neural network using the cost calculated by the cost calculation unit." This makes it possible to provide a learning device that improves the estimation accuracy of image segmentation.

[0034] The learning method of the present disclosure is configured as follows: "A learning method comprising: a learning data acquisition step in which a learning data acquisition unit acquires learning data that is a combination of a learning image, a correct edge image indicating a correct edge of the learning image, and correct geometric parameters related to the shape of the correct edge; an edge estimation step in which an edge estimation unit formed by a neural network outputs an estimated edge image indicating an estimated edge of the learning image and estimated geometric parameters related to the shape of the estimated edge by inputting the learning image to the neural network; a cost calculation step in which a cost calculation unit calculates a cost for evaluating the estimation accuracy by the edge estimation unit using the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters; and a model parameter update step in which a model parameter update unit updates model parameters in the neural network using the cost calculated by the cost calculation unit." This has the effect of providing a learning method that improves the estimation accuracy of image segmentation.

[0035] The learning device of the present disclosure is further configured as follows: "The ground truth geometric parameters are coefficients in a mathematical formula representing a two-dimensional geometric shape." This provides an advantage of providing a learning device that improves the estimation accuracy of image segmentation when the segmentation target in an image is a two-dimensional geometric shape. Furthermore, the present disclosure provides the same advantage as the above by applying the above configuration to the above learning method.

[0036] The learning device of the present disclosure is further configured as follows: "The correct geometric parameters are coefficients in a mathematical formula representing a straight line." This provides an advantage of providing a learning device that improves the estimation accuracy of image segmentation when the segmentation target in an image has a straight line shape. Furthermore, the present disclosure provides the same advantage as the above by applying the above configuration to the above learning method.

[0037] The learning device of the present disclosure is further configured as follows: "The correct geometric parameters are coefficients in a mathematical formula representing a circle." This provides an advantage of providing a learning device that improves the estimation accuracy of image segmentation when the segmentation target in an image has a circular shape. Furthermore, the present disclosure provides the same advantage as the above by applying the above configuration to the above learning method.

[0038] The learning device of the present disclosure is further configured as follows: "The correct geometric parameters are coefficients in a mathematical formula representing an ellipse." This provides an advantage of providing a learning device that improves the estimation accuracy of image segmentation when the segmentation target in an image has an elliptical shape. Furthermore, the present disclosure provides the same advantage as the above by applying the above configuration to the above learning method.

[0039] The learning device of the present disclosure is further configured as follows: "The correct geometric parameters are coefficients in a mathematical formula representing an n-th degree curve (n≧2)." This provides an advantage of providing a learning device that improves the estimation accuracy of image segmentation when the segmentation target in an image is an n-th degree curve shape (n≧2), such as a quadratic curve shape, a cubic curve shape, a quartic curve shape, etc. Furthermore, the present disclosure provides the same advantage as the above by applying the above configuration to the above learning method.

[0040] Second Embodiment In a second embodiment, an example of a detailed configuration of a learning device will be described.

[0041] 5 is a diagram illustrating an example of a configuration according to the second embodiment of the present disclosure. A learning device 10A illustrated in FIG. 5 includes a learning data acquisition unit 100A, an edge estimation unit 200A, a cost calculation unit 300A, and a model parameter update unit 400A.

[0042] The training data acquisition unit 100A acquires training data. The training data acquisition unit 100A acquires training data that is a combination of a training image, a correct edge image, and correct geometric parameters. Specifically, the training data acquisition unit 100A acquires training data that is a combination of a training image, a correct edge image that indicates a correct edge of the training image, and correct geometric parameters related to the shape of the correct edge.

[0043] Specific examples of the learning image, the correct edge image, and the correct geometric parameters have already been described using FIG. 2, so further description will be omitted here.

[0044] The training data acquisition unit 100A includes an image selection unit 110, an edge image selection unit 120, and a geometric parameter selection unit 130. The image selection unit 110 selects and acquires training images. Specifically, the image selection unit 110 selects training images from a plurality of training data sets in turn. The edge image selection unit 120 selects and acquires correct edge images. Specifically, the edge image selection unit 120 selects correct edge images combined with training images from a plurality of training data sets in turn. The geometric parameter selection unit 130 selects and acquires correct geometric parameters. Specifically, the geometric parameter selection unit 130 selects correct geometric parameters combined with training images and correct edge images from a plurality of training data sets in turn.

[0045] When an image is input, the edge estimation unit 200A estimates edges in the image and outputs an estimated edge image. The edge estimation unit 200A also estimates geometric parameters related to the shape of the edge shown in the estimated edge image and outputs the estimated geometric parameters. As already described, the edge shape whose estimation accuracy is improved by the edge estimation unit 200A after learning through the learning process of the present disclosure is a geometric pattern consisting of a two-dimensional geometric shape that can be expressed by a mathematical formula. Examples of two-dimensional geometric shapes include a linear shape, an elliptical shape, a circular shape, and a quadratic curve shape. The edge estimation unit 200A is configured with a neural network and outputs an estimated edge image when a target image for image segmentation processing is input to the neural network. When the learning device 10A performs the learning process, the edge estimation unit 200A configured with a neural network inputs a learning image to the neural network and outputs an estimated edge image showing estimated edges of the learning image and estimated geometric parameters related to the shape of the estimated edge. Specifically, the edge estimation unit 200A uses, as the neural network, a deep neural network (DNN) according to model parameters learned through a learning process.

[0046] An example of a specific configuration of the edge estimation unit 200A will be described. The edge estimation unit 200A includes an edge image estimation layer 210 and a geometric parameter estimation layer 220. The edge image estimation layer 210 is configured as a neural network, and when a training image is input to the neural network, it outputs an estimated edge image indicating the estimated edges of the training image. Specifically, the edge image estimation layer 210 is configured to estimate an edge image from an input image and output the estimated edge image. Specifically, the edge image estimation layer 210 is a deep neural network using a common technique such as DexiNed, RCF, BDCN, or CATS. The estimated edge image, which is the estimation result of the edge image estimation layer 210, is an image with the same width and height as the input image (target image or training image) and the same resolution, and has an edge probability (a value between 0 and 1) for each pixel value. However, the image is not limited to this and may be an image with a size different from the size of the input image or a configuration with different pixel values. The geometric parameter estimation layer 220 is configured by a neural network, and when the estimated edge image is input to the neural network, it outputs estimated geometric parameters related to the shape of the estimated edge shown in the estimated edge image.

[0047] FIG. 6 is a diagram illustrating an example of the internal configuration of the geometric parameter estimation layer 220 in the configuration according to the second embodiment of the present disclosure. The geometric parameter estimation layer 220 utilizes a deep neural network. As shown in FIG. 6 , the geometric parameter estimation layer 220 includes, for example, a convolutional neural network (CNN) layer 221, a normalization layer 222, an activation layer 223, a pooling layer 224, and a fully connected layer 225. The geometric parameter estimation layer 220 is configured by any combination of the CNN layer 221, the normalization layer 222, the activation layer 223, the pooling layer 224, and the fully connected layer 225. Specifically, the geometric parameter estimation layer 220 outputs, for example, a vector whose elements are estimated geometric parameters.

[0048] The cost calculation unit 300A calculates a cost by comparing the estimation result by the edge estimation unit 200A with the correct data indicated in the learning data. The cost calculation unit 300A calculates a cost for evaluating the estimation accuracy by the edge estimation unit 200A using the correct edge image, correct geometric parameters, estimated edge image, and estimated geometric parameters. The cost calculated by the cost calculation unit 300A is a cost used in the learning process of the learning device 10A. The cost calculated by the cost calculation unit 300A is, for example, the cost L_e(I) and the cost L_g(P) expressed in the cost function L(I, P) of the following equation (4): L(I, P) = L_e(I) + λ_gL_g(P), L_g(P) = |P - P l | 2 ...(4)

[0049] The cost L_e(I) is a cost for evaluating the estimation accuracy of the estimated edge image I (hereinafter, also referred to as the "first cost"). The first cost L_e(I) is a cost for training the edge image estimation layer 210. The first cost L_e(I) is a cost for evaluating the estimation accuracy of the correct edge image I. l The cost may be any cost that allows the estimation accuracy of the estimated edge image I to be evaluated from the difference between the estimated edge image I and the estimated edge image I, and the method for calculating the cost is not limited to a specific method.

[0050] The cost L_g(P) is a cost for evaluating the estimation accuracy of the estimated geometric parameters (hereinafter also referred to as the "second cost"). The second cost L_g(P) is a cost for training the geometric parameter estimation layer 220. In equation (4), the cost L_g(P) is calculated based on the correct geometric parameters P l and the estimated geometric parameter P.

[0051] The weight λ_g is a weight for adjusting (balancing) the balance between the first cost L_e(I) and the second cost L_g(P).

[0052] An example of a specific configuration of the cost calculation unit 300A will be described. The cost calculation unit 300A is configured to include a first cost calculation unit 310, a second cost calculation unit 320, and a synthesis cost calculation unit 330. The first cost calculation unit 310 calculates a first cost L_e(I) for evaluating the estimation accuracy of the edge image estimation layer 210 using the ground truth edge image and the estimated edge image. The second cost calculation unit 320 calculates a second cost L_g(P) (=|P - P) for evaluating the estimation accuracy of the geometric parameter estimation layer 220 using the ground truth geometric parameters and the estimated geometric parameters. l | 2 The combined cost calculation unit 330 calculates a cost obtained by combining the first cost L_e(I) and the second cost L_g(P). The combined cost calculation unit 330 calculates the combined cost L(I,P) as the sum of the value of the first cost L_e(I) and the value of the second cost L_g(P) multiplied by the weight λ_g.

[0053] The model parameter updating unit 400A updates and outputs the model parameters of the neural network in the edge estimation unit 200A using the cost calculated by the cost calculation unit 300A (see Equation (4)). When the learning device 10A is included as part of an image segmentation device, the model parameter updating unit 400A may be configured to directly update the model parameters of the neural network in the edge estimation unit 200A using the cost calculated by the cost calculation unit 300A. The model parameter updating unit 400A optimizes and updates the model parameters of the neural network so as to reduce the cost calculated by the cost calculation unit 300A. Specifically, the model parameter updating unit 400A calculates the model parameters so as to reduce the cost (see Equation (4)) using a known method such as backpropagation or stochastic gradient descent (SGD), and optimizes and updates the model parameters of the neural network. The model parameter updating unit 400A stores the optimized model parameters, for example, in a storage unit (not shown) described below. Note that if the learning device 10A and the image segmentation device are configured as separate devices, the model parameter updating unit 400B may store the updated model parameters in a storage unit (not shown) of the image segmentation device. In this case, the model parameters of the neural network in the edge estimation unit of the image segmentation device are updated using the following procedure: the learning device inputs training images to the neural network of the edge estimation unit using training data that is a combination of training images, correct edge images that indicate correct edges of the training images, and correct geometric parameters related to the shapes of the correct edges; the learning device outputs estimated edge images that indicate estimated edges of the training images and estimated geometric parameters related to the shapes of the estimated edges; the correct edge images, correct geometric parameters, estimated edge images, and estimated geometric parameters are used to calculate costs for evaluating the estimation accuracy of the edge estimation unit; and the calculated costs are used to update the model parameters of the neural network in the edge estimation unit.

[0054] In addition to the above configuration, the learning device 10A may be configured to include a control unit (not shown) and a storage unit (not shown). The control unit (not shown) controls the entire learning device 10A. The control unit (not shown) controls, for example, the startup and shutdown of the learning device 10A. The control unit (not shown) also determines and issues commands to start a learning process or a normal segmentation process, for example. The storage unit (not shown) stores various data used in the learning device 10A. The storage unit (not shown) stores, for example, learning data, model parameters, estimated edge images, and estimated geometric parameters.

[0055] The processing of the learning device 10A according to the second embodiment overlaps with the processing shown in Fig. 3, which has already been described, and therefore the overlapping description will be omitted. Here, a detailed example of the learning data acquisition processing, a detailed example of the edge estimation processing, and a detailed example of the cost calculation processing will be described.

[0056] First, a detailed example of the training data acquisition process will be described. FIG. 7 is a flowchart showing a detailed example of the training data acquisition process in a configuration according to the second embodiment of the present disclosure. When the training data acquisition unit 100A starts the training data acquisition process, it first executes a training image selection process (step ST121). In the training image selection process, the image selection unit 110 of the training data acquisition unit 100A references a storage unit (not shown) and selects training images from a plurality of sets of training data in order. The training data acquisition unit 100A then executes a correct edge image selection process (step ST122). In the correct edge image selection process, the edge image selection unit 120 of the training data acquisition unit 100A references a storage unit (not shown) and selects correct edge images combined with the training images in order, one set at a time, from a plurality of training data. The training data acquisition unit 100A then executes a correct geometric parameter selection process (step ST123). In the correct geometric parameter selection process, the geometric parameter selection unit 130 of the training data acquisition unit 100A refers to a storage unit (not shown) and selects correct geometric parameters combined with a training image and a correct edge image from among the multiple training data sets in order. The training data acquisition unit 100A outputs the training images to the edge estimation unit 200A, and outputs the correct edge image and correct geometric parameters to the cost calculation unit 300A, thereby completing the training data acquisition process for one set of training data.

[0057] Next, a detailed example of the edge estimation process will be described. FIG. 8 is a flowchart showing a detailed example of the edge estimation process in the configuration according to the second embodiment of the present disclosure. When the edge estimation unit 200A starts the edge estimation process, it first executes an edge image estimation process (step ST131). In the edge image estimation process, the edge image estimation layer 210 of the edge estimation unit 200A receives a training image as input to the neural network constituting the edge image estimation layer 210, and outputs an estimated edge image indicating the estimated edge of the training image. The edge estimation unit 200A then executes a geometric parameter estimation process (step ST132). In the geometric parameter estimation process, the geometric parameter estimation layer 220 of the edge estimation unit 200A receives an estimated edge image as input to the neural network constituting the geometric parameter estimation layer 220, and outputs estimated geometric parameters related to the shape of the estimated edge indicated in the estimated edge image. After outputting the estimated edge image and estimated geometric parameters to the cost calculation unit 300A, the edge estimation unit 200A ends the edge estimation process.

[0058] Next, a detailed example of the cost calculation process will be described. FIG. 9 is a flowchart showing a detailed example of the cost calculation process in the configuration according to the second embodiment of the present disclosure. When the cost calculation process starts, the cost calculation unit 300A first executes a first cost calculation process (step ST141). In the first cost calculation process, the first cost calculation unit 310 in the cost calculation unit 300A uses the ground truth edge image and the estimated edge image to calculate a first cost L_e(I) for evaluating the estimation accuracy of the edge image estimation layer 210. The cost calculation unit 300A then executes a second cost calculation process (step ST142). In the second cost calculation process, the second cost calculation unit 320 in the cost calculation unit 300A uses the ground truth geometric parameters and the estimated geometric parameters to calculate a second cost L_g(P) (=|P - P l | 2) The cost calculation unit 300A then executes a combined cost calculation process (step ST143). In the combined cost calculation process, the combined cost calculation unit 330 of the cost calculation unit 300A calculates a cost obtained by combining the first cost L_e(I) and the second cost L_g(P). Specifically, the combined cost calculation unit 330 calculates the combined cost L(I,P) as the sum of the value of the first cost L_e(I) and the value of the second cost L_g(P) multiplied by the weight λ_g. The cost calculation unit 300A outputs the combined cost L(I,P) including the first cost L_e(I), the second cost L_g(P), and the weight λ_g to the model parameter update unit 400A, and then ends the cost calculation process.

[0059] The edge estimation unit 200A after learning using the configuration of the present disclosure outputs, as already described in FIG. 4B , an estimated edge image 2200 indicating the original shape (a geometric shape such as a straight line, an ellipse, a circle, or a quadratic curve) of the edge estimated from the input processing target image 2100, and geometric parameters 2210 relating to the shape of the estimated edge.

[0060] The learning device of the present disclosure is further configured as follows: "The edge estimation unit includes: an edge image estimation layer configured with a neural network that outputs an estimated edge image showing the estimated edge of the learning image when the learning image is input to the neural network; and a geometric parameter estimation layer configured with a neural network that outputs estimated geometric parameters related to the shape of the estimated edge shown in the estimated edge image when the estimated edge image is input to the neural network." This provides an effect of providing a learning device that improves the estimation accuracy of image segmentation by adding a new geometric parameter estimation layer that outputs estimated geometric parameters to the edge image estimation layer that outputs an estimated edge image. Furthermore, the present disclosure provides the same effect as the above by applying the above configuration to the above learning method.

[0061] The learning device of the present disclosure is further configured as follows: "The cost calculation unit is characterized by comprising: a first cost calculation unit that calculates a first cost for evaluating the estimation accuracy of the edge image estimation layer using the ground truth edge image and the estimated edge image; a second cost calculation unit that calculates a second cost for evaluating the estimation accuracy of the geometry parameter estimation layer using the ground truth geometric parameters and the estimated geometry parameters; and a combined cost calculation unit that calculates a cost obtained by combining the first cost and the second cost." This provides an effect of providing a learning device that improves the estimation accuracy of image segmentation by updating model parameters of a neural network in consideration of the evaluation of the estimation accuracy of the edge image estimation layer and the evaluation of the estimation accuracy of the geometry parameter estimation layer. Furthermore, the present disclosure provides the same effect as the above by applying the above configuration to the above learning method.

[0062] Embodiment 3. In Embodiment 3, a form applied to an image segmentation device will be described. The image segmentation device according to Embodiment 3 is an image segmentation device that has model parameters optimized by a learning process by the learning device 10 of Embodiment 1 or the learning device 10A of Embodiment 2 and performs image segmentation using the model parameters, or an image segmentation device that includes the learning device 10 of Embodiment 1 or the learning device 10A of Embodiment 2. That is, the image segmentation device according to Embodiment 3 performs image segmentation using an edge estimation model optimized by the learning device 10 of Embodiment 1 or the learning device 10A of Embodiment 2. In this case, the model parameters of the neural network in the edge estimation unit of the image segmentation device are updated using the following: a learning device inputs training images to the neural network of the edge estimation unit using training data that is a combination of training images, a correct edge image that indicates the correct edge of the training image, and correct geometric parameters related to the shape of the correct edge, outputs an estimated edge image that indicates the estimated edge of the training image and estimated geometric parameters related to the shape of the estimated edge, calculates a cost for evaluating the estimation accuracy by the edge estimation unit using the correct edge image, correct geometric parameters, estimated edge image, and estimated geometric parameters, and updates the model parameters of the neural network in the edge estimation unit of the image segmentation device. An image segmentation device according to the third embodiment will be described using an image segmentation device that includes the learning device 10A of the second embodiment.

[0063] 10 is a diagram illustrating an example of a configuration according to the third embodiment of the present disclosure. The image segmentation device 20 illustrated in FIG. 10 includes a learning data acquisition unit 100B, an edge estimation unit 200B, a cost calculation unit 300B, a model parameter update unit 400B, an image acquisition unit 500, and an estimation result output unit 600.

[0064] The training data acquisition unit 100B acquires training data in the same manner as the training data acquisition unit 100A described above. The training data acquisition unit 100B acquires training data that is a combination of a training image, a correct edge image, and correct geometric parameters.

[0065] The training data is training data that is a set of a combination of a training image, a correct edge image, and correct geometric parameters, similar to the training data already described with reference to FIG. 2. A plurality of sets of training data are prepared in advance and stored, for example, in a training database. When the training database is included in the image segmentation device 20, the training database is configured by a storage unit (not shown) of the image segmentation device 20. The correct edge image is an image that indicates the correct edge in the training image, for example, an image in which an edge is indicated by 255 and a non-edge is indicated by 0. The correct geometric parameters are parameters related to the shape of the correct edge, for example, parameters expressed by the coefficients of a mathematical formula that represents the shape of the correct edge. The coefficients include constants for constant terms.

[0066] That is, the learning data acquisition unit 100B acquires learning data that is a combination of a learning image, a correct edge image showing the correct edge of the learning image, and correct geometric parameters related to the shape of the correct edge.

[0067] The correct geometry parameters 1300 are expressed in the form of vector data whose elements are the coefficients of a mathematical formula representing the shape of the correct edge. When the correct edge is a two-dimensional geometric shape, the correct geometry parameters 1300 are parameters (coefficients in the mathematical formula) constituting the mathematical formula representing the two-dimensional geometric shape.

[0068] When the correct edge has a straight line shape, the correct geometric parameters 1300 are parameters (coefficients in the formula) constituting a mathematical formula representing the line. More specifically, the correct geometric parameters 1300 are expressed in the form of vector data with a vector size of "3" and whose elements are the coefficients (a, b, c) in the mathematical formula representing the line (the formula (1) already explained).

[0069] When the correct edge is elliptical (or circular), the correct geometric parameters 1300 are parameters (coefficients in the formula) constituting a formula representing an ellipse (or a circle). More specifically, the correct geometric parameters 1300 are expressed in the form of vector data with a vector size of "4" and whose elements are the coefficients (a, b, v, w) in the formula (formula (2)) representing an ellipse (or a circle).

[0070] When the correct edge has a quadratic curve shape, the correct geometric parameters 1300 are parameters (coefficients in the formula) constituting the formula representing the quadratic curve. More specifically, the correct geometric parameters 1300 are expressed in the form of vector data with a vector size of "6" whose elements are the coefficients (a, b, c, d, e, f) in the formula representing the quadratic curve (the formula (3) already explained).

[0071] In this way, the vector size of the correct geometric parameters varies depending on the shape of the correct edge. Naturally, the estimated geometric parameters estimated using the trained edge estimation model trained using such a correct edge image and the correct geometric parameters will have different vector sizes, just like the correct geometric parameters.

[0072] Like the training data acquisition unit 100A already described, the training data acquisition unit 100B includes an image selection unit 110, an edge image selection unit 120, and a geometric parameter selection unit 130. The image selection unit 110 selects and acquires training images. Specifically, the image selection unit 110 selects training images from a plurality of sets of training data in turn. The edge image selection unit 120 selects and acquires correct edge images. Specifically, the edge image selection unit 120 selects correct edge images combined with training images from a plurality of sets of training data in turn. The geometric parameter selection unit 130 selects and acquires correct geometric parameters. Specifically, the geometric parameter selection unit 130 selects correct geometric parameters combined with training images and correct edge images from a plurality of sets of training data in turn.

[0073] When an image is input, the edge estimation unit 200B estimates edges in the image and outputs an estimated edge image. The edge estimation unit 200B also estimates geometric parameters related to the shape of the edge shown in the estimated edge image and outputs the estimated geometric parameters. The edge shape is a geometric pattern consisting of two-dimensional geometric shapes that can be expressed by a mathematical formula. The edge estimation unit 200B is configured with a neural network and outputs an estimated edge image when the target image is input to the neural network. When the image segmentation device 20 performs a learning process, the edge estimation unit 200B inputs a learning image to the neural network and outputs an estimated edge image showing the estimated edges of the learning image and estimated geometric parameters related to the shape of the estimated edge. Specifically, the edge estimation unit 200B uses a deep neural network (DNN) as the neural network in accordance with model parameters after learning by the learning process of the image segmentation device 20.

[0074] An example of a specific configuration of the edge estimation unit 200B will be described. The edge estimation unit 200B includes an edge image estimation layer 210B and a geometric parameter estimation layer 220.

[0075] The edge image estimation layer 210B is configured with a neural network, and when a training image is input to the neural network, it outputs an estimated edge image indicating the estimated edges of the training image. Specifically, the edge image estimation layer 210B may be configured to estimate an edge image from an input image and output the estimated edge image. Specifically, the edge image estimation layer 210B may be a deep neural network using common techniques such as DexiNed, RCF, BDCN, and CATS. The estimated edge image, which is the estimation result of the edge image estimation layer 210B, is an image with the same width and height and resolution as the input image (target image or training image), and has an edge probability (a value between 0 and 1) for each pixel value. However, the present invention is not limited to this, and the estimated edge image may be an image with a size different from that of the input image or with pixel values ​​having different meanings.

[0076] The geometric parameter estimation layer 220 is configured by a neural network, and when an estimated edge image is input to the neural network, it outputs estimated geometric parameters related to the shape of the estimated edge shown in the estimated edge image. Similar to the geometric parameter estimation layer 220 already described, the geometric parameter estimation layer 220 is configured to include, for example, a CNN layer 221, a normalization layer 222, an activation layer 223, a pooling layer 224, and a fully connected layer 225. The geometric parameter estimation layer 220 is configured by any combination of the CNN layer 221, the normalization layer 222, the activation layer 223, the pooling layer 224, and the fully connected layer 225. Specifically, the geometric parameter estimation layer 220 outputs, for example, a vector whose elements are estimated geometric parameters.

[0077] The cost calculation unit 300B calculates a cost by comparing the estimation result by the edge estimation unit 200B with the correct data indicated in the training data. The cost calculation unit 300B calculates a cost for evaluating the estimation accuracy by the edge estimation unit 200B using the correct edge image, correct geometric parameters, estimated edge image, and estimated geometric parameters. The cost calculated by the cost calculation unit 300B is a cost used in the training process of the image segmentation device 20. The cost calculated by the cost calculation unit 300B is, for example, the cost L_e(I) and the cost L_g(P) expressed in the cost function L(I, P) of the already explained equation (4). The equation (4), the first cost L_e(I), the second cost L_g(P), and the weight λ_g overlap with the contents already explained, and therefore will not be described here.

[0078] An example of a specific configuration of the cost calculation unit 300B will be described. Similar to the cost calculation unit 300A already described, the cost calculation unit 300B includes a first cost calculation unit 310, a second cost calculation unit 320, and a synthesis cost calculation unit 330. The first cost calculation unit 310 uses the ground truth edge image and the estimated edge image to calculate a first cost L_e(I) for evaluating the estimation accuracy of the edge image estimation layer 210. The second cost calculation unit 320 uses the ground truth geometric parameters and the estimated geometric parameters to calculate a second cost L_g(P) (=|P - P l | 2 The combined cost calculation unit 330 calculates a combined cost of the first cost L_e(I) and the second cost L_g(P). The combined cost calculation unit 330 calculates the combined cost L(I,P) as the sum of the value of the first cost L_e(I) and the value of the second cost L_g(P) multiplied by the weight λ_g.

[0079] The model parameter update unit 400B uses the cost calculated by the cost calculation unit 300B (see equation (4)) to update and output the model parameters of the neural network in the edge estimation unit 200B. When the image segmentation device 20 is configured to include the learning devices 10, 10A (as configured as shown in FIG. 11 ), the model parameter update unit 400B uses the cost calculated by the cost calculation unit 300B to update the model parameters in the neural network of the edge estimation unit 200B. The model parameter update unit 400B optimizes and outputs the model parameters in the neural network so as to reduce the cost calculated by the cost calculation unit 300B (see equation (4)). Specifically, the model parameter update unit 400B calculates model parameters using a known method such as backpropagation or stochastic gradient descent (SGD) to reduce the cost (see Equation (4)), and optimizes the model parameters in the neural network. The model parameter update unit 400B stores the optimized model parameters in, for example, a storage unit (not shown) described below.

[0080] When the image segmentation device 20 executes normal segmentation processing rather than learning processing, the image acquisition unit 500 acquires a target image that is the processing target of the normal segmentation processing.

[0081] When the image segmentation device 20 executes a normal segmentation process rather than a learning process, the estimation result output unit 600 outputs the estimated edge image output by the edge estimation unit 200B.

[0082] In addition to the above configuration, the image segmentation device 20 may also be configured to include a control unit (not shown) and a storage unit (not shown). The control unit (not shown) controls the entire image segmentation device 20. The control unit (not shown) controls, for example, the startup and shutdown of the image segmentation device 20. The control unit (not shown) also determines and commands, for example, the start of a learning process or the start of a normal segmentation process. The storage unit (not shown) stores various data used in the image segmentation device 20. The storage unit (not shown) stores, for example, learning data, model parameters, estimated edge images, and estimated geometric parameters.

[0083] A description will be given of processing by the image segmentation device 20 according to embodiment 3. Fig. 11 is a flowchart showing an example of processing by the configuration according to embodiment 3 of the present disclosure.

[0084] The image segmentation device 20 is started, for example, upon receiving an external command. The image segmentation device 20 determines whether to execute a learning process (step ST200). Specifically, for example, when the image segmentation device 20 receives an external command to execute a learning process, a control unit (not shown) determines to execute the learning process (step ST200 "YES"). Furthermore, when the image segmentation device 20 does not receive an command to execute a learning process or when the image acquisition unit 500 acquires a target image, the image segmentation device 20 determines not to execute the learning process (step ST200 "NO").

[0085] When the image segmentation device 20 determines to execute the learning process ("YES" in step ST200), the image segmentation device 20 proceeds to the learning process (learning loop process as shown in steps ST210 to ST270).

[0086] When the learning loop process starts, the image segmentation device 20 determines whether learning data can be acquired (step ST220). The image segmentation device 20, for example, refers to a storage unit (not shown) to check whether learning data is available and the number of sets.

[0087] If the image segmentation device 20 determines that learning data cannot be acquired ("NO" in step ST220), it ends the process without executing the subsequent learning loop process.

[0088] When the image segmentation device 20 determines that it is possible to acquire training data ("YES" in step ST220), it executes a training data acquisition process (step ST230). In the training data acquisition process, the training data acquisition unit 100B of the image segmentation device 20 acquires training data that is a combination of training images, correct edge images, and correct geometric parameters. The training data acquisition unit 100B acquires training data, for example, one set at a time, randomly or in order of identification numbers, from the training data stored in a storage unit (not shown).

[0089] A detailed example of the training data acquisition process will be described with reference to FIG. 7 . When the training data acquisition unit 100B starts the training data acquisition process, it first executes a training image selection process (step ST121). In the training image selection process, the image selection unit 110 of the training data acquisition unit 100B references a storage unit (not shown) and selects training images from the plurality of training data sets in order, one by one. The training data acquisition unit 100B then executes a correct edge image selection process (step ST122). In the correct edge image selection process, the edge image selection unit 120 of the training data acquisition unit 100B references a storage unit (not shown) and selects correct edge images combined with the training images selected by the image selection unit 110 from the plurality of training data sets in order, one by one. The training data acquisition unit 100B then executes a correct geometric parameter selection process (step ST123). In the correct geometric parameter selection process, geometric parameter selection unit 130 of learning data acquisition unit 100B refers to a storage unit (not shown) and selects, for each set of learning data, correct geometric parameters combined with the learning image selected by image selection unit 110 and the correct edge image selected by edge image selection unit 120. Learning data acquisition unit 100B outputs the learning image to edge estimation unit 200B, and outputs the correct edge image and correct geometric parameters to cost calculation unit 300B, thereby completing the learning data acquisition process for one set of learning data.

[0090] Returning to the description of the process shown in FIG. 11 , the image segmentation device 20 executes edge estimation processing (step ST240). In the edge estimation processing, when a training image is input, the edge estimation unit 200B of the image segmentation device 20 first acquires model parameters (model parameters of an edge estimation model) to be used in the neural network from a storage unit (not shown). The edge estimation unit 200B then estimates edges in the input training image through a neural network (deep neural network) according to the model parameters, and outputs an estimated edge image. The edge estimation unit 200B further estimates geometric parameters related to the shape of the estimated edge shown in the estimated edge image through the neural network (deep neural network) according to the model parameters, and outputs the estimated geometric parameters. Note that the initial values ​​of each model parameter may be randomly determined values.

[0091] A detailed example of the edge estimation process will be described with reference to FIG. 8 . When the edge estimation unit 200B starts the edge estimation process, it first executes an edge image estimation process (step ST131). In the edge image estimation process, the edge image estimation layer 210B of the edge estimation unit 200B receives a training image as input to the neural network constituting the edge image estimation layer 210B, and outputs an estimated edge image showing the estimated edge of the training image. The edge estimation unit 200B then executes a geometric parameter estimation process (step ST132). In the geometric parameter estimation process, the geometric parameter estimation layer 220 of the edge estimation unit 200B receives the estimated edge image as input to the neural network constituting the geometric parameter estimation layer 220, and outputs estimated geometric parameters related to the shape of the estimated edge shown in the estimated edge image. The edge estimation unit 200B outputs the estimated edge image and estimated geometric parameters to the cost calculation unit 300B, and then terminates the edge estimation process.

[0092] Returning to the description of the process shown in Fig. 11, the image segmentation device 20 executes a cost calculation process (step ST250). In the cost calculation process, the cost calculation unit 300B of the image segmentation device 20 calculates a cost by comparing the estimation result by the edge estimation unit 200B with the correct data indicated in the learning data. Specifically, the cost calculation unit 300B uses the correct edge image, correct geometric parameters, estimated edge image, and estimated geometric parameters to calculate a cost for evaluating the estimation accuracy by the edge estimation unit 200B.

[0093] A detailed example of the cost calculation process will be described with reference to FIG. 9 . When the cost calculation unit 300B starts the cost calculation process, it first executes the first cost calculation process (step ST141). In the first cost calculation process, the first cost calculation unit 310 in the cost calculation unit 300B uses the ground truth edge image and the estimated edge image to calculate a first cost L_e(I) for evaluating the estimation accuracy of the edge image estimation layer 210B. The cost calculation unit 300B then executes the second cost calculation process (step ST142). In the second cost calculation process, the second cost calculation unit 320 in the cost calculation unit 300B uses the ground truth geometric parameters and the estimated geometric parameters to calculate a second cost L_g(P) (=|P - P l | 2 ) The cost calculation unit 300B then executes a combined cost calculation process (step ST143). In the combined cost calculation process, the combined cost calculation unit 330 of the cost calculation unit 300B calculates a cost obtained by combining the first cost L_e(I) and the second cost L_g(P). Specifically, the combined cost calculation unit 330 calculates the combined cost L(I,P) as the sum of the value of the first cost L_e(I) and the value obtained by multiplying the value of the second cost L_g(P) by the weight λ_g. When the combined cost calculation unit 330 outputs the combined cost L(I,P) including the first cost L_e(I), the second cost L_g(P), and the weight λ_g to the model parameter update unit 400B, the cost calculation process ends.

[0094] Returning to the description of the process shown in FIG. 11 , the image segmentation device 20 executes a model parameter update process (step ST260). In the model parameter update process, the model parameter update unit 400B in the image segmentation device 20 uses the cost (see Equation (4)) calculated by the cost calculation unit 300B to update the model parameters in the neural network of the edge estimation unit 200B. The model parameter update unit 400B optimizes and outputs the model parameters in the neural network so as to reduce the cost (see Equation (4)) calculated by the cost calculation unit 300B. Specifically, the model parameter update unit 400B calculates the model parameters so as to reduce the cost (see Equation (4)) using a known method such as backpropagation or stochastic gradient descent (SGD), and optimizes the model parameters in the neural network. The model parameter update unit 400B stores each of the optimized model parameters in a storage unit (not shown).

[0095] After executing the model parameter update process, the image segmentation device 20 ends one learning loop process (step ST270) and starts the next learning loop process (step ST210). The image segmentation device 20 repeats the learning process for all sets of training data (n sets from 1000-1 to 1000-n) to acquire model parameters for edge estimation specialized for estimating edges of geometric shapes. While the description has been given of learning using one set of training data at a time (online learning), mini-batch learning or batch learning, in which multiple sets are processed at once, may also be used.

[0096] If the image segmentation device 20 determines not to perform the learning process (step ST200 "NO"), it proceeds to the normal segmentation process (segmentation process for estimating the edges of the target image as shown in steps ST310 to ST340).

[0097] The image segmentation device 20 executes an image acquisition process (step ST310). In the image acquisition process, the image acquisition unit 500 of the image segmentation device 20 acquires a target image that is the target of normal segmentation processing. The image acquisition unit 500 outputs the acquired target image to an edge estimation process. The image segmentation device 20 executes an edge estimation process (step ST320). In the edge estimation process, when the target image that is the target of normal segmentation processing is input to the edge estimation unit 200B of the image segmentation device 20, the image segmentation device 20 executes an estimation result output process (step ST330). In the estimation result output process, the estimation result output unit 600 of the image segmentation device 20 outputs the estimated edge image output by the edge estimation unit 200B. The estimation result output unit 600 can output, as an estimation result, an estimated edge image showing an edge having a shape similar to the geometric shape shown in the ground truth edge image of the learning data, using the edge estimation unit 200B after learning through the above-mentioned learning process. The image segmentation device 20 determines whether to end the normal segmentation process (step ST340). If the image segmentation device 20 determines not to end the normal segmentation process ("NO" in step ST340), it repeats the process from step ST310. If the image segmentation device 20 determines to end the normal segmentation process ("YES" in step ST340), it ends the series of processes.

[0098] The edge estimation unit 200B after learning using the configuration of the present disclosure outputs, as already described in FIG. 4B , an estimated edge image 2200 indicating the original shape (a geometric shape such as a straight line, an ellipse, a circle, or a quadratic curve) of the edge estimated from the input processing target image 2100, and geometric parameters 2210 relating to the shape of the estimated edge.

[0099] The image segmentation device of the present disclosure is configured as follows. "An image segmentation device comprising: an image acquisition unit that acquires a target image to be processed; an edge estimation unit that is constituted by a neural network and that outputs an estimated edge image when the target image is input to the neural network; and an estimation result output unit that outputs the estimated edge image output by the edge estimation unit; a training data acquisition unit that acquires training data that is a combination of a training image, a correct edge image that indicates a correct edge of the training image, and correct geometric parameters related to the shape of the correct edge; the edge estimation unit that outputs an estimated edge image that indicates an estimated edge of the training image and estimated geometric parameters related to the shape of the estimated edge when the training image is input to the neural network; a cost calculation unit that calculates a cost for evaluating the estimation accuracy by the edge estimation unit using the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters; and a model parameter update unit that optimizes and updates model parameters in the neural network using the cost calculated by the cost calculation unit." The present disclosure thus provides an image segmentation device that improves the estimation accuracy of image segmentation. Furthermore, the present disclosure provides the same effects as those of the above learning devices by applying the configurations of the above learning devices to the image segmentation device.

[0100] The image segmentation device of the present disclosure is further configured as follows: "An image segmentation device including an image acquisition unit that acquires a target image to be processed, an edge estimation unit that is configured with a neural network and that outputs an estimated edge image when the target image is input to the neural network, and an estimation result output unit that outputs the estimated edge image output by the edge estimation unit, wherein model parameters in the neural network of the edge estimation unit are configured as follows: a learning device uses training data that is a combination of training images, a correct edge image that indicates a correct edge of the training image, and correct geometric parameters that are related to the shape of the correct edge, to input the training images to the neural network of the edge estimation unit, thereby outputting an estimated edge image that indicates an estimated edge of the training image and estimated geometric parameters that are related to the shape of the estimated edge, and calculates a cost for evaluating the estimation accuracy by the edge estimation unit using the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters, and the model parameters are updated using the calculated cost." The present disclosure thus provides an image segmentation device that improves the estimation accuracy of image segmentation. Furthermore, the present disclosure provides effects similar to those of the above learning devices by updating model parameters using the configurations of the above learning devices.

[0101] Here, a hardware configuration for realizing the functions of the present disclosure will be described. Fig. 12 is a diagram showing a first example of a hardware configuration for realizing the functions of the configuration of the present disclosure. Fig. 13 is a diagram showing a second example of a hardware configuration for realizing the functions of the configuration of the present disclosure. The learning device 10, 10A or the image segmentation device 20 of the present disclosure is realized by the hardware shown in Fig. 12 or Fig. 13.

[0102] As shown in FIG. 12 , the learning device 10, 10A, or the image segmentation device 20 includes, for example, a processor 10001, a memory 10002, and a communication circuit 10004. The processor 10001 and the memory 10002 are installed in, for example, a computer. The memory 10002 stores programs that cause the computer to function as the learning data acquisition units 100, 100A, and 100B, the image selection unit 110, the edge image selection unit 120, the geometric parameter selection unit 130, the edge estimation units 200, 200A, and 200B, the cost calculation units 300, 300A, and 300B, the first cost calculation unit 310, the second cost calculation unit 320, the composite cost calculation unit 330, the model parameter update units 400, 400A, and 400B, the image acquisition unit 500, the estimation result output unit 600, and a control unit (not shown). The processor 10001 reads and executes the programs stored in the memory 10002 to realize the functions of the learning data acquisition units 100, 100A, 100B, the image selection unit 110, the edge image selection unit 120, the geometric parameter selection unit 130, the edge estimation units 200, 200A, 200B, the cost calculation units 300, 300A, 300B, the first cost calculation unit 310, the second cost calculation unit 320, the composite cost calculation unit 330, the model parameter update units 400, 400A, 400B, the image acquisition unit 500, the estimation result output unit 600, and a control unit (not shown). In addition, the memory 10002 or another memory (not shown) realizes a storage unit (not shown). Furthermore, if the learning device 10, 10A, or the image segmentation device 20 includes a storage unit (not shown) that stores at least one of learning data, model parameters, estimated edge images, and estimated geometric parameters, the storage unit (not shown) is realized by the memory 10002 or another memory (not shown). Also, a communication unit (not shown) is realized by the communication circuit 10004. The processor 10001 may be, for example, a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a microprocessor, a microcontroller, or a DSP (Digital Signal Processor).The memory 10002 may be a non-volatile or volatile semiconductor memory such as RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable ROM), EEPROM (Electrically Erasable Programmable Read Only Memory), or flash memory, or a magnetic disk such as a hard disk or flexible disk, or an optical disk such as a CD (Compact Disc) or DVD (Digital Versatile Disc), or a magneto-optical disk. The processor 10001 and the memory 10002 or the communication circuit 10004 are connected in a state capable of transmitting data to each other. The processor 10001, memory 10002, and communication circuit 10004 are connected via an input / output interface 10003 so as to be capable of transmitting data to and from other hardware.

[0103] Alternatively, the functions of the learning data acquisition units 100, 100A, 100B, image selection unit 110, edge image selection unit 120, geometric parameter selection unit 130, edge estimation units 200, 200A, 200B, cost calculation units 300, 300A, 300B, first cost calculation unit 310, second cost calculation unit 320, composite cost calculation unit 330, model parameter update units 400, 400A, 400B, image acquisition unit 500, estimation result output unit 600, and a control unit (not shown) may be realized by a dedicated processing circuit 20001, as shown in FIG. 13 . The processing circuit 20001 may be, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), an FPGA (Field-Programmable Gate Array), a SoC (System-on-a-Chip), or a system LSI (Large-Scale Integration), etc. In addition, a storage unit (not shown) is realized by the memory 20002 or another memory (not shown). The memory 20002 may be a non-volatile or volatile semiconductor memory such as RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable ROM), EEPROM (Electrically Erasable Programmable Read Only Memory), or flash memory, or a magnetic disk such as a hard disk or flexible disk, or an optical disk such as a CD (Compact Disc) or DVD (Digital Versatile Disc), or a magneto-optical disk. The communication circuit 20004 implements a communication unit (not shown). The processing circuit 20001 and the memory 20002 or the communication circuit 20004 are connected in a state where data can be transmitted between them.Furthermore, the processing circuit 20001, the memory 20002, and the communication circuit 20004 are connected to other hardware in a state where they can transmit data to and from each other via an input / output interface 20003. Note that the functions of the learning data acquisition units 100, 100A, 100B, the image selection unit 110, the edge image selection unit 120, the geometric parameter selection unit 130, the edge estimation units 200, 200A, 200B, the cost calculation units 300, 300A, 300B, the first cost calculation unit 310, the second cost calculation unit 320, the composite cost calculation unit 330, the model parameter update units 400, 400A, 400B, the image acquisition unit 500, the estimation result output unit 600, and a control unit (not shown) may be realized by separate processing circuits, or may be realized collectively by a processing circuit.

[0104] Alternatively, some of the functions of the learning data acquisition units 100, 100A, 100B, image selection unit 110, edge image selection unit 120, geometric parameter selection unit 130, edge estimation units 200, 200A, 200B, cost calculation units 300, 300A, 300B, first cost calculation unit 310, second cost calculation unit 320, composite cost calculation unit 330, model parameter update units 400, 400A, 400B, image acquisition unit 500, estimation result output unit 600, and a control unit (not shown) may be realized by the processor 10001 and memory 10002, and the remaining functions may be realized by the processing circuit 20001.

[0105] It should be noted that within the scope of the present disclosure, the embodiments may be freely combined, any component of each embodiment may be modified, or any component of each embodiment may be omitted.

[0106] The learning device, learning method, and image segmentation device according to the present disclosure can improve the estimation accuracy of image segmentation, and are therefore suitable for use in image recognition systems that use image segmentation.

[0107] 10, 10A Learning device, 20 Image segmentation device, 100, 100A, 100B Learning data acquisition unit, 110 Image selection unit, 120 Edge image selection unit, 130 Geometric parameter selection unit, 200, 200A, 200B Edge estimation unit, 210, 210B Edge image estimation layer, 220 Geometric parameter estimation layer, 221 CNN (Convolutional Neural Network) layer, 222 Normalization layer, 223 Activation layer, 224 Pooling layer, 225 Fully connected layer, 300, 300A, 300B Cost calculation unit, 310 First cost calculation unit, 320 Second cost calculation unit, 330 Synthesis cost calculation unit, 400, 400A, 400B Model parameter update unit, 500 Image acquisition unit, 600 estimation result output unit, 1000 (1000-1, 1000-2, ..., 1000-n) learning dataset (learning data), 1100 learning image, 1200 correct edge image, 1300 correct geometric parameters, 2100 segmentation target image, 2120 edge estimation unit, 2130 estimated edge image, 2200 estimated edge image, 2210 estimated geometric parameters, 10001 processor, 10002 memory, 10003 input / output interface, 10004 communication circuit, 20001 processing circuit, 20002 memory, 20003 input / output interface, 20004 communication circuit.

Claims

1. A learning device comprising: a learning data acquisition unit that acquires learning data which is a combination of a learning image, a correct edge image indicating a correct edge of the learning image, and correct geometric parameters related to a shape of the correct edge; an edge estimation unit constituted by a neural network that outputs an estimated edge image indicating an estimated edge of the learning image and estimated geometric parameters related to the shape of the estimated edge when the learning image is input to the neural network; a cost calculation unit that uses the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters to calculate a cost for evaluating the estimation accuracy by the edge estimation unit; and a model parameter update unit that updates the model parameters of the neural network using the cost calculated by the cost calculation unit.

2. The learning device according to claim 1, wherein the correct geometric parameters are coefficients in an equation representing a two-dimensional geometric shape.

3. The learning device according to claim 2, wherein the correct geometric parameters are coefficients in a mathematical formula representing a straight line.

4. The learning device according to claim 2, wherein the correct geometric parameters are coefficients in a mathematical formula representing a circle.

5. The learning device according to claim 2, wherein the correct geometric parameters are coefficients in a mathematical formula representing an ellipse.

6. The learning device according to claim 2, wherein the correct geometric parameters are coefficients in a mathematical expression representing an n-th degree curve (n≧2).

7. A learning device as claimed in any one of claims 1 to 6, characterized in that the edge estimation unit includes: an edge image estimation layer constituted by a neural network, which outputs an estimated edge image indicating the estimated edge of the learning image when the learning image is input to the neural network; and a geometric parameter estimation layer constituted by a neural network, which outputs estimated geometric parameters relating to the shape of the estimated edge shown in the estimated edge image when the estimated edge image is input to the neural network.

8. The learning device described in claim 7, characterized in that the cost calculation unit comprises: a first cost calculation unit that uses the ground truth edge image and the estimated edge image to calculate a first cost for evaluating the estimation accuracy of the edge image estimation layer; a second cost calculation unit that uses the ground truth geometric parameters and the estimated geometric parameters to calculate a second cost for evaluating the estimation accuracy of the geometric parameter estimation layer; and a composite cost calculation unit that calculates a cost obtained by combining the first cost and the second cost.

9. A learning method comprising: a learning data acquisition step in which a learning data acquisition unit acquires learning data which is a combination of a learning image, a correct edge image indicating a correct edge of the learning image, and correct geometric parameters related to a shape of the correct edge; an edge estimation step in which an edge estimation unit constituted by a neural network outputs an estimated edge image indicating an estimated edge of the learning image and estimated geometric parameters related to the shape of the estimated edge by inputting the learning image to the neural network; a cost calculation step in which a cost calculation unit calculates a cost for evaluating the estimation accuracy by the edge estimation unit using the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters; and a model parameter update step in which a model parameter update unit updates the model parameters of the neural network using the cost calculated by the cost calculation unit.

10. An image segmentation device comprising an image acquisition unit which acquires a target image to be processed, an edge estimation unit which is constituted by a neural network and outputs an estimated edge image when the target image is input to the neural network, and an estimation result output unit which outputs the estimated edge image output by the edge estimation unit, wherein the image segmentation device comprises: a learning data acquisition unit which acquires learning data which is a combination of a learning image, a correct edge image which indicates a correct edge of the learning image, and correct geometric parameters related to a shape of the correct edge; the edge estimation unit which outputs an estimated edge image which indicates an estimated edge of the learning image and estimated geometric parameters related to the shape of the estimated edge when the learning image is input to the neural network; a cost calculation unit which calculates a cost for evaluating the estimation accuracy by the edge estimation unit using the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters; and a model parameter update unit which optimizes and updates model parameters of the neural network using the cost calculated by the cost calculation unit.

11. An image segmentation device comprising an image acquisition unit which acquires a target image to be processed, an edge estimation unit which is constituted by a neural network and outputs an estimated edge image when the target image is input to the neural network, and an estimation result output unit which outputs the estimated edge image output by the edge estimation unit, wherein model parameters of the neural network in the edge estimation unit are determined by: a learning device uses learning data which is a combination of a learning image, a correct edge image which indicates a correct edge of the learning image, and correct geometric parameters which relate to the shape of the correct edge to input the learning image to the neural network of the edge estimation unit, thereby outputting an estimated edge image which indicates an estimated edge of the learning image and estimated geometric parameters which relate to the shape of the estimated edge; and a cost for evaluating the estimation accuracy by the edge estimation unit is calculated using the correct edge image, the correct geometric parameters, the estimated edge image, and the estimated geometric parameters, and the model parameters of the neural network in the edge estimation unit are updated using the calculated cost.

Citation Information

Patent Citations

  • Object area boundary estimation device, object area boundary estimation method, and object area boundary estimation program

    JP2014149788A

  • Geometric parameter estimation device, geometric parameter estimation system, geometric parameter estimation method and computer program

    JP2020187385A

  • Method, apparatus, and system for constructing a polygon from edges for object detection

    US20190073774A1