Learning Device

The learning device uses print output data from company printing machines and GBDT algorithms to enhance the accuracy of credit scoring models for companies, addressing the lack of representative data and improving predictive capabilities.

JP7548023B2Active Publication Date: 2024-09-10RICOH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2021003600
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-01-13
Publication Date
2024-09-10
Estimated Expiration
2041-01-13

AI Technical Summary

Technical Problem

Existing credit scoring models for companies lack accuracy due to insufficient and unrepresentative learning data, particularly in the Japanese market, and there is a need for a more reliable method to construct models that reflect corporate financial health.

Method used

A learning device that acquires and utilizes print output data from company-installed printing machines to construct a scoring model using Gradient Boosting Decision Tree (GBDT) algorithms, integrating this data with traditional financial and operational information to enhance model accuracy.

Benefits of technology

The proposed solution allows for the creation of a scoring model that accurately reflects a company's financial health by leveraging print output data, improving prediction accuracy and reflecting corporate activities effectively.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548023000029
    Figure 0007548023000029
  • Figure 0007548023000037
    Figure 0007548023000037
  • Figure 0007548023000038
    Figure 0007548023000038
Patent Text Reader

Abstract

To provide a learning device which can highly accurately build a scoring model in which a company status is reflected in a highly precise manner.SOLUTION: A device comprises: a control unit 11 of a CPU 10 for obtaining information pertaining to print outputs generated at a printing machine 3 installed in a company; and a learning module 20 and a classification module 50 which learn a scoring model for estimating a default of the company, using learning data including the information pertaining to the print outputs obtained by the control unit 11.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning device. [Background technology]

[0002] Credit scoring models that estimate a company's default risk are extremely useful tools for credit operations when making loans or lending goods. In particular, with the impact of falling interest rates in recent years, there is an increasing demand to reduce credit costs. Therefore, the importance of credit scoring models is expected to increase in the future.

[0003] Traditionally, statistical methods such as Logistic Regression (LR) have been used to create credit scoring models. Since financial institutions do not publish their actual credit scoring models, it is unclear which specific methods are commonly used, but it is believed that Logistic Regression or a hybrid model that combines Logistic Regression and Decision Tree is commonly used.

[0004] Meanwhile, in recent years, various machine learning methods, mainly Deep Learning (DL), have been proposed, and accuracy has improved significantly. Accordingly, there has been an increase in reports on the construction of credit scoring models (hereinafter simply referred to as scoring models) using machine learning methods. Many of these reports have been verified using small data sets of around 1,000 training data items. However, a large amount of training data is generally required to achieve high accuracy with machine learning. In addition, most of the scoring models are for consumers, built based on personal credit information, and verification of scoring models for corporations has not progressed much. Although there have been a few reports overseas, within the scope of our investigation, we have not been able to confirm any reports of such verification in Japan.

[0005] In addition, with regard to corporate credit, in recent years, methods have been proposed that go beyond the traditional performance and financial data from corporate financial statements to utilize business card data, performance forecasts using satellite imagery, and, for individuals, the online behavioral history of individual users.

[0006] As described above, a technique has been disclosed for increasing the amount of learning data by dividing the learning data in order to construct a scoring model, thereby improving the accuracy of learning (see, for example, Patent Document 1). Summary of the Invention [Problem to be solved by the invention]

[0007] However, with the technology described in Patent Document 1, there is no guarantee that the training data used will be useful for credit operations, so there is a problem in that it may not be possible to construct a scoring model that accurately reflects the situation of a company.

[0008] The present invention has been made in consideration of the above-mentioned problems, and aims to provide a learning device that can accurately construct a scoring model that highly accurately reflects the situation of a company. [Means for solving the problem]

[0009] In order to solve the above-mentioned problems and achieve the objective, the system is characterized by comprising an acquisition unit that acquires information regarding printed output generated by a printing machine installed in the company, and a learning unit that uses learning data including information regarding the printed output acquired by the acquisition unit to learn a scoring model for estimating the company's default. Effect of the Invention

[0010] According to the present invention, it is possible to construct a scoring model that accurately reflects the situation of a company. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a diagram illustrating an example of an overall configuration of a learning system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an outline of a process flow of the learning and classification device according to the embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of a decision tree model. [Figure 4] FIG. 4 is a diagram illustrating an example of a module configuration of the learning and identification device according to the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of a configuration of the pointer memory. [Figure 6] FIG. 6 is a diagram illustrating an example of a module configuration of a learning module. [Figure 7] FIG. 7 is a diagram showing the operation of modules at the time of initialization of the learning identification device according to the embodiment. [Figure 8] FIG. 8 is a diagram showing the operation of modules when determining node parameters of node 0 at depth 0 in the learning classification device according to the embodiment. [Figure 9] FIG. 9 is a diagram illustrating the operation of a module at branching time of depth 0, node 0 in the learning classification device according to the embodiment. [Figure 10] FIG. 10 is a diagram showing the operation of modules when determining node parameters of node 0 at depth 1 in the learning classification device according to the embodiment. [Figure 11] FIG. 11 is a diagram illustrating the operation of a module at branching time of depth 1, node 0 in the learning classification device according to the embodiment. [Figure 12] FIG. 12 is a diagram showing the operation of modules when determining node parameters of node 1 at depth 1 in the learning classification device according to the embodiment. [Figure 13] FIG. 13 is a diagram showing the operation of the modules at branching time of depth 1, node 1 of the learning classification device according to the embodiment. [Figure 14] FIG. 14 is a diagram showing the operation of a module when no branching is performed as a result of determining node parameters for node 1 at depth 1 in the learning classification device according to the embodiment. [Figure 15] FIG. 15 is a diagram showing the operation of a module when updating state information of all sample data when learning of a decision tree is completed in the learning classification device according to the embodiment. [Figure 16] FIG. 16 is a diagram showing an example of a histogram of the difference from the previous month in the color ratios of default companies and non-default companies. [Figure 17] FIG. 17 is a diagram showing an example of a histogram of the difference from the previous month in the color ratio of non-default companies. [Figure 18] FIG. 18 is a diagram showing an example of a histogram of the difference from the previous month in the color ratio of the default company. [Figure 19] FIG. 19 is a diagram showing an example of a histogram of the ratio of the number of monochrome prints for the default company and the non-default company. [Figure 20] FIG. 20 is a diagram showing an example of a histogram of the monochrome print volume ratio of non-default companies. [Figure 21] FIG. 21 is a diagram showing an example of a histogram of the monochrome print count ratio of the default company. [Figure 22] FIG. 22 is a diagram showing an example of a histogram of the ratio of the number of color prints for the default company and the non-default company. [Diagram 23] FIG. 23 is a diagram showing an example of a histogram of the color print quantity ratio of a non-default company. [Figure 24] FIG. 24 is a diagram showing an example of a histogram of the color print quantity ratio of the default company. [Diagram 25] FIG. 25 is a diagram showing an example of a graph showing the relationship between the cumulative number of printed sheets of a photosensitive drum and the unit replacement life. [Figure 26] FIG. 26 is a diagram showing an example of a graph showing the relationship between the cumulative number of printed sheets of a photosensitive drum and the number of replaced photosensitive drums at each point in time. [Figure 27] FIG. 27 is a diagram illustrating an example of a graph showing the operation status of the device. [Figure 28]FIG. 28 is a diagram for explaining a specific operation when GBDT is applied to a scoring model. [Figure 29] FIG. 29 is a diagram for explaining the CAP curve. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, an embodiment of a learning device according to the present invention will be described in detail with reference to Figures 1 to 29. Furthermore, the present invention is not limited to the following embodiments, and the components in the following embodiments include those that a person skilled in the art can easily conceive, those that are substantially the same, and those that are within the scope of what is called equivalent. Furthermore, various omissions, substitutions, modifications, and combinations of the components can be made without departing from the spirit of the following embodiments.

[0013] (About GBDT logic) In DL, a high-performance machine learning algorithm, various implementations of classifiers using hard logic have been attempted, and it has been found that this is more power efficient than processing using a GPU (Graphics Processing Unit). However, in the case of DL, particularly CNN (Convolutional Neural Network), the architecture of the GPU is very well suited, so in terms of speed, FPGAs (Field-Programmable Gate Arrays) with logic implementations are not necessarily faster than GPUs for classification. In contrast, attempts have been made to implement hard logic using FPGAs for decision tree algorithms such as GBDT (Gradient Boosting Decision Tree), and results have been reported that are faster than GPUs. This is because, as will be described later, decision tree algorithms are not suitable for GPU architecture due to the characteristics of their data arrays.

[0014] In addition, the study of learning is lagging behind that of classification, and there are almost no reports on DL and few reports on decision tree systems. Among them, there are no reports on GBDT learning anywhere at present, and it is considered to be an unexplored field at present. In order to obtain a highly accurate classification model, a huge number of trials are required to select and design features during learning, as well as to select hyperparameters for the learning algorithm. In particular, when there is a large amount of training data, the speed of the learning process actually has a very large effect on the accuracy of the final model. Furthermore, in fields such as robotics, HFT (High Frequency Trading), and RTB (Real-Time Bidding), which require real-time response to environmental changes, speed is directly linked to performance. Therefore, if high-speed learning processing can be achieved in the highly accurate GBDT, it is believed that the performance of the system using it can be greatly improved as a result.

[0015] (GBDT's affinity with FPGA) We explain why decision trees or GBDTs do not run faster on GPUs and why they run faster on FPGAs from the perspective of GBDT's affinity for FPGAs.

[0016] First, we will discuss GBDT from the viewpoint that it is an algorithm that uses boosting. Among decision trees, Random Forest (RF), which uses ensemble learning, is easy to parallelize even with a GPU because there is no dependency between trees. However, GBDT is a method that uses boosting to connect multiple trees, and learning of the next tree cannot start until the results of the previous tree are available. Therefore, it is a serial process, and the key is how quickly each tree can be learned. In contrast, with RF, even if each tree is slow, it is possible to choose to speed up overall learning by speeding up the learning of multiple trees in parallel. Therefore, even when a GPU is used, it is thought that it is possible to hide to some extent the problem of access latency of DRAM (Dynamic Random Access Memory), which will be described next.

[0017] Next, we will discuss the limitations of the access speed (especially random access) to the GPU device's RAM (Random Access Memory). The SRAM (Static Random Access Memory) built into the FPGA allows the RAM bus width within the FPGA to be made very large, so even when using a mid-range FPGA such as Xilinx's XC7k325T, the speed reaches 3.2[TB / sec] as shown below. The capacity of the built-in RAM is 16[Mb].

[0018] BRAM 445 × 36bit × 100MHz × 2 ports = 445*36*2*100*10^6 / 10^12 = 3.2TB / sec

[0019] When using a high-end FPGA, Xilinx's VU9P, the throughput is 6.9[TB / sec]. The capacity of the built-in RAM is 270[Mb].

[0020] URAM 960 pieces × 36bit × 100MHz × 2 ports = 960*36*2*100*10^6 / 10^12 = 6.9TB / sec

[0021] These values ​​are for a clock frequency of 100 MHz, but in reality, with improved circuit configuration, operation at around 200 to 500 MHz is possible, with the limit bandwidth being several times higher. In contrast, the current generation of RAM connected to the CPU (Central Processing Unit) is DDR4 (Double-Data-Rate 4), but as shown below, the bandwidth of a single DIMM (Dual Inline Memory Module) is only 25.6 GB / sec. Even with a four-DIMM interleaved configuration (256-bit width), the bandwidth is only around 100 GB / sec. If the DDR4 chip standard is DDR4-3200 (bus width 64 bits, one DIMM), it will be as follows:

[0022] 200MHz × 2(DDR) × 64 = 200*10^6*2*64 / 10^9 = 25.6GB / sec

[0023] The GDDR5 (Graphics Double-Data-Rate5) used in GPUs has a bandwidth about four times greater than that of DDR4, but it still has a maximum speed of about 400 GB / sec.

[0024] Thus, there is a big difference in bandwidth between the RAM in the FPGA and the external memory in the GPU and CPU. Furthermore, up to this point, we have been talking about sequential access to addresses, but the access time for random access has an even bigger effect. The RAM built into the FPGA is SRAM, so the access latency is one clock for both sequential and random access, but DDR4 and GDDR5 are DRAM, and due to the sense amplifier, the latency increases when accessing different columns. For example, in DDR4 RAM, the typical CAS latency (Column Address Strobe latency) is 16 clocks, which means that the throughput is only 1 / 16 compared to sequential access.

[0025] In the case of CNN, the data of adjacent pixels is processed, so the latency of random access is not a big problem, but in the case of decision trees, as the branching continues, the address of the original data becomes increasingly discontinuous for each branch, and the access is basically random. Therefore, if the data is stored in DRAM, the throughput becomes a bottleneck and the speed is significantly degraded. GPUs have caches to suppress performance degradation in such cases, but since decision trees are basically algorithms that sweep through all the data, there is no locality in data access and the effect of caches is very difficult to achieve. In addition, in the structure of GPUs, there is a shared memory consisting of SRAM allocated to each processing core (SM), and using this may enable high-speed processing, but the amount of memory per SM is small at 16 to 48 kB, and large latency occurs when accessing across SMs. The estimated capacity of the shared memory for the Nvidia K80, a current expensive and large-scale GPU, is shown below.

[0026] K80 = 2 × 13 SMX = 26 SMX = 4992 CUDA cores 26 × 48 × 8 = 9Mb

[0027] Thus, even large-scale GPUs costing hundreds of thousands of yen have only 9 MB of shared memory, which is too small. Furthermore, as mentioned above, in the case of GPUs, the SM performing the processing cannot directly access the shared memory of other SMs, which means that high-speed coding is difficult when using them for learning decision trees.

[0028] As described above, on the premise that data is stored in the SRAM on the FPGA, it is considered that the FPGA can implement the GBDT learning algorithm at higher speed than the GPU. Note that, although the affinity of GBDT to FPGA has been described above, GBDT is not limited to being realized by an integrated circuit such as an FPGA, and may be realized by software. Furthermore, the learning algorithm applied in this embodiment is not limited to GBDT, and other learning algorithms may be applied. However, in order to explain the specific operation of the learning classification device according to this embodiment, a case in which GBDT is applied as the learning algorithm will be described as an example.

[0029] (Overall configuration of the learning system) 1 is a diagram showing an example of the overall configuration of a learning system according to an embodiment. The overall configuration of a learning system 100 according to this embodiment will be described with reference to FIG.

[0030] As shown in FIG. 1, the learning system 100 includes a learning identification device 1 (learning device), a data collection server 2, and printing machines 3a to 3c.

[0031] The learning classification device 1 is a device that uses GBDT as a learning algorithm to construct a scoring model from learning data including various features. The learning classification device 1 uses various information collected and accumulated by the data collection server 2 as learning data.

[0032] The data collection server 2 is a server device that collects various information that is the basis of learning data used for constructing a scoring model by the learning and classification device 1 and accumulates it in a database. The data collection server 2 collects and accumulates information on print output from the printers 3a to 3b via the network N, for example. Here, the information on the print output is, for example, information on the number of printed sheets and information on the type of printing, and the details will be described later. The network N is, for example, a network including a LAN (Local Area Network) or the Internet, and is, for example, a network conforming to TCP (Transmission Control Protocol) / IP (Internet Protocol). The network N may be a wired network, a wireless network, or a mixture of these. In addition, the data collection server 2 collects and accumulates, for example, the past delinquent history of loan repayments, financial information, sales information, etc. of the company to be credited. Then, the data collection server 2 transmits the various information collected and accumulated to the learning and classification device 1. In addition, the data collection server 2 accumulates information indicating whether the company (for example, Company A, Company B, and Company C shown in FIG. 1) that is the source of the various information has defaulted (defaulted on a debt) as a label.

[0033] The printers 3a to 3c are printers installed at companies A, B, and C, respectively. The printers 3a to 3c are, for example, inkjet printers, electrophotographic printers, commercial printers, or MFPs (Multifunction Peripherals). The printers 3a to 3c internally generate information related to the print output, such as the information related to the number of printed sheets and the information related to the print type, and transmit the information to the data collection server 2 via the network N. In this case, the printers 3a to 3c may be configured to voluntarily transmit the information related to the printing to the data collection server 2 periodically, or may be configured to transmit the information related to the printing in response to a request from the data collection server 2.

[0034] In addition, although the learning system 100 shown in FIG. 1 includes three printing machines 3a to 3c as an example, other numbers of printing machines may be included. In other words, in the learning system 100 shown in FIG. 1, the number of companies in which printing machines are installed is not limited, and the number of printing machines installed in one company is also not limited. In addition, when referring to any printing machine or collectively referring to the printing machines 3a to 3c, they will be simply referred to as "printing machine 3."

[0035] (Outline of the process flow by the learning classification device) 2 is a diagram for explaining an outline of the process flow of the learning and classification device 1 according to the embodiment. The process flow of the learning and classification device 1 according to the embodiment will be explained with reference to FIG.

[0036] The data collection server 2, for example, collects and stores information on print output from the printers 3a-3b via the network N, and collects and stores past loan repayment delinquency history, financial information, sales information, etc. of the companies to be credited. The learning and identification device 1 receives these various pieces of information collected and stored by the data collection server 2 as a data source (Step S1: Data source).

[0037] The learning and classification device 1 executes pre-processing for converting various pieces of information received as data sources into feature quantities (step S2: pre-processing).

[0038] Then, the learning identification device 1 uses a flag indicating whether the company that is the data source of the converted feature has defaulted or not as a label, and constructs a scoring model using GBDT with the feature and the label as training data (learning data) (step S3: modeling).

[0039] Furthermore, the learning and classification device 1 verifies the performance and scope of application of the constructed scoring model using various evaluation methods (step S4: evaluation). If the result shows no problems, the scoring model is put to practical use. Since it is desirable to use the latest data when calculating the score, the data in the database is updated daily, weekly, or monthly, and is used to calculate the latest score for each company on a daily, weekly, or monthly basis.

[0040] (GBDT algorithm) 3 is a diagram showing an example of a decision tree model. Below, the basic logic of the GBDT will be explained with reference to equations (1) to (22) and FIG.

[0041] GBDT is a method of supervised learning, and supervised learning is a process of optimizing an objective function obj(θ) consisting of a loss function L(θ) that represents the goodness of fitting to the training data and a regularization term Ω(θ) that represents the complexity of the trained model, using some measure, as shown in the following formula (1). The regularization term Ω(θ) prevents the model (decision tree) from becoming too complex, that is, it plays a role in improving generalization performance.

number

[0042] The loss function in the first term of formula (1) is, for example, the sum of losses calculated by the error function l for each sample data (training data) as shown in the following formula (2), where n is the number of sample data, i is the sample number, y is the label, and y (hat) of the model is the predicted value.

number

[0043] Here, the error function l may be, for example, a square error function or a logistic loss function as shown in the following formulas (3) and (4).

number

number

[0044] The regularization term Ω(θ) in the second term of formula (1) is, for example, the square norm of the parameter θ as shown in the following formula (5), where λ is a hyperparameter that represents the weight of regularization.

number

[0045] Let us now consider the case of GBDT. First, the i-th sample data x i The predicted value for can be expressed as follows:

number

[0046] Here, K is the total number of decision trees, k is the decision tree number, and f k () is the output of the kth decision tree, x i is the feature of the input sample data. From this, we can see that GBDT, like RF, adds up the outputs of each decision tree to obtain the final output. Also, the parameter θ is θ={f1,f2,...,f K From the above, the objective function of GBDT is expressed as the following equation (7).

number

[0047] The above objective function is learned, but methods such as SGD (Stochastic Gradient Descent), which is used in learning neural networks, cannot be used with decision tree models. Therefore, learning is performed using Additive Training (boosting). In Additive Training, the predicted value at a certain round (number of learning rounds, number of decision tree models) t is expressed as in the following formula (8).

number

[0048] From equation (8), in a certain round t, the output of the decision tree f t (x i ) is required. Conversely, in a certain round t, there is no need to consider other rounds. Therefore, in the following, we will consider round t. The objective function in round t is expressed as the following equation (9).

number

[0049] Here, the Taylor expansion of the objective function in round t (truncated up to the quadratic term) is given by the following equation (10).

number

[0050] Here, in equation (10), the gradient information g i , h i is expressed by the following equation (11).

number

[0051] If the constant term in equation (10) is ignored, the objective function at round t becomes as shown in equation (12) below.

number

[0052] According to this equation (12), the objective function in round t is expressed as the first and second derivatives of the error function with respect to the predicted value of the previous round, and a regularization term. Therefore, it can be seen that it can be applied to any error function for which the first and second derivatives can be calculated.

[0053] Now, let us consider a decision tree model. Figure 3 shows an example of a decision tree model. A decision tree model is composed of nodes and leaves, and at a node, input is input to the next node or leaf based on a certain branching condition, and leaves have a leaf weight, which becomes the output for the input. For example, Figure 3 shows that the leaf weight W2 of "Leaf 2" is "-1".

[0054] Moreover, the decision tree model is formulated as shown in the following equation (13).

number

[0055] In equation (13), w represents the leaf weight and q represents the tree structure. In other words, the input (sample data x) is assigned to one of the leaves by the tree structure q, and the leaf weight of that leaf is output.

[0056] Here, the complexity of the decision tree model is defined as follows:

number

[0057] In equation (14), the first term is the complexity due to the number of leaves, and the second term is the squared norm of the leaf weight. Also, γ is a hyperparameter that controls the importance of the regularization term. From the above, the objective function at round t is organized as shown in equation (15) below.

number

[0058] In the formula (15), I j , G j , H j is expressed as the following equation (16).

number

[0059] From equation (15), the objective function in a certain round t is a quadratic function of the leaf weight w. In general, the minimum value of the quadratic function and the condition at that time are expressed by the following equation (17).

number

[0060] In other words, when the structure q of the decision tree for a certain round t is determined, the objective function and leaf weights are as shown in the following equation (18).

number

[0061] Now that we have reached the point where we can calculate the leaf weights when the decision tree structure is determined in a certain round, we will explain the learning procedure for the decision tree structure.

[0062] One method for learning the structure of a decision tree is the Greedy Algorithm. The Greedy Algorithm is an algorithm that starts the tree structure from depth 0, calculates the branching score (Gain) at each node, and determines whether or not to branch to learn the structure of a decision tree. The branching score is calculated using the following formula (19).

number

[0063] Here, G L , H L is the sum of the gradient information of the samples branched to the left node, G R , H R is the sum of the gradient information of the samples branched to the right node, and γ is a regularization term. The first term in [ ] in equation (19) is the score (objective function) of the sample data branched to the left node, the second term is the score of the sample data branched to the right node, and the third term is the score in the case of no branching, which represent the degree of improvement of the objective function due to branching.

[0064] The branch score shown in the above formula (19) represents the merit of branching at a certain threshold value for a certain feature, but it is not possible to determine which conditions are optimal by itself. Therefore, the greedy method finds the branch score for all threshold candidate values ​​for all feature values, and searches for the condition that maximizes the branch score. As mentioned above, the greedy method is a very simple algorithm, but the computational cost is high because the branch score is found for all threshold candidate values ​​for all feature values. Therefore, libraries such as XGBoost, which will be described later, are designed to reduce computational costs while maintaining performance.

[0065] (About XGBoost) Below, we will explain XGBoost, a well-known GBDT library. The learning algorithm of XGBoost is designed to reduce the number of threshold candidates and to handle missing values.

[0066] First, we will explain how to reduce the number of threshold candidates. The greedy method mentioned above has the problem of high computational costs. XGBoost reduces the number of threshold candidates using a method called Weighted Quantile Sketch. In calculating the branch score (Gain), the sum of the gradient information of the sample data that splits to the left and right is important, and only thresholds where the sum of the gradient information changes by a certain percentage are searched for. Specifically, h, which is the quadratic gradient of the sample, is used. If the dimension of the feature is f, the set of the feature and the quadratic gradient h of the sample data is expressed as in the following equation (20).

number

[0067] Also, the rank function r f is defined as the following equation (21).

number

[0068] Here, z is a candidate threshold value. The rank function r fmeans the ratio of the sum of quadratic gradients of sample data smaller than a certain threshold candidate to the sum of quadratic gradients of all sample data. Finally, for a feature value represented by dimension f, a set of threshold candidates {s f1 ,s f2 , ,s fl}, which is calculated using the following equation (22).

number

[0069] Here, ε is a parameter that determines the degree of reduction of threshold candidates, and approximately 1 / ε threshold candidates are obtained.

[0070] There are two possible patterns for Weighted Quantile Sketch: global, which is performed at the first node of the decision tree (for all sample data at once), and local, which is performed for each node (for each sample assigned to that node). Local has been shown to be better in terms of generalization performance, so XGBoost uses local.

[0071] Next, we will explain how to handle missing values. There is no generally effective method for handling missing values ​​in input sample data, not limited to GBDT and decision trees, in the field of machine learning. There are methods to complement missing values ​​with the average, median, or collaborative filter, or to exclude features with many missing values, but these are not successful in many cases in terms of performance. However, structured data often contains missing values, and some kind of response is required for practical use.

[0072] XGBoost's learning algorithm has been devised to directly handle sample data that contains missing values. This is a method for calculating the branch score of a node when all missing data is assigned to either the left or right node. In addition, when performing the above-mentioned Weighted Quantile Sketch, threshold candidates can be found for a set that excludes sample data that contains missing values.

[0073] (About LightGBM) Next, we will discuss LightGBM, a GBDT library. LightGBM uses a feature quantization called binning for preprocessing, and a high-speed algorithm that uses a GPU to calculate branch scores. Compared to XGBoost, LightGBM has the same performance but a learning speed several times faster, and its number of users has been increasing in recent years.

[0074] First, we will explain feature quantization. If the dataset is large, the branch score needs to be calculated for a large number of threshold candidates. LightGBM reduces the number of threshold candidates by quantizing the features as a pre-processing step for learning. Quantization also prevents the value and number of threshold candidates from changing for each node, as in XGBoost, and is an essential process when using a GPU.

[0075] There have been various studies on feature quantization, called binning, and in LightGBM, features are divided into k bins, and there are only k threshold candidates. k is 255, 63, 15, etc., and the performance or learning speed varies depending on the dataset.

[0076] In addition, quantizing the features simplifies the calculation of the branch scores. Specifically, the threshold candidates are simply quantized values. Therefore, we can create a histogram of the first and second gradients for each feature and calculate the branch score for each bin (quantized value). This is called a feature histogram.

[0077] Next, we will explain the calculation of branch scores using a GPU. The calculation of branch scores itself is limited to a maximum of 256 patterns because the features are quantized, but the number of sample data can exceed tens of thousands depending on the dataset, so histogram creation dominates the learning time. As mentioned above, feature histograms must be obtained to calculate branch scores. When using a GPU, multiple threads must update the same histogram, and there is a possibility that the same bin will be updated at this time. Therefore, atomic operations must be used, and performance decreases if the rate at which the same bin is updated is high. Therefore, in LightGBM, when creating a histogram, each thread is assigned a different histogram to update values ​​from, the primary gradient or the secondary gradient, thereby reducing the frequency of updating the same bin.

[0078] (Configuration of learning identification device) Fig. 4 is a diagram showing an example of a module configuration of a learning identification device according to an embodiment. Fig. 5 is a diagram showing an example of a pointer memory configuration. Fig. 6 is a diagram showing an example of a module configuration of a learning module. The module configuration of a learning identification device 1 (learning device) according to this embodiment will be described with reference to Figs. 4 to 6.

[0079] As shown in FIG. 4, the learning and classification device 1 according to the present embodiment includes a CPU 10, a learning module 20, a data memory 30, a model memory 40, and a classification module 50. Among these, the learning module 20, the data memory 30, the model memory 40, and the classification module 50 are configured by FPGAs. The CPU 10 and the FPGA can communicate data with each other via a bus. The learning and classification device 1 may include not only the components shown in FIG. 4, but also other components such as a RAM that serves as a work area for the CPU 10, a ROM (Read Only Memory) that stores programs executed by the CPU 10, an auxiliary storage device that stores various data (programs, etc.), and a communication I / F that communicates with an external device. The "learning unit" according to the present invention corresponds to the learning module 20 and the classification module 50.

[0080] The CPU 10 is a calculation device that controls the learning of the GBDT as a whole. The CPU 10 has a control unit 11. The control unit 11 controls each of the learning module 20, the data memory 30, the model memory 40, and the classification module 50. The control unit 11 is realized by a program executed by the CPU 10. In addition, the control unit 11 (acquisition unit) acquires information about the print output via the network I / F from the data collection server 2, which collects and accumulates information about the print output from each printing machine 3 via the network N. The control unit 11 then stores the information about the print output in the data memory 30 (the feature memory 32 described later) as learning data (sample data).

[0081] The learning module 20 is a hardware module that calculates an optimal feature number (hereinafter, sometimes referred to as a "feature number") and a threshold value for each node constituting a decision tree, and if the node is a leaf, calculates a leaf weight and writes it into the model memory 40. As shown in FIG. 6, the learning module 20 includes gain calculation modules 21_1, 21_2, . . . , 21_n and an optimal condition derivation module 22. Here, n is a number at least equal to or greater than the number of features of the sample data (including both learning data and identification data). Note that the gain calculation modules 21_1, 21_2, . . . , 21_n will be simply referred to as "gain calculation module 21" when referring to any gain calculation module or when referring to them collectively.

[0082] The gain calculation module 21 is a module that calculates the branch score at each threshold value for the corresponding feature among the features included in the input sample data using the above formula (19). Here, the learning data among the sample data includes a label (true value) in addition to the feature, and the identification data among the sample data includes the feature but does not include the label. Each gain calculation module 21 has a memory that calculates and stores a histogram for each of all the feature amounts input at one time (one clock), and calculates all the feature amounts in parallel. From the result of the histogram, the gain of each feature amount is calculated in parallel. This makes it possible to process all the feature amounts at once or simultaneously, so that it is possible to dramatically improve the speed of the learning process. This method of reading and processing all the feature amounts in parallel is called feature parallel. Note that in order to realize this method, the data memory needs to be able to read all the feature amounts at one time (one clock). Therefore, this cannot be realized with a memory having a data width of a normal 32 bits or 256 bits. Furthermore, in software, the number of bits of data that a normal CPU can handle at one time is limited to 64 bits, which is completely inadequate for the 8,000 bits required for 100 features, each of which has 8 bits. For this reason, a method has traditionally been used in which a different feature is stored for each memory address (for example, a 64-bit width that the CPU can handle), and all features are saved across multiple addresses. In contrast, this method stores all features in one memory address, and all features are read out in one access.

[0083] As mentioned above, GBDT does not allow parallelization of decision tree learning. Therefore, the speed of the learning process depends on how quickly each decision tree can be learned. On the other hand, in RF, which performs ensemble learning, there is no dependency between decision trees during learning, so it is easy to parallelize the learning process for each decision tree, but the accuracy is generally inferior to GBDT. As mentioned above, the learning speed of GBDT, which has higher accuracy than RF, can be improved by applying the above-mentioned feature parallel.

[0084] The gain calculation module 21 outputs the calculated branch score to the optimal condition derivation module 22 .

[0085] The optimal condition derivation module 22 is a module that inputs each branch score corresponding to each feature output by each gain calculation module 21, and derives the feature number (feature number) and threshold value that maximizes the branch score. The optimal condition derivation module 22 writes the derived feature number and threshold value into the model memory 40 as branch condition data (branch condition) of the corresponding node.

[0086] The data memory 30 is an SRAM that stores various data, and includes a pointer memory 31, a feature memory 32, and a state memory 33.

[0087] The pointer memory 31 is a memory that stores the storage destination addresses of sample data stored in the feature memory 32. As shown in Fig. 5, the pointer memory 31 has a bank A (bank area) and a bank B (bank area). Details of the operation of dividing the memory into two banks, bank A and bank B, and storing the storage destination addresses of sample data will be described later with reference to Figs. 7 to 15. The pointer memory 31 is not limited to having three or more banks.

[0088] The feature memory 32 is a memory for storing sample data (including learning data and identification data).

[0089] The state memory 33 is a memory that stores state information (the above-mentioned w, g, and h) and label information.

[0090] The model memory 40 is an SRAM that stores branching condition data (feature number, threshold value) for each node of the decision tree, a leaf flag (flag information) indicating whether the node is a leaf or not, and a leaf weight when the node is a leaf.

[0091] The classification module 50 is a hardware module that distributes sample data for each node and each decision tree. The classification module 50 also calculates state information (w, g, h) and writes it to the state memory 33.

[0092] The classification module 50 can classify the sample data (learning data) not only in the classification (branching) of the sample data in the learning process as described above, but also in the classification process of the sample data (classification data) with the same module configuration. Also, during the classification process, the processing by the classification module 50 can be pipelined by reading all the features at once, and the processing speed can be increased to the point where one piece of sample data is classified per clock. On the other hand, if the features cannot be read at once as described above, it is not possible to know which feature is required until branching to each node, and therefore pipelining is not possible in a form in which the address of the corresponding feature is accessed each time.

[0093] In addition, by providing multiple classification modules 50 as described above, multiple pieces of identification data can be divided (data parallel), distributed to each classification module 50, and each module can perform its own classification process, thereby speeding up the identification process.

[0094] (Learning process of learning identification device) Hereinafter, the learning process of the learning identification device 1 will be specifically described with reference to FIGS.

[0095] <Initialization> Fig. 7 is a diagram showing the operation of modules at the time of initialization of the learning identification device according to the embodiment. As shown in Fig. 7, first, the control unit 11 initializes the pointer memory 31. For example, as shown in Fig. 7, the control unit 11 writes addresses of sample data (learning data) in the feature memory 32 to bank A of the pointer memory 31 in order (for example, from the lowest address) by the number of pieces of learning data.

[0096] Note that the present invention is not limited to using all of the learning data (writing all addresses), and it is also possible to use learning data randomly selected based on a probability according to a predetermined random number by so-called data subsampling (writing the address of the selected learning data). For example, when the data subsampling is 0.5, half of all the addresses of the learning data may be written to the pointer memory 31 (here, bank A) with a half probability according to the random number. Pseudo-random numbers created by an LFSR (Linear Feedback Shift Register) can be used to generate random numbers.

[0097] Furthermore, it is not limited to using all the features of the learning data used for learning, but it is also possible to use only the features randomly selected (e.g., half selected) based on the probability according to the random numbers similar to those described above by so-called feature subsampling. In this case, for example, constants may be output from the feature memory 32 as data of the features other than those selected by feature subsampling. This has the effect of improving the generalization performance for unknown data (classification data).

[0098] <Determining the branching condition data for depth 0 and node 0> 8 is a diagram showing the operation of a module when determining node parameters of depth 0, node 0 of the learning classification device according to the embodiment. Note that the topmost layer of the decision tree is referred to as "depth 0", the layers below it are referred to as "depth 1", "depth 2", ..., and the leftmost node of a particular layer is referred to as "node 0", the nodes to the right of it are referred to as "node 1", "node 2", ...,.

[0099] 8, first, the control unit 11 transmits a start address and an end address to the learning module 20, and triggers the learning module 20 to start processing. The learning module 20 specifies the address of the target learning data from the pointer memory 31 (bank A) based on the start address and the end address, reads out the learning data (feature amount) from the feature memory 32 by the address, and reads out the state information (w, g, h) from the state memory 33.

[0100] In this case, as described above, each gain calculation module 21 of the learning module 20 calculates a histogram of the corresponding feature amount, stores it in its own SRAM, and calculates the branch score at each threshold based on the result. Then, the optimal condition derivation module 22 of the learning module 20 inputs each branch score corresponding to each feature amount output by each gain calculation module 21, and derives the feature amount number (feature amount number) and threshold value that maximizes the branch score. Then, the optimal condition derivation module 22 writes the derived feature amount number and threshold value to the model memory 40 as the branch condition data of the corresponding node (depth 0, node 0). At this time, the optimal condition derivation module 22 sets the leaf flag to "0" to indicate that further branching occurs from the node (depth 0, node 0), and writes the data of the node (which may be part of the branch condition data) to the model memory 40.

[0101] To carry out the above operations, the learning module 20 sequentially specifies the addresses of the learning data written in the bank A, and reads out each piece of learning data from the feature memory 32 using the addresses.

[0102] <Data branching processing at depth 0, node 0> FIG. 9 is a diagram illustrating the operation of a module at branching time of depth 0, node 0 in the learning classification device according to the embodiment.

[0103] As shown in FIG. 9, the control unit 11 transmits a start address and an end address to the classification module 50, and triggers the classification module 50 to start processing. The classification module 50 specifies the address of the target learning data from the pointer memory 31 (bank A) based on the start address and the end address, and reads the learning data (feature amount) from the feature memory 32 by the address. The classification module 50 also reads the branching condition data (feature amount number, threshold value) of the corresponding node (depth 0, node 0) from the model memory 40. Then, the classification module 50 determines whether to branch the read sample data to the left or right of the node (depth 0, node 0) according to the branching condition data, and writes the address of the learning data in the feature memory 32 to the other bank (write bank) (here, bank B) (bank area for writing) different from the read bank (here, bank A) (bank area for reading) of the pointer memory 31.

[0104] At this time, when the classification module 50 determines to branch to the left side of the node, it writes the addresses of the learning data in bank B in ascending order of addresses as shown in FIG. 9, and when it determines to branch to the right side of the node, it writes the addresses of the learning data in bank B in ascending order of addresses. This allows the addresses of the learning data branched to the left side of the node to be neatly written to the lower addresses and the addresses of the learning data branched to the right side of the node to be neatly written to the higher addresses in the write bank (bank B). Note that the addresses of the learning data branched to the left side of the node may be neatly written to the higher addresses and the addresses of the learning data branched to the right side of the node to be neatly written to the higher addresses in the write bank.

[0105] In this way, the pointer memory 31 is configured with two banks, bank A and bank B, as described above, and alternate reading and writing enables efficient memory use despite the limited capacity of the SRAM in the FPGA. A simple method would be to configure each of the feature memory 32 and state memory 33 with two banks, but since data indicating an address in the feature memory 32 is generally smaller than sample data, the method of preparing the pointer memory 31 and indirectly specifying an address, as in this embodiment, makes it possible to reduce memory usage.

[0106] In the above operation, the classification module 50 performs branching processing on all learning data. However, since the same amount of learning data is not divided to the left and right sides of the node (depth 0, node 0) after the branching processing is completed, the classification module 50 returns to the control unit 11 an address (intermediate address) in the write bank (bank B) that corresponds to the boundary between the address of the learning data branched to the left and the address of the learning data branched to the right. The intermediate address is used in the next branching processing.

[0107] <Determining the branching condition data for depth 1 and node 0> Fig. 10 is a diagram showing the operation of a module when determining node parameters for depth 1, node 0 of the learning and identification device according to the embodiment. Basically, it is the same as the process of determining branching condition data for depth 0, node 0 shown in Fig. 8, but since the hierarchical level of the target node changes (from depth 0 to depth 1), the roles of bank A and bank B of the pointer memory 31 are reversed. Specifically, bank B becomes the read bank, and bank A becomes the write bank (see Fig. 11).

[0108] 10, the control unit 11 transmits a start address and an end address to the learning module 20 based on the intermediate address received from the classification module 50 in the processing at depth 0, and triggers the learning module 20 to start processing. The learning module 20 specifies the address of the target learning data from the pointer memory 31 (bank B) based on the start address and the end address, reads the learning data (feature amount) from the feature memory 32 by the address, and reads the state information (w, g, h) from the state memory 33. Specifically, the learning module 20 specifies addresses in order from the left side (lower address) of bank B to the intermediate address, as shown in FIG.

[0109] In this case, as described above, each gain calculation module 21 of the learning module 20 stores each feature of the read learning data in its own SRAM and calculates the branch score at each threshold value. Then, the optimal condition derivation module 22 of the learning module 20 inputs each branch score corresponding to each feature output by each gain calculation module 21, and derives the feature number (feature number) and threshold value that maximizes the branch score. Then, the optimal condition derivation module 22 writes the derived feature number and threshold value to the model memory 40 as the branch condition data of the corresponding node (depth 1, node 0). At this time, the optimal condition derivation module 22 sets the leaf flag to "0" to indicate that further branching occurs from the node (depth 1, node 0), and writes the data of the node (which may be part of the branch condition data) to the model memory 40.

[0110] The learning module 20 performs the above operations by sequentially specifying addresses from the left side (lower addresses) of bank B to the intermediate addresses, and reading out each piece of learning data from the feature memory 32 using the addresses.

[0111] <Data branching processing at depth 1, node 0> FIG. 11 is a diagram illustrating the operation of a module at branching time of depth 1, node 0 in the learning classification device according to the embodiment.

[0112] 11, the control unit 11 transmits a start address and an end address to the classification module 50 based on an intermediate address received from the classification module 50 in the processing at depth 0, and triggers the processing by the classification module 50 to start. The classification module 50 specifies an address of the target learning data from the left side of the pointer memory 31 (bank B) based on the start address and the end address, and reads out the learning data (feature amount) from the feature memory 32 by the address. The classification module 50 also reads out the branching condition data (feature amount number, threshold value) of the corresponding node (depth 1, node 0) from the model memory 40. Then, the classification module 50 determines whether to branch the read sample data to the left or right of the node (depth 1, node 0) according to the branching condition data, and based on the result of the determination, writes the address of the learning data in the feature memory 32 to the other bank (write bank) (here, bank A) (bank area for writing) different from the read bank (here, bank B) (bank area for reading) of the pointer memory 31.

[0113] At this time, when the classification module 50 determines to branch to the left side of the node, it writes the addresses of the learning data in bank A starting from the lower address (the received start address) as shown in FIG. 11, and when it determines to branch to the right side of the node, it writes the addresses of the learning data in bank A starting from the higher address (the received end address, which is the previous intermediate address). This allows the addresses of the learning data branched to the left side of the node to be neatly written to the lower address in the write bank (bank A) and the addresses of the learning data branched to the right side of the node to be neatly written to the higher address. Note that, in the write bank, the addresses of the learning data branched to the left side of the node may be neatly written to the higher address and the addresses of the learning data branched to the right side of the node to be neatly written to the higher address.

[0114] In the above operation, the classification module 50 performs branching processing on the learning data specified by the address written to the left of the intermediate address of bank B among all the learning data. However, after the branching processing is completed, the same amount of learning data is not divided to the left and right sides of the node (depth 1, node 0), so the classification module 50 returns to the control unit 11 an address (intermediate address) in the write bank (bank A) that corresponds to the middle between the address of the learning data branched to the left and the address of the learning data branched to the right. The intermediate address is used in the next branching processing.

[0115] <Determining the branching condition data for Depth 1 and Node 1> Fig. 12 is a diagram showing the operation of a module when determining node parameters of depth 1, node 1 of the learning and classification device according to the embodiment. As in the case of Fig. 10, since the hierarchy is the same as that of the node of depth 1, node 0, bank B becomes the read bank and bank A becomes the write bank (see Fig. 13).

[0116] 12, the control unit 11 transmits a start address and an end address to the learning module 20 based on the intermediate address received from the classification module 50 in the processing at depth 0, and triggers the learning module 20 to start processing. The learning module 20 specifies the address of the target learning data from the pointer memory 31 (bank B) based on the start address and the end address, reads the learning data (feature amount) from the feature memory 32 by the address, and reads the state information (w, g, h) from the state memory 33. Specifically, the learning module 20 specifies addresses in order from the right side (higher address) of bank B to the intermediate address, as shown in FIG.

[0117] In this case, as described above, each gain calculation module 21 of the learning module 20 stores each feature of the read learning data in its own SRAM and calculates the branch score at each threshold value. Then, the optimal condition derivation module 22 of the learning module 20 inputs each branch score corresponding to each feature output by each gain calculation module 21, and derives the feature number (feature number) and threshold value that maximizes the branch score. Then, the optimal condition derivation module 22 writes the derived feature number and threshold value to the model memory 40 as the branch condition data of the corresponding node (depth 1, node 1). At this time, the optimal condition derivation module 22 sets the leaf flag to "0" to indicate that further branching occurs from the node (depth 1, node 1), and writes the data of the node (which may be part of the branch condition data) to the model memory 40.

[0118] The learning module 20 performs the above operations by sequentially specifying addresses from the right side (higher addresses) of bank B to intermediate addresses, and reading out each piece of learning data from the feature memory 32 using the addresses.

[0119] <Data branching processing at depth 1, node 1> FIG. 13 is a diagram showing the operation of the modules at branching time of depth 1, node 1 of the learning classification device according to the embodiment.

[0120] 13, the control unit 11 transmits a start address and an end address to the classification module 50 based on an intermediate address received from the classification module 50 in the processing at depth 0, and triggers the processing by the classification module 50 to start. The classification module 50 specifies an address of the target learning data from the right side of the pointer memory 31 (bank B) based on the start address and the end address, and reads out the learning data (feature amount) from the feature memory 32 by the address. The classification module 50 also reads out the branching condition data (feature amount number, threshold value) of the corresponding node (depth 1, node 1) from the model memory 40. Then, the classification module 50 determines whether to branch the read sample data to the left or right of the node (depth 1, node 1) according to the branching condition data, and based on the result of the determination, writes the address of the learning data in the feature memory 32 to the other bank (write bank) (here, bank A) (bank area for writing) different from the read bank (here, bank B) (bank area for reading) of the pointer memory 31.

[0121] At this time, when the classification module 50 determines to branch to the left side of the node, it writes the address of the learning data in bank A from the lower address (the received start address, which is the previous intermediate address) as shown in FIG. 13, and when it determines to branch to the right side of the node, it writes the address of the learning data in bank A from the higher address (the received end address). This allows the addresses of the learning data branched to the left side of the node to be neatly written to the lower address in the write bank (bank A) and the addresses of the learning data branched to the right side of the node to be neatly written to the higher address. Note that, in the write bank, the addresses of the learning data branched to the left side of the node may be neatly written to the higher address and the addresses of the learning data branched to the right side of the node to be neatly written to the higher address. In this case, it is necessary to match the operation in FIG. 11.

[0122] In the above operation, the classification module 50 performs branching processing on the learning data specified by the address written to the right of the intermediate address of bank B among all the learning data. However, after the branching processing is completed, the same amount of learning data is not divided to the left and right sides of the node (depth 1, node 1), so the classification module 50 returns to the control unit 11 an address (intermediate address) in the write bank (bank A) that corresponds to the middle between the address of the learning data branched to the left and the address of the learning data branched to the right. The intermediate address is used in the next branching processing.

[0123] <When no branching occurs when determining the branching condition data for depth 1 and node 1> 14 is a diagram showing the operation of a module in the case where no branching occurs as a result of determining node parameters for depth 1, node 1 of the learning and classification device according to the embodiment. As in the case of FIG. 10, since the node is at the same hierarchical level as the node at depth 1, node 0, bank B becomes the read bank.

[0124] 14, the control unit 11 transmits a start address and an end address to the learning module 20 based on the intermediate address received from the classification module 50 in the processing at depth 0, and triggers the learning module 20 to start processing. The learning module 20 specifies the address of the target learning data from the pointer memory 31 (bank B) based on the start address and the end address, reads the learning data (feature amount) from the feature memory 32 by the address, and reads the state information (w, g, h) from the state memory 33. Specifically, the learning module 20 specifies addresses in order from the right side (higher address) of bank B to the intermediate address, as shown in FIG. 14.

[0125] When the learning module 20 determines from the calculated branching score, etc. that there will be no further branching from the node (depth 1, node 1), it sets the leaf flag to "1" and writes the data of the node (which may be part of the branching condition data) into the model memory 40, and also transmits to the control unit 11 that the leaf flag of the node is "1". This allows the learning module 20 to recognize that there will be no branching from the node (depth 1, node 1) to a lower hierarchical level. Furthermore, when the leaf flag of the node (depth 1, node 1) is "1", the learning module 20 writes a leaf weight (w) (which may be part of the branching condition data) into the model memory 40 instead of the feature number and threshold value. This allows the capacity of the model memory 40 to be smaller than if the model memory 40 were to be provided separately.

[0126] By carrying out the above processes shown in Figs. 8 to 14 for each layer (depth), the entire decision tree is completed (the decision tree is learned).

[0127] <When decision tree training is complete> FIG. 15 is a diagram showing the operation of a module when updating state information of all sample data when learning of a decision tree is completed in the learning classification device according to the embodiment.

[0128] When learning of one decision tree constituting the GBDT is completed, it is necessary to calculate the first-order gradient g, the second-order gradient h, and the leaf weight w for each learning data corresponding to the error function of each learning data in order to use them in boosting (gradient boosting in this case) to the next decision tree. As shown in FIG. 15, the control unit 11 triggers the classification module 50 to start the above-mentioned calculation. The classification module 50 performs branching judgment processing for nodes at all depths (hierarchies) for all learning data, and calculates leaf weights corresponding to each learning data. Then, the classification module 50 calculates state information (w, g, h) for the calculated leaf weights based on the label information, and writes them back to the addresses of the original state memory 33. In this way, the next decision tree is learned using the updated state information.

[0129] As described above, in the learning and classification device 1 according to this embodiment, the learning modules 20 each include a memory (e.g., SRAM) for reading in each feature of the input sample data. This allows all feature amounts of the sample data to be read in one access, and each gain calculation module 21 can process all feature amounts at once, making it possible to dramatically improve the speed of the decision tree learning process.

[0130] In addition, in the learning identification device 1 according to this embodiment, the pointer memory 31 is configured with two banks, namely, bank A and bank B, which are alternately read and written. This allows efficient memory use. Simply, there is a method of configuring each of the feature memory 32 and state memory 33 with two banks, but since data indicating an address in the feature memory 32 is generally smaller than sample data, the method of preparing the pointer memory 31 and indirectly specifying an address as in this embodiment allows memory capacity to be saved. In addition, when the classification module 50 determines to branch to the left side of the node, it writes the addresses of the learning data in the two banks in order from the lowest address of the write bank, and when it determines to branch to the right side of the node, it writes the addresses of the learning data in the write bank in order from the highest address. As a result, in the write bank, the addresses of the learning data branched to the left side of the node can be neatly divided and written to the lower address, and the addresses of the learning data branched to the right side of the node can be neatly divided and written to the higher address.

[0131] (About the data source) Hereinafter, with reference to FIGS. 16 to 27, a description will be given of data sources that are collected and stored in the data collection server 2 and used as learning data in the learning classification device 1 for constructing a scoring model.

[0132] In business activities, printing machines 3 such as inkjet printers, electrophotographic printers, commercial printing machines, MFPs, etc. that print on recording media such as paper are indispensable, and are introduced in most companies.

[0133] In such a printing machine 3, information on the print output, such as the number of printed sheets and the type of print, reflects the business activities. For example, when a business is actively engaged in business activities, a large number of printed materials are required, so the number of printed sheets generally increases, and conversely, when the business is not actively engaged in business activities, the number of printed sheets decreases. Furthermore, a sudden change in the number of printed sheets, whether good or bad, may be a signal that some kind of change in business activities has occurred. If the number of printed sheets increases dramatically in a short period of time, it may be necessary to print a large amount of materials for bankruptcy proceedings, for example.

[0134] Additionally, changes in the color ratio (the ratio of monochrome prints to color prints) as a type of printing can also be used as an indicator of whether a company is making a profit in business. This is because color printing generally has high printing costs, and if the color printing ratio falls in a short period of time, it is highly likely that a company's profits are being squeezed and measures to reduce costs are being taken. Naturally, low profits are an indicator of future prospects.

[0135] In this way, the information on the number of printed sheets as information on print output and the information on the print type are useful as monitoring indicators for corporate activities, and contain information for estimating the default risk of the company. Below, we will explain the information on various types of print output used as data sources for building a scoring model.

[0136] FIG. 16 is a diagram showing an example of a histogram of the difference in the color ratio of a default company and a non-default company from the previous month. FIG. 17 is a diagram showing an example of a histogram of the difference in the color ratio of a non-default company from the previous month. FIG. 18 is a diagram showing an example of a histogram of the difference in the color ratio of a default company from the previous month. With reference to FIG. 16 to FIG. 18, the difference [%] in the color ratio (ratio of the number of monochrome prints to the number of color prints) from the previous month will be described as information on the print type. In this case, the print type means the type of color or monochrome. Among them, FIG. 17 shows a histogram of the difference [%] in the color ratio of a company that is not in default after three months (hereinafter may be referred to as a non-default company) from the previous month, and FIG. 18 shows a histogram of the difference [%] in the color ratio of a company that is in default after three months (hereinafter may be referred to as a default company) from the previous month. And FIG. 16 shows a state where the histogram of FIG. 17 and the histogram of FIG. 18 are superimposed.

[0137] 16 to 18, the histogram of default companies has a wider base than the histogram of non-default companies, and for example, by extracting companies below -25% it is possible to extract companies that are likely to be default. In this way, by inputting information on print type as a feature of learning data for building a scoring model that predicts future default companies, the prediction accuracy of the scoring model can be improved.

[0138] In this way, the amount of change from the past in the color ratio (one example of the amount of change in the print type) is strongly related to the default, and similar trends are seen in information about other print types. For example, in addition to the color ratio, the amount of change from the past in the ratio of print paper sizes (one example of the amount of change in the print type) may also contain some information. In this case, print type means the type of print paper size. For example, if the number of B4-sized prints suddenly increases compared to A4-sized prints, this may indicate a sudden increase in transactions with some unconventional contacts for which B4 size is specified.

[0139] Also, the amount of change from the past in the double-sided printing ratio, which is the ratio between the number of double-sided printed sheets and the number of single-sided printed sheets (one example of the amount of change in the printing type), may provide a clue. This is because, like reducing the color ratio, increasing the double-sided printing ratio is likely to indicate that cost-reduction measures are being implemented. In this case, the printing type means double-sided printing or single-sided printing. For the same reason, the amount of change from the past in the ratio of combined printing, such as reducing two printed sheets and printing them on one sheet (one example of the amount of change in the printing type), may also provide a clue. In this case, the printing type means combined printing or non-combined printing, and the degree of combination in combined printing. For example, it is also possible to infer the strength of the pressure to reduce costs from the ratio of combined printing types, such as combined printing where two sheets are printed on one sheet or combined printing where four sheets are printed on one sheet.

[0140] For the above-mentioned color ratio, paper size ratio, double-sided printing ratio, and aggregate printing ratio, it is effective to use not only the difference from the previous month, but also the difference over the past few months or the amount of change in the difference. This makes it possible to reflect the ongoing activity status of a company.

[0141] FIG. 19 is a diagram showing an example of a histogram of the monochrome print number ratio of a default company and a non-default company. FIG. 20 is a diagram showing an example of a histogram of the monochrome print number ratio of a non-default company. FIG. 21 is a diagram showing an example of a histogram of the monochrome print number ratio of a default company. With reference to FIG. 19 to FIG. 21, the monochrome print number ratio (current month number / previous month number), which is the ratio of the monochrome print number to the previous month, will be described as information regarding the number of prints. Among these, FIG. 20 shows a histogram of the monochrome print number ratio of a non-default company 12 months later, and FIG. 21 shows a histogram of the monochrome print number ratio of a default company 12 months later. And FIG. 19 shows a state where the histogram of FIG. 20 and the histogram of FIG. 21 are superimposed.

[0142] As shown in Figures 19 to 21, compared to the histogram of non-default companies, the histogram of default companies shows a dramatic increase in the monochrome print ratio exceeding 5. For example, by extracting companies with a ratio exceeding 5, it is possible to extract companies with a high probability of defaulting. In addition, the histogram of non-default companies has a characteristic of being highly skewed compared to the histogram of default companies. For example, when the value of the monochrome print ratio of each company is x and the most frequent value of all companies is A, it is possible to extract companies with a high probability of defaulting by extracting companies that satisfy xA<0. Furthermore, since the histogram of default companies shows a large peak near 0, it is possible to extract companies with a high probability of defaulting by extracting companies near 0. These indicate a decrease and a sudden decrease in the number of printed sheets, respectively, suggesting that corporate activity is slowing down.

[0143] In this way, data on the number of printed sheets, such as the monochrome print sheet ratio (an example of the change in the number of printed sheets), can be input as a feature of the learning data for constructing a scoring model that predicts future default companies, thereby improving the predictive accuracy of the scoring model.

[0144] This tendency can be confirmed by the color print number ratio (current month number / previous month number) (an example of the change in the number of prints) which is the ratio of the number of color prints to the previous month shown in Figs. 22 to 24. Fig. 22 is a diagram showing an example of a histogram of the color print number ratio of the default company and the non-default company. Fig. 23 is a diagram showing an example of a histogram of the color print number ratio of the non-default company. Fig. 24 is a diagram showing an example of a histogram of the color print number ratio of the default company. Of these, Fig. 23 shows a histogram of the color print number ratio of the non-default company after 12 months, and Fig. 24 shows a histogram of the color print number ratio of the default company after 12 months. Fig. 22 shows a state where the histogram of Fig. 23 and the histogram of Fig. 24 are superimposed. By inputting either or both of the monochrome print page ratios shown in Figures 19 to 21 and the color print page ratios shown in Figures 22 to 24 as features of the learning data, the predictive accuracy of the scoring model can be improved.

[0145] In this way, the change in the number of monochrome prints and the number of color prints from the past is significantly related to a company's default, and the change in the sum of these (one example of the change in the number of prints) also shows similar results. This is particularly important when the number of prints is small and no statistically significant difference can be obtained from monochrome or color alone, and it is possible to improve accuracy by taking the sum of the number of monochrome and color prints and increasing the resolution.

[0146] It should be noted that for the number of monochrome prints, number of color prints, and the sum of these, it is also effective to use the ratio over the past few months, rather than just the previous month, or to use the trend in the ratio (an example of the trend in the amount of change in the number of prints). This makes it possible to reflect the ongoing activity status of a company.

[0147] In addition to the information about print output as described above, other useful information for determining whether a company will default includes the company's past overdue history, sales information other than sales related to printing, and financial information of the company. By combining these pieces of information with information about print output, it is possible to build a scoring model with higher accuracy. In that case, in addition to information about print output, these pieces of information are input as variables and learning data into the scoring model to learn it, and when the scoring model is used, these data are also input to make predictions.

[0148] It is also possible to use operation information of the printing press 3. For example, operation information of the printing press 3 may include the usage status (total number of printed sheets, total travel distance, etc.) of the photosensitive drum or developing unit as a driving part, the installation date and time of the driving part (initial setting date and time), the time of recovery from energy saving mode, the time of power ON, the time left unused since the previous print job, etc. Here, the time of recovery from energy saving mode, the time of power ON, and the time left unused since the previous print job can be considered as examples of the operating time of the printing press 3. By utilizing this information, it is possible to estimate the activity status of the company from a perspective different from the above-mentioned number of printed sheets and type of printing.

[0149] For example, photoconductor drums and developing units have a set durability (replacement life) that assumes general use, and it is possible to infer a company's financial situation from the timing of replacement. This is because, even if abnormal images and image quality degradation occur due to the deterioration of these driving parts over time, and replacement is required at a cost, it can be determined that there is a unique situation in a company that continues to use them. Below, using the photoconductor drum as an example in Figures 25 and 26, an example of inferring a company's activity status based on the usage status of the photoconductor drum will be described.

[0150] Fig. 25 is a diagram showing an example of a graph showing the relationship between the cumulative number of printed sheets of a photosensitive drum and the unit replacement life. Fig. 26 is a diagram showing an example of a graph showing the relationship between the cumulative number of printed sheets of a photosensitive drum and the number of replacements at each point in time. As shown in Fig. 25, it is shown that the cumulative number of printed sheets until the unit replacement life is reached varies depending on the content of the print job. Also, as shown in Fig. 26, normally, a predetermined percentage (e.g., 99.6[%], etc.) of units are replaced before the "usage pattern that maximizes the number of printed sheets / life" is reached, but if operation continues despite the cumulative number of printed sheets reaching this level, it can be inferred that a unique situation exists.

[0151] Furthermore, it is known that in long-term business activities, the usage cycle of the printing machine 3 appears in roughly periodic units such as morning and afternoon, one day, one week, one month, etc. This is because business activities such as invoice processing at the end of the month, regular meetings, and end-of-term reports are carried out in roughly fixed cycles. Therefore, it is possible to detect changes in business activities by focusing on changes in this cycle as operation information of the printing machine 3. Below, an example of estimating the activity status of a business based on the power-on time (operation rate) of the printing machine 3 will be described with reference to FIG. 27.

[0152] FIG. 27 is a diagram showing an example of a graph showing the operation status of the equipment. In FIG. 27, the power-on time (operation rate) of the printing machine 3 per hour is shown as an example of the change in the cycle, and it can be seen that the operation status of the printing machine 3 in general during the daytime business activities is concentrated at the start of work, after lunch, before the end of work, etc. On the other hand, the "operation status of the equipment under a specific situation" shown in FIG. 27 shows that the operation rate is low in the morning and rises sharply after the afternoon. This may indicate that the work system has been changed to a half-day work system only in the afternoon in order to reduce fixed costs, for example. Note that the same calculation can be performed by using the energy saving transition time, standby time, or power OFF time to calculate the operation rate of the printing machine 3. The power ON time, energy saving transition time, standby time, and power OFF time as described above can be taken as an example of the change in the cycle and the operation time of the printing machine 3. In addition, by calculating the amount of change at any time in the operation rate, energy saving transition time, standby time, or power OFF time, it is possible to more clearly capture the change in business activities.

[0153] As described above, not only the number of printed sheets and the type of printing, but also the operational information of the printing press 3 contains information related to corporate activities, and even if it is difficult to build a sufficient scoring model by simply treating each of them as a single data, by using different information, it is possible to build a more accurate scoring model.

[0154] (Construction of scoring models by each algorithm) FIG. 28 is a diagram for explaining a specific operation when GBDT is applied to a scoring model.

[0155] A scoring model is a model used to estimate the probability of default when making credit decisions, and simply put, it is a model that outputs the probability of a company defaulting based on the input parameters of the company. These scoring models generally use machine learning algorithms that learn patterns from large amounts of training data and predict the results.

[0156] In what follows, we will assume that the training data includes various features for corporate credit assessment. The features include the above-mentioned information on print output, numerical variables such as sales, and features indicating categories such as industry (categorical features), and there may be cases where more than 100 types of features are included. Also, since it is not necessarily possible to obtain all features for each company, there may be cases where missing values ​​are included.

[0157] In this embodiment, the configuration for executing GDBT has been described as above. Currently, it is known that GBDT has poor accuracy for input data such as images, voice, and language because it is difficult to extract features, but it performs better with other structured data. In fact, GBDT is the most standard algorithm in Kaggle, a competition for data scientists. It is said that 70% of the problems that need to be solved by machine learning in the real world involve structured data other than images, voice, and language, and GBDT is undoubtedly an important algorithm for solving real-world problems. The learning data used this time is also structured data, and it has been confirmed that GBDT achieves high accuracy.

[0158] However, as an algorithm (machine learning method) for constructing a scoring model, known Random Forest (RF), NN (Neural Network), and Logistic Regression (LR) as a benchmark may be used. In addition, the learning and classification device 1 according to this embodiment is capable of learning processing based on each of the above-mentioned algorithms. The learning processing based on each algorithm here includes learning by each algorithm alone and ensemble learning of several algorithms. In addition, the sample data used is divided into data for learning, validation, and classification in a ratio of, for example, 6:3:1. The data for learning (learning data) is used for learning to construct a scoring model, the data for validation (validation data) is used for parameter optimization, and the data for testing (classification data) is used for evaluation.

[0159] In addition, each algorithm (machine learning method) has multiple hyperparameters. Since the optimal parameters differ depending on the data set, it is necessary to optimize the parameters. There are several known methods for searching parameters, and for example, Bayesian Optimization is used.

[0160] In addition, in learning using various algorithms as described above, training data is teacher data whose label is a flag indicating whether or not a default has been performed as described above. In addition, stacked generalization, for example, can be used for ensemble learning. Stacked generalization is a method of performing ensemble learning by layering different machine learning models.

[0161] Next, an example of operation when GBDT is applied to a scoring model will be described with reference to Fig. 28. For the learning data corresponding to each company, a number of decision trees are combined based on information (feature quantities) such as printing information, overdue history, sales information, financial information, and operation information of the printing machine 3 of the company that is the subject of credit judgment, to predict the default probability (probability of defaulting in a specified period).

[0162] As shown in FIG. 28, at each node of the decision tree, each piece of training data is branched based on the branching condition (feature number, threshold value) determined by learning. For example, at the node labeled "Sales", the feature "Sales" is branched to the left or right based on the threshold value of "1 billion yen". In the first decision tree, the training data for "Company D" is classified as non-default even though it is labeled as "default", indicating that Company D has defaulted. Therefore, based on ensemble learning, such training data that could not be properly classified is classified by a separately generated decision tree. The default probability is predicted by combining many such decision trees.

[0163] (Evaluation of scoring model) Fig. 29 is a diagram for explaining a CAP curve. First, with reference to Fig. 29, a CAP (Cumulative Accuracy Profiles) curve and an AR (Accuracy Ratio) value used to evaluate a prediction result obtained by applying a scoring model generated by learning using learning data will be explained.

[0164] As shown in Fig. 29, the CAP curve is a line plotted on the horizontal axis as the percentage x / N of the top x probability of defaulting to the total (N cases) when learning data is sorted in order of default probability, and on the vertical axis as the percentage Nx / Nd of the number of actual defaults Nx out of the top x cases to the total number of defaults (Nd cases). Curve B in Fig. 29 is a typical example of a CAP curve. Also, if the model has almost no accuracy, a straight line like C is drawn, and if the prediction based on the model is completely correct, a line shaped like A is drawn.

[0165] Also, if the CAP curve is the curve of B, the ratio of the area of ​​the part surrounded by B and C to the area of ​​the part surrounded by A and C is the AR value. Here, it is known that when the above-mentioned machine learning methods are not used for ensemble learning, but are learned individually to construct a scoring model, GBDT shows a remarkably high AR value and has high accuracy. For example, when the AR value exceeds 0.6 for the test data, it is determined that sufficient accuracy has been achieved and the model is determined to be practically usable. In contrast, RF and NN result in almost no difference in accuracy compared to the existing LR. Therefore, GBDT can be determined to be a suitable algorithm for generating a scoring model compared to other machine learning methods. However, the algorithm for the learning and identification device 1 to generate a scoring model is not limited to GBDT.

[0166] As described above, in the learning identification device 1 according to this embodiment, the control unit 11 acquires information about the print output generated by the printing machine 3 installed in the company, and the learning module 20 and the classification module 50 use the learning data including the information about the print output to learn a scoring model for estimating the company's default. This makes it possible to accurately build a scoring model that highly accurately reflects the company's situation.

[0167] In addition, by using information regarding the number of printed sheets or information regarding the type of printing as information regarding the print output, the predictive accuracy of the scoring model can be improved by inputting this as a feature of the learning data for constructing a scoring model that predicts future default companies. [Explanation of symbols]

[0168] 1 Learning Classifier 2 Data collection server 3, 3a~3c printing machine 10 CPU 11 Control section 20 Learning Modules 21, 21_1, 21_2 Gain calculation module 22 Optimal Condition Derivation Module 30 Data Memory 31 Pointer Memory 32 Feature Memory 33 State Memory 40 Model Memory 50 Classification Module 100 Learning System N Network [Prior art documents] [Patent documents]

[0169] [Patent Document 1] JP 2020-035395 A

Claims

1. an acquisition unit that acquires information regarding a print output generated by a printing machine installed in a company; a learning unit that uses learning data including information about the print output acquired by the acquisition unit to learn a scoring model for estimating a default of a company; A learning device equipped with

2. The learning device according to claim 1 , wherein the information regarding the print output is information regarding the number of sheets printed by the printing press.

3. The learning device according to claim 1 , wherein the information relating to the print output is information relating to a printing type of the printing press.

4. 3. The learning device according to claim 2, wherein the information regarding the number of printed sheets is a change in the number of printed sheets of the printing press.

5. 3. The learning device according to claim 2, wherein the information regarding the number of printed sheets is a transition of an amount of change in the number of printed sheets of the printing press.

6. The learning device according to claim 3 , wherein the information regarding the printing type is a change in a ratio of the printing type of the printing press.

7. The acquisition unit acquires information on a company's delinquent history, The learning device according to any one of claims 1 to 6, wherein the learning unit includes the information on the delinquency history acquired by the acquisition unit in the learning data and performs learning of the scoring model.

8. The acquisition unit acquires sales information of a company, The learning device according to any one of claims 1 to 7, wherein the learning unit includes the sales information acquired by the acquisition unit in the learning data and performs learning of the scoring model.

9. The acquisition unit acquires financial information of a company, The learning device according to any one of claims 1 to 8, wherein the learning unit includes the financial information acquired by the acquisition unit in the learning data and performs learning of the scoring model.

10. The acquisition unit acquires operation information of the printing press, The learning device according to any one of claims 1 to 9, wherein the learning unit includes operational information of the printing press acquired by the acquisition unit in the learning data and learns the scoring model.

11. The learning device according to claim 10 , wherein the operation information of the printing press is information on the utilization state of drive parts of the printing press.

12. The learning device according to claim 10 , wherein the operation information of the printing press is an operation time of the printing press.

13. The learning device according to any one of claims 1 to 12, wherein the learning data includes information on whether or not a company has defaulted as a label.

14. The learning device according to any one of claims 1 to 13, wherein the learning unit learns the scoring model using a Gradient Boosting Decision Tree (GBDT).

15. The learning device according to any one of claims 1 to 13, wherein the learning unit learns the scoring model by ensemble learning of a plurality of machine learning algorithms.

Citation Information

Patent Citations

  • Work cost analysis system, method, and program

    JP2011014110A

  • Profitability analyzer, profitability analysis method, and program

    JP2013015900A

  • Financial information analysis system, and program

    JP2018049400A

  • Learning method, program, and learning device

    JP2020035395A

  • Image forming apparatus and image forming method

    JP2020106773A