Feature selection device, feature selection method, and feature selection program
The feature selection device uses related datasets to learn a neural network model for selecting important features from a small unlabeled data set, addressing the challenge of data scarcity and improving analysis efficiency.
Patent Information
- Application Number
- JP2023514196
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-04-12
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2041-04-12
AI Technical Summary
Conventional unsupervised feature extraction techniques require a large amount of unlabeled data, which can be difficult to obtain, especially for analyzing user behavior or new devices, leading to challenges in extracting important features.
A feature selection device that utilizes related datasets with the same feature configuration but different values to learn a model using pseudo-learning and pseudo-test data, enabling selection of important features from a small amount of unlabeled data through a neural network-based model.
Enables accurate extraction of important features from a small amount of unlabeled data, improving data analysis performance by eliminating redundant features and reducing computational costs.
Smart Images

Figure 0007533773000014 
Figure 0007533773000012 
Figure 0007533773000011
Abstract
Description
[Technical field]
[0001] The present invention relates to a feature selection device, a feature selection method, and a feature selection program. [Background technology]
[0002] In recent years, unsupervised feature extraction techniques that extract important features from unlabeled data have been disclosed (see Non-Patent Documents 1 and 2). By extracting important features, it is possible to improve interpretability in data analysis, and to speed up processing by targeting only the extracted features in clustering and post-clustering processing. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Abubakar Abid, Muhammed Fatih Balin, James Zou, “Concrete Autoencoders: Differentiable Feature Selection and Reconstruction” International Conference on Machine Learning. PMLR, 2019, pp.444-453 [Non-Patent Document 2] Xiaofei He, Deng Cai, Partha Niyogi, “Laplacian Score for Feature Selection” Advances in neural information processing systems 18 (2005), pp.507-514 Summary of the Invention [Problem to be solved by the invention]
[0004] However, while conventional techniques require a large amount of unlabeled data, it can be difficult to prepare such a large amount of data. For example, when analyzing the behavior of users from data such as their purchasing behavior, it is difficult to obtain a large amount of data on new users or users who use the service infrequently. Similarly, even if one wishes to analyze the characteristics of a new device from the data on that device, it is difficult to obtain a large amount of data on the new device.
[0005] The present invention has been made in consideration of the above, and has an object to extract important features from a small amount of unlabeled data. [Means for solving the problem]
[0006] In order to solve the above-mentioned problems and achieve the object, the feature selection device of the present invention is characterized by having an acquisition unit that acquires related data having the same feature structure as data to be processed for feature selection but different feature values, and a learning unit that selects related data from the acquired related data as pseudo training data or pseudo test data, and trains the model using the pseudo training data and pseudo test data so as to select features that satisfy predetermined conditions when the pseudo training data is input to the model. Effect of the Invention
[0007] According to the present invention, it becomes possible to extract important features from a small amount of unlabeled data. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram for explaining an overview of a feature selection device. [Diagram 2] FIG. 2 is a diagram for explaining an overview of the feature selection device. [Diagram 3] FIG. 3 is a schematic diagram illustrating a schematic configuration of a feature selection device. [Figure 4] FIG. 4 is a diagram for explaining the feature selection model. [Diagram 5]FIG. 5 is a diagram for explaining the process of the feature selection model learning unit. [Figure 6] FIG. 6 is a flowchart showing the procedure of the learning process. [Figure 7] FIG. 7 is a flowchart showing the selection process procedure. [Figure 8] FIG. 8 is a diagram illustrating a computer that executes a feature selection program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to this embodiment. In addition, in the description of the drawings, the same parts are indicated by the same reference numerals.
[0010] [Overview of the feature selection device] First, Figures 1 and 2 are diagrams for explaining the outline of a feature selection device. As shown in Figure 1, the feature selection device selects only important features from among the features of unlabeled data by unsupervised machine learning (hereinafter, also referred to as unsupervised feature selection).
[0011] The feature selection device of this embodiment uses a small amount of unlabeled data as a target dataset from which features are to be selected, and utilizes unlabeled data that are multiple related datasets to accurately select important features from the target dataset. Specifically, as shown in Fig. 2, in the learning phase, the feature selection device learns a model that accurately selects important features from a small amount of unlabeled data using only data from the related datasets. That is, the feature selection device learns so that when feature selection is performed from a small amount of samples for each related dataset, the accuracy is explicitly improved for the other samples.
[0012] In addition, in a testing (selection) phase, the feature selection device performs feature selection for the target dataset by inputting the target dataset to the trained model.
[0013] A related dataset refers to a dataset that has the same feature values (names) as the target dataset, but has different conditions and a different distribution of the values of each feature, such as images of the same subject but with different colors.
[0014] [Feature selection unit configuration] 3 is a schematic diagram illustrating a schematic configuration of a feature selection device 1 according to this embodiment. The feature selection device 1 is realized by a general-purpose computer such as a workstation or a personal computer, and executes a feature selection process to be described later.
[0015] As shown in Fig. 3, the feature selection device 1 of this embodiment includes a learning unit 10 that performs a learning process and a selection unit 20 that performs a selection process. The learning unit 10 uses a plurality of related datasets (unlabeled data) to learn a feature selection model 14a. The selection unit 20 performs a selection process to select important features of a target dataset using the feature selection model 14a learned by the learning unit 10. The selection unit 20 may be implemented in the same hardware as the learning unit 10, or may be implemented in different hardware.
[0016] [Learning Department] The learning unit 10 includes a learning data input unit 11, a feature extraction unit 12, a feature selection model learning unit 13, and a storage unit 14.
[0017] The learning data input unit 11 is realized using input devices such as a keyboard and a mouse, and inputs various instruction information to the control unit in response to an input operation by an operator. In this embodiment, the learning data input unit 11 functions as an acquisition unit and acquires a related dataset (unlabeled data) that has the same feature configuration as a target dataset that is the target of feature selection processing but has different feature values.
[0018] The related data set may be input to the learning unit 10 from an external server device or the like via a communication control unit (not shown) realized by a NIC (Network Interface Card) or the like.
[0019] The control unit is realized by using a CPU (Central Processing Unit) that executes a processing program, and functions as a feature extraction unit 12 and a feature selection model learning unit 13.
[0020] The feature extraction unit 12 converts each sample of the acquired related data set into a feature vector in preparation for processing in the feature selection model learning unit 13 described later. Here, a feature vector is a representation of the features of required data as an n-dimensional numeric vector. The feature extraction unit 12 performs conversion into a feature vector using a method commonly used in machine learning. For example, when the data is text, the feature extraction unit 12 can apply a method based on morphological analysis, a method based on n-grams, a method based on delimiters, or the like.
[0021] The feature selection model learning unit 13 functions as a learning unit. That is, the feature selection model learning unit 13 learns the feature selection model 14a using the pseudo learning data and the pseudo test data so that when the pseudo learning data selected from the acquired related data set is input to the feature selection model 14a, a feature amount that satisfies a predetermined condition is selected.
[0022] Specifically, the feature selection model learning unit 13 randomly selects a small amount of pseudo learning samples (pseudo learning data) and pseudo test samples (pseudo test data) from each data set using the data after features are extracted by the feature extraction unit 12. Then, the feature selection model learning unit 13 explicitly performs learning so that when feature selection is performed on the pseudo learning samples, the selected features also satisfy predetermined conditions in the pseudo test samples.
[0023] Here, the predetermined condition is, for example, a condition for selecting important features such as the ability to restore the original samples or the ability to restore the relationships between the original samples, etc. In other words, the feature selection model learning unit 13 learns the feature selection model 14a under the predetermined condition that the pseudo test samples can be restored or the relationships between the pseudo test samples can be restored by inversely transforming the features selected from the pseudo training samples.
[0024] As the feature selection model 14a, any NN (Neural Networks)-based model such as a concrete autoencoder is applied.
[0025] First, X d Let x be the d-th unlabeled data set, where x n ∈X d represents the M-dimensional feature vector of the n-th sample in the d-th dataset. We also assume that the dimension M of the feature vector is the same for all datasets.
[0026] In the learning phase, the feature selection device 1 trains the feature selection model 14a so that, when D related data sets shown in the following equation (1) are given, at most K features suitable for a target data set given in the test (selection) phase are selected, as shown in the following equation (2).
[0027]
number
number
[0028] Specifically, the feature selection model 14a has a selector that selects a feature when data is input, and a decoder that restores the data input to the selector when the data from which the feature was selected is input.
[0029] Here, Fig. 4 is a diagram for explaining the feature selection model. As shown in Fig. 4, the feature selection model 14a is composed of two components: a Feature selector and a Decoder.
[0030] The feature selector receives a small amount of unlabeled data (hereafter referred to as the support set) randomly selected from each dataset as input and selects features. The decoder receives a test sample u selected from the same dataset with already selected features as input and is trained to restore the original sample x.
[0031] In this case, being able to reconstruct the entire feature set from a portion of the feature sets means that the unselected feature sets can be expressed by nonlinear transformation of the selected feature sets, i.e., the unselected feature sets can be considered redundant feature sets.
[0032] Specifically, in a feature selector, when a support set (a small amount of unlabeled data) S is given from a certain dataset, the kth selected feature (hereinafter also referred to as the selected feature) is expressed by the following equation (3).
[0033]
number
[0034] Here, a concrete random variable is a continuous approximation of a sample from a categorical distribution, and in the limit of τ → 0, it coincides with a sample from a categorical distribution. Also, when τ is large, z in the above formula (3) (k) (S) approaches a uniform vector in which all components in the vector have the same value. Also, when τ is sufficiently small, it approaches a one-hot vector in which only one component is 1 and the rest are 0. In other words, when τ is sufficiently small, u (k) will contain the value of x corresponding to 1, and one feature will be selected.
[0035] In this way, the feature selector selects features corresponding to each k. Therefore, taking into consideration the case where duplicated features are selected, the feature selector selects at most K features.
[0036] Also, the z (k) In (S), the larger the component in the vector, the more likely it is to be selected. The parameter α (k) (S). In the above formula (3), α (k) Since (S) depends on the support set S, by appropriate learning, we can find the parameter α (k) It is expected that (S) will be output, i.e., the appropriate features will be selected.
[0037] Therefore, the parameter α (k) We model (S) as a permutation invariant neural network shown in the following equation (4), where f and g are arbitrary feedforward neural networks, and π (k) ∈R T is a parameter defined for each k. Also, R T is the number of dimensions, and T is an arbitrary number set by the user.
[0038]
number
[0039] π (k) When takes different values for each k, α (k) The value of (S) can be changed for each k, and a different feature can be selected for each k. In the above formula (4), the same value is always output regardless of the order of the samples in the support set S due to the intermediate summation Σ. Note that in the above formula (4), π (k) If there is no k, the same value will be output for all k, and the same feature will be selected for all k.
[0040] Next, the decoder approximates the transformation from the selected features u(x;S) to the original all features x using a nonlinear transformation, as shown in the following equation (5).
[0041]
number
[0042] where r(S) is the quantity modeled by a permutation invariant neural network. Since r(S) depends on the support set S, the above equation (5) represents a decoder specific to the dataset.
[0043] Next, Fig. 5 is a diagram for explaining the processing of the feature selection model learning unit 13. Fig. 5 illustrates a pseudo code of the processing of the feature selection model learning unit 13. Here, the objective function for learning the feature selection model 14a is expressed by the following formula (6).
[0044]
number
[0045] In the objective function of the above formula (6), when a small amount of unlabeled data S is selected from each related dataset and input to the model, it is learned so that each sample in Q can be well restored for another sample set Q in the same dataset. This means that we explicitly learn good feature selection from a small amount of unlabeled data S that works well on the test data.
[0046] In this way, by learning from various related datasets that are related to the target dataset, it is expected that useful knowledge obtained by learning from the related datasets can be reused to appropriately select important features from the target dataset. Note that the number of related datasets may be one.
[0047] Returning to the description of Fig. 3, the storage unit 14 is realized by a semiconductor memory element such as a random access memory (RAM) or a flash memory, or a storage device such as a hard disk or an optical disk. The storage unit 14 of this embodiment stores a trained feature selection model 14a.
[0048] [Selection] The selection unit 20 has a data input unit 21, a feature extraction unit 22, a feature selection unit 23, and a result output unit 24.
[0049] The data input unit 21 is realized using input devices such as a keyboard and a mouse, and inputs various instruction information to the control unit in response to input operations by an operator, and accepts a target data set for feature selection processing.
[0050] The target data set may be input to the selection unit 20 from an external server device or the like via a communication control unit (not shown) realized by a NIC or the like. The data input unit 21 may be the same hardware as the learning data input unit 11.
[0051] The control unit is realized by using a CPU or the like that executes a processing program, and has a feature extraction unit 22 and a feature selection unit 23.
[0052] Similar to feature extraction unit 12 of learning unit 10, feature extraction unit 22 converts each sample of the acquired target data set into a feature vector in preparation for processing in feature selection unit .
[0053] The feature selection unit 23 functions as a selection unit and selects important features from a target data set, which is data to be processed for feature selection, using the trained feature selection model 14a. Specifically, the feature selection unit 23 selects important features from the target data set X d’ Select the Kth feature from
[0054]
number
[0055] The result output unit 24 is realized by a display device such as a liquid crystal display, a printing device such as a printer, an information communication device, etc., and outputs the result of the feature selection process to the operator. For example, it outputs important features selected from the input target data set.
[0056] [Feature selection process] 6 and 7, a feature selection process by the feature selection device 1 will be described. The feature selection process by the feature selection device 1 includes a learning process by the learning unit 10 and a selection process by the selection unit 20.
[0057] [Learning process] Fig. 6 is a flowchart illustrating a learning process procedure. The flowchart in Fig. 6 starts, for example, when a user performs an operation input to instruct the start of the learning process.
[0058] First, the learning data input unit 11 accepts input of a related data set (unlabeled data) having the same feature configuration but different feature values as a target data set that is the subject of feature selection processing (step S1). Next, the feature extraction unit 12 converts each sample of the accepted related data set into a feature vector (step S2).
[0059] Next, the feature selection model learning unit 13 uses the pseudo learning sample and the pseudo test sample selected from the acquired related dataset to train the feature selection model 14a using the pseudo learning sample so that when the pseudo test sample is input to the feature selection model 14a, a feature that satisfies a predetermined condition is selected (step S3).
[0060] For example, the feature selection model learning unit 13 learns the feature selection model 14a under a predetermined condition that the pseudo learning sample can be restored by inversely transforming features selected from the pseudo learning sample, or that the relationship between the pseudo learning samples can be restored.
[0061] Furthermore, the feature selection model learning unit 13 stores the learned feature selection model 14 a in the storage unit 14 .
[0062] [Selection Processing] 7 is a flowchart illustrating a selection process procedure. The flowchart in FIG 7 starts, for example, when a user performs an operation input to instruct the start of the selection process.
[0063] First, the data input unit 21 accepts a target data set (a small amount of unlabeled data) to be processed (step S11), and the feature extraction unit 22 converts each sample of the accepted target data set into a feature vector (step S12).
[0064] Next, the feature selection unit 23 selects features from the target data set using the trained feature selection model 14a (step S13), and the result output unit 24 outputs the feature selection result, i.e., the selected important features (step S14).
[0065] As described above, in the feature selection device 1, the training data input unit 11 acquires a related data set having the same feature configuration but different feature values as a target data set that is the target of feature selection processing. When the feature selection model training unit 13 selects related data from the acquired related data set as pseudo training data or pseudo test data and inputs the pseudo training data to the feature selection model 14a, the feature selection model 14a is trained using the pseudo training data and the pseudo test data so as to select features that satisfy a predetermined condition.
[0066] In this way, the feature selection device 1 can select important features with high accuracy by learning using related datasets, without performing re-learning for any target dataset, which requires expensive calculations. In other words, the feature selection device 1 can realize the selection of important features of a small target dataset with high accuracy by utilizing useful information of the related datasets. Therefore, even when only a small amount of unlabeled datasets is available, it is possible to select important features with high accuracy at low cost. As a result, the performance of data analysis targeting a small amount of unlabeled datasets is improved.
[0067] Moreover, the feature selection model learning unit 13 learns the feature selection model 14a under a predetermined condition that the pseudo test data can be restored or the relationship between the pseudo test data can be restored by inversely transforming the features selected from the pseudo training data. This enables the feature selection device 1 to eliminate redundant features and select only important features.
[0068] The feature selection model 14a also has a selector that selects a feature when data is input, and a decoder that restores the data input to the selector when the feature is input. This enables the feature selection device 1 to eliminate redundant features and select only important features.
[0069] In addition, the feature selection unit 23 selects features from the target dataset to be processed for feature selection using the trained feature selection model 14a. This makes it possible to select important features with high accuracy and low cost even when only a small amount of unlabeled dataset is available.
[0070] [program] It is also possible to create a program in which the processing executed by the feature selection device 1 according to the above embodiment is written in a language executable by a computer. As an embodiment, the feature selection device 1 can be implemented by installing a feature selection program for executing the above feature selection processing as package software or online software on a desired computer. For example, by executing the above feature selection program on an information processing device, the information processing device can function as the feature selection device 1. In addition, the information processing device also includes mobile communication terminals such as smartphones, mobile phones, and PHS (Personal Handyphone Systems), and even slate terminals such as PDAs (Personal Digital Assistants). The functions of the feature selection device 1 may be implemented on a cloud server.
[0071] 8 is a diagram showing an example of a computer that executes a feature selection program. The computer 1000 includes, for example, a memory 1010, a CPU 1020, a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.
[0072] The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to a hard disk drive 1031. The disk drive interface 1040 is connected to a disk drive 1041. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1041. The serial port interface 1050 is connected to a mouse 1051 and a keyboard 1052, for example. The video adapter 1060 is connected to a display 1061, for example.
[0073] Here, the hard disk drive 1031 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. Each piece of information described in the above embodiments is stored in the hard disk drive 1031 or memory 1010, for example.
[0074] The feature selection program is stored in the hard disk drive 1031, for example, as a program module 1093 in which instructions to be executed by the computer 1000 are written. Specifically, the hard disk drive 1031 stores the program module 1093 in which each process executed by the feature selection device 1 described in the above embodiment is written.
[0075] Furthermore, data used for information processing by the feature selection program is stored as program data 1094, for example, in the hard disk drive 1031. Then, the CPU 1020 reads out the program module 1093 and the program data 1094 stored in the hard disk drive 1031 into the RAM 1012 as necessary, and executes each of the above-mentioned procedures.
[0076] The program module 1093 and program data 1094 related to the feature selection program are not limited to being stored in the hard disk drive 1031, and may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1041 or the like. Alternatively, the program module 1093 and program data 1094 related to the feature selection program may be stored in another computer connected via a network such as a LAN (Local Area Network) or a WAN (Wide Area Network), and read by the CPU 1020 via the network interface 1070.
[0077] Although the embodiment to which the invention made by the present inventor is applied has been described above, the present invention is not limited by the description and drawings which form a part of the disclosure of the present invention according to the present embodiment. In other words, other embodiments, examples, operation techniques, etc. made by those skilled in the art based on the present embodiment are all included in the scope of the present invention. [Explanation of symbols]
[0078] 1 Feature selection device 10. Learning Department 11 Learning data input section 12 Feature Extraction Unit 13 Feature selection model training part 14 Storage area 14a Feature Selection Models 20 Selection section 21 Data Entry Section 22 Feature Extraction Unit 23 Feature Selection Section 24 Result output section
Claims
1. an acquisition unit for acquiring related data having the same feature amount configuration as the data to be subjected to feature selection processing but different feature amount values; a learning unit that learns the model using the pseudo learning data and the pseudo test data, with related data selected from the acquired related data as pseudo learning data or pseudo test data, so that when the pseudo learning data is input to the model, a feature quantity that satisfies a predetermined condition is selected; A feature selection device comprising:
2. 2. The feature selection device according to claim 1, wherein the learning unit learns the model under the predetermined condition that the pseudo test data can be restored by inversely transforming features selected from the pseudo training data, or that a relationship between the pseudo test data can be restored.
3. 2. The feature selection device according to claim 1, wherein the model comprises a selector that selects a feature when data is input, and a decoder that restores the data input to the selector when the data selected by the feature is input.
4. The feature selection device according to claim 1 , further comprising a selection unit that selects features from data that is a target of the feature selection process by using the trained model.
5. A feature selection method performed by a feature selection device, comprising: an acquisition step of acquiring related data having the same feature value configuration as the data to be subjected to feature selection processing but different feature value values; a learning step of learning the model using the pseudo learning data and the pseudo test data, with related data selected from the acquired related data being set as pseudo learning data or pseudo test data, so that when the pseudo learning data is input to the model, a feature quantity that satisfies a predetermined condition is selected; A feature selection method comprising:
6. On the computer, an acquisition step of acquiring related data having the same configuration of features as the data to be subjected to feature selection processing but different values of the features; a learning step of learning the model using the pseudo learning data and the pseudo test data, with related data selected from the acquired related data being set as pseudo learning data or pseudo test data, so that when the pseudo learning data is input to the model, a feature quantity that satisfies a predetermined condition is selected; A feature selection program that executes the following:
Citation Information
Patent Citations
Feature discovery of multiple models and multiple areas for detecting cyber threat in transmission network
JP2018185794A
Systems and methods for embedded unsupervised feature selection
US20170213153A1
Method and system for detecting symptom of abnormality in apparatus being monitored
WO2019107315A1
