Learning device, learning method, and learning program
The learning device autonomously adds prototypes based on confidence levels, addressing low accuracy and storage inefficiencies, ensuring efficient and accurate learning by adding prototypes with matching teacher labels.
Patent Information
- Application Number
- JP2020183106
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-10-30
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2040-10-30
AI Technical Summary
Existing learning models face issues with low learning accuracy when the number of prototypes is small and inefficiency or storage capacity overflow when the number is large, leading to prolonged learning times and potential incorrect learning.
A learning device that autonomously adds prototypes based on confidence levels and matching teacher labels, using a confidence level threshold to determine when to add new prototypes, thereby improving learning efficiency and accuracy.
The device can continuously learn over extended periods, prevent incorrect learning, and maintain high learning efficiency by adding prototypes with matching teacher labels, enhancing learning accuracy and adaptability.
Smart Images

Figure 0007568216000008 
Figure 0007568216000009 
Figure 0007568216000010
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning device, a learning method, and a learning program. [Background technology]
[0002] It has been known that information is encoded using Learning Vector Quantization (LVQ) in image processing, audio processing, etc. LVQ is a supervised learning model that learns a prototype vector that assigns an input vector to a label, and can be used as a classifier that outputs a label for an input vector, as shown in Patent Document 1, for example, and is therefore used in pattern recognition, etc.
[0003] In machine learning using LVQ, an LVQ neural network having an input layer, a competitive layer, and an output layer is used. The input layer stores input vectors. The competitive layer has a prototype vector, which is a feature vector representing each label, and a label, and outputs the input vector obtained from the input layer and the nearest prototype vector. The output layer linearly outputs the label of the prototype vector obtained from the competitive layer.
[0004] As shown in Non-Patent Document 1, a learning algorithm using an LVQ neural network is executed, for example, in the following steps (1) to (4). (1) An input vector corresponding to the input features of the training data is input to the input layer. (2) In the competitive layer, the label of the prototype vector closest to the input vector obtained from the input layer is determined as the “winner.” (3) If the label of the input vector and the label of the prototype vector determined as the "winner" are the same, the prototype vector is moved closer to the input vector according to the learning rate. If the label of the input vector x and the label of the prototype vector determined as the "winner" are different, the prototype vector is moved away from the input vector according to the learning rate. (4) The above processes (1) to (3) are repeated to learn the prototype vectors. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2004-110196 A [Non-patent literature]
[0006] [Non-Patent Document 1] T. Kohonen, “Improved versions of learning vector quantization,” in Proceedings of the IEEE International Joint Conference on Neural Networks, pp.545-550, 1990 Summary of the Invention [Problem to be solved by the invention]
[0007] In a learning model that enables online machine learning using a learning rate such as LVQ, the prototypes stored in the learning device are added sequentially by an operator according to the learning accuracy. However, if the number of prototypes stored in the learning device is small, the learning accuracy is low. On the other hand, if the number of prototypes stored in the learning device is large, or if many prototypes are added to the learning device, there is a risk that the learning device will be unable to learn if the learning device exceeds its storage capacity. In addition, if the number of prototypes stored in the learning device is large, or if many prototypes are added to the learning device, there is a risk that the time required for the learning process by the learning device will be long, resulting in a decrease in learning efficiency.
[0008] The present invention has been made to solve such problems, and has an object to provide a learning device, a learning method, and a learning program that are capable of autonomously adding prototypes. [Means for solving the problem]
[0009] The learning device of the present invention has a memory unit that stores a prototype label and a plurality of prototypes, each of which includes a prototype label and a prototype feature corresponding to the prototype label; a learning data acquisition unit that acquires learning data including input feature data indicating the input features and teacher label data indicating a teacher label associated with the input features; a prediction label acquisition unit that acquires a prediction label output by a learning model to which the input features are input; and a prototype addition unit that decides whether to add a prototype to the memory unit based on a confidence factor indicating the likelihood that the learning model will output the teacher label associated with the input features as a predicted label in response to the input of the input features, the teacher label, and the prediction label.
[0010] Furthermore, in the learning device of the present invention, it is preferable that the prototype adding unit decides to add the learning data as a prototype when the predicted label does not match the teacher label and the confidence of the teacher data is greater than a predetermined threshold value.
[0011] Furthermore, in the learning device according to the present invention, it is preferable that the prototype label included in the prototype to be added is a teacher label associated with the input feature.
[0012] Furthermore, in the learning device of the present invention, it is preferable that each of the multiple prototypes further includes co-occurrence frequency information indicating at least the frequency at which a predicted label output by a learning model to which input features have been input matches a teacher label associated with the input features, and the confidence level is calculated from the co-occurrence frequency information.
[0013] Furthermore, it is preferable that the learning device according to the present invention further includes a co-occurrence frequency change unit that changes the co-occurrence frequency information based on at least the degree of match between the teacher label and the predicted label when the prototype adding unit does not add a prototype, and a confidence calculation unit that calculates a confidence level based on the changed co-occurrence frequency information.
[0014] Furthermore, it is preferable that the learning device of the present invention further includes a learning rate calculation unit that calculates a learning rate used when the learning model learns from the confidence factor, and a prototype feature update unit that updates the prototype features based on the learning rate.
[0015] In addition, the learning method of the present invention is a learning method for training a learning model in a learning device having a memory unit that stores a plurality of prototypes, each of which includes a prototype label and a prototype feature corresponding to the prototype label, and acquires learning data including input feature data indicating the input features and teacher label data indicating a teacher label associated with the input features, acquires a predicted label output by the learning model, and determines whether to add a prototype based on a confidence factor indicating the likelihood that the learning model will output the teacher label associated with the input features as a predicted label in response to the input of the input features and whether the teacher label and the predicted label match.
[0016] The control program of the present invention is a control program for causing a learning device having a memory unit that stores a plurality of prototypes, each of which includes a prototype label and a prototype feature corresponding to the prototype label, to learn a learning model, and causes the learning device to execute a process of acquiring learning data including input feature data indicating the input feature and teacher label data indicating a teacher label associated with the input feature, acquiring a predicted label output by the learning model, and determining whether or not to add a prototype based on a confidence factor indicating the likelihood that the learning model will output the teacher label associated with the input feature as a predicted label in response to the input of the input feature and whether or not the teacher label and the predicted label match. Effect of the Invention
[0017] The learning device, learning method, and learning program according to the present invention can autonomously add prototypes. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is an explanatory diagram for explaining an overview of a learning device according to an embodiment; [Diagram 2] FIG. 1 is a block diagram of a learning device according to an embodiment. [Diagram 3] FIG. 3 is a schematic diagram of the learning model shown in FIG. 2. [Figure 4] FIG. 3 is a diagram showing a prototype table shown in FIG. 2. [Diagram 5] FIG. 3 is a diagram showing a confidence level table shown in FIG. 2. [Figure 6] FIG. 3 is a diagram illustrating a learning rate table shown in FIG. 2. [Figure 7] 3 is a flowchart showing a learning process performed by the learning device shown in FIG. 2. [Figure 8] 8 is a flowchart showing more detailed processing of the processing of S106 shown in FIG. 7. [Figure 9] FIG. 1 is a diagram (part 1) for explaining an application example of the learning device according to the embodiment, where (a) is a diagram showing the data used, (b) is a first example when the threshold value is 0.5, and (c) is a second example when the threshold value is 0.8. [Figure 10] FIG. 2 is a second diagram for explaining an application example of the learning device according to the embodiment, where (a) shows the data used, (b) is a first example when the threshold value is 0.5, and (c) is a second example when the threshold value is 0.8. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] Various embodiments of the present invention will be described below with reference to the drawings. However, it should be noted that the technical scope of the present invention is not limited to these embodiments, but extends to the inventions described in the claims and their equivalents.
[0020] (Overview of the learning device according to the embodiment) 1 is an explanatory diagram for explaining an overview of a learning device according to an embodiment. The learning device according to an embodiment is, for example, a personal computer (PC). The learning device according to an embodiment may be an electronic computer such as a server device, a tablet terminal, or a tablet PC.
[0021] The learning device executes a learning process to learn a learning model while updating prototype features stored in a storage unit, using learning data including input feature data indicating input features and teacher label data indicating teacher labels associated with the input features. The learning device decides whether to add a new prototype to the storage unit based on a confidence level indicating the likelihood that the learning model will output a teacher label associated with the input features as a predicted label in response to the input of the input features, the teacher label, and the predicted label. More specifically, the learning device decides to add the learning data to the storage unit as a new prototype when the confidence level of the teacher label is greater than a predetermined threshold value and the predicted label does not match the teacher label. The learning device can autonomously add a prototype by deciding whether to add a new prototype based on the confidence level and the predicted label.
[0022] Below, an overview of the process of adding a prototype will be described using an example of a learning algorithm in which the learning device uses an LVQ neural network as a learning model.
[0023] The memory unit of the learning device stores four prototypes corresponding to “apples,” “tangerines,” “grapes,” and “pears,” and the confidence level R i Each of the four prototypes is stored as a prototype label L(m i ) and the prototype vector m i The prototype vector m i is an example of a prototype feature. In the example shown in Figure 1, the prototype vector m iThe image corresponding to this is an image of a "red apple," which has a red skin, a common color for an apple.
[0024] Confidence R i is the teacher label L(x) associated with the input vector x, and the predicted label L(m j ) is the confidence level of the word "apple". i is a predetermined threshold value R, which is "0.5" in one example and preferably "0.8" TH It is a larger value than.
[0025] First, the learning device obtains learning data including input vector data indicating an input vector x and teacher label data indicating a teacher label L(x). Then, the learning device uses the learning model to obtain a predicted label L(m j ) is obtained. The learning model obtains a predicted label L(m j ) to output.
[0026] In the example shown in FIG. 1, an image, which is an input vector x associated with a teacher label L(x) indicating an apple, is input to the learning model. The image corresponding to the input vector x input to the learning model is a prototype vector m i The image corresponds to an image of a "green apple," which has a blue skin color, different from the corresponding image of a "red apple."
[0027] The learning model is the prototype vector m i An input vector x indicating an image of a "green apple" different from the image corresponding to j ) is output as “pear” instead of “apple” which corresponds to the teacher label L(x).
[0028] The learning device then calculates the confidence level R i is the threshold R TH Larger and predicted label L(m j) does not match the teacher label L(x), and a prototype is added. The prototype label of the added prototype is the teacher label L(x) indicating "apple," and the prototype vector is the input vector x indicating an image of a "green apple."
[0029] The learning device according to the embodiment autonomously adds prototypes, and therefore can execute learning processing sequentially and continuously for a longer period of time than existing learning devices.
[0030] In addition, the learning device according to the embodiment has a confidence level R i is the threshold R TH Larger and predicted label L(m j ) does not match the training label L(x), the learning model is not trained, so the prototype vector is not learned by mistake. For example, the prototype vector m i If the vector representing the image of a "green apple" is trained as the training vector x, the prototype vector m i is mistakenly learned as a yellow vector between blue and red. i is the threshold R TH Larger and predicted label L(m j By not training the learning model when the training label L(x) does not match the teacher label L(x), the learning model can be prevented from erroneously training.
[0031] The learning device according to the embodiment has a confidence level R i is the threshold R TH Larger and predicted label L(m j When the prototype vector m(x) does not match the training label L(x), a new prototype can be added, allowing multiple prototypes to be associated with the same label. For example, the prototype vector m i By having this, the learning model can acquire additional knowledge that there are not only "red apples" with red skin, but also "green apples" with blue skin.
[0032] (Configuration and Functions of Learning Device According to the Embodiment) FIG. 2 is a block diagram of the learning device 1.
[0033] The learning device 1 includes a communication unit 11, a storage unit 12, an input unit 13, an output unit 14, and a processing unit 20. The learning device 1 executes a learning process for learning a learning model by updating prototype features stored in the storage unit using learning data including input feature data indicating input features and teacher label data indicating teacher labels associated with the input features. The communication unit 11, the storage unit 12, the input unit 13, the output unit 14, and the processing unit 20 are communicatively connected via a bus 15.
[0034] The communication unit 11 performs short-distance wireless communication according to the Bluetooth (registered trademark) communication method, establishes terminal-to-terminal wireless communication with an external device, and performs direct wireless communication. The communication method of short-distance wireless communication is not limited to Bluetooth (registered trademark), and may be, for example, Bluetooth (registered trademark) Low Energy or the like. The communication unit 11 is not limited to one for performing short-distance wireless communication, and may be, for example, one for receiving various signals by infrared communication or the like. In this case, the communication unit 11 may generate data by modulating a predetermined radio wave received from an external device into a specific signal. The communication unit 11 may be a communication interface including an interface for connecting to a USB (Universal Serial Bus) or the like, a communication interface for a wired or wireless LAN (Local Area Network), or the like.
[0035] The storage unit 12 includes at least one of a semiconductor memory device such as a ROM (Read Only Memory) or a RAM (Random Access Memory), a magnetic tape device, a magnetic disk device, or an optical disk device. The storage unit 12 stores an operating system program, a driver program, a control program, data, and the like used in the processing in the processing unit 20. The driver programs stored in the storage unit 12 include a communication device driver program for controlling the communication unit 11, an input device driver program for controlling the input unit 13, and an output device driver program for controlling the output unit 14. The control programs stored in the storage unit 12 include application programs for executing various processes described later. The various programs stored in the storage unit 12 may be installed in the storage unit 12 from a computer-readable portable recording medium such as a CD-ROM or a DVD-ROM using a known setup program or the like.
[0036] The storage unit 12 stores, for example, a learning model 16, a prototype table 17 indicating a plurality of prototypes, a confidence level table 18, and a learning rate table 19. The storage unit 12 may also temporarily store data related to a predetermined process.
[0037] FIG. 3 is a schematic diagram of the learning model 16.
[0038] The learning model 16 has an input layer, a competitive layer, and an output layer, and outputs a predicted label in response to an input vector x, which is an example of an input feature. At least one artificial neuron (hereinafter simply referred to as a "neuron") is set in the input layer, the competitive layer, and the output layer.
[0039] The input layer receives an input vector x corresponding to the input feature data included in the training data. The input feature data is a data group including multiple data items arranged in a predetermined data array. When the input feature data is image data with a total pixel count of n, the input vector x{x1, x2,...x n} indicates the color value of each pixel in the image data, etc., n The input vector x may be any vector. For example, if the input feature data are four types of attribute parameter values related to a flower, the input vector x{x1, x2, x3, x4} is the petal length value x1, the petal width value x2, the sepal length value x3, and the sepal width value x4.
[0040] The competitive layer includes neurons corresponding to the prototype vectors. The number of neurons included in the competitive layer is equal to or greater than the number (k) of multiple labels that are set in advance. For example, the prototype vector of the i-th label among the multiple labels is m i {μ1,μ2,...μ n}. In each of the k neurons in the competitive layer, the input vector x{x1, x2, . . . x n} and the prototype vector m i {μ1,μ2,...μ n} is calculated. Note that the prototype vector m i The number of dimensions of the prototype vector m i μ1, μ2,...μ in n The initial value of can be any value.
[0041] The output layer defines the prototype label corresponding to the shortest distance among the distances output from each neuron in the competitive layer as the predicted label L(m j )
[0042] FIG. 4 is a diagram showing the prototype table 17. As shown in FIG.
[0043] The prototype table 17 is the prototype label L(m i ), prototype vector m i , and co-occurrence frequency information (a i , b i , c i and d i) is stored in association with an identifier for each prototype. The prototype associated with identifier "1" corresponds to "apple", and the prototype associated with identifier "2" corresponds to "orange". The prototype associated with identifier "3" corresponds to "grapes", and the prototype associated with identifier "4" corresponds to "none". Although prototype table 17 stores four prototypes, the number of prototypes stored in the prototype table may be any number greater than one. Furthermore, the manner in which prototypes are stored in storage unit 12 is not limited to prototype table 17.
[0044] FIG. 5 is a diagram showing the confidence level table 18. As shown in FIG.
[0045] Confidence Table 18 shows the confidence R i is stored for each prototype in association with the same identifier as the identifier in the prototype table 17. The confidence R1 associated with the identifier "1" is the learning rate corresponding to "apples", and the confidence R2 associated with the identifier "2" is the learning rate corresponding to "oranges". The confidence R3 associated with the identifier "3" is the learning rate corresponding to "grapes", and the confidence R4 associated with the identifier "4" is the learning rate corresponding to "none". The confidence table 18 stores the four confidences R i However, the confidence R stored in the confidence table 18 i The number of prototypes may be the same as the number of prototypes stored in the prototype table 17.
[0046] FIG. 6 is a diagram showing the learning rate table 19. As shown in FIG.
[0047] Learning rate table 19 shows the learning rate α iis stored for each prototype in association with the same identifier as that in the prototype table 17 and the confidence table 18. The learning rate α1 associated with the identifier "1" is the learning rate corresponding to "apples", and the learning rate α2 associated with the identifier "2" is the learning rate corresponding to "tangerines". The learning rate α3 associated with the identifier "3" is the learning rate corresponding to "grapes", and the learning rate α4 associated with the identifier "4" is the learning rate corresponding to "none". The learning rate table 19 stores the four learning rates α i However, the learning rate α i The number of prototypes may be the same as the number of prototypes stored in the prototype table 17.
[0048] The input unit 13 is, for example, a keyboard, a mouse, or a pointing device such as a touch panel. A user can use the input unit 13 to input characters, numbers, and symbols, or positions on the display screen of the output unit 14, etc. When operated by a user, the input unit 13 generates a signal corresponding to the operation. The generated signal is then supplied to the processing unit 20 as an instruction from the user.
[0049] The output unit 14 is a liquid crystal display. The output unit 14 may be an organic EL (Electro-Luminescence) display, etc. The output unit 14 displays a video corresponding to the video data supplied from the processing unit 20, an image corresponding to the image data, etc.
[0050] The processing unit 20 includes one or more processors and their peripheral circuits. The processing unit 20 centrally controls the overall operation of the learning device 1, and is, for example, a CPU (Central Processing Unit). The processing unit 20 executes various information processes in an appropriate order based on the programs stored in the storage unit 12 and various instructions input by the user through the operation of the input unit 13, and controls the operation of the communication unit 11 and the output unit 14. The processing unit 20 executes various information processes based on the operating system program, driver program, and control program stored in the storage unit 12. The processing unit 20 can also execute multiple programs in parallel.
[0051] The processing unit 20 includes a learning data acquisition unit 21, a predicted label acquisition unit 22, a prototype addition unit 23, a co-occurrence frequency change unit 24, a confidence factor calculation unit 25, a learning rate calculation unit 26, and a prototype feature update unit 27. Each of these units is a functional module realized by a program executed by a processor included in the processing unit 20. Alternatively, each of these units may be implemented in the learning device 1 as firmware.
[0052] (Learning process by learning device 1) Fig. 7 is a flowchart showing the learning process by the learning device 1. The learning process shown in Fig. 7 is executed mainly by the processing unit 20 in cooperation with each element of the learning device 1, based on a control program stored in advance in the storage unit 12.
[0053] First, the learning data acquiring unit 21 acquires learning data including input feature data indicating an input feature and teacher label data indicating a teacher label associated with the input feature (S101). Specifically, the learning data acquiring unit 21 acquires learning data including input feature data indicating an input vector x and teacher label data indicating a teacher label L(x) associated with the input vector x.
[0054] Next, the predicted label acquisition unit 22 uses the learning model 16 to obtain the predicted label L(m jThe predicted label acquisition unit 22 inputs the input vector x to the input layer of the learning model 16, and obtains the predicted label L(m j ) is obtained.
[0055] Next, the prototype adding unit 23 calculates the predicted label L(m j ) matches the teacher label L(x) obtained in S101 (S103).
[0056] The prototype adding unit 23 adds the predicted label L(m j ) does not match the teacher label L(x) (S103-NO), the confidence level R i is a given threshold R TH The prototype adding unit 23 determines whether the confidence level R i , teacher label L(m j ), and the predicted label L(x), it is determined whether to add the prototype to the storage unit 12.
[0057] The prototype addition unit 23 adds the confidence level R i is a given threshold R TH If it is determined that it is greater than (S104-YES), a new prototype is added (S105). The prototype vector of the prototype to be added is the input vector x corresponding to the input feature amount data acquired in the process of S101. Also, the prototype label of the prototype to be added is the teacher label L(x) corresponding to the teacher label data acquired in the process of S101. When the process of S105 ends, the learning process by the learning device 1 ends without executing the processes of S106 to S110.
[0058] In the process of S103, the predicted label L(m j ) is determined to match the teacher label L(x) (S103-YES), or the confidence level R i is a given threshold R TH If it is determined that the number is equal to or less than the predetermined number (S104-NO), the process proceeds to S106.
[0059] Next, the co-occurrence frequency change unit 24 calculates the teacher label L(x) and the predicted label L(m j ) and prototype label L(m i The co-occurrence frequency change unit 24 changes the co-occurrence frequency information based on the degree of agreement between the teacher label L(x) and the predicted label L(m j ) and prototype label L(m i The co-occurrence frequency information is changed so that the co-occurrence frequency information reflects information indicating whether or not the two words match.
[0060] FIG. 8 is a flowchart showing the process of S106 shown in FIG. 7 in more detail.
[0061] First, the co-occurrence frequency change unit 24 calculates the prototype label L(m i ) from the prototype table 17 (S201). Next, the co-occurrence frequency change unit 24 obtains the prototype label L(m i ) and the predicted label L(m j ) is matched (S202).
[0062] The co-occurrence frequency change unit 24 changes the prototype label L(m i ) and predicted label L(m j ) matches (S202-YES), the predicted label L(m j ) matches the teacher label L(x) acquired in S101 (S203).
[0063] The co-occurrence frequency change unit 24 changes the predicted label L(m j ) and the teacher label L(x) match (S203-YES), and the first co-occurrence frequency a i The co-occurrence frequency change unit 24 adds a value "1" to the predicted label L(m j ) does not match the teacher label L(x) (S203-NO), and i The number "1" is added to (S205).
[0064] The co-occurrence frequency change unit 24 changes the prototype label L(m i ) and predicted label L(m j ) does not match (S202-NO), the predicted label L(m j It is determined whether or not the training label L(x) obtained in S101 matches the training label L(x) (S206).
[0065] The co-occurrence frequency change unit 24 changes the predicted label L(m j ) and the teacher label L(x) match (S206-YES), and the third co-occurrence frequency c i The co-occurrence frequency change unit 24 adds a value "1" to the predicted label L(m j ) does not match the teacher label L(x) (S206-NO) i The number "1" is added to (S208).
[0066] When the process of S106 is completed, the confidence level calculation unit 25 calculates the confidence level R i The confidence level calculation unit 25 calculates the confidence level R by using a causal inference model, which is an equation showing the causal relationship between two events. i Specifically, the confidence calculation unit 25 calculates the confidence R for each co-occurrence frequency stored in the prototype table 17 using the following formula (1). i Calculate the following.
[0067]
number
[0068] Next, the learning rate calculation unit 26 calculates the confidence level R i From the learning rate α i (S108), and the calculated learning rate α i is stored in the learning rate table 19. Specifically, the learning rate calculation unit 26 calculates a learning rate α i Calculate the following.
[0069]
number
[0070] When the process of S107 is completed, the learning rate calculation unit 26 calculates all the learning rates α i It is determined whether or not all learning rates α i The processes of S106 to S109 are repeated until it is determined that the learning rates α1 to α4 corresponding to “apples”, “tangerines”, “grapes”, and “pears” have been updated (S109-YES). By repeating the processes of S106 to S109, the learning rates α1 to α4 corresponding to “apples”, “tangerines”, “grapes”, and “pears”, respectively, are updated in sequence.
[0071] All learning rates α in learning rate table 19 i When it is determined that the prototype vector m has been updated (S109-YES), the prototype feature update unit 27 updates the prototype features stored in the prototype table 17 based on the learning rate updated in the process of S108 (S110). i The learning rate α i Based on this, the update is performed using equation (3).
[0072]
number
[0073] When the prototype feature update unit 27 updates the prototype features, the learning process of the learning model 16 using the learning data is completed.
[0074] (Functions and Effects of the Learning Device According to the Embodiment) The learning device 1 autonomously adds prototypes, and therefore can execute the learning process sequentially and continuously for a long period of time compared to existing learning devices.
[0075] In addition, the learning device 1 calculates the confidence level R i is the threshold R TH Larger and predicted label L(m j ) does not match the training label L(x), the learning model is not trained, so that the prototype vector is not learned by mistake.
[0076] In addition, the learning device 1 calculates the confidence level R i is the threshold R TH Larger and predicted label L(m j ) does not match the teacher label L(x), so it is possible to have multiple prototypes associated with the same label by adding a new prototype.
[0077] In addition, the learning device 1 calculates the confidence level R i Autonomously learning rate α i Since the learning rate is updated, the learning efficiency is improved without repeating the learning process in order to set an appropriate learning rate to improve the learning accuracy.
[0078] In addition, in the learning device 1, the learning rate α i As learning progresses, the confidence level R i As increases, the confidence level R i When the learning rate α becomes almost 100%, i becomes approximately 0%, and the learning device 1 increases the confidence R i The predicted label L(m j ) can be output.
[0079] In addition, the learning device 1 calculates the learning rate α corresponding to all prototypes based on one learning data. i Since the learning device 1 updates the confidence level R i The predicted label L(m j ) can be output.
[0080] (Modification of the learning device according to the embodiment) Although the learning device 1 uses an LVQ neural network as a learning model, the learning device according to the embodiment may use a learning model capable of online machine learning using a learning rate as the learning model. Furthermore, the learning device 1 stores the learning model 16 in the storage unit 12, but the learning device according to the embodiment may use a learning model stored in a server communicably connected via a communication network such as the Internet and a LAN, without storing the learning model to be used in the storage unit.
[0081] In addition, the learning device 1 calculates the confidence level R i However, the learning device according to the embodiment calculates at least the teacher label L(x) and the predicted label L(m j ) based on the degree of agreement between the
[0082] For example, the confidence level R i may be calculated using the following equation (4):
[0083]
number
[0084] Using equation (4), the confidence level R i When calculating, the first co-occurrence frequency a i indicates the number of times that the predicted label matches the training label, and the second co-occurrence frequency b i may indicate the number of times that the predicted label matches the teacher label.
[0085] In addition, the confidence level R i may be calculated using any one of the following equations (5) to (7).
[0086]
number
[0087]
number
[0088]
number
[0089] In addition, the learning device 1 calculates the learning rate α i However, the learning device according to the embodiment calculates the confidence level R i As the learning rate α increases, i The learning rate may be calculated so that the learning rate decreases as the ratio of the first co-occurrence frequency in the total frequency of the first co-occurrence frequency and the second co-occurrence frequency increases. For example, the learning device 1 may update the learning rate so that the learning rate decreases as the ratio of the first co-occurrence frequency in the total frequency of the first co-occurrence frequency, the second co-occurrence frequency, and the third co-occurrence frequency increases. Furthermore, the learning rate may be updated so that the learning rate decreases as the ratio of the sum of the first co-occurrence frequency and the fourth co-occurrence frequency in the total frequency of the first co-occurrence frequency, the second co-occurrence frequency, the third co-occurrence frequency, and the fourth co-occurrence frequency increases.
[0090] In addition, in the learning device 1, the first co-occurrence frequency a i , the second co-occurrence frequency b i , the third co-occurrence frequency c i and the fourth co-occurrence frequency d i However, in the learning device according to the embodiment, it is sufficient to define each event as a parameter indicating the frequency with which each event occurs.
[0091] (Application example of the learning device according to the embodiment) 9 and 10 are diagrams for explaining application examples of the learning device according to the embodiment. Fig. 9 is a diagram for explaining a first application example, and Fig. 10 is a diagram for explaining a second application example. In Figs. 9 and 10, (a) shows the data used, and (b) shows the threshold value R TH is 0.5, and (c) is the first embodiment when the threshold value R TH 9 and 10, the horizontal axis represents the first numerical value x, and the vertical axis represents the second numerical value y.
[0092] The first application example shown in Fig. 9 has a first group 101 in which data is arranged in a doughnut shape, a second group 102 arranged so as to surround the periphery of the first group 101, a third group 103 arranged in a sine shape, and a fourth group 104 and a fifth group 105 arranged in a circular shape. In Figs. 9(b) and 9(c), the prototype vectors corresponding to the first group 101 are indicated by circles, the prototype vectors corresponding to the second group 102 are indicated by triangles, and the prototype vectors corresponding to the third group 103 are indicated by squares. In addition, the prototype vectors corresponding to the fourth group 104 are indicated by diamonds, and the prototype vectors corresponding to the fifth group 105 are indicated by crosses.
[0093] Threshold R TH In the first embodiment where θ is 0.5, first prototype vector 111 corresponding to first group 101 is arranged in a substantially doughnut shape in the region corresponding to the arrangement of first group 101. Second prototype vector 112 corresponding to second group 102 is arranged to surround first prototype vector 111 in the region corresponding to the arrangement of second group 102. Third prototype vector 113 corresponding to third group 103 is arranged in a sinusoidal shape in the region where x coordinate is 0.0 to 0.6 and y coordinate is 0.4 to 0.9. Third prototype vector 113 corresponding to third group 103 is arranged at only one point in the region where x coordinate is 0.6 to 1.0 and y coordinate is 0.0 to 0.4.
[0094] Fourth prototype vector 114 corresponding to fourth group 104 is placed in the area corresponding to fourth group 104 so as to clearly define the boundary with third prototype vector 113. Fifth prototype vector 115 corresponding to fifth group 105 is placed in the area corresponding to fifth group 105 at only one point.
[0095] Threshold R THIn the second embodiment where θ is 0.8, first prototype vector 121 corresponding to first group 101 is arranged at only one point in the area corresponding to the arrangement of first group 101. Second prototype vector 122 corresponding to second group 102 is arranged to surround first prototype vector 121 in the area corresponding to the arrangement of second group 102. Third prototype vector 123 corresponding to third group 103 is arranged sinusoidally in the area where x coordinate is 0.0 to 0.6 and y coordinate is 0.4 to 0.9. Third prototype vector 123 corresponding to third group 103 is arranged at only one point in the area where x coordinate is 0.6 to 1.0 and y coordinate is 0.0 to 0.4.
[0096] Fourth prototype vector 124 corresponding to fourth group 104 is placed in the area corresponding to fourth group 104 so as to clearly define the boundary with third prototype vector 123. Fifth prototype vector 125 corresponding to fifth group 105 is placed in the area corresponding to fifth group 105 at only one point.
[0097] In the second application example shown in Fig. 10, the first group 201, the second group 202, and the third group 203 are each arranged in a circular region. The first group 201 is arranged in a region where the x coordinate is 0.2 to 0.8 and the y coordinate is 0.4 to 0.9. The second group 202 is arranged in a region where the x coordinate is 0.0 to 0.5 and the y coordinate is 0.1 to 0.6. The third group 203 is arranged in a region where the x coordinate is 0.5 to 1.0 and the y coordinate is 0.1 to 0.6.
[0098] Threshold R THIn a first application example where r is 0.5, first prototype vectors 211 corresponding to first group 201 are placed in a region corresponding to first group 201. First prototype vectors 211 are placed to form boundaries with second prototype vectors 212 corresponding to second group 202 and third prototype vectors 213 corresponding to third group 203. Second prototype vectors 212 corresponding to second group 202 are placed to form boundaries with first prototype vectors 211 in a region corresponding to second group 202. Third prototype vectors 213 corresponding to third group 203 are placed to form boundaries with first prototype vectors 211 in a region corresponding to third group 203.
[0099] Threshold R TH In the second application example where is 0.8, first prototype vector 221 corresponding to first group 201 is arranged at three points in the area corresponding to the arrangement of first group 201. Second prototype vector 222 corresponding to second group 202 is arranged at only one point in the area corresponding to the arrangement of second group 202. Third prototype vector 223 corresponding to third group 203 is arranged at only one point in the area corresponding to the arrangement of third group 203.
[0100] Threshold R TH The second application example, where R is 0.8, TH Since the number of prototype vectors is smaller than in the first application example in which σ is 0.5, the learning accuracy is lower than in the first application example, but a learning model can be formed with a smaller number of prototype vectors.
[0101] In addition, the learning device according to the embodiment can be applied to various tasks such as classification of glass and ionospheric radar, and diagnosis of breast cancer. Glass classification can be used in criminal investigations, and R TH When = 0.5 was set, the learning device was able to properly classify 214 glasses, which are labeled into six types with the nine components contained in glass as feature quantities, using around 20 prototypes.
[0102] Ionospheric radar classification can be used to investigate the distribution of free electrons in the ionosphere, and R TH When the learning device is set to 0.5, it is possible to appropriately classify the quality of 351 radars, which are labeled into two types with 34 pulses that can be confirmed on the system as features, using about 50 prototypes. Breast cancer diagnosis can be used as a medical aid, and R TH When = 0.5 was set, the learning device was able to appropriately classify 569 digital images of fine-needle aspirates of breast masses, which were labeled into two types using 30 pieces of information, including the radius and area of each cell nucleus, as feature values, using approximately 70 prototypes.
[0103] The learning device according to the embodiment can store a sufficient number of prototypes each having the same label but different features by adding learning data as a new prototype when the predicted label does not match the teacher label and the confidence of the teacher label is high. [Explanation of symbols]
[0104] 1 Learning device 21 Learning data acquisition unit 22 Predictive label acquisition unit 23 Prototype Additions 24 Co-occurrence frequency change section 25 Confidence calculation section 26 Learning rate calculation unit 27 Prototype feature update unit 16 Learning Model
Claims
1. a storage unit that stores a plurality of prototypes, each of which includes a prototype label and a prototype feature corresponding to the prototype label; a learning data acquisition unit that acquires learning data including input feature data indicating an input feature and teacher label data indicating a teacher label associated with the input feature; a prediction label acquisition unit that acquires a prediction label output by a learning model to which the input feature amount is input; a prototype adding unit that determines whether to add a prototype to the storage unit based on a confidence level indicating a likelihood that the learning model will output the teacher label associated with the input feature as the predicted label in response to the input of the input feature, the teacher label, and the predicted label; A learning device comprising:
2. The learning device according to claim 1 , wherein the prototype adding unit determines to add the training data as a prototype when the predicted label does not match the teacher label and the confidence is greater than a predetermined threshold value.
3. The learning device according to claim 1 , wherein the prototype label included in the prototype to be added is a teacher label associated with the input feature.
4. Each of the plurality of prototypes further includes co-occurrence frequency information indicating at least a frequency of coincidence between a predicted label output by the learning model and a teacher label associated with the input feature, The learning device according to claim 1 , wherein the confidence level is calculated from the co-occurrence frequency information.
5. a co-occurrence frequency change unit that changes the co-occurrence frequency information based on at least a degree of agreement between the teacher label and the predicted label when the prototype adding unit does not determine to add a prototype; a certainty factor calculation unit that calculates the certainty factor based on the changed co-occurrence frequency information; The learning device according to claim 4 , further comprising:
6. a learning rate calculation unit that calculates a learning rate used when the learning model learns from the confidence level; a prototype feature updating unit that updates the prototype features based on the learning rate; The learning device according to claim 5 , further comprising:
7. A learning method for causing a learning device having a storage unit that stores a plurality of prototypes, each of which includes a prototype label and a prototype feature corresponding to the prototype label, to learn a learning model, the method comprising: Acquire learning data including input feature data indicating an input feature and teacher label data indicating a teacher label associated with the input feature; Obtain a predicted label output by a learning model to which the input feature amount is input; determining whether to add a prototype to a storage unit based on a confidence level indicating a likelihood that the learning model will output the teacher label associated with the input feature as the predicted label in response to the input of the input feature, the teacher label, and the predicted label; A learning method comprising:
8. A control program for causing a learning device to learn a learning model, the control program including a memory unit that stores a plurality of prototypes, each of which includes a prototype label and a prototype feature corresponding to the prototype label, the control program comprising: Acquire learning data including input feature data indicating an input feature and teacher label data indicating a teacher label associated with the input feature; Obtain a predicted label output by a learning model to which the input feature amount is input; determining whether to add a prototype to a storage unit based on a confidence level indicating a likelihood that the learning model will output the teacher label associated with the input feature as the predicted label in response to the input of the input feature, the teacher label, and the predicted label; A learning program that causes the learning device to execute a process.
Citation Information
Patent Citations
False detection filtering method and device, shooting device and storage medium
CN110443267A
Learning method for neural network
JP1991260862A
Method for generating dictionary for pattern recognition
JP1993012449A
Method and device for discriminating paper money
JP2001331839A
Personal identifying device
JP2004110196A
