Data processing program, data processing method, and information processing device
By calculating the distance of data points from the overall trend and classifying them within the data set, the method effectively addresses the issue of inappropriate segmentation, enhancing the accuracy of data analysis and machine learning processes while balancing segment sizes.
Patent Information
- Application Number
- PCT/JP2024/001223
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2024-01-18
- Publication Date
- 2024-08-29
AI Technical Summary
Existing data segmentation methods often fail to accurately classify data sets, leading to inappropriate segments that can decrease accuracy in data analysis and machine learning processes due to the merging of data with different trends within the same segment.
A method that calculates the distance between data points and the overall trend in a data set, dividing it into groups based on this distance, and classifying data within each group to ensure accurate segmentation, while also merging segments based on their similarity to the overall trend and setting an upper limit on the number of data points per segment to balance distribution.
This approach ensures accurate classification and segmentation, improving the accuracy of data analysis and machine learning models by separating data that follows the overall trend from data that differs, and reducing the imbalance in segment sizes.
Smart Images

Figure JP2024001223_29082024_PF_FP_ABST
Abstract
Description
Data processing program, data processing method and information processing device
[0001] The present invention relates to a data processing program, a data processing method, and an information processing device.
[0002] A method for classifying, for example, grouping, data from a data set (data set) having multiple numerical attributes based on attribute values, etc., is known. The groups obtained by this method may be referred to as segments. This method may also be referred to as segment extraction or data segmentation. A segment is an example of a partial data set extracted from a data set.
[0003] For example, suppose the dataset is housing loan data that includes income and loan amount as attributes, and there exists a certain relationship, such as a correlation, between attributes, such as between income and loan amount.
[0004] For example, consider a case where home loan data is used for data analysis such as marketing. As an example, segment extraction can be used to extract segments (customer groups) from home loan data that meet conditions such as income category = 1 (<$20k) and loan amount category = 1 (<$500k). This allows users to compare data within or between customer groups that meet the same conditions for each attribute (e.g., income or loan amount) category.
[0005] One example of a segment extraction technique is chi (chi) merge. Chi merge is a bottom-up split point determination method using the chi-squared test. Chi merge involves discretizing attribute values and merging adjacent intervals where there is no significant difference in the frequency distribution of each data class.
[0006] Another example of a segment extraction technique is agglomerative clustering. Agglomerative clustering is a bottom-up clustering method. In agglomerative clustering, each piece of data is placed in a cluster with one element, and the clusters are repeatedly merged according to the distance between them. In agglomerative clustering, the distance between clusters is calculated from attribute values.
[0007] JP 2017-38161 A U.S. Patent Application Publication No. 2018 / 0083995 U.S. Patent Application Publication No. 2019 / 0005112
[0008] In the segment extraction method described above, data sets with similar frequency distributions or attribute values are merged into a single segment. As a result, data that follows the trend of the entire data set and data that does not follow that trend may be mixed within the same extracted segment. In other words, segment extraction may not yield an appropriate segment.
[0009] The lack of availability of suitable segments may result in, for example, reduced accuracy in various processes that utilize data within or between segments.
[0010] In one aspect, an object of the present invention is to appropriately classify data included in a data set.
[0011] In one aspect, a data processing program may cause a computer to execute the following processes. The process may calculate a distance between a spatial trend defined by a plurality of numerical attributes of a dataset in which each piece of data has the plurality of numerical attributes and each piece of data included in the dataset. The process may also divide the dataset into a plurality of groups based on the calculated distances. Furthermore, the process may classify the datasets included in each of the plurality of groups based on the values of the plurality of numerical attributes.
[0012] In one aspect, the present invention is capable of appropriately classifying data contained in a data set.
[0013] 2 is a diagram illustrating an example of a scatter plot of a plurality of data included in a dataset. FIG. 3 is a diagram illustrating an example of a heat map of parameter values of segments extracted from the dataset illustrated in FIG. 1. FIG. 4 is a diagram illustrating an example of a merging result of the segments illustrated in FIG. 2. FIG. 5 is a diagram illustrating an example of a trend of data in the scatter plot illustrated in FIG. 1. FIG. 6 is a diagram illustrating an example of groups divided by a server according to an embodiment. FIG. 7 is a diagram illustrating an example of data classified by a server according to an embodiment. FIG. 8 is a block diagram illustrating an example of a hardware (HW) configuration of a computer that realizes the functions of a server as an example of an embodiment. FIG. 9 is a block diagram illustrating an example of a software configuration of a server as an example of an embodiment. FIG. 10 is a diagram illustrating an example of input data. FIG. 11 is a diagram illustrating an example of a scatter plot of input data. FIG. 12 is a diagram illustrating an example of a calculation process of mean square error. FIG. 13 is a diagram illustrating an example of a grouping process of base segments by a classifier. FIG. 14 is a diagram illustrating an example of a grouping process of base segments by a classifier. FIG. 15 is a diagram illustrating an example of a base segment merging condition. FIG. 16 is a diagram illustrating an example of a base segment merging process. FIG. 17 is a diagram illustrating an example of a base segment merging process. FIG. 18 is a diagram illustrating an example of a base segment merging process. FIG. 10 is a diagram for explaining an example of a merging process of base segments. FIG. 11 is a diagram for explaining an example of a merging process of base segments. FIG. 12 is a diagram for explaining an example of a merging process of base segments. FIG. 13 is a diagram for explaining an example of a merging process of base segments. FIG. 14 is a diagram for explaining an example of a merging process of base segments. FIG. 15 is a diagram for explaining an example of a merging process of base segments. FIG. 16 is a flowchart for explaining an example of the operation of a server according to an embodiment.
[0014] Hereinafter, embodiments of the present program, method, and apparatus will be described with reference to the drawings. However, the embodiments shown below are merely examples, and are not intended to exclude various modifications or applications of techniques not explicitly stated in the embodiments. For example, the present embodiment can be implemented in various modifications without departing from the spirit of the present invention. Furthermore, each figure does not intend to include only the components shown in the figure, but may include other functions, etc.
[0015] [A] Explanation of Segment Extraction First, segment extraction will be explained. In one embodiment, an example will be explained in which housing loan data having attributes of income (income) and loan amount (loan_amount) is used as a dataset.
[0016] Figure 1 shows an example of a scatter plot of multiple data included in a dataset. As shown in Figure 1, the scatter plot indicated by the symbol A plots data in a two-dimensional space defined by income on the horizontal axis and loan amount on the vertical axis. The values on the horizontal and vertical axes are scaled values so that the actual income and loan amount values fall within the range of 0.0 to 1.0, respectively.
[0017] Figure 2 shows an example of a heat map of segment parameters extracted from the dataset shown in Figure 1. In the heat map shown by symbol B in Figure 2, segments shown by square frames are arranged in a two-dimensional space defined by income on the horizontal axis and loan amount on the left vertical axis. The segment parameters are expressed as numbers within the square frames, and as shown on the right vertical axis, the shaded area within the square frame becomes darker with each increase of 1,000 in the parameter.
[0018] The scales on the horizontal and vertical axes in Figure 2 respectively divide the ranges of the horizontal and vertical axes shown in Figure 1 into 10 ranks. For example, the segment with a parameter (number of data points) of 225 in the lower left corner is a segment with a rank of (1, 1) (income, loan amount).
[0019] As shown in Figure 2, when segments are extracted from a dataset using a combination of multiple attributes (income and loan amount), extreme bias can occur in the parameter values of the extracted segments. For example, the parameter value of the segment with rank (5, 1) indicated by symbol B1 is 8004, while the parameter value of the segment with rank (3, 4) indicated by symbol B2 is 2, a difference of more than 4000 times.
[0020] The segments illustrated in Fig. 2 are the smallest granularity segments obtained by dividing a data set into default intervals (ranks in the example of Fig. 2) according to the range of values of each attribute. These segments may also be referred to as "base segments." A base segment is an example of a base data set.
[0021] Figure 3 is a diagram showing an example of the results of merging the segments (base segments) shown in Figure 2. In the heat map indicated by reference character C in Figure 3, segments obtained by merging the base segments shown in Figure 2 using a predetermined segment extraction method are shown in dotted frames. The population parameter of the merged segment is shown in bold above the center in the horizontal direction of the dotted frame. Examples of predetermined segment extraction methods include various methods that merge segments based on frequency distribution or similarity of attribute values, such as χ merge or agglomerative clustering.
[0022] Figure 4 shows an example of the data trends in the scatter plot shown in Figure 1. In the scatter plot shown by symbol D in Figure 4, the trend of the entire data set (overall trend) is shown by a solid line (see symbol D1). Symbols D2 and D3 in Figure 4 also show the trends of data included in one segment, for example, rank (1-3, 1), among the merged segments shown in Figure 3.
[0023] The symbol D2 indicates the range in which the trend of the data included in a portion of the base segment of rank (2, 1) and a portion of the base segment of rank (3, 1) is similar to the overall trend. The symbol D3 indicates the range in which the trend of the data included in a portion of the base segment of rank (1, 1) and a portion of the base segment of rank (2, 1) is different from the overall trend.
[0024] 3 is obtained by simply merging base segments with similar data frequency distributions or attribute values, without considering whether the trends of the data included in the base segments are similar to the overall trend. As a result, base segments that differ from the overall trend of the data set may be merged, or a base segment containing data that follows the overall trend may be merged with a base segment containing data that differs from the overall trend. In other words, there is a possibility that an appropriate segment may not be obtained by segment extraction.
[0025] Failure to obtain appropriate segments may result in reduced accuracy in various processes that use data within or between segments, such as data analysis using extracted segments (e.g., customer groups). For example, if data within a segment does not match the overall trend, analyses such as data comparisons may fail or ineffective comparison results may not be obtained. Furthermore, for example, when using a dataset processed based on extracted segments as training data to perform machine learning on a machine learning model, the accuracy of inferences using the trained machine learning model may be reduced.
[0026] Therefore, in one aspect, a technique for classifying a dataset into appropriate segments in one embodiment is described, and in another aspect, a technique for reducing the imbalance in the number of data items between segments (see FIG. 2 ) is described.
[0027] [B] Description of a Method According to an Embodiment In an embodiment, a device that classifies data included in a data set, such as a server, may perform the following processes (i) to (iii).
[0028] (i) The server calculates the distance between a spatial trend defined by a plurality of numerical attributes of a data set, each of which has a plurality of numerical attributes, and each of a plurality of data included in the data set.
[0029] (ii) The server divides the data set into multiple groups based on the calculated distances.
[0030] (iii) The server classifies, for each of the plurality of groups, the data sets included in the group based on the values of the plurality of numerical attributes.
[0031] As a result, the server according to one embodiment can classify the data set into partial data sets according to the relationships between the attributes.
[0032] 5 is a diagram illustrating an example of groups divided by a server according to an embodiment. Reference character E in FIG. 5 is an enlarged view of a portion of a scatter diagram in which multiple data items included in the housing loan data are plotted in a two-dimensional space defined by the horizontal axis representing income and the vertical axis representing loan amount. Reference character F is the scatter diagram illustrated in FIG. 1.
[0033] In the scatter plot indicated by the symbol F, the line representing the overall trend of the data set is indicated by the symbol F1, the range (area) of the first segment is indicated by the symbol F2, and the range (area) of the second segment is indicated by the symbol F3.
[0034] In the scatter diagram indicated by the symbol E, the line representing the overall trend of the data set is indicated by the symbol E1, the line representing the trend of the data included in the segment indicated by the symbol F2 is indicated by the symbol E2, and the line representing the trend of the data included in the segment indicated by the symbol F3 is indicated by the symbol E3. Note that the lines indicated by the symbols E1 to E3 and F1 may be regression lines of the data, for example.
[0035] The line indicated by symbol E2 has a similar slope to the line indicated by symbol E1, so the first segment (see symbol F2) can be said to be a segment similar to the overall trend. On the other hand, the line indicated by symbol E3 has a slope that differs from the line indicated by symbol E1 by a certain amount, so the second segment (see symbol F3) can be said to be a segment that differs from the overall trend.
[0036] According to one embodiment of the server, the process (ii) above can divide the data included in the housing loan data so that the data included in the range of the first segment and the data included in the range of the second segment are included in different groups.
[0037] Fig. 6 is a diagram illustrating an example of data classified by a server according to an embodiment. Symbol G in Fig. 6 indicates a segment classified by the method shown in Fig. 3, and symbol H in Fig. 6 indicates a segment classified by a server according to an embodiment.
[0038] In the heat map indicated by symbol G1 and the scatter plot indicated by symbol G2 in FIG. 6, as described above, segments that differ from the overall trend of the housing loan data are merged.
[0039] 6, for example, in the heat map indicated by symbol H1 and the scatter plot indicated by symbol H2, for multiple data within a group that have the same degree of similarity to the overall trend, for example, in each of the base segments, the data (data set) included in the base segment is classified based on the values of multiple numerical attributes. For example, multiple base segments are merged into one segment.
[0040] According to an embodiment of the server, the process (iii) described above can be used to merge segments according to data trends. In addition, the server can limit the number of data points included in a merged segment, thereby reducing the imbalance in the number of data points between segments.
[0041] [C] Hardware Configuration Example The server 1 (see FIG. 8 ) according to one embodiment may be a virtual server (VM: Virtual Machine) or a physical server. The functions of the server 1 may be implemented by a single computer or by two or more computers. Furthermore, at least some of the functions of the server 1 may be implemented using hardware (HW) resources and network (NW) resources provided by a cloud environment.
[0042] 7 is a block diagram showing an example of the hardware (HW) configuration of a computer 10 that realizes the functions of the server 1 according to an embodiment. When multiple computers are used as HW resources that realize the functions of the server 1, each computer may have the HW configuration shown in FIG.
[0043] As shown in FIG. 7, the computer 10 may, as a HW configuration, illustratively include a processor 10a, a graphics processing unit 10b, a memory 10c, a storage unit 10d, an IF (Interface) unit 10e, an IO (Input / Output) unit 10f, and a reading unit 10g.
[0044] The processor 10a is an example of a processing unit that performs various controls and calculations. The processor 10a may be connected to each block in the computer 10 via a bus 10j so that they can communicate with each other. The processor 10a may be a multiprocessor including multiple processors, a multi-core processor having multiple processor cores, or a configuration having multiple multi-core processors.
[0045] Examples of the processor 10a include integrated circuits (ICs) such as a CPU, MPU, APU, DSP, ASIC, and FPGA. Note that the processor 10a may be a combination of two or more of these integrated circuits. CPU is an abbreviation for Central Processing Unit, MPU is an abbreviation for Micro Processing Unit, APU is an abbreviation for Accelerated Processing Unit, DSP is an abbreviation for Digital Signal Processor, ASIC is an abbreviation for Application Specific IC, and FPGA is an abbreviation for Field-Programmable Gate Array.
[0046] The graphics processing device 10b controls screen display for an output device such as a monitor in the IO unit 10f. The graphics processing device 10b may also be configured as an accelerator that executes machine learning processing and inference processing using a machine learning model. The graphics processing device 10b may be any of a variety of arithmetic processing devices, such as a graphics processing unit (GPU), an APU, a DSP, an ASIC, an FPGA, or other integrated circuits (ICs).
[0047] The memory 10c is an example of HW that stores various types of data, programs, and other information. Examples of the memory 10c include one or both of a volatile memory such as a dynamic random access memory (DRAM) and a non-volatile memory such as a persistent memory (PM).
[0048] The storage unit 10d is an example of HW that stores various types of data, programs, and other information. Examples of the storage unit 10d include various storage devices such as a magnetic disk device such as a hard disk drive (HDD), a semiconductor drive device such as a solid state drive (SSD), and a nonvolatile memory. Examples of nonvolatile memory include a flash memory, a storage class memory (SCM), and a read-only memory (ROM).
[0049] The storage unit 10d may store a program 10h (data processing program) that realizes all or part of the various functions of the computer 10.
[0050] For example, the processor 10a of the server 1 can implement the function of a control unit 20 (see FIG. 8) described later by loading a program 10h stored in the storage unit 10d into the memory 10c and executing it.
[0051] The IF unit 10e is an example of a communication IF that controls the connection and communication between the server 1 and other computers. For example, the IF unit 10e may include an adapter that complies with electrical communications (e.g., LAN (Local Area Network)) such as Ethernet (registered trademark) or optical communications such as FC (Fibre Channel). The adapter may support either or both of wireless and wired communication methods.
[0052] The program 10h may be downloaded to the computer 10 from the network via the communication IF and stored in the storage unit 10d.
[0053] The IO unit 10f may include one or both of an input device and an output device. Examples of input devices include a keyboard, a mouse, and a touch panel. Examples of output devices include a monitor, a projector, and a printer. The IO unit 10f may also include a touch panel that combines an input device and a display device. The output device may be connected to the graphics processing device 10b.
[0054] The reading unit 10g is an example of a reader that reads data and program information recorded on the recording medium 10i. The reading unit 10g may include a connection terminal or device to which the recording medium 10i can be connected or inserted. Examples of the reading unit 10g include an adapter compliant with USB (Universal Serial Bus) or the like, a drive device that accesses a recording disk, and a card reader that accesses a flash memory such as an SD card. Note that the recording medium 10i may store the program 10h, and the reading unit 10g may read the program 10h from the recording medium 10i and store it in the memory unit 10d.
[0055] Examples of the recording medium 10i include non-transitory computer-readable recording media such as magnetic / optical disks and flash memories. Examples of magnetic / optical disks include flexible disks, CDs (Compact Discs), DVDs (Digital Versatile Discs), Blu-ray Discs, and HVDs (Holographic Versatile Discs). Examples of flash memories include semiconductor memories such as USB memories and SD cards.
[0056] The above-described HW configuration of the computer 10 is an example. Therefore, the HW in the computer 10 may be increased or decreased (for example, adding or deleting any block), divided, integrated in any combination, or the HW may be added or deleted as needed.
[0057] [D] Software Configuration Example Fig. 8 is a block diagram showing an example of the software configuration of the server 1 as an example of an embodiment. The server 1 is an example of an information processing device or a computer.
[0058] As shown in Fig. 8, the server 1 may illustratively include a base segment extraction unit 12, an overall trend extraction unit 13, an index value calculation unit 14, a classification unit 15, a merging unit 16, and a training data generation unit 17. The server 1 may also include a machine learning unit 18 when performing machine learning processing. The server 1 may also include an inference unit 19 when performing inference processing. The blocks 12 to 19 included in the server 1 are an example of a control unit 20. The functions of the control unit 20 may be realized, for example, by the processor 10a of the computer 10 shown in Fig. 7 executing a program 10h deployed in the memory 10c.
[0059] 8, the server 1 may illustratively include a storage area capable of storing input data 11a, base segments 11b, overall trend 11c, index value 11d, classified base segments 11e, merged segments 11f, and training data 11g. If the server 1 includes a machine learning unit 18, the storage area may also be capable of storing a machine learning model 11h. If the server 1 includes an inference unit 19, the storage area may also be capable of storing inference data 11i and inference results 11j.
[0060] The storage area of the server 1 may be realized by, for example, one or both of the storage areas of the memory 10c and the storage unit 10d of the computer 10 shown in FIG.
[0061] The server 1 may, for example, receive at least one of the input data 11a, the untrained machine learning model 11h, and the inference data 11i from another computer not shown via the IF unit 10e and the network, and store them in a memory area.
[0062] The server 1 may also transmit, for example, at least one of the merged segments 11f, the training data 11g, the trained machine learning model 11h, and the inference result 11j stored in the storage area to another computer (not shown) via the IF unit 10e and the network. The server 1 may also transmit intermediate data, for example, at least one of the data 11b to 11e, to another computer (not shown) via the IF unit 10e and the network.
[0063] 9 is a diagram showing an example of input data 11a. The input data 11a is an example of a data set, such as housing loan data. As shown in FIG. 9, the input data 11a is a set of data (entries) having two attributes: income and loan amount.
[0064] Income and loan amount are numeric attributes whose attribute values are numeric. In the example of Figure 9, the income value is a value obtained by scaling the actual income value to fall within the range of 0.0 to 1.0 according to the range of the actual income value. The loan amount value is a value obtained by scaling the actual loan amount to fall within the range of 0.0 to 1.0 according to the range of the actual loan amount from the minimum to the maximum.
[0065] 9 shows an example in which the input data 11a has 10 data items (entries), but in reality it may have a large number of data items (for example, 1000 or more). Furthermore, the input data 11a may include one or both of other numeric attributes and non-numeric attributes in addition to the attributes shown in FIG.
[0066] The base segment extraction unit 12 extracts base segments 11b from the input data 11a. For example, the base segments 11b are segments of the smallest granularity obtained by dividing the input data 11a into initial setting intervals according to the range of values of each attribute.
[0067] Fig. 10 is a diagram showing an example of a scatter diagram of the input data 11a. The scatter diagram shown by symbol I in Fig. 10 is a two-dimensional space defined by the horizontal axis representing income and the vertical axis representing loan amount, in which each of the multiple data included in the input data 11a is plotted.
[0068] As shown by reference symbol I1 in Fig. 10, the base segment 11b is a rectangular area segment obtained by dividing (segmenting) the respective numerical ranges (0.0 to 1.0) of income and loan amount into a predetermined number (for example, 10). For example, the initial setting interval of the base segment 11b is 0.1 on both the horizontal and vertical axes.
[0069] The base segment 11b may include information such as the position of the segment in space (e.g., the range on each axis), information for identifying the data contained in (belonging to) the segment, the number of data contained in the segment, and the like.
[0070] To reduce the processing load, the server 1 may limit the base segments 11b to be processed to those with a predetermined number of data items or more. In the following description, the server 1 processes base segments 11b with five or more data items.
[0071] The overall trend extraction unit 13 extracts an overall trend 11c from the input data 11a. The overall trend 11c is an example of a trend in space defined by multiple numerical attributes of the input data 11a. The overall trend 11c may be, for example, a mathematical formula that expresses the distribution trend of multiple data included in the input data 11a using a straight line, a curve, or a combination of these. As an example, the overall trend 11c may be calculated by various regression analyses of multiple data included in the input data 11a. In one embodiment, the overall trend 11c may be a regression line calculated as an example of the results of the regression analysis. Various known methods may be adopted as a method for calculating the overall trend 11c by the overall trend extraction unit 13.
[0072] 10 is an example of a regression line of the input data 11a. The regression line indicated by I2 is expressed as y = 0.3687x + 0.0857, where the horizontal axis of the scatter diagram indicated by I is the x-axis and the vertical axis is the y-axis.
[0073] The index value calculation unit 14 calculates an index value 11d based on the base segments 11b and the overall trend 11c. The index value 11d is an example of a distance between the overall trend 11c and each piece of data included in the input data 11a. In one embodiment, the index value 11d may be calculated for each base segment 11b.
[0074] As the index value 11d, for example, various index values that represent the distance between data groups may be used, and as one example, the mean squared error (MSE) may be used.
[0075] For example, the index value calculation unit 14 may calculate, for each base segment 11b, the MSE between the overall trend 11c and the data included in that base segment 11b.
[0076] Fig. 11 is a diagram showing an example of a calculation process of the mean square error (MSE). In Fig. 11, attention is focused on a certain base segment 11b (see dashed frame) including n (n is an integer of 1 or more) pieces of data. Data in the base segment 11b is represented by i (i is an integer of 1 or more and n or less), and the numerical value of the income (horizontal axis) and the numerical value of the loan amount (vertical axis) of data i are respectively represented by x i and y i Then, the MSE may be calculated by the following equation (1):
[0077] Hereinafter, y hat will be expressed as y^. In the above formula (1), y^ i is the regression line y^ on x=x i The regression line is y^=0.3687x+0.0857.
[0078] In this way, the above process (i) by the server 1 may be executed by the base segment extraction unit 12, the overall trend extraction unit 13, and the index value calculation unit 14. In other words, the base segment extraction unit 12, the overall trend extraction unit 13, and the index value calculation unit 14 may calculate the distance between the spatial trend defined by the multiple numerical attributes of the input data 11a and each piece of data included in the input data 11a.
[0079] Although the index value calculation unit 14 calculates the MSE for each base segment 11b, this is not limiting. For example, the index value calculation unit 14 may calculate the distance between the overall trend 11c and each piece of data at a granularity smaller than that of the base segment 11b, for example, for each piece of data. In this case, the index value calculation unit 14 may perform the calculation using the above formula (1) with n=1.
[0080] The classification unit 15 divides the input data 11 a into a plurality of groups based on the distances calculated by the index value calculation unit 14 , thereby causing the server 1 to perform the above process (ii).
[0081] The classifier 15 may, for example, compare the MSE, which is an example of the index value 11d, with a predetermined threshold, and classify each of the base segments 11b into one of a plurality of groups according to the comparison result, thereby acquiring the classified base segments 11e. The classified base segments 11e may be, for example, information in which group identification information is added to each of the base segments 11b.
[0082] 12 and 13 are diagrams illustrating an example of the grouping process of the base segments 11b by the classification unit 15. The scatter plot indicated by symbol J in Fig. 12 shows the MSE and the number of data points in each base segment 11b for each base segment 11b in the scatter plot indicated by symbol I in Fig. 10. Symbol K in Fig. 13 shows an example of the grouping results of each base segment 11b based on the MSE and a predetermined threshold.
[0083] As shown by the symbol K in Fig. 13, the classification unit 15 may classify the basis segments 11b whose MSE is less than a predetermined threshold into a first group indicated by thin diagonal lines, and may classify the basis segments 11b whose MSE is equal to or greater than the predetermined threshold into a second group indicated by thick diagonal lines. The predetermined threshold may be specified in advance by the user, and is 0.01 in the example of Fig. 13.
[0084] The smaller the MSE, the closer the distance between the overall trend 11c and the base segment 11b, in other words, the more similar the trend of the data included in the base segment 11b is to the overall trend 11c. On the other hand, the larger the MSE, the farther the distance between the overall trend 11c and the base segment 11b, in other words, the more different the trend of the data included in the base segment 11b is from the overall trend 11c.
[0085] Therefore, the first group can be said to be a group of data included in the base segment 11b that has a trend similar to the overall trend 11c among the multiple data included in the input data 11a, while the second group can be said to be a group of data included in the base segment 11b that has a trend different from the overall trend 11c among the multiple data included in the input data 11a.
[0086] In one embodiment, the input data 11a is classified into two groups using one threshold, but the present invention is not limited to this. For example, the classification unit 15 may use two or more thresholds to classify the input data 11a into three or more groups depending on which of the three or more groups the MSE belongs to, which are divided by the two or more thresholds.
[0087] The merging unit 16 performs the above process (iii) by the server 1 by classifying the input data 11a included in each of the plurality of groups based on the values of the plurality of numerical attributes.
[0088] The merging unit 16 may, for example, acquire a merged segment 11f by merging one or more base segments 11b for each group in the classified base segments 11e based on the positional (arrangement) relationships between the base segments 11b in the same group. The merged segment 11f is an example of a partial data set, and may be, for example, information in which identification information of the segment (the segment after merging) is added to each of the base segments 11b.
[0089] For example, the merging unit 16 may merge one or more base segments 11b in accordance with a predetermined merging condition. The merging condition may be, for example, a condition that includes all of the following (a) to (d):
[0090] (a) The base segment 11b in the space from which the determination of merging starts is the base segment 11b located at the minimum or maximum value of each axis. For example, the merging unit 16 starts merging from the base segment 11b that includes the minimum or maximum value data of each of multiple numerical attributes in the two-dimensional space.
[0091] In one embodiment, the merging unit 16 starts merging determination from the base segment 11b with the minimum value on the horizontal axis (0.1 to 0.2) and the minimum value on the vertical axis (0.0 to 0.1) in the example of Figure 13, in other words, the base segment 11b at the bottom left.
[0092] (b) The merging unit 16 merges adjacent base segments 11b in the same group. "Adjacent base segments 11b" may refer to two base segments 11b in which the numerical ranges of one axis among multiple axes in space are continuous and the numerical ranges of all other axes are the same.
[0093] (c) The number of data items contained in the merged segment is less than N (N is an integer). N may be specified in advance by the user, for example. In one embodiment, N=200. For example, the merging unit 16 merges adjacent base segments 11b until the number of data items contained in the segment obtained by merging the base segments 11b satisfies a predetermined condition.
[0094] The predetermined condition may be, for example, that the number of data items included in a segment obtained by merging base segments 11b exceeds a predetermined number (e.g., N). In this case, the merging unit 16 may merge adjacent base segments 11b until the number of data items exceeds N=200.
[0095] (d) The merged segment must be rectangular. Figure 14 is a diagram illustrating an example of the merging conditions for the base segments 11b. In the example of Figure 14, the three base segments 11b indicated by solid lines (see symbol L) are adjacent base segments 11b that belong to the same group. The merging unit 16 merges the base segments 11b at the bottom left and top left of the page (see symbol L1) in accordance with the condition (b) above.
[0096] On the other hand, after merging the base segments 11b indicated by symbol L1, the merging unit 16 determines whether to merge the base segments 11b at the top left and top right of the page, but after the merging, the shape of the three base segments 11b is not rectangular (see symbol L2). Thus, if the merging of base segments 11b that satisfy the above condition (b) does not result in a rectangular shape, the merging unit 16 suppresses the merging of the base segments 11b in accordance with the above condition (d). In this way, the merging unit 16 merges adjacent base segments 11b so that the resulting segment is rectangular.
[0097] The rectangular shape of the base segment 11b in two-dimensional space is an example of a first shape. The shape of multiple base segments 11b after merging is an example of a second shape. In other words, the merging unit 16 merges adjacent base segments 11b so that the shape of an area in space that includes the base segments 11b becomes the second shape. When the space defined by multiple numerical attributes is not two-dimensional, for example, three-dimensional, each of the first and second shapes may be, for example, a rectangular parallelepiped. At least one of the first and second shapes is not limited to the above-described shapes and may be various geometric shapes.
[0098] The merging unit 16 may repeatedly determine whether or not to merge the base segments 11b for each group based on the merging conditions (a) to (d) above, and may output the merged segment 11f when the determination (classification) for all base segments 11b is completed. The output of the merged segment 11f may include, for example, displaying the merged segment 11f on the output device (IO unit 10f) of the server 1, notifying the user, or transmitting the merged segment 11f to software (application) that uses the merged segment 11f.
[0099] An example of merging processing of base segments 11b by merging unit 16 will be described below with reference to Figures 15 to 27. Figures 15 to 27 are diagrams for explaining an example of merging processing of base segments 11b. Figures 15 to 19 show an example of merging processing in the first group, and Figures 20 to 27 show an example of merging processing in the second group.
[0100] 15 to 27, symbols K1 to K12 each indicate a segment that has been merged by the merging unit 16 with respect to the grouping result (see symbol K) of the base segments 11b shown in FIG.
[0101] In the following description, when a specific base segment 11b is indicated, it may be expressed using the coordinate position of the base segment 11b (x-axis (income) and y-axis (loan amount)). For example, the base segment 11b at the bottom left of Figure 15 is expressed as base segment (0.1-0.2, 0.0-0.1).
[0102] First, the merging unit 16 executes the merging process for the first group. Note that the merging unit 16 may start the merging process from any of the multiple groups.
[0103] 15, the merging unit 16 merges the base segment 11b at the bottom left with the base segments (0.1-0.2, 0.1-0.2) above it on the paper to obtain merged segment K1. The number of data points in merged segment K1 is 25, which is less than N=200. The merging unit 16 determines whether merged segment K1 can be merged with the base segments (0.2-0.3, 0.1-0.2). However, since merging would not result in a rectangle (not satisfying the above condition (d)), further merging is suppressed and merged segment K1 is determined.
[0104] 16, the merging unit 16 merges four base segments 11b, from base segment (0.2-0.3, 0.1-0.2) to base segment (0.3-0.4, 0.2-0.3), to obtain merged segment K2. The number of data points in merged segment K2 is 199, which is less than N=200. The merging unit 16 determines whether merged segment K2 can be merged with base segments (0.4-0.5, 0.1-0.2) and base segments (0.4-0.5, 0.2-0.3). However, since merging would result in the number of data points exceeding N (not satisfying the condition (c) above), further merging is suppressed and merged segment K2 is determined.
[0105] 17, the merging unit 16 merges three base segments 11b, from base segment (0.4-0.5, 0.1-0.2) to base segment (0.4-0.5, 0.3-0.4), to obtain merged segment K3 (126 data points). Because further merging would no longer satisfy condition (d), the merging unit 16 suppresses further merging and determines merged segment K3.
[0106] 18, the merging unit 16 merges the four base segments 11b from base segment (0.5-0.6, 0.2-0.3) to base segment (0.6-0.7, 0.3-0.4) to obtain merged segment K4 (160 data points). Because further merging would no longer satisfy condition (d), the merging unit 16 suppresses further merging and determines merged segment K4.
[0107] 19, the merging unit 16 merges six base segments 11b, from base segment (0.7-0.8, 0.3-0.4) to base segment (0.9-1.0, 0.4-0.5), to obtain merged segment K5 (125 data points). Because there are no other unmerged base segments 11b adjacent to merged segment K5 in the first group (the condition (b) above is not satisfied), the merging unit 16 suppresses further merging and determines merged segment K5.
[0108] Next, the merging unit 16 executes the merging process for the second group.
[0109] 20, the merging unit 16 merges the four base segments 11b from base segment (0.2-0.3, 0.0-0.1) to base segment (0.5-0.6, 0.0-0.1) to obtain merged segment K6 (55 data points). Because further merging would no longer satisfy condition (d), the merging unit 16 suppresses further merging and determines merged segment K6.
[0110] 21, the merging unit 16 acquires the base segments (0.3 to 0.4, 0.3 to 0.4) as one merged segment K7 (the number of data points is 23). Because there are no other unmerged base segments 11b adjacent to merged segment K7 in the second group (the condition (b) above is not satisfied), the merging unit 16 suppresses further merging and finalizes merged segment K7.
[0111] 22, the merging unit 16 merges six base segments 11b, from base segment (0.4-0.5, 0.4-0.5) to base segment (0.6-0.7, 0.5-0.6), to obtain merged segment K8 (69 data points). Because further merging would no longer satisfy condition (d), the merging unit 16 suppresses further merging and determines merged segment K8.
[0112] 23, the merging unit 16 merges five base segments 11b, from base segment (0.5-0.6, 0.1-0.2) to base segment (0.9-1.0, 0.1-0.2), to obtain merged segment K9 (data count: 80). Because further merging would no longer satisfy condition (d), the merging unit 16 suppresses further merging and determines merged segment K9.
[0113] 24, the merging unit 16 merges three base segments 11b, from base segment (0.7-0.8, 0.2-0.3) to base segment (0.9-1.0, 0.2-0.3), to obtain merged segment K10 (44 data points). Because there are no other unmerged base segments 11b adjacent to merged segment K10 in the second group (the condition (b) above is not satisfied), the merging unit 16 suppresses further merging and determines merged segment K10.
[0114] 25, the merging unit 16 merges three base segments 11b, from base segment (0.7-0.8, 0.5-0.6) to base segment (0.9-1.0, 0.5-0.6), to obtain merged segment K11 (33 data points). Because further merging would no longer satisfy condition (d), the merging unit 16 suppresses further merging and determines merged segment K11.
[0115] 26, the merging unit 16 acquires the base segments (0.8-0.9, 0.6-0.7) as one merged segment K12 (the number of data points is 7). Because there are no other unmerged base segments 11b adjacent to the merged segment K12 in the second group (the condition (b) above is not satisfied), the merging unit 16 suppresses further merging and finalizes the merged segment K12.
[0116] Thus, the merging of the base segments 11b in each of the first and second groups is completed.
[0117] In the embodiment, the case where the merging determination is performed using base segments 11b with five or more data points as the base segments 11b to be processed has been described as an example, but the present invention is not limited to this. For example, base segments 11b of a data group (e.g., a second group) having a trend different from the overall trend 11c may be treated as base segments 11b to be merging candidates in the merging process, regardless of the threshold value (e.g., 5) for the number of data points of the base segments 11b to be processed.
[0118] For example, in Fig. 20, the merging unit 16 may merge five or eight base segments 11b from the base segment (0.2-0.3, 0.0-0.1) to the base segment (0.6-0.7, 0.0-0.1) or (0.9-1.0, 0.0-0.1) to obtain merged segment K6. Also, in Fig. 21, the merging unit 16 may merge two base segments 11b from the base segment (0.3-0.4, 0.3-0.4) to the base segment (0.3-0.4, 0.4-0.5) to obtain merged segment K7.
[0119] FIG. 27 is a diagram illustrating an example of an alternative process to the merging process shown in FIGS. 25 and 26 . As shown in FIG. 27 , the merging unit 16 may acquire a merged segment K11′ instead of the merged segments K11 and K12 shown in FIGS. 25 and 26 . For example, the merging unit 16 merges six base segments 11b from the base segment (0.7 to 0.8, 0.5 to 0.6) to the base segment (0.9 to 1.0, 0.6 to 0.7) to acquire a merged segment K11′. Because there are no other unmerged base segments 11b adjacent to the merged segment K11′ in the second group (the condition (b) above is not satisfied), the merging unit 16 suppresses further merging and determines the merged segment K11′.
[0120] The method for acquiring partial data sets (segments), that is, the method for classifying data sets and acquiring segments, is not limited to the above-described embodiment.
[0121] As an example, the dataset may be classified based on the values of numerical attributes of the data included in the dataset. As an example, the dataset may be classified based on the distance between reference data included in the dataset and other data. As an example, the dataset may be classified such that data within a predetermined distance from reference data included in the dataset is classified into the same segment. As an example, the dataset may be classified such that data closest to the reference data included in the dataset is classified into the same segment until a predetermined number of data is reached.
[0122] Furthermore, the distance between the reference data and other data included in the dataset used to classify the dataset may vary depending on the axis of the numerical attribute. The distance per unit may vary depending on the axis of the numerical attribute. The distance between the reference data and other data included in the dataset may not be a physical distance in space, but may be calculated from the difference in the value of the numerical attribute by defining an axis of a specific numerical attribute.
[0123] Returning to the explanation of FIG. 8, the training data generation unit 17 generates training data 11g based on the input data 11a and the merged segments 11f.
[0124] For example, the training data generation unit 17 may determine the fairness of each of the multiple data included in the input data 11a for each merged segment of the merged segment 11f. Then, the training data generation unit 17 may perform a data correction process for each of the multiple data included in the input data 11a based on the determination result, and acquire the multiple data including the data that has been corrected as training data 11g. Various known methods may be used for the fairness determination process and the data correction process.
[0125] The machine learning unit 18 performs training (machine learning processing) of the machine learning model 11h using the training data 11g. As a method for training the machine learning model 11h by the machine learning unit 18, various known methods may be adopted.
[0126] For example, generation of training data 11g by the training data generation unit 17 (correction processing of the input data 11a) makes it possible to suppress unfair inference by the machine learning model 11h. As an example, the fairness determination processing by the training data generation unit 17 can estimate data from the input data 11a that may cause the output of unfair inference results, such as discrimination, for each merged segment that groups together data with similar degrees of similarity to the overall trend 11c. Furthermore, data correction processing, for example, rewrites the values of unprotected attributes relative to protected attributes in the estimated data, thereby reducing the correlation between the protected attributes and the unprotected attributes, thereby suppressing unfair inference by the machine learning model 11h. Protected attributes are attributes that may cause discrimination, such as gender, age, race, and nationality, and unprotected attributes are attributes such as income and loan amount.
[0127] The inference unit 19 executes an inference process using the inference data 11i and the machine learning model 11h trained by the machine learning unit 18. For example, the inference unit 19 may input the inference data 11i to the trained machine learning model 11h to obtain the inference result 11j.
[0128] As described above, according to the server 1 of one embodiment, each of the plurality of data included in the input data 11a, for example, each of the base segments 11b, is classified according to the similarity with the overall trend 11c, for example, the difference (closeness) with the overall trend 11c. For example, data having a similar degree of similarity with the overall trend 11c can be classified (for example, into partial data sets) based on the distance between these data.
[0129] This allows a data set to be classified into partial data sets based on the relationships between attributes, and, for example, prevents data that conforms to the overall trend 11c from being mixed with data that differs within the same segment. Therefore, for example, appropriate segments can be obtained by segment extraction, and a decrease in accuracy can be prevented in various processes that use data within or between segments, such as data analysis using the extracted segments (e.g., customer groups). Furthermore, for example, by using a dataset processed based on the extracted segments as training data 11g, a decrease in accuracy can be prevented in inference using the trained machine learning model 11h.
[0130] Furthermore, by setting an upper limit on the number of data items contained in a merged segment, it is possible to reduce the imbalance in the number of data items between segments.
[0131] [E] Example of Operation Next, an example of operation of the server 1 as an example of one embodiment configured as described above will be described with reference to the flowchart (steps S1 to S8) shown in Fig. 28. Fig. 28 is a flowchart for explaining an example of operation of the server 1 according to one embodiment.
[0132] In step S1, the base segment extraction unit 12 of the server 1 extracts base segments 11b from the input data 11a.
[0133] In step S2, the overall trend extractor 13 extracts an overall trend 11c from the input data 11a.
[0134] In step S3, the index value calculation unit 14 calculates the index value of each base segment 11b with respect to the overall trend 11c, for example, the difference between the base segment 11b and the overall trend 11c.
[0135] In step S4, the classification unit 15 divides the plurality of data included in the input data 11a into a plurality of groups based on the index values 11d. For example, the classification unit 15 classifies each of the base segments 11b into one of a plurality of groups based on the index values 11d, thereby obtaining classified base segments 11e.
[0136] In step S5, the merging unit 16 merges the base segments 11b based on the grouping results to obtain a merged segment 11f. For example, the merging unit 16 classifies multiple data into partial data sets by merging data (e.g., base segments 11b) for each group based on the distance between data within the group.
[0137] In step S6, the training data generation unit 17 determines the fairness of the input data 11a for each merged segment 11f.
[0138] In step S7, the training data generation unit 17 performs a correction process (modification process) on the input data 11a based on the result of the fairness determination, thereby obtaining training data 11g.
[0139] In step S8, the machine learning unit 18 uses the training data 11g to train the machine learning model 11h, and the process ends.
[0140] The trained machine learning model 11h may be used for inference processing using the inference data 11i by the inference unit 19. Alternatively, the trained machine learning model 11h may be transmitted to another computer or the like and used for inference processing.
[0141] [F] Others The technology according to the embodiment described above can be implemented with the following modifications and changes.
[0142] For example, the blocks 12 to 19 included in the server 1 shown in FIG. 8 may be merged in any combination, or may be divided into individual blocks.
[0143] Although the merging unit 16 according to the embodiment uses the above-described (a) to (d) as merging conditions, the merging conditions are not limited to these. For example, the above-described condition (d) for forming the merged segment 11f into a rectangular shape may be excluded from the merging conditions.
[0144] According to the above condition (d), in data analysis using the merged segment 11f, it becomes easier to use the area of the merged segment 11f, for example, it has the effect of making it easy to specify the merged segment 11f using a single range condition.
[0145] By excluding the condition (d) from the merging conditions, the merged segment 11f can have a shape other than a rectangle. This allows, for example, more flexible merging of base segments 11b, and increases the possibility of reducing the imbalance in the number of data points between the merged segments 11f. In data analysis, the merged segment 11f can be specified using multiple conditions.
[0146] 8 may be configured such that each processing function is realized by a plurality of devices cooperating with each other via a network. As an example, each of the blocks 12 to 19 may be a web server and an application server, and the storage areas for storing each of the data 11a to 11j may be database servers, etc. In this case, the processing functions of the server 1 may be realized by the web server, application server, and database server cooperating with each other via a network.
[0147] [G] Supplementary Notes The following supplementary notes are further disclosed regarding the above-described embodiments.
[0148] (Supplementary Note 1) A data processing program that causes a computer to execute the following processes: calculate a distance between a spatial trend defined by a plurality of numerical attributes of a dataset in which each piece of data has a plurality of numerical attributes, and each piece of data included in the dataset; divide the dataset into a plurality of groups based on the calculated distance; and classify, in each of the plurality of groups, the dataset included in the group based on the values of the plurality of numerical attributes.
[0149] (Supplementary Note 2) The data processing program according to Supplementary Note 1, wherein the calculating process includes a process of dividing the plurality of data included in the dataset into a plurality of base datasets based on the numerical values of the plurality of numerical attributes, and calculating the distance between the trend of the dataset and each of the plurality of data for each of the base datasets by calculating a mean square error between the trend of the dataset and each of the plurality of base datasets, and the dividing process includes a process of dividing the dataset into the plurality of groups for each of the base datasets according to the value of the mean square error.
[0150] (Supplementary Note 3) The data processing program according to Supplementary Note 2, wherein the classifying process includes a process of merging, for each of the groups, the base data sets included in the group based on a distance between the base data sets included in the group.
[0151] (Supplementary Note 4) The data processing program according to Supplementary Note 3, wherein the merging process includes a process of merging adjacent base data sets in the space for each group until the number of data included in a partial data set obtained by merging the adjacent base data sets in the space satisfies a predetermined condition.
[0152] (Supplementary Note 5) The data processing program according to Supplementary Note 4, wherein the merging process includes a process of starting the merging from a base data set that includes data of the minimum or maximum value of each of the plurality of numerical attributes in the space, among the plurality of base data sets included in the group.
[0153] (Supplementary Note 6) The data processing program according to Supplementary Note 4 or Supplementary Note 5, wherein the base data set is a region of a first shape in the space, and the merging process includes a process of merging the adjacent base data sets so that the shape of a region in the space containing the partial data set becomes a second shape.
[0154] (Supplementary Note 7) The data processing program according to any one of Supplementary Notes 1 to 6, wherein the calculating process includes a process of calculating a trend of the data set in the space by regression analysis of the plurality of data included in the data set.
[0155] (Supplementary Note 8) A data processing method in which a computer executes the following processes: calculating a distance between a spatial trend defined by a plurality of numerical attributes of a dataset in which each piece of data has a plurality of numerical attributes and each piece of data included in the dataset; dividing the dataset into a plurality of groups based on the calculated distances; and classifying, in each of the plurality of groups, the datasets included in the group based on the values of the plurality of numerical attributes.
[0156] (Supplementary Note 9) The data processing method according to Supplementary Note 8, wherein the calculating process includes a process of dividing the plurality of data included in the dataset into a plurality of base datasets based on the numerical values of the plurality of numerical attributes, and calculating the distance between the trend of the dataset and each of the plurality of data for each of the base datasets by calculating a mean square error between the trend of the dataset and each of the plurality of base datasets, and the dividing process includes a process of dividing the dataset into the plurality of groups for each of the base datasets according to the value of the mean square error.
[0157] (Supplementary Note 10) The data processing method according to Supplementary Note 9, wherein the classifying process includes a process of merging, for each of the groups, the base data sets included in the group based on a distance between the base data sets included in the group.
[0158] (Supplementary Note 11) The data processing method according to Supplementary Note 10, wherein the merging process includes merging adjacent base data sets in the space for each group until the number of data included in a partial data set obtained by merging the adjacent base data sets satisfies a predetermined condition.
[0159] (Supplementary Note 12) The data processing method according to Supplementary Note 11, wherein the merging process includes starting the merging from a base data set that includes data of the minimum or maximum value of each of the plurality of numerical attributes in the space, among the plurality of base data sets included in the group.
[0160] (Supplementary Note 13) The data processing method according to Supplementary Note 11 or Supplementary Note 12, wherein the base data set is a region of a first shape in the space, and the merging process includes a process of merging the adjacent base data sets so that the shape of a region in the space containing the partial data set is a second shape.
[0161] (Supplementary Note 14) The data processing method according to any one of Supplementary Notes 8 to 13, wherein the calculating process includes calculating a trend of the data set in the space by regression analysis of the plurality of data included in the data set.
[0162] (Supplementary Note 15) An information processing device comprising: a control unit that calculates a distance between a spatial trend defined by a plurality of numerical attributes of a dataset, each piece of data having a plurality of numerical attributes, and each piece of data included in the dataset; divides the dataset into a plurality of groups based on the calculated distance; and classifies, in each of the plurality of groups, the dataset included in the group based on the values of the plurality of numerical attributes.
[0163] (Supplementary Note 16) The information processing device according to Supplementary Note 15, wherein the control unit, in the calculating process, divides the plurality of data included in the dataset into a plurality of base datasets based on the numerical values of each of the plurality of numerical attributes, calculates the distance between the trend of the dataset and each of the plurality of data for each of the base datasets by calculating a mean square error between the trend of the dataset and each of the plurality of base datasets, and in the dividing process, divides the dataset into the plurality of groups for each of the base datasets according to the value of the mean square error.
[0164] (Supplementary Note 17) The information processing device according to Supplementary Note 16, wherein in the classifying process, the control unit merges, for each of the groups, the base data sets included in the group based on a distance between the base data sets included in the group.
[0165] (Supplementary Note 18) The information processing device according to Supplementary Note 17, wherein in the merging process, the control unit merges adjacent base data sets in the space for each group until a number of data included in a partial data set obtained by merging the adjacent base data sets satisfies a predetermined condition.
[0166] (Supplementary Note 19) The information processing device according to Supplementary Note 18, wherein the control unit starts the merging process from a base data set that includes minimum or maximum data of each of the plurality of numerical attributes in the space, among the plurality of base data sets included in the group.
[0167] (Supplementary Note 20) The information processing device according to Supplementary Note 18 or Supplementary Note 19, wherein the base data set is a region of a first shape in the space, and the control unit, in the merging process, merges the adjacent base data sets so that a shape of a region in the space including the partial data set becomes a second shape.
[0168] REFERENCE SIGNS LIST 1 Server 10 Computer 11a Input data 11b Base segment 11c Overall trend 11d Index value 11e Classified base segment 11f Merged segment 11g Training data 11h Machine learning model 11i Inference data 11j Inference result 12 Base segment extraction unit 13 Overall trend extraction unit 14 Index value calculation unit 15 Classification unit 16 Merging unit 17 Training data generation unit 18 Machine learning unit 19 Inference unit 20 Control unit
Claims
1. A data processing program that causes a computer to execute the following processes: calculate a distance between a spatial trend defined by multiple numerical attributes of a dataset in which each piece of data has multiple numerical attributes, and each piece of data included in the dataset; divide the dataset into multiple groups based on the calculated distance; and classify, in each of the multiple groups, the datasets included in the group based on the values of the multiple numerical attributes.
2. The data processing program according to claim 1, wherein the calculating process includes a process of dividing the plurality of data included in the data set into a plurality of base data sets based on the numerical values of each of the plurality of numerical attributes, and calculating the distance between the trend of the data set and each of the plurality of data for each of the base data sets by calculating a mean squared error between the trend of the data set and each of the plurality of base data sets, and the dividing process includes a process of dividing the data set into the plurality of groups for each of the base data sets according to the value of the mean squared error.
3. The data processing program according to claim 2, wherein the classification process includes a process of merging, for each group, the base data sets contained in the group based on a distance between the base data sets contained in the group.
4. The data processing program according to claim 3, wherein the merging process includes a process of merging adjacent base data sets in the space for each group until the number of data contained in a partial data set obtained by merging the adjacent base data sets in the space satisfies a predetermined condition.
5. The data processing program according to claim 4, wherein the merging process includes a process of starting the merging from a base data set that contains minimum or maximum data for each of the plurality of numerical attributes in the space, among the plurality of base data sets included in the group.
6. A data processing program as described in claim 4 or claim 5, wherein the base data set is a region of a first shape in the space, and the merging process includes a process of merging the adjacent base data sets so that the shape of the region in the space containing the partial data set is a second shape.
7. The data processing program according to any one of claims 1 to 6, wherein the calculating process includes a process of calculating a trend of the data set in the space by regression analysis of the plurality of data included in the data set.
8. A data processing method in which a computer executes the following processes: calculating a distance between a spatial trend defined by multiple numerical attributes of a dataset in which each piece of data has multiple numerical attributes, and each piece of data included in the dataset; dividing the dataset into multiple groups based on the calculated distance; and classifying, in each of the multiple groups, the datasets included in the group based on the values of the multiple numerical attributes.
9. The data processing method according to claim 8, wherein the calculating process includes a process of dividing the plurality of data included in the data set into a plurality of base data sets based on the numerical values of each of the plurality of numerical attributes, and calculating the distance between the trend of the data set and each of the plurality of data for each of the base data sets by calculating a mean square error between the trend of the data set and each of the plurality of base data sets, and the dividing process includes a process of dividing the data set into the plurality of groups for each of the base data sets according to a value of the mean square error.
10. The data processing method according to claim 9, wherein the classification process includes a process of merging, for each group, the base data sets contained in the group based on a distance between the base data sets contained in the group.
11. The data processing method according to claim 10, wherein the merging process includes a process of merging adjacent base data sets in the space for each group until the number of data included in a partial data set obtained by merging the adjacent base data sets in the space satisfies a predetermined condition.
12. The data processing method according to claim 11, wherein the merging process includes a process of starting the merging from a base data set that contains data of the minimum or maximum value of each of the plurality of numerical attributes in the space, among the plurality of base data sets included in the group.
13. A data processing method as described in claim 11 or claim 12, wherein the base data sets are regions of a first shape in the space, and the merging process includes a process of merging adjacent base data sets so that the shape of a region in the space containing the partial data sets is a second shape.
14. The data processing method according to any one of claims 8 to 13, wherein the calculation process includes a process of calculating a trend of the data set in the space by regression analysis of the plurality of data included in the data set.
15. An information processing device comprising: a control unit that calculates a distance between a spatial trend defined by multiple numerical attributes of a dataset in which each piece of data has multiple numerical attributes and each piece of data included in the dataset; divides the dataset into multiple groups based on the calculated distance; and classifies, in each of the multiple groups, the datasets included in the group based on the values of the multiple numerical attributes.
16. The information processing device of claim 15, wherein the control unit, in the calculating process, divides the multiple data included in the data set into multiple base data sets based on the numerical values of each of the multiple numerical attributes, calculates the distance between the trend of the data set and each of the multiple data for each base data set by calculating a mean squared error between the trend of the data set and each of the multiple base data sets, and in the dividing process, divides the data set into the multiple groups for each base data set according to the value of the mean squared error.
17. The information processing device according to claim 16, wherein in the classification process, the control unit merges, for each group, the base data sets included in the group based on a distance between the base data sets included in the group.
18. The information processing device according to claim 17, wherein in the merging process, the control unit merges adjacent base data sets together in the space for each group until the number of data contained in the partial data set obtained by merging the adjacent base data sets together satisfies a predetermined condition.
19. The information processing device according to claim 18, wherein the control unit, in the merging process, starts the merging from a base data set that contains minimum or maximum data for each of the plurality of numerical attributes in the space, among the plurality of base data sets included in the group.
20. An information processing device as described in claim 18 or claim 19, wherein the base data set is a region of a first shape in the space, and the control unit, in the merging process, merges the adjacent base data sets so that the shape of the region in the space containing the partial data set becomes a second shape.
Citation Information
Patent Citations
Sales promoting device, sales promoting method and sales promoting program
JP2019082865A
Clustering program, clustering device and clustering method
JP2022007209A
