Model generation device, model generation method and program

The model generation device efficiently trains image classification models for satellite images with varying pixel counts by dividing high-pixel images, initializing a second model with the first model's parameters, and using an aggregator and discriminator to enhance feature alignment and accuracy.

JP7546644B2Active Publication Date: 2024-09-06PASCO CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2022203246
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-12-20
Publication Date
2024-09-06
Estimated Expiration
2042-12-20

AI Technical Summary

Technical Problem

Existing image classification models for satellite images face challenges in effectively utilizing images with different numbers of pixels due to varying spatial resolutions, limiting the effectiveness of domain adaptation methods like ADDA.

Method used

A model generation device and method that divides images with a high number of pixels into smaller segments, trains a first learning model to extract features, and uses these to initialize a second learning model capable of handling images with varying pixel counts, incorporating an aggregator to combine features and a discriminator for accuracy.

Benefits of technology

Enables efficient training of image classification models across images with different pixel counts, improving classification accuracy by aligning feature extraction and aggregation processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007546644000002
    Figure 0007546644000002
  • Figure 0007546644000007
    Figure 0007546644000007
  • Figure 0007546644000003
    Figure 0007546644000003
Patent Text Reader

Abstract

To provide a model generation apparatus or the like capable of efficiently learning an image classification model using images having different numbers of pixels.SOLUTION: The model generation apparatus has: a first learning unit for learning a first learning model including a first extractor for extracting feature quantities of a plurality of divided images, each of which is generated by dividing a first image having a first number of pixels and has a second number of pixels smaller than the first number of pixels, so that a class of the first image is output when the plurality of divided images are input; a second learning unit for learning a second learning model including a second extractor for extracting feature quantities of the second image having the second number of pixels using the first learning model so that a class of the second image is output when the second image is input; and an output unit for outputting the learned second learning model.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a model generation device, a model generation method, and a program. [Background technology]

[0002] A technology that uses an image classification model to classify satellite images taken of the ground according to the type of land cover, etc., is attracting attention. In order to train an image classification model for satellite images, a large number of satellite images with the same number of pixels are required as training data, but since the spatial resolution may differ from satellite to satellite, collecting such satellite images is not easy. Therefore, it is necessary to enable learning using images with different numbers of pixels.

[0003] Non-Patent Document 1 describes a domain adaptation method called ADDA (Adversarial Discriminative Domain Adaptation). With ADDA, even if the distribution of training data differs from the distribution of data to be classified, it is possible to use the results of training using training data for training an image classification model. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Adversarial Discriminative Domain Adaptation, E. Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell, Proceedings of IEEE conference on computer vision and pattern recognition, 2007 Summary of the Invention [Problem to be solved by the invention]

[0005] However, because features of different scales are extracted from images with different pixel counts, applying ADDA to an image classification model for satellite images may not produce sufficient results.

[0006] The present invention has been made to solve the above-mentioned problems, and aims to provide a model generation device, a model generation method, and a program that enable efficient training of a learning model using images with different numbers of pixels. [Means for solving the problem]

[0007] A model generation device according to an embodiment of the present invention is characterized in having a first learning unit that trains a first learning model including a first extractor that extracts features of a plurality of divided images, each having a second number of pixels smaller than the first number of pixels, generated by dividing a first image having a first number of pixels, so as to output a class of the first image when a plurality of divided images are input; a second learning unit that trains a second learning model including a second extractor that extracts features of a second image having a second number of pixels using the first learning model, so as to output a class of the second image when the second image is input; and an output unit that outputs the trained second learning model.

[0008] Moreover, it is preferable that the second learning unit sets the parameters of the first extractor learned by the first learning unit as initial parameters of the second extractor.

[0009] In addition, it is preferable that the first learning model further includes an aggregator that aggregates features of the multiple divided images, and the second learning unit trains the second extractor so that, when features extracted by the second extractor are input to the classifier trained to identify whether an input feature is a feature aggregated by the aggregator, the classifier identifies the feature extracted by the second extractor as a feature aggregated by the aggregator.

[0010] It is also preferable that the first learning model further includes a first classifier that outputs a class of the first image based on the features aggregated by the aggregator, the second learning model further includes a second classifier that outputs a class of the second image based on the features extracted by the second extractor, and the second learning unit sets the parameters of the first classifier learned by the first learning unit as initial parameters of the second classifier.

[0011] In addition, it is preferable that the second learning unit alternately executes a first learning in which a classifier is trained using the features aggregated by the aggregator and the features extracted by the second extractor, and a second learning in which the second extractor is trained using the second image.

[0012] Moreover, it is preferable that the first image and the second image are images having the same receptive field.

[0013] A model generation method according to an embodiment of the present invention is a model generation method executed by a model generation device, and is characterized in that it includes: training a first learning model including a first extractor that extracts features of a plurality of divided images, each having a second number of pixels smaller than the first number of pixels, generated by dividing a first image having a first number of pixels, to output a class of the first image when a plurality of divided images are input; training a second learning model using the first learning model that includes a second extractor that extracts features of a second image having a second number of pixels, to output a class of the second image when the second image is input; and outputting the trained second learning model.

[0014] A program according to an embodiment of the present invention is characterized in that it causes a computer to execute the following steps: train a first learning model including a first extractor that extracts features of multiple divided images, each having a second number of pixels smaller than the first number of pixels and generated by dividing a first image having a first number of pixels, to output a class of the first image when multiple divided images are input; train a second learning model using the first learning model that includes a second extractor that extracts features of a second image having a second number of pixels, to output a class of the second image when the second image is input; and output the trained second learning model.

[0015] A model generation device according to an embodiment of the present invention is characterized by having a first learning unit that trains a first learning model including a first extractor that extracts features of a first image having a first number of pixels, so as to output a class of the first image when the first image is input; a second learning unit that trains a second learning model using the first learning model, the second learning model including a second extractor that extracts features of each of a plurality of divided images, each having a first number of pixels, generated by dividing a second image having a second number of pixels greater than the first number of pixels, so as to output a class of the second image when a plurality of divided images are input; and an output unit that outputs the trained second learning model.

[0016] A model generation method according to an embodiment of the present invention is a model generation method executed by a model generation device, and is characterized in that it includes training a first learning model including a first extractor that extracts features of a first image having a first number of pixels to output a class of the first image when the first image is input, training a second learning model using the first learning model to output a class of the second image when the first image is input, the second learning model including a second extractor that extracts features of each of a plurality of divided images, each having the first number of pixels, generated by dividing a second image having a second number of pixels greater than the first number of pixels, and outputting the trained second learning model.

[0017] A program according to an embodiment of the present invention is characterized in that it causes a computer to execute the following steps: train a first learning model including a first extractor that extracts features of a first image having a first number of pixels, so as to output a class of the first image when the first image is input; train a second learning model using the first learning model, including a second extractor that extracts features of each of a plurality of divided images, each having a first number of pixels, generated by dividing a second image having a second number of pixels greater than the first number of pixels, so as to output a class of the second image when a plurality of divided images are input; and output the trained second learning model. Effect of the Invention

[0018] The model generation device, model generation method, and program according to the present invention make it possible to efficiently train a learning model using images with different numbers of pixels. [Brief description of the drawings]

[0019] [Figure 1] FIG. 1 is a functional block diagram of an image classification system 1. [Diagram 2] FIG. 11 is a schematic diagram for explaining an example of a learning model. [Diagram 3] FIG. 11 is a flowchart showing an example of the flow of a first model generation process. [Figure 4] FIG. 11 is a flowchart showing an example of the flow of a first pre-learning process. [Diagram 5] FIG. 11 is a flowchart showing an example of the flow of a first discrimination learning process. [Figure 6] FIG. 11 is a flowchart showing an example of the flow of an extraction learning process. [Figure 7] FIG. 11 is a schematic diagram for explaining an example of a learning model. [Figure 8] FIG. 11 is a flowchart showing an example of the flow of a second model generation process. [Figure 9] FIG. 11 is a flowchart showing an example of the flow of a second pre-learning process. [Figure 10] FIG. 11 is a flowchart showing an example of the flow of a second discrimination learning process. [Figure 11]FIG. 13 is a flow diagram showing an example of the flow of an extraction aggregation learning process. [Figure 12] FIG. 11 is a flow diagram showing an example of the flow of an image classification process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] Hereinafter, various embodiments of the present invention will be described with reference to the drawings. It should be noted that the technical scope of the present invention is not limited to these embodiments, but covers the inventions described in the claims and their equivalents.

[0021] 1 is a functional block diagram of an image classification system 1 according to an embodiment of the present invention. The image classification system 1 trains an image classification model to generate a trained model, and classifies images using the generated trained model. The image classification system 1 includes a model generation device 2 and an image classification device 3. The model generation device 2 and the image classification device 3 communicate with each other via a network N.

[0022] The model generation device 2 is an information processing terminal such as a PC (Personal Computer), a server, a mobile phone, a smartphone, a tablet terminal, a game machine, etc. The model generation device 2 uses an image with a first number of pixels to learn a classification model for an image with a second number of pixels different from the first number of pixels, and outputs the learned model. The model generation device 2 has a storage unit 21, a communication unit 22, and a processing unit 23.

[0023] The storage unit 21 is configured to store programs and data, and includes, for example, a semiconductor memory. The storage unit 21 stores, as programs, an operating system program, a driver program, an application program, and the like used in processing by the processing unit 23. The programs are installed in the storage unit 21 from a computer-readable, non-transitory, portable storage medium such as a CD-ROM (Compact Disc Read Only Memory) or a DVD-ROM (Digital Versatile Disc Read Only Memory).

[0024] The communication unit 22 is configured to enable the model generating device 2 to communicate with other devices, and includes a communication interface circuit. The communication interface circuit included in the communication unit 22 is a communication interface circuit for a wired LAN (Local Area Network) or a wireless LAN. The communication unit 22 receives data from other devices and supplies the data to the processing unit 23, and transmits data supplied from the processing unit 23 to other devices.

[0025] The processing unit 23 is configured to comprehensively control the operation of the model generating device 2, and includes one or more processors and their peripheral circuits. The processing unit 23 includes, for example, a CPU (Central Processing Unit). The processing unit 23 may include a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), an LSI (Large Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or the like. The processing unit 23 controls the operation of each component and executes various processes so that the various processes of the model generating device 2 are executed in an appropriate order based on the programs stored in the storage unit 21.

[0026] The processing unit 23 has, as functional blocks, a first learning unit 231, a second learning unit 232, and an output unit 233. Each of these units is a functional module that is realized by the processing unit 23 executing a program. Each of these units may be implemented in the model generation device 2 as firmware.

[0027] The model generation device 2 executes at least one of a first model generation process in which an image having a large number of pixels is used to learn a classification model for images having a small number of pixels, and a second model generation process in which an image having a small number of pixels is used to learn a classification model for images having a large number of pixels.

[0028] The image classification device 3 is an information processing terminal such as a PC, a server, a mobile phone, a smartphone, a tablet terminal, a game machine, etc. The image classification device 3 classifies images using a trained model generated by the model generation device 2 that executed the first model generation process or the second model generation process. The image classification device 3 has a storage unit 31, a communication unit 32, and a processing unit 33.

[0029] The storage unit 31 is configured to store programs and data, and includes, for example, a semiconductor memory. The storage unit 31 stores, as programs, an operating system program, a driver program, an application program, and the like used in processing by the processing unit 33. The programs are installed in the storage unit 31 from a computer-readable, non-transitory, portable storage medium such as a CD-ROM or a DVD-ROM.

[0030] The communication unit 32 is configured to enable the image classification device 3 to communicate with other devices, and includes a communication interface circuit. The communication interface circuit included in the communication unit 32 is a communication interface circuit for a wired LAN (Local Area Network) or a wireless LAN. The communication unit 32 receives data from other devices and supplies the data to the processing unit 33, and transmits data supplied from the processing unit 33 to other devices.

[0031] The processing unit 33 is configured to comprehensively control the operation of the image classification device 3, and includes one or more processors and their peripheral circuits. The processing unit 33 includes, for example, a CPU. The processing unit 33 may include a GPU, a DSP, an LSI, an ASIC, an FPGA, or the like. The processing unit 33 controls the operation of each component and executes various processes so that the various processes of the image classification device 3 are executed in an appropriate order based on the programs stored in the storage unit 31.

[0032] The processing unit 33 has, as functional blocks, an acquisition unit 331, a classification unit 332, and an output unit 333. Each of these units is a functional module that is realized by the processing unit 33 executing a program. Each of these units may be implemented in the image classification device 3 as firmware.

[0033] FIG. 2 is a schematic diagram for explaining an example of a learning model stored in the storage unit 21 of the model generation device 2 that executes the first model generation process. The storage unit 21 stores a first learning model LM1 that outputs a class of a first image IM1 having a first number of pixels, a second learning model LM2 that outputs a class of a second image IM2 having a second number of pixels smaller than the first number of pixels, and a classifier DC. The image class is, for example, a two-element one-hot vector that indicates whether or not an area where trees are dead is included in the image. The first image and the second image have a receptive field of the same size. That is, when the first image and the second image are satellite images, the first image and the second image are images that indicate the state of a geographical area of ​​the same size, and the spatial resolution of the first image is higher than the spatial resolution of the second image. The model generation device 2 trains and outputs the second learning model LM2 in the first model generation process.

[0034] The first learning model LM1 has a first extractor EX1, an aggregator AG, and a first classifier CL1. The first extractor EX1 extracts feature values ​​of each of a plurality of divided images SG having a second number of pixels generated by dividing the first image IM1. The first extractor EX1 is, for example, a convolutional neural network. The aggregator AG aggregates the feature values ​​of the plurality of divided images SG. The aggregator AG, for example, weights and adds the feature values ​​of the plurality of divided images SG. The first classifier CL1 outputs a class of the first image IM1, which is the source of division of the plurality of divided images SG, based on the aggregated feature values. The first classifier CL1 is, for example, an artificial neural network.

[0035] The second learning model LM2 has a second extractor EX2 and a second classifier CL2, and is trained using the first learning model. The second extractor EX2 extracts features of the second image IM2. The second extractor EX2 is a model capable of transferring parameters of the first extractor EX1, for example, a convolutional neural network having the same layer structure as the first extractor EX1. The second classifier CL2 outputs a class of the second image IM2 based on the extracted features. The second classifier CL2 is a model capable of transferring parameters of the first classifier CL1, for example, an artificial neural network having the same layer structure as the first classifier CL1.

[0036] The discriminator DC discriminates whether the input feature is a feature of the multiple divided images SG aggregated by the aggregator AG or a feature of the second image IM2 extracted by the second extractor EX2, and outputs a discrimination result. The discriminator DC is, for example, an artificial neural network. The discrimination result is, for example, a two-element one-hot vector indicating whether the feature is aggregated by the aggregator AG.

[0037] 3 is a flow diagram showing an example of the flow of a first model generation process executed by the model generation device 2. The first model generation process is a process of learning a second learning model LM2 using a first learning model LM1. The first model generation process is realized by the processing unit 23 working in cooperation with other components of the model generation device 2 based on a program stored in the storage unit 21.

[0038] First, the first learning unit 231 executes a first pre-learning process to train the first extractor EX1, the aggregator AG, and the first classifier CL1 of the first learning model LM1 so as to output the class of the first image IM1 when a plurality of divided images SG are input (step S101). The details of the first pre-learning process will be described later.

[0039] Next, in steps S102-S105, the second learning unit 232 uses the first learning model to train the second learning model LM2 so as to output the class of the second image IM2 when the second image IM2 is input.

[0040] First, the second learning unit 232 sets initial parameters of the second extractor EX2 and the second classifier CL2 (step S102). The second learning unit 232 sets the parameters of the first extractor EX1 learned in the first pre-learning process as the initial parameters of the second extractor EX2. The second learning unit 232 also sets the parameters of the first classifier CL1 learned in the first pre-learning process as the parameters of the second classifier CL2.

[0041] Next, the second learning unit 232 executes a first discrimination learning process to train the discriminator DC to discriminate whether or not the input feature is a feature aggregated by the aggregator AG (step S103). The first discrimination learning process will be described in detail later.

[0042] Next, the second learning unit 232 executes an extraction learning process to train the second extractor EX2 (step S104). The second extractor EX2 extracts features of the second image IM2 when the second image IM2 is input, and is trained so that the classifier DC does not mistakenly identify the extracted features as features aggregated by the aggregator AG. The extraction learning process will be described in detail later.

[0043] Next, the second learning unit 232 determines whether or not a termination condition for the learning of the second learning model LM2 is satisfied (step S105). The termination condition is, for example, that the first discrimination learning process and the extraction learning process have been executed a predetermined number of times. The termination condition may be that the amount of change in the parameter in the first discrimination learning process or the extraction learning process is less than a threshold value. The termination condition may be that at least one of the above-mentioned multiple conditions is satisfied, or that all of them are satisfied.

[0044] If the end condition is not satisfied (step S105-No), the first model generation process returns to step S103. That is, the second learning unit 232 alternately executes the first discrimination learning process and the extraction learning process. The first discrimination learning process and the extraction learning process are examples of the first learning and the second learning, respectively. Note that step S104 may be executed before step S103.

[0045] If the termination condition is satisfied (step S105-Yes), the output unit 233 outputs the trained second learning model LM2 (step S106). For example, the output unit 233 transmits the second learning model to the image classification device 3 via the communication unit 22. This ends the first model generation process.

[0046] 4 is a flow diagram showing an example of the flow of the first pre-learning process. The first pre-learning process is executed in step S101 of the first model generation process.

[0047] First, the first learning unit 231 acquires teacher data (step S201). The teacher data in the first pre-learning process is data in which a plurality of first images IM1 are associated with the class of each of the first images IM1. The first learning unit 231 acquires the teacher data stored in advance in the storage unit 21. The first learning unit 231 may acquire the teacher data from another device via the communication unit 22.

[0048] Next, the first learning unit 231 divides the first image IM1 included in the acquired teacher data to generate a plurality of divided images SG, each having a second number of pixels (step S202). The plurality of divided images SG are generated such that pixels corresponding to all pixels of the first image IM1 are included in at least one divided image SG. That is, all areas of the first image IM1 are included in at least one divided image. In addition, parts of the areas corresponding to each divided image SG may overlap each other.

[0049] Next, the first learning unit 231 extracts features of each divided image SG by inputting each divided image SG to the first extractor EX1 (step S203). The first learning unit 231 inputs the divided images SG to the first extractor EX1 and obtains the features extracted by the first extractor EX1. The first learning unit 231 associates the divided images SG with the extracted features.

[0050] Next, the first learning unit 231 aggregates the extracted feature amounts of the multiple divided images SG by inputting them to an aggregator AG (step S204). For example, the aggregator AG aggregates the feature amounts of the multiple divided images SG by weighting and adding them. The first learning unit 231 acquires the feature amounts aggregated by the aggregator AG.

[0051] Next, the first learning unit 231 outputs the class of the first image IM1 by inputting the aggregated feature amount to the first classifier CL1 (step S205). For example, the first classifier CL1 outputs a two-element vector in which the value of each element is 0 or more and 1 or less as a class. The first classifier CL1 may also output a one-element vector (scalar value) in which the value of the element is 0 or more and 1 or less as a class.

[0052] Next, the first learning unit 231 calculates a loss based on the class of the first image IM1 included in the training data and the class output from the first classifier CL1 (step S206). The loss is a value indicating the magnitude of the difference between the class of the first image IM1 included in the training data and the class output from the first classifier CL1, and is, for example, a cross-entropy error.

[0053] Next, the first learning unit 231 updates the parameters of the first learning model LM1 (step S207). The first learning unit 231 updates at least one parameter of the first extractor EX1, the aggregator AG, and the first classifier CL1 of the first learning model LM1. The parameters are updated so that the loss calculated in step S206 becomes small. The parameters are updated by, for example, backpropagation and gradient descent such as steepest descent or stochastic gradient descent.

[0054] Next, the first learning unit 231 determines whether or not a termination condition for the learning of the first learning model LM1 is satisfied (step S208). The termination condition is, for example, that a parameter has been updated a predetermined number of times. The termination condition may be that the amount of change due to the parameter update is less than a threshold value. The termination condition may be that at least one of the above-mentioned multiple conditions is satisfied, or that all of them are satisfied.

[0055] If the end condition is not satisfied (step S208-No), the first pre-learning process returns to step S201, and the first learning unit 231 acquires teacher data again.

[0056] If the end condition is satisfied (Yes in step S208), the first pre-learning process ends.

[0057] In the above description, the first pre-learning process is a so-called online learning process in which parameters are updated every time one piece of teacher data is input, but is not limited to this example. The first pre-learning process may be a so-called mini-batch learning or batch learning process in which parameters are updated every time multiple pieces of teacher data are input. In this case, the processes of steps S201-S205 are repeated a number of times corresponding to the batch size, and then the processes of steps S206-S208 are executed.

[0058] 5 is a flow diagram showing an example of the flow of the first discriminative learning process. The first discriminative learning process is executed in step S103 of the first model generation process.

[0059] First, the second learning unit 232 acquires training data (step S301). The training data in the first discrimination training process is data in which features and labels are associated with each other. The label is a two-element vector including an element indicating whether the feature is aggregated by the aggregator AG and an element indicating whether the feature is output by the second extractor EX2.

[0060] The features included in the training data are obtained by inputting the first image IM1 and the second image IM2 to the first learning model LM1 and the second learning model LM2, respectively. The features aggregated by the aggregator AG are obtained using the first extractor EX1 and the aggregator AG whose parameters have been updated by the first pre-learning process. The features extracted by the second extractor EX2 are obtained using the second extractor EX2 whose initial parameters are set to the parameters of the first extractor EX1 updated by the first pre-learning process.

[0061] The first image IM1 used to acquire the feature amount may be the same as or different from the first image IM1 included in the teacher data in the first pre-learning process. The second image IM2 used to acquire the feature amount may be the same as or different from the second image IM2 included in the teacher data in the extraction learning process described below.

[0062] Next, the second learning unit 232 outputs a classification result by inputting the feature amount included in the teacher data to the classifier DC (step S302). For example, the classifier DC outputs a two-element vector, each element of which has a value between 0 and 1, as the classification result.

[0063] Next, the second learning unit 232 calculates a loss based on the label included in the training data and the classification result output from the classifier DC (step S303). The loss is a value indicating the magnitude of the difference between the label included in the training data and the classification result output from the classifier DC, and is, for example, a cross-entropy error.

[0064] Next, the second learning unit 232 updates the parameters of the classifier DC (step S304). The parameters are updated so that the loss calculated in step S303 becomes smaller. The parameters are updated by, for example, the backpropagation method and a gradient descent method such as the steepest descent method or the stochastic gradient descent method.

[0065] Next, the second learning unit 232 determines whether or not a termination condition for the learning of the classifier DC is satisfied (step S305). The termination condition is, for example, that a parameter has been updated a predetermined number of times. The termination condition may be that the amount of change due to the parameter update is less than a threshold. The termination condition may be that at least one of the above-mentioned multiple conditions is satisfied, or that all of them are satisfied.

[0066] If the end condition is not satisfied (step S305-No), the first discrimination learning process returns to step S301, and the second learning unit 232 acquires training data again.

[0067] If the end condition is satisfied (step S305--Yes), the first discrimination learning process ends.

[0068] In the above description, the first discriminative learning process is a so-called online learning process, but the first discriminative learning process may be a so-called mini-batch learning or batch learning process. In this case, the processes of steps S301-S302 are repeated a number of times corresponding to the batch size, and then the processes of steps S303-S305 are executed.

[0069] 6 is a flow diagram showing an example of the flow of the extraction learning process. The extraction learning process is executed in step S104 of the first model generation process.

[0070] First, the second learning unit 232 acquires teacher data (step S401). The teacher data in the extraction learning process is data in which a plurality of second images IM2 are associated with the classes of the respective second images IM2. The second learning unit 232 acquires the teacher data stored in advance in the storage unit 21. The second learning unit 232 may acquire the teacher data from another device via the communication unit 22.

[0071] Next, the second learning unit 232 extracts features of the second image IM2 by inputting the second image IM2 to the second extractor EX2 (step S402). The second learning unit 232 inputs the second image IM2 to the second extractor EX2 and obtains the features extracted by the second extractor EX2.

[0072] Next, the second learning unit 232 outputs the class of the second image IM2 by inputting the extracted feature amount to the second classifier CL2 (step S403). For example, the second classifier CL2 outputs a two-element vector in which the value of each element is 0 or more and 1 or less as a class. The second classifier CL2 may output a one-element vector (scalar value) in which the value of the element is 0 or more and 1 or less as a class.

[0073] Next, the second learning unit 232 outputs a classification result by inputting the extracted feature amount to a classifier DC (step S404). For example, the classifier DC outputs a two-element vector, each element of which has a value between 0 and 1, as the classification result.

[0074] Next, the second learning unit 232 calculates a loss based on the class of the second image IM2 included in the teacher data, the class output from the second classifier CL2, and the classification result output from the discriminator DC (step S405). The loss includes the first loss and the second loss, and is, for example, a weighted sum of the first loss and the second loss.

[0075] The first loss is a value indicating the magnitude of the difference between the class of the second image IM2 included in the teacher data and the class output from the second classifier CL2, and is, for example, a cross-entropy error. The second loss is a value that increases as the error of the classification result output from the classifier DC decreases. Since the feature in the extraction learning process is extracted by the second extractor EX2, the second loss for the classification result indicating that the feature is aggregated by the aggregator AG is small, and the second loss for the classification result indicating that the feature is extracted by the second extractor EX2 is large. In other words, the second loss is a so-called adversarial loss that indicates to what extent the feature extracted by the second extractor EX2 can deceive the classifier DC. The second loss is, for example, a negative value of the cross-entropy error.

[0076] Next, the second learning unit 232 updates the parameters of the second extractor EX2 (step S406). The parameters are updated so that the loss calculated in step S405 becomes smaller. The parameters are updated by, for example, backpropagation and a gradient descent method such as steepest descent or stochastic gradient descent.

[0077] Next, the second learning unit 232 determines whether or not a termination condition for the learning of the second extractor EX2 is satisfied (step S407). The termination condition is, for example, that a parameter has been updated a predetermined number of times. The termination condition may be that the amount of change due to the parameter update is less than a threshold value. The termination condition may be that at least one of the above-mentioned multiple conditions is satisfied, or that all of them are satisfied.

[0078] If the end condition is not satisfied (step S407-No), the extraction learning process returns to step S401, and the second learning unit 232 acquires teacher data again.

[0079] If the end condition is satisfied (Yes in step S407), the extraction learning process ends.

[0080] In the above description, the extraction learning process is assumed to be a so-called online learning process, but the extraction learning process may be a so-called mini-batch learning or batch learning process. In this case, the processes of steps S401-S404 are repeated a number of times corresponding to the batch size, and then the processes of steps S405-S407 are executed.

[0081] As described above, the model generating device 2 trains the first learning model to output the class of the first image when a plurality of divided images each having a second number of pixels, which are generated by dividing a first image having a first number of pixels, are input. In addition, the model generating device 2 trains the second learning model using the first learning model to output the class of the second image when a second image is input. By dividing the first image into a plurality of divided images having a second number of pixels and training the divided images, a learning model having the same configuration can be used for the first extractor included in the first learning model and the second extractor included in the second learning model. Therefore, the model generating device 2 makes it possible to efficiently train an image classification model using images having different numbers of pixels.

[0082] Furthermore, the model generating device 2 sets the trained parameters of the first extractor as the initial parameters of the second extractor, thereby enabling the model generating device 2 to transfer the parameters of the first extractor to the second extractor and train the image classification model more efficiently.

[0083] Moreover, the model generating device 2 alternately executes a discrimination learning process in which a classifier is trained using the features aggregated by the aggregator and the features extracted by the second extractor, and an extraction learning process in which the second extractor is trained using the second image. It is considered that the features extracted from the first image having a high number of pixels reflect the features of the image more appropriately than the features extracted from the second image having a low number of pixels. The model generating device 2 trains the second extractor so that the features extracted from the second image approach the features extracted from the first image, thereby making it possible to improve the classification accuracy of the image classification model.

[0084] In addition, the first image and the second image have receptive fields of the same size. This allows areas of interest when classifying an image, such as areas of dead trees, to be displayed in the image at the same scale, making it possible for the second extractor, whose parameters have been transferred, to properly extract features from the second image. As the first image and the second image have receptive fields of the same size, the model generating device 2 can properly set the initial parameters of the second extractor, enabling the second extractor to be trained efficiently.

[0085] 7 is a schematic diagram for explaining an example of a learning model stored in the storage unit 21 of the model generation device 2 that executes the second model generation process. The storage unit 21 stores a third learning model LM3 that outputs a class of a third image having a third number of pixels, a fourth learning model LM4 that outputs a class of a fourth image having a fourth number of pixels larger than the third number of pixels, and a classifier DC. The third image and the fourth image have receptive fields of the same size. In the second model generation process, the model generation device 2 trains and outputs the fourth learning model LM4.

[0086] The third learning model LM3 has a third extractor EX3 and a third classifier CL3. The third extractor EX3 extracts features of the third image IM3. The third extractor EX3 is, for example, a convolutional neural network. The third classifier CL3 outputs a class of the third image IM3 based on the extracted features. The third classifier CL3 is, for example, an artificial neural network.

[0087] The fourth learning model LM4 has a fourth extractor EX4, an aggregator AG, and a fourth classifier CL4. The fourth extractor EX4 extracts the feature values ​​of each of a plurality of divided images SG having a third number of pixels, which are generated by dividing the fourth image IM4. The fourth extractor EX4 is a model capable of transferring the parameters of the third extractor EX3, and is, for example, a convolutional neural network having the same layer structure as the third extractor EX3. The aggregator AG aggregates the feature values ​​of the plurality of divided images SG. The fourth classifier CL4 outputs the class of the fourth image IM4, which is the division source of the plurality of divided images SG, based on the aggregated feature values. The fourth classifier CL4 is a model capable of transferring the parameters of the third classifier CL3, and is, for example, an artificial neural network having the same layer structure as the third classifier CL3.

[0088] The classifier DC identifies whether the input feature is a feature of the third image IM3 extracted by the third extractor EX3 or a feature of the multiple divided images SG aggregated by the aggregator AG, and outputs the classification result.

[0089] 8 is a flow diagram showing an example of the flow of the second model generation process executed by the model generation device 2. The second model generation process is a process of learning the fourth learning model LM4 using the third learning model LM3. The second model generation process is realized by the processing unit 23 working in cooperation with other components of the model generation device 2 based on the program stored in the storage unit 21.

[0090] First, the first learning unit 231 executes a second pre-learning process to train the third extractor EX3 and the third classifier CL3 of the third learning model LM3 so as to output the class of the third image IM3 when the third image IM3 is input (step S501). The second pre-learning process will be described in detail later.

[0091] Next, in steps S502-S505, the second learning unit 232 uses the third learning model LM3 to train the fourth learning model LM4 so as to output the class of the fourth image IM4 when the fourth image IM4 is input.

[0092] First, the second learning unit 232 sets initial parameters of the fourth extractor EX4 and the fourth classifier CL4 (step S502). The second learning unit 232 sets the parameters of the third extractor EX3 learned in the second pre-learning process as the initial parameters of the fourth extractor EX4. The second learning unit 232 also sets the parameters of the third classifier CL3 learned in the second pre-learning process as the parameters of the fourth classifier CL4.

[0093] Next, the second learning unit 232 executes a second discrimination learning process to train the discriminator DC to discriminate whether or not the input feature amount is the feature amount extracted by the third extractor EX3 (step S503). The second discrimination learning process will be described in detail later.

[0094] Next, the second learning unit 232 executes an extraction aggregation learning process for training the fourth extractor EX4 and the aggregator AG (step S504). When the divided images SG of the fourth image IM4 are input, the fourth extractor EX4 and the aggregator AG extract and aggregate the features of each divided image SG, and are trained so that the classifier DC does not erroneously identify the aggregated features as features extracted by the third extractor EX3. The extraction aggregation learning process will be described in detail later.

[0095] Next, the second learning unit 232 determines whether or not a termination condition for the learning of the fourth learning model LM4 is satisfied (step S505). The termination condition is, for example, that the second discrimination learning process and the extraction aggregation learning process have been executed a predetermined number of times. The termination condition may be that the amount of change in the parameter in the second discrimination learning process or the extraction aggregation learning process is less than a threshold value. The termination condition may be that at least one of the above-mentioned multiple conditions is satisfied, or that all of them are satisfied.

[0096] If the end condition is not satisfied (step S505-No), the second model generation process returns to step S503. That is, the second learning unit 232 alternately executes the second discrimination learning process and the extraction aggregation learning process. The second discrimination learning process and the extraction aggregation learning process are other examples of the first learning and the second learning, respectively. Note that step S504 may be executed before step S503.

[0097] If the termination condition is satisfied (step S505-Yes), the output unit 233 outputs the trained fourth learning model LM4 (step S506). For example, the output unit 233 transmits the fourth learning model to the image classification device 3 via the communication unit 22. This ends the second model generation process.

[0098] 9 is a flow diagram showing an example of the flow of the second pre-learning process. The second pre-learning process is executed in step S501 of the second model generation process.

[0099] First, the first learning unit 231 acquires training data (step S601). The training data in the second pre-learning process is data in which a plurality of third images IM3 are associated with the class of each of the third images IM3.

[0100] Next, the first learning unit 231 extracts features of the third image IM3 by inputting the third image IM3 to the third extractor EX3 (Step S602).

[0101] Next, the first learning unit 231 outputs the class of the third image IM3 by inputting the extracted feature amount to the third classifier CL3 (step S603). For example, the third classifier CL3 outputs a two-element vector in which the value of each element is 0 or more and 1 or less as a class. The third classifier CL3 may output a one-element vector (scalar value) in which the value of the element is 0 or more and 1 or less as a class.

[0102] Next, the first learning unit 231 calculates a loss based on the class of the third image IM3 included in the training data and the class output from the third classifier CL3 (step S604). The loss is a value indicating the magnitude of the difference between the class of the third image IM3 included in the training data and the class output from the third classifier CL3, and is, for example, a cross-entropy error.

[0103] Next, the first learning unit 231 updates the parameters of the third learning model LM3 (step S605). The first learning unit 231 updates at least one parameter of the third extractor EX3 and the third classifier CL3 of the third learning model LM3. The parameters are updated so that the loss calculated in step S604 becomes small. The parameters are updated by, for example, backpropagation and gradient descent such as steepest descent or stochastic gradient descent.

[0104] Next, the first learning unit 231 determines whether or not a termination condition for the learning of the third learning model LM3 is satisfied (step S606). The termination condition is, for example, that a parameter has been updated a predetermined number of times. The termination condition may be that the amount of change due to the parameter update is less than a threshold value. The termination condition may be that at least one of the above-mentioned multiple conditions is satisfied, or that all of them are satisfied.

[0105] If the end condition is not satisfied (step S606-No), the second pre-learning process returns to step S601, and the first learning unit 231 acquires teacher data again.

[0106] If the end condition is satisfied (Yes in step S606), the second pre-learning process ends.

[0107] In the above description, the second pre-learning process is a so-called online learning process, but the second pre-learning process may be a so-called mini-batch learning or batch learning process. In this case, the processes of steps S601-S603 are repeated a number of times corresponding to the batch size, and then the processes of steps S604-S605 are executed.

[0108] 10 is a flow diagram showing an example of the flow of the second discriminative learning process. The second discriminative learning process is executed in step S503 of the second model generation process.

[0109] First, the second learning unit 232 acquires training data (step S701). The training data in the second discriminative learning process is data in which a feature amount and a label are associated with each other. The training data in the first discriminative learning process is data in which a feature amount and a label are associated with each other. The label is a two-element vector including an element indicating whether the feature amount is one aggregated by the third extractor EX3 and an element indicating whether the feature amount is one output by the aggregator AG.

[0110] The features included in the teacher data are obtained by inputting the third image IM3 and the fourth image IM4 to the third learning model LM3 and the fourth learning model LM4, respectively. The features extracted by the third extractor EX3 are obtained using the third extractor EX3 whose parameters have been updated by the second pre-learning process. The features aggregated by the aggregator AG are obtained using the fourth extractor EX4 and the aggregator AG whose initial parameters are set to the parameters of the third extractor EX3 updated by the second pre-learning process. The initial parameters of the aggregator AG may be default values ​​or may be set randomly.

[0111] The third image IM3 used to acquire the feature amount may be the same as or different from the third image IM3 included in the teacher data in the second pre-learning process. The fourth image IM4 used to acquire the feature amount may be the same as or different from the fourth image IM4 included in the teacher data in the extraction aggregation learning process described below.

[0112] Next, the second learning unit 232 outputs a classification result by inputting the feature amount included in the teacher data to the classifier DC (step S702). For example, the classifier DC outputs a two-element vector, each element of which has a value between 0 and 1, as the classification result.

[0113] Next, the second learning unit 232 calculates a loss based on the label included in the training data and the classification result output from the classifier DC (step S703). The loss is a value indicating the magnitude of the difference between the label included in the training data and the classification result output from the classifier DC, and is, for example, a cross-entropy error.

[0114] Next, the second learning unit 232 updates the parameters of the classifier DC (step S704). The parameters are updated so that the loss calculated in step S703 becomes smaller. The parameters are updated by, for example, the backpropagation method and a gradient descent method such as the steepest descent method or the stochastic gradient descent method.

[0115] Next, the second learning unit 232 determines whether or not a termination condition for the learning of the classifier DC is satisfied (step S705). The termination condition is, for example, that a parameter has been updated a predetermined number of times. The termination condition may be that the amount of change due to the parameter update is less than a threshold. The termination condition may be that at least one of the above-mentioned multiple conditions is satisfied, or that all of them are satisfied.

[0116] If the end condition is not satisfied (step S705-No), the second discrimination learning process returns to step S701, and the second learning unit 232 acquires training data again.

[0117] If the end condition is satisfied (step S705--Yes), the second discrimination learning process ends.

[0118] In the above description, the second discriminative learning process is a so-called online learning process, but the second discriminative learning process may be a so-called mini-batch learning or batch learning process. In this case, the processes of steps S701-S702 are repeated a number of times corresponding to the batch size, and then the processes of steps S703-S705 are executed.

[0119] 11 is a flow diagram showing an example of the flow of the extraction aggregation learning process. The extraction aggregation learning process is executed in step S504 of the second model generation process.

[0120] First, the second learning unit 232 acquires training data (step S801). The training data in the extraction aggregation learning process is data in which a plurality of fourth images IM4 are associated with the class of each of the fourth images IM4.

[0121] Next, the second learning unit 232 divides the fourth image IM4 included in the acquired teacher data to generate a plurality of divided images SG, each having a third number of pixels (step S802).

[0122] Next, the second learning unit 232 extracts features of each divided image SG by inputting each divided image SG to the fourth extractor EX4 (step S803). The second learning unit 232 associates the divided images SG with the extracted features and stores them.

[0123] Next, the second learning unit 232 aggregates the extracted feature amounts of the multiple divided images SG by inputting them to the aggregator AG (step S804). The second learning unit 232 acquires the feature amounts aggregated by the aggregator AG.

[0124] Next, the second learning unit 232 outputs the class of the fourth image IM4 by inputting the aggregated feature amount to the fourth classifier CL4 (step S805). For example, the fourth classifier CL4 outputs a two-element vector in which the value of each element is 0 or more and 1 or less as a class. The fourth classifier CL4 may also output a one-element vector (scalar value) in which the value of the element is 0 or more and 1 or less as a class.

[0125] Next, the second learning unit 232 inputs the aggregated feature amount to the classifier DC, thereby outputting a classification result (step S806).

[0126] Next, the second learning unit 232 calculates a loss based on the class of the fourth image IM4 included in the teacher data, the class output from the fourth classifier CL4, and the classification result output from the discriminator DC (step S807). The loss includes the third loss and the fourth loss, and is, for example, a weighted sum of the third loss and the fourth loss.

[0127] The third loss is a value indicating the magnitude of the difference between the class of the fourth image IM4 included in the teacher data and the class output from the fourth classifier CL4, and is, for example, a cross-entropy error. The fourth loss is a value that increases as the error of the classification result output from the classifier DC decreases. Since the features in the extraction aggregation learning process are aggregated by the aggregator AG, the fourth loss for the classification result indicating that the features are extracted by the third extractor EX3 is small, and the fourth loss for the classification result indicating that the features are aggregated by the aggregator AG is large. In other words, the fourth loss is a so-called adversarial loss that indicates the extent to which the features aggregated by the aggregator AG can deceive the classifier DC. The fourth loss is, for example, a negative value of the cross-entropy error.

[0128] Next, the second learning unit 232 updates at least one parameter of the fourth extractor EX4 and the aggregator AG (step S808). The parameter is updated so that the loss calculated in step S807 becomes smaller.

[0129] Next, the second learning unit 232 determines whether or not a termination condition for the learning of the fourth learning model LM4 is satisfied (step S809). The termination condition is, for example, that a parameter has been updated a predetermined number of times. The termination condition may be that the amount of change due to the parameter update is less than a threshold value. The termination condition may be that at least one of the above-mentioned multiple conditions is satisfied, or that all of them are satisfied.

[0130] If the end condition is not satisfied (step S809-No), the extraction, aggregation, and learning process returns to step S801, and the second learning unit 232 acquires teacher data again.

[0131] If the end condition is satisfied (step S809-Yes), the extraction aggregation learning process ends.

[0132] In the above description, the extraction and aggregation process is a so-called online learning process, but is not limited to this example. The extraction and aggregation learning process may be a so-called mini-batch learning or batch learning process. In this case, the processes of steps S801-S806 are repeated a number of times corresponding to the batch size, and then the processes of steps S807-S809 are executed.

[0133] As described above, the model generating device 2 trains the third learning model so as to output the class of the third image when the third image is input. In addition, the model generating device 2 trains the fourth learning model using the third learning model so as to output the class of the fourth image when a plurality of divided images each having a third number of pixels, which are generated by dividing the fourth image having a fourth number of pixels, are input. By dividing the fourth image into a plurality of divided images each having a third number of pixels and training the divided images, a learning model having the same configuration can be used for the third extractor included in the third learning model and the second extractor included in the third learning model. Therefore, the model generating device 2 makes it possible to efficiently train an image classification model using images having different numbers of pixels.

[0134] 12 is a flow diagram showing an example of the flow of image classification processing executed by the image classification device 3. The image classification processing is processing in which the image classification device 3 classifies images using the second learning model output in the first model generation processing or the fourth learning model output in the second model generation processing. The image classification processing is executed in a state in which the second learning model or the fourth learning model is stored in the storage unit 31. The image classification processing is realized by the processing unit 33 cooperating with other components of the image classification device 3 based on the program stored in the storage unit 31.

[0135] First, the acquisition unit 331 acquires an image to be classified (step S901). The image to be classified is an image with a number of pixels according to the learning model stored in the storage unit 31. That is, when the second learning model is stored in the storage unit 31, the image to be classified is an image with a second resolution, and when the fourth learning model is stored, the image to be classified is an image with a fourth resolution. The acquisition unit 331 acquires the image to be classified by receiving it via the communication unit 32.

[0136] Next, the classification unit 332 classifies the acquired image using the trained model stored in the storage unit 31 (step S902). The classification unit 332 inputs the acquired image to the trained model and classifies the image based on the class output from the trained model. For example, the classification unit 332 classifies the image into a class corresponding to an element having a larger value among a two-element vector that is the class output from the trained model.

[0137] Next, the output unit 333 outputs the classification result (step S903). The output unit 333 outputs the classification result by transmitting it to another device via the communication unit 32. The classification result may be the class itself output from the trained model. This completes the image classification process.

[0138] As described above, the image classification device 3 stores the trained model output in the first model generation process or the second model generation process, and classifies images by inputting the images to the trained model. In this way, the image classification device 3 can appropriately classify the image to be classified based on an image with a different number of pixels from the image to be classified.

[0139] The image generation system 1 may have the following modified examples.

[0140] In the above description, in step S102 of the first model generation process, the second learning unit 232 sets the parameters of the first extractor and the first classifier as the initial parameters of the second extractor and the second classifier, but this is not limited to an example. The parameters of the second extractor and the second classifier may be set to default values ​​regardless of the parameters of the first extractor and the first classifier. Even in this way, the second extractor is trained so that the feature amount extracted by the second extractor in the first discrimination learning process and the extraction learning process approaches the feature amount aggregated by the aggregator, so that it is possible to efficiently train the learning model using images with different numbers of pixels.

[0141] Similarly, the parameters of the fourth extractor and the fourth classifier may be set to default values ​​regardless of the parameters of the third extractor and the third classifier. In this way, it is possible to efficiently train the learning model using images with different numbers of pixels.

[0142] In the above description, the first extractor and the second extractor are assumed to be learning models having the same configuration, but this is not limited to such an example. The first extractor and the second extractor may be learning models having different configurations. For example, the first extractor and the second extractor may be convolutional neural networks having different numbers of layers or nodes. In this case, in step S102, the second learning unit 232 may set a part of the parameters of the first extractor as the initial parameters of the second extractor, or set the parameters of the first extractor as a part of the initial parameters of the second extractor.

[0143] Similarly, the third extractor and the fourth extractor may be learning models having different configurations. In this case, in step S502 of the second model generation process, the second learning unit 232 may set some of the parameters of the first extractor as initial parameters of the second extractor, or set the parameters of the first extractor as some of the initial parameters of the second extractor.

[0144] In the above description, in step S204 of the first pre-learning process, the aggregator aggregates the feature amounts extracted from each divided image by weighting and adding them, but this is not limited to the example. For example, the aggregator may aggregate the feature amounts by taking the difference between the feature amounts extracted from each divided image. Also, the aggregator may aggregate the feature amounts by combining the feature amounts extracted from each divided image. For example, the aggregator combines the feature amount vectors extracted from each divided image in the spatial direction based on the positional relationship of the multiple divided images. The aggregator may calculate a feature amount consisting of multiple channels, with the feature amount vectors extracted from each divided image being the feature amount of each channel.

[0145] Similarly, in step S604 of the second pre-learning process, the aggregator may aggregate the features by taking the difference between the features extracted from each divided image. Alternatively, the aggregator may aggregate the features by combining the features extracted from each divided image.

[0146] In the above description, the storage unit 21 stores the classifier DC, but the present invention is not limited to this example, and the storage unit 21 does not need to store the classifier DC. In this case, the first discrimination learning process in step S103 of the first model generation process and the second discrimination learning process in step S503 of the second model generation process may be omitted. Even in this case, the transfer of the parameters of the extractor makes it possible to efficiently train the learning model using images with different numbers of pixels.

[0147] In the above description, the first learning model LM1 and the second learning model LM2 output whether or not an image contains an area where trees are dead as the image class, but this is not limited to the example. The image class may be a classification of images based on any criterion. Also, three or more image classes may be set. In this case, the first learning model LM1 and the second learning model LM2 output a vector having elements equal to the number of image classes.

[0148] The functions of the model generating device 2 or the image classification device 3 described above may be realized by a plurality of devices.

[0149] It should be understood by those skilled in the art that various changes, substitutions, and modifications can be made to the present invention without departing from the scope of the present invention. For example, the above-described embodiments and modifications may be appropriately combined within the scope of the present invention. [Explanation of symbols]

[0150] 2. Model generation device 231 First Learning Section 232 Second Learning Section 233 Output section

Claims

1. a first learning unit that trains a first learning model including a first extractor that extracts feature values ​​of a plurality of divided images, each of which has a second number of pixels smaller than the first number of pixels and is generated by dividing a first image having a first number of pixels, so as to output a class of the first image when the plurality of divided images are input; a second learning unit that uses the first learning model to learn a second learning model including a second extractor that extracts a feature amount of a second image having the second number of pixels, so as to output a class of the second image when the second image is input; and an output unit that outputs the trained second learning model, The first learning model further includes an aggregator that aggregates feature amounts of the plurality of segmented images; the second learning unit trains the second extractor so that, when the feature of the second image extracted by the second extractor is input to a classifier trained to identify whether an input feature is a feature of the plurality of segmented images aggregated by the aggregator, the feature of the second image extracted by the second extractor is identified as a feature of the plurality of segmented images aggregated by the aggregator; A model generating device comprising:

2. The second learning unit sets parameters of the first extractor learned by the first learning unit as initial parameters of the second extractor. The model generating device according to claim 1 .

3. The first learning model further includes a first classifier that outputs a class of the first image based on the feature amount aggregated by the aggregator; The second learning model further includes a second classifier that outputs a class of the second image based on the feature amount extracted by the second extractor; The second learning unit sets parameters of the first classifier learned by the first learning unit as initial parameters of the second classifier. The model generating device according to claim 1 .

4. the second learning unit alternately executes a first learning in which the classifier is trained using the feature amount aggregated by the aggregator and the feature amount extracted by the second extractor, and a second learning in which the second extractor is trained using the second image. The model generating device according to claim 1 .

5. The first image and the second image are images having the same receptive field. The model generating device according to claim 1 .

6. A model generation method executed by a model generation device, comprising: a first learning model including a first extractor that extracts a feature amount of each of a plurality of divided images, each of which has a second number of pixels smaller than the first number of pixels, generated by dividing a first image having a first number of pixels, is trained so as to output a class of the first image when the plurality of divided images are input; a second learning model including a second extractor that extracts a feature amount of a second image having the second number of pixels is trained using the first learning model so as to output a class of the second image when the second image is input; outputting the trained second learning model; The first learning model further includes an aggregator that aggregates feature amounts of the plurality of segmented images; In the training of the second learning model, when the feature of the second image extracted by the second extractor is input to a classifier trained to discriminate whether or not an input feature is a feature of the plurality of segmented images aggregated by the aggregator, the second extractor is trained so as to discriminate the feature of the second image extracted by the second extractor as the feature of the plurality of segmented images aggregated by the aggregator. A model generation method comprising:

7. a first learning model including a first extractor that extracts a feature amount of each of a plurality of divided images, each of which has a second number of pixels smaller than the first number of pixels, generated by dividing a first image having a first number of pixels, is trained so as to output a class of the first image when the plurality of divided images are input; a second learning model including a second extractor that extracts a feature amount of a second image having the second number of pixels is trained using the first learning model so as to output a class of the second image when the second image is input; and causing the computer to output the trained second learning model; The first learning model further includes an aggregator that aggregates feature amounts of the plurality of segmented images; In the training of the second learning model, when the feature of the second image extracted by the second extractor is input to a classifier trained to discriminate whether or not an input feature is a feature of the plurality of segmented images aggregated by the aggregator, the second extractor is trained so as to discriminate the feature of the second image extracted by the second extractor as the feature of the plurality of segmented images aggregated by the aggregator. A program characterized by:

8. a first learning unit that learns a first learning model including a first extractor that extracts a feature amount of a first image having a first number of pixels so as to output a class of the first image when the first image is input; a second learning unit that uses the first learning model to learn a second learning model including a second extractor that extracts feature amounts of a plurality of divided images each having the first number of pixels, the plurality of divided images being generated by dividing a second image having a second number of pixels larger than the first number of pixels, so as to output a class of the second image when the plurality of divided images are input; an output unit that outputs the trained second learning model; having The second learning model further includes an aggregator that aggregates feature amounts of the plurality of segmented images; the second learning unit trains the second extractor so that, when features of the plurality of segmented images aggregated by the aggregator are input to a classifier trained to identify whether an input feature is a feature of the first image extracted by the first extractor, the feature of the plurality of segmented images aggregated by the aggregator is identified as a feature of the first image extracted by the first extractor; A model generating device comprising:

9. A model generation method executed by a model generation device, comprising: a first learning model including a first extractor that extracts a feature amount of a first image having a first number of pixels is trained so as to output a class of the first image when the first image is input; a second learning model including a second extractor that extracts feature amounts of a plurality of divided images each having the first number of pixels, the plurality of divided images being generated by dividing a second image having a second number of pixels larger than the first number of pixels, is trained using the first learning model so as to output a class of the second image when the plurality of divided images are input; outputting the trained second learning model; The second learning model further includes an aggregator that aggregates feature amounts of the plurality of segmented images; In the training of the second learning model, when features of the plurality of segmented images aggregated by the aggregator are input to a classifier trained to identify whether or not an input feature is a feature of the first image extracted by the first extractor, the second extractor is trained so that the feature of the plurality of segmented images aggregated by the aggregator is identified as the feature of the first image extracted by the first extractor. A model generation method comprising:

10. a first learning model including a first extractor that extracts a feature amount of a first image having a first number of pixels is trained so as to output a class of the first image when the first image is input; a second learning model including a second extractor that extracts feature amounts of a plurality of divided images each having the first number of pixels, the plurality of divided images being generated by dividing a second image having a second number of pixels larger than the first number of pixels, is trained using the first learning model so as to output a class of the second image when the plurality of divided images are input; and causing the computer to output the trained second learning model; The second learning model further includes an aggregator that aggregates feature amounts of the plurality of segmented images; In the training of the second learning model, when features of the plurality of segmented images aggregated by the aggregator are input to a classifier trained to identify whether or not an input feature is a feature of the first image extracted by the first extractor, the second extractor is trained so that the feature of the plurality of segmented images aggregated by the aggregator is identified as the feature of the first image extracted by the first extractor. A program characterized by:

Citation Information

Patent Citations

  • Cross-domain small sample image semantic segmentation method based on memory mechanism

    CN115359250A

  • Learning method, program, and image processing device

    JP2020204880A

  • Evaluation system, evaluation method, and evaluation program

    JP2022029155A

  • Learning device, method and program, and inference system

    JP2023136713A