Feature construction method, device, equipment and storage medium
Through semantic information-driven feature merging of user behavior feature sets, the problem of feature utilization of high-dimensional sparse data in risk control scenarios is solved, and the prediction accuracy of risk control modeling is improved.
Patent Information
- Application Number
- CN202110551635.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-05-20
AI Technical Summary
In risk control scenarios, the high-dimensional sparseness and small-sample imbalance of user behavior data prevent traditional tree models from effectively utilizing a large number of features, resulting in limited accuracy in predicting default probabilities.
By obtaining the original user behavior feature set, determining its semantic information, and merging the features according to the semantic information, generating a target user behavior feature set, reducing the feature dimension, increasing feature density, and retaining the semantic information.
It effectively reduces the feature dimension of the user behavior feature set, increases the feature density, and improves the prediction accuracy of risk control modeling. Especially in small sample unbalanced data sets, high-dimensional sparse features can be better utilized.
Smart Images

Figure CN113240304B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence, and further to the field of natural language processing and deep learning technology, and specifically to a feature construction method, device, equipment, storage medium, and program product. Background Art
[0002] In the risk control scenario, the user's historical behavior data can be used to predict whether the user will default. Therefore, it is often necessary to process the user behavior data and construct user behavior features for risk control modeling. Traditional methods usually directly digitize user behavior data, such as OneHot encoding, calculating mean, variance, etc.
[0003] However, user behavior data in Internet scenarios are high-dimensional and sparse, and sample data in risk control scenarios are small and unbalanced. In this case, the tree model, which is often used to predict the probability of default, cannot be effectively utilized due to the existence of an upper limit. Summary of the invention
[0004] The embodiments of the present disclosure provide a feature construction method, apparatus, device, storage medium, and program product.
[0005] In a first aspect, an embodiment of the present disclosure proposes a feature construction method, including: obtaining an original user behavior feature set; determining the semantic information of the original user behavior features in the original user behavior feature set; merging the original user behavior features in the original user behavior feature set according to the semantic information to generate a target user behavior feature set, wherein the target user behavior feature set includes fewer feature dimensions than the original user behavior feature set.
[0006] In a second aspect, an embodiment of the present disclosure proposes a feature construction device, comprising: an acquisition module, configured to acquire an original user behavior feature set; a determination module, configured to determine the semantic information of the original user behavior features in the original user behavior feature set; and a merging module, configured to merge the original user behavior features in the original user behavior feature set according to the semantic information to generate a target user behavior feature set, wherein the target user behavior feature set includes fewer dimensions than the original user behavior feature set.
[0007] In a third aspect, an embodiment of the present disclosure proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any implementation manner in the first aspect.
[0008] In a fourth aspect, an embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause a computer to execute a method as described in any implementation manner in the first aspect.
[0009] In a fifth aspect, an embodiment of the present disclosure proposes a computer program product, including a computer program, which implements the method described in any implementation manner in the first aspect when executed by a processor.
[0010] The feature construction method, apparatus, device, storage medium and program product provided by the embodiments of the present disclosure merge features of the original user behavior feature set according to semantic information, thereby reducing the feature dimension contained in the user behavior feature set, increasing the feature density contained in the user behavior feature set, and retaining information at the feature semantic level.
[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Other features, purposes and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. Among them:
[0013] Figure 1 is an exemplary system architecture diagram in which the present disclosure may be applied;
[0014] Figure 2 is a flow chart of an embodiment of a feature construction method according to the present disclosure;
[0015] Figure 3 is a flow chart of another embodiment of a feature construction method according to the present disclosure;
[0016] Figure 4 is a scene graph that can implement the feature construction method of the embodiment of the present disclosure;
[0017] Figure 5 is a schematic diagram of the structure of an embodiment of a feature construction device according to the present disclosure;
[0018] Figure 6 It is a block diagram of an electronic device used to implement the feature construction method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0021] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the feature construction method or feature construction apparatus of the present application can be applied.
[0022] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables.
[0023] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc.
[0024] The terminal device 101 can be hardware or software. When the terminal device 101 is hardware, it can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When the terminal device 101 is software, it can be installed in the above electronic devices. It can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.
[0025] The server 103 can provide various services. For example, the server 103 can analyze and process the original user behavior characteristics and other data obtained from the terminal device 101 to generate processing results (such as target user behavior characteristics).
[0026] It should be noted that the server 103 can be hardware or software. When the server 103 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 103 is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0027] It should be noted that the feature construction method provided in the embodiment of the present application is generally executed by the server 103 , and accordingly, the feature construction device is generally arranged in the server 103 .
[0028] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0029] Continue to refer Figure 2 , which shows a process 200 of an embodiment of a feature construction method according to the present disclosure. The feature construction method comprises the following steps:
[0030] Step 201, obtaining an original user behavior feature set.
[0031] In this embodiment, the execution subject of the feature construction method (for example Figure 1 The server 103 shown in FIG. 1 ) can obtain the original user behavior feature set.
[0032] Among them, the original user behavior feature set can be obtained by constructing features of a large amount of user behavior data in the Internet scenario. The original user behavior feature set may include but is not limited to features of various categories such as APP (Application), interest tags, community, LBS (Location Based Services), WiFi, library, keywords, etc. The original user behavior feature set is usually high-dimensional and sparse, the feature dimension is usually more than 100,000 dimensions, and the feature sparsity is usually more than 95%. For example, usually, each feature of the original user behavior feature set corresponds to a feature dimension. The feature sparsity is equal to the ratio of the number of null value features to the total number of features. Taking APP as an example, the number of APPs that a user may install is in the millions, but the number of APPs installed by a single user is very limited, often exceeding one hundred. The user's behavior data for installing APP is binarized. If the user installs a certain APP, the corresponding feature value is 1, otherwise it is 0. Taking keywords as an example, the number of keywords that a user may search for is in the millions, but the number of keywords searched by a single user is very limited. The behavior data of users searching for keywords is digitized. If a user searches for a keyword, the corresponding feature value is the number of searches, otherwise it is 0.
[0033] Step 202: Determine semantic information of the original user behavior features in the original user behavior feature set.
[0034] In this embodiment, the original user behavior features in the original user behavior feature set inherently contain implicit semantics, and the above-mentioned execution subject can determine the semantic information of the original user behavior features. Among them, the semantic information can be used to characterize the meaning contained in the original user behavior features, including but not limited to risk level, theme, etc. Taking the semantic information including risk level as an example, the risk level of various credit apps installed by users is high risk. The risk level of various education apps, business travel apps, and news apps installed by users is low risk. Taking the semantic information including theme as an example, the theme of various credit apps installed by users is credit. The theme of various education apps installed by users is education. The theme of various education apps installed by users is business travel. The theme of various news apps installed by users is news.
[0035] Usually, a large number of sample user behavior features are collected in advance, and their risk levels are manually labeled. The risk level of the original user behavior features can be determined based on the sample user behavior features labeled with risk levels. For example, the original user behavior features in the original user behavior feature set are matched with the sample user behavior features, and the risk level annotated with the successfully matched sample user behavior features is annotated as the risk level of the original user behavior features. For another example, the unsupervised feature representation matrix of the original user behavior feature set is first obtained. Among them, one element in the unsupervised feature representation matrix corresponds to an original user behavior feature, which is a vector representation of the original user behavior feature. Then the unsupervised feature representation matrix is input into the pre-trained feature risk classification model to obtain the risk level of the original user behavior features in the original user behavior feature set. Among them, the feature risk classification model is obtained by supervised training using sample user behavior features labeled with risk levels, and can be used for risk level classification. The feature risk classification model can be, for example, an XGB (Gradient Boosting) model.
[0036] Step 203 , merging the original user behavior features in the original user behavior feature set according to the semantic information to generate a target user behavior feature set.
[0037] In this embodiment, the execution subject may merge the original user behavior features in the original user behavior feature set according to the semantic information to generate a target user behavior feature set.
[0038] In this embodiment, the original user behavior features with the same semantic information can be merged into the same feature dimension to generate a target user behavior feature, so the target user behavior feature set contains fewer feature dimensions than the original user behavior feature set. In addition, the target user behavior feature retains information at the feature semantic level. Among them, the target user behavior feature can be a statistical feature used to count the number of original user behavior features merged into the same feature dimension. Since the original user behavior feature set includes original user behavior features of multiple categories, in order to increase the interpretability of the target user behavior feature, the original user behavior features of the same category with the same semantic information are usually merged into the same feature dimension.
[0039] The feature construction method provided by the embodiment of the present disclosure merges the original user behavior feature set according to semantic information, reduces the feature dimension contained in the user behavior feature set, increases the feature density contained in the user behavior feature set, and retains information at the feature semantic level.
[0040] Further references Figure 3 , which shows a process 300 of another embodiment of a feature construction method according to the present disclosure. The feature construction method comprises the following steps:
[0041] Step 301, obtaining an original user behavior feature set.
[0042] In this embodiment, the execution subject of the feature construction method (for example Figure 1 The server 103 shown in FIG. 1 ) can obtain the original user behavior feature set.
[0043] Among them, the original user behavior feature set can be obtained by constructing features of a large amount of user behavior data in the Internet scenario. The original user behavior feature set may include but is not limited to features of various categories such as APP, interest tags, community, LBS, WiFi, library, keywords, etc. The original user behavior feature set is usually high-dimensional and sparse, the feature dimension is usually more than 100,000 dimensions, and the feature sparsity is usually more than 95%. Among them, the feature sparsity is equal to the ratio of the number of null value features to the total number of features. Taking APP as an example, the number of APPs that a user may install is in the millions, but the number of APPs installed by a single user is very limited, often exceeding one hundred. The user's APP installation behavior data is binarized. If the user installs a certain APP, the corresponding feature value is 1, otherwise it is 0. Taking keywords as an example, the number of keywords that a user may search for is in the millions, but the number of keywords searched by a single user is very limited. The user's keyword search behavior data is digitized. If the user searches for a certain keyword, the corresponding feature value is the number of searches, otherwise it is 0.
[0044] Step 302: Input the original user behavior feature set into the pre-trained word vector model to obtain an intermediate feature matrix as an unsupervised feature representation matrix.
[0045] In this embodiment, the execution subject can input the original user behavior feature set into a pre-trained word vector model to obtain an intermediate feature matrix as an unsupervised feature representation matrix. The unsupervised feature representation matrix of the original user behavior feature set can be quickly obtained through the word vector model.
[0046] The unsupervised feature representation matrix is an intermediate product of the word vector model processing the original user behavior feature set. An element in the unsupervised feature representation matrix corresponds to an original user behavior feature and is a vector representation of the original user behavior feature. The word vector model can be, for example, a skip gram model based on negative samples (skip gram + negative sampling).
[0047] Step 303: input the unsupervised feature representation matrix into a pre-trained feature risk classification model to obtain the risk level of the original user behavior features in the original user behavior feature set.
[0048] In this embodiment, the above-mentioned execution subject can input the unsupervised feature representation matrix into the pre-trained feature risk classification model to obtain the risk level of the original user behavior feature in the original user behavior feature set. Among them, the semantic information can include the risk level, and the feature risk classification model is used to perform supervised semantic classification of features, which has a wider scope of application and higher accuracy.
[0049] Among them, the characteristic risk classification model is obtained by supervised training using the behavioral characteristics of sample users labeled with risk levels, and can be used for risk level classification.
[0050] Among them, the characteristic risk classification model can be trained through the following steps:
[0051] First, obtain the training sample set.
[0052] The training samples in the training sample set may include sample user behavior features and corresponding sample risk level labels. Usually, a large number of sample user behavior features are collected in advance and their risk levels are manually labeled to obtain the training sample set.
[0053] Then, the sample user behavior characteristics are used as input and the sample risk level labels are used as supervision to train a feature risk classification model.
[0054] Step 304 , for original user behavior features of the same category in the original user behavior feature set, original user behavior features with the same semantic information are merged into the same feature dimension to generate a target user behavior feature set.
[0055] In this embodiment, for original user behavior features of the same category in the original user behavior feature set, the execution entity may merge the original user behavior features with the same semantic information into the same feature dimension to generate a target user behavior feature set.
[0056] In this embodiment, the original user behavior features with the same semantic information can be merged into the same feature dimension to generate a target user behavior feature, so the target user behavior feature set contains fewer feature dimensions than the original user behavior feature set. In addition, the target user behavior feature retains information at the feature semantic level. Among them, the target user behavior feature can be a statistical feature used to count the number of original user behavior features merged into the same feature dimension. Since the original user behavior feature set includes original user behavior features of multiple categories, in order to increase the interpretability of the target user behavior feature, the original user behavior features of the same category with the same semantic information are usually merged into the same feature dimension.
[0057] Step 305: Input the target user behavior feature set into the pre-trained tree model, and output the probability of the user defaulting.
[0058] In this embodiment, the above-mentioned execution subject can input the target user behavior feature set into the pre-trained tree model to output the probability of the user defaulting. The high-dimensional sparse original user behavior feature set is constructed into a low-dimensional dense target user behavior feature set, and then input into the tree model for prediction. It can effectively utilize high-dimensional sparse features in a small sample unbalanced data set, so that the tree model can obtain more information, thereby improving the prediction accuracy.
[0059] Typically, the tree model can be a GBDT (Gradient Boosting Decision Tree). GBDT is an iterative decision tree algorithm that consists of multiple decision trees, and the results of all trees are accumulated as the final result. Specifically, GBDT can include a learner and a residual network. GBDT generates a weak learner through multiple rounds of iterations, and each learner is trained based on the residual of the learner in the previous round.
[0060] from Figure 3 It can be seen that Figure 2Compared with the corresponding embodiments, the feature construction method in this embodiment highlights the risk level determination step and the feature merging step, and adds a default prediction step. Therefore, the scheme described in this embodiment can quickly obtain an unsupervised feature representation matrix using a word vector model. The use of a feature risk classification model for supervised semantic classification of features has a wider scope of application and higher accuracy. The original user behavior features of the same category with the same semantic information are merged into the same feature dimension, which increases the interpretability of the target user behavior features. The high-dimensional sparse original user behavior feature set is constructed into a low-dimensional dense target user behavior feature set, and then input into the tree model for prediction. It can effectively utilize high-dimensional sparse features in a small sample unbalanced data set, so that the tree model can obtain more information, thereby improving the prediction accuracy. When applied in a credit scenario, it can be used in projects such as joint modeling of credit risk control and credit risk control standard scoring.
[0061] Further references Figure 4 , which shows a scene diagram that can implement the feature construction method of the embodiment of the present disclosure. Figure 4 As shown, a large amount of APP information is collected in advance, and its risk level is manually marked. For example, credit APP1 is marked as high risk (Y=1), credit APP2 is marked as high risk (Y=1), education APP1 is marked as low risk (Y=0), education APP2 is marked as low risk (Y=0), business travel APP1 is marked as low risk (Y=0), business travel APP2 is marked as low risk (Y=0), and so on. The characteristic risk classification model is obtained by supervised training using the APP information with marked risk levels. The APP information installed by the user is obtained. Among them, the APPs installed by the user include credit APP3, credit APP4, education APP3, education APP4, news APP1, news APP2, etc. The APP information installed by the user is input into the word vector model to obtain the unsupervised feature representation matrix. The unsupervised feature representation matrix is input into the characteristic risk classification model to obtain the risk level of the APP information installed by the user. Among them, high-risk APPs include credit APP3, credit APP4, etc. Low-risk apps include education app 3, education app 4, news app 1, news app 2, etc. The information of high-risk apps installed by users can be combined into the number of high-risk apps, and the information of low-risk apps installed by users can be combined into the number of low-risk apps.
[0062] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a feature construction device, which is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0063] like Figure 5 As shown, the feature construction device 500 of this embodiment may include: an acquisition module 501, a determination module 502 and a merging module 503. The acquisition module 501 is configured to acquire an original user behavior feature set; the determination module 502 is configured to determine the semantic information of the original user behavior features in the original user behavior feature set; the merging module 503 is configured to merge the original user behavior features in the original user behavior feature set according to the semantic information to generate a target user behavior feature set, wherein the feature dimension included in the target user behavior feature set is lower than the feature dimension included in the original user behavior feature set.
[0064] In this embodiment, in the feature construction device 500, the specific processing of the acquisition module 501, the determination module 502 and the merging module 503 and the technical effects thereof can be referred to in Figure 2 The relevant descriptions of steps 201 - 203 in the corresponding embodiment are not repeated here.
[0065] In some optional implementations of the present embodiment, the determination module 502 includes: an acquisition submodule, configured to acquire an unsupervised feature representation matrix of the original user behavior feature set; a classification submodule, configured to input the unsupervised feature representation matrix into a pre-trained feature risk classification model to obtain the risk level of the original user behavior features in the original user behavior feature set, wherein the semantic information includes the risk level.
[0066] In some optional implementations of this embodiment, the acquisition submodule is further configured to: input the original user behavior feature set into a pre-trained word vector model to obtain an intermediate feature matrix as an unsupervised feature representation matrix.
[0067] In some optional implementations of this embodiment, the word vector model is a skip-word model based on negative samples.
[0068] In some optional implementations of the present embodiment, the feature construction device 500 also includes a training module, which is further configured to: obtain a training sample set, wherein the training samples in the training sample set include sample user behavior characteristics and corresponding sample risk level labels; use the sample user behavior characteristics as input and the sample risk level labels as supervision to train and obtain a feature risk classification model.
[0069] In some optional implementations of this embodiment, the determination module 502 is further configured to: annotate the original user behavior features in the original user behavior feature set with risk levels, wherein the semantic information includes the risk level.
[0070] In some optional implementations of this embodiment, the merging module 503 is further configured to: for original user behavior features of the same category in the original user behavior feature set, merge the original user behavior features with the same semantic information into the same feature dimension.
[0071] In some optional implementations of this embodiment, the feature construction device 500 further includes: a prediction module configured to input the target user behavior feature set into a pre-trained tree model and output the probability of a default event occurring to the user.
[0072] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0073] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0074] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0075] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0076] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0077] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as feature construction methods. For example, in some embodiments, the feature construction method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the feature construction method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the feature construction method in any other appropriate manner (e.g., by means of firmware).
[0078] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0079] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0080] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0081] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0082] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0083] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.
[0084] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and this document does not limit this.
[0085] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A feature construction method, comprising: Obtain the original user behavior feature set; Determining semantic information of original user behavior features in the original user behavior feature set; Merging original user behavior features in the original user behavior feature set according to semantic information to generate a target user behavior feature set, wherein the target user behavior feature set includes fewer feature dimensions than the original user behavior feature set; Wherein, the determining of the semantic information of the original user behavior feature in the original user behavior feature set includes: Inputting the original user behavior feature set into a pre-trained word vector model to obtain an intermediate feature matrix as an unsupervised feature representation matrix; Inputting the unsupervised feature representation matrix into a pre-trained feature risk classification model to obtain the risk level of the original user behavior feature in the original user behavior feature set, wherein the semantic information includes the risk level; The target user behavior feature set is input into a pre-trained tree model, and the probability of a default event occurring to the user is output.
2. The method according to claim 1, wherein: The word embedding model is a skip-word model based on negative samples.
3. The method according to claim 1, wherein: The characteristic risk classification model is trained by the following steps: Acquire a training sample set, wherein the training samples in the training sample set include sample user behavior characteristics and corresponding sample risk level labels; The sample user behavior characteristics are used as input, and the sample risk level labels are used as supervision to train and obtain the characteristic risk classification model.
4. The method according to claim 1, wherein: The determining of the semantic information of the original user behavior feature in the original user behavior feature set includes: The original user behavior features in the original user behavior feature set are annotated with risk levels, wherein the semantic information includes the risk level.
5. The method according to any one of claims 1 to 4, wherein: The step of merging the original user behavior features in the original user behavior feature set according to the semantic information includes: For original user behavior features of the same category in the original user behavior feature set, original user behavior features with the same semantic information are merged into the same feature dimension.
6. A feature construction device, comprising: An acquisition module, configured to acquire an original user behavior feature set; a determination module, configured to determine semantic information of the original user behavior feature in the original user behavior feature set; a merging module configured to merge original user behavior features in the original user behavior feature set according to semantic information to generate a target user behavior feature set, wherein the target user behavior feature set includes fewer feature dimensions than the original user behavior feature set; Wherein, the determination module includes: An acquisition submodule is configured to input the original user behavior feature set into a pre-trained word vector model to obtain an intermediate feature matrix as an unsupervised feature representation matrix; a classification submodule configured to input the unsupervised feature representation matrix into a pre-trained feature risk classification model to obtain a risk level of the original user behavior feature in the original user behavior feature set, wherein the semantic information includes the risk level; The prediction module is configured to input the target user behavior feature set into a pre-trained tree model and output the probability of a default event occurring to the user.
7. The device according to claim 6, wherein: The word embedding model is a skip-word model based on negative samples.
8. The device according to claim 6, wherein: The apparatus further comprises a training module, wherein the training module is further configured to: Acquire a training sample set, wherein the training samples in the training sample set include sample user behavior characteristics and corresponding sample risk level labels; The sample user behavior characteristics are used as input, and the sample risk level labels are used as supervision to train and obtain the characteristic risk classification model.
9. The device according to claim 6, wherein: The determination module is further configured to: The original user behavior features in the original user behavior feature set are annotated with risk levels, wherein the semantic information includes the risk level.
10. The device according to any one of claims 6 to 9, wherein: The merging module is further configured to: For original user behavior features of the same category in the original user behavior feature set, original user behavior features with the same semantic information are merged into the same feature dimension.
11. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.
13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.
