An APK industry classification method and system based on multi-source heterogeneous data fusion

By using multi-source heterogeneous data fusion and external knowledge expansion, the problem of low classification accuracy in emerging industry applications was solved, achieving more efficient APK industry classification.

CN123138985APending Publication Date: 2026-11-20BEIJING FULE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611551638.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-08
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing APK industry classification technologies lack sufficient industry knowledge to support emerging industry applications, resulting in a decline in classification accuracy.

Method used

A multi-source heterogeneous data fusion method is adopted to extract heterogeneous feature vectors in parallel from four dimensions: static meta-information, code semantic structure, resource fingerprint, and behavior profile. The fusion weight coefficient is calculated through a gating network, and secondary classification is performed in combination with an external industry knowledge base. When the final confidence is insufficient, sandbox dynamic analysis and incremental model update are triggered.

Benefits of technology

It improves the accuracy of APK industry classification, can more comprehensively reflect the industry affiliation of applications, and can adapt to new situations by expanding external knowledge and updating models when encountering emerging industries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138985A_ABST
    Figure CN123138985A_ABST
Patent Text Reader

Abstract

The application relates to an APK industry classification method and system based on multi-source heterogeneous data fusion, and relates to the technical field of industry classification of Android application packages, and is used for improving the accuracy of APK industry classification. In the method, a classification system extracts a heterogeneous feature vector of an APK to be classified from four dimensions of static meta information, code semantic structure, resource fingerprint and behavior portrait, adaptively calculates fusion weight coefficients according to the joint distribution of the features in each dimension through a gating network, weights and sums the preliminary classification probability distribution of each dimension-specific processing branch to obtain an initial industry category, and then retrieves a target industry knowledge item from a preset external industry knowledge base by taking the initial industry category as an index, splices the knowledge item and the heterogeneous feature vector to perform secondary classification calculation and comprehensively score multiple dimensions to obtain a final confidence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industry classification technology for Android application packages, and in particular to an APK industry classification method and system based on multi-source heterogeneous data fusion. Background Technology

[0002] With the rapid development of mobile internet, the number of Android applications has exploded, reaching millions in mainstream app stores. Faced with this vast number of Android applications, APK industry categorization is necessary.

[0003] Several automated APK classification schemes already exist. One type of scheme extracts semantic information from the application's name and description text, vectorizes it, and then inputs it into a large language model for classification reasoning. Another type of scheme decompiles the APK, extracts semantic and structural features from the resulting source code, and uses code-level information as the basis for classification. A third type of scheme further incorporates image information, collecting screenshots of the application interface by setting up a simulated runtime environment, and then concatenating and fusing text, code, and image features before inputting them into a classification model for judgment.

[0004] However, with the continuous expansion of the Android application ecosystem, a large number of emerging industry applications are constantly emerging. The knowledge of their respective industries has not been fully covered during the model training stage. When such emerging applications are input into the above scheme for classification, the relevant technologies lack matching industry knowledge support during the reasoning process and tend to classify them into existing industry categories with similar semantics in the training data, which reduces the accuracy of APK industry classification. Summary of the Invention

[0005] This application provides an APK industry classification method and system based on multi-source heterogeneous data fusion, which is used to improve the accuracy of APK industry classification.

[0006] Firstly, this paper provides an APK industry classification method based on multi-source heterogeneous data fusion, applied to a classification system. The method includes: converting the static metadata, code semantic structure information, resource fingerprint information, and behavioral profile information of the APK to be classified into corresponding heterogeneous feature vectors; calculating the fusion weight coefficients corresponding to each feature dimension based on the joint distribution features of the heterogeneous feature vectors, and inputting each heterogeneous feature vector into a corresponding preset dimension-specific processing branch to obtain a preliminary classification probability distribution under each feature dimension; weighting and summing each preliminary classification probability distribution with its corresponding fusion weight coefficient to obtain an initial industry category and an initial confidence level; using the initial industry category as a query index, retrieving target industry knowledge entries from a preset external industry knowledge base, which stores industry standards. The text is mapped to known application sample vectors; the target industry knowledge items are concatenated with heterogeneous feature vectors, and secondary classification is performed based on the concatenated feature set to obtain the secondary verification category and final confidence score; if the final confidence score is lower than the preset judgment threshold, the APK to be classified is run in a preset sandbox environment to extract dynamic behavior features; the dynamic behavior features are introduced as new features into the heterogeneous feature vector, and the steps from obtaining the initial industry category to obtaining the secondary verification category are re-executed based on the updated full features to update the final confidence score; if the updated final confidence score is still lower than the preset judgment threshold, an emerging industry category label is created in the external industry knowledge base based on the received external category instruction, and the full features of the APK to be classified are associated with the emerging industry category label.

[0007] By employing the aforementioned technical solution, the classification system extracts heterogeneous feature vectors from the APK to be classified in parallel from four dimensions: static metadata, code semantic structure, resource fingerprint, and behavioral profile. A gating network adaptively calculates fusion weight coefficients based on the joint distribution of features across each dimension. The initial classification probability distributions of the dedicated processing branches for each dimension are weighted and summed to obtain the initial industry category. Then, using the initial industry category as an index, target industry knowledge entries are retrieved from a pre-set external industry knowledge base. These knowledge entries are concatenated with the heterogeneous feature vectors for secondary classification calculation, and a comprehensive multi-dimensional score is used to obtain the final confidence score. When the final confidence score is insufficient, further dynamic sandbox analysis, external knowledge expansion, and incremental model updates are triggered, forming a complete classification process from static multi-dimensional feature fusion to dynamic verification and knowledge base expansion, which helps improve the accuracy of APK industry classification.

[0008] In conjunction with some embodiments of the first aspect, in some embodiments, the step of converting the code semantic structure information of the APK to be classified into a corresponding heterogeneous feature vector specifically includes: extracting the semantic feature vector of the decompiled source code of the APK to be classified according to a preset code feature extractor; constructing a code call graph according to the class and method call relationship in the decompiled source code, and extracting the structural feature vector of the code call graph according to a preset graph neural network; and fusing the semantic feature vector and the structural feature vector based on a cross-attention mechanism to obtain the heterogeneous feature vector corresponding to the code semantic structure information.

[0009] By employing the above technical solution, when extracting heterogeneous feature vectors corresponding to the semantic structure information of the code, semantic feature vectors from the decompiled source code and structural feature vectors based on the code call graph are extracted separately, and then fused together using a cross-attention mechanism. The semantic feature vector captures the semantic meaning of the code, while the structural feature vector captures the call relationships between classes and methods. The cross-attention mechanism enables the two types of features to establish a correlation during fusion. Compared to direct concatenation, the resulting joint feature vector of code semantic structure can simultaneously retain information in both semantic and structural dimensions, providing a more complete code-level feature representation for subsequent classification and reasoning.

[0010] In conjunction with some embodiments of the first aspect, in some embodiments, the step of calculating the fusion weight coefficients corresponding to each feature dimension based on the joint distribution features of heterogeneous feature vectors specifically includes: concatenating the features of each heterogeneous feature vector and inputting the concatenation result into a preset gating network; calculating the concatenation result according to the multilayer perceptron in the preset gating network and outputting a normalized weight coefficient distribution through the Softmax function; and using the values ​​corresponding to each feature dimension in the weight coefficient distribution as fusion weight coefficients respectively.

[0011] By employing the above technical solution, heterogeneous feature vectors are concatenated and input into a pre-gated network. A multilayer perceptron performs a nonlinear transformation on the concatenation result and outputs a normalized weight coefficient distribution through a Softmax function. This allows the fusion weight coefficients to be dynamically determined based on the actual feature distribution of the APK to be classified. Different types of APKs have varying levels of information richness across feature dimensions. The above method enables the contribution ratio of each pre-defined dimension's dedicated processing branch during weighted fusion to adaptively adjust according to the distribution of input features. Compared to fixed-weight fusion methods, this reduces the bias in fusion results caused by uneven information content across feature dimensions.

[0012] In conjunction with some embodiments of the first aspect, in some embodiments, the steps of concatenating target industry knowledge items with heterogeneous feature vectors, performing secondary classification calculations based on the concatenated feature set, and obtaining secondary verification categories and final confidence scores specifically include: converting at least one retrieved target industry knowledge item into a knowledge representation vector; concatenating the knowledge representation vector and heterogeneous feature vectors along the feature dimension to generate a joint feature sequence with contextual association attributes; extracting attention features from the joint feature sequence based on a preset sequence mapping network, and mapping the extraction results to obtain the secondary classification probabilities of each candidate industry, and taking the candidate industry corresponding to the highest probability as the secondary verification category.

[0013] By employing the above technical solution, the retrieved target industry knowledge entries are converted into knowledge representation vectors and then concatenated with heterogeneous feature vectors along the feature dimension to generate a joint feature sequence with contextual association attributes. A pre-defined sequence mapping network then uses attention feature extraction to establish a correlation between the APK's own features and external industry knowledge features. Based on the extracted results, the secondary classification probability of each candidate industry is obtained. Compared to classification methods that rely solely on internal model parameters, this process introduces external industry knowledge related to the initial industry category during classification inference. This provides a reference for secondary classification calculations, facilitating the verification and correction of preliminary classification results. Therefore, even with insufficient training data coverage, it can still provide classification results supported by external knowledge.

[0014] In conjunction with some embodiments of the first aspect, in some embodiments, the step of obtaining the final confidence score specifically includes: taking the highest probability in the secondary classification probability as the basic probability score; generating a first scoring factor with positive gain when the category labels of the initial industry category and the secondary validation category are consistent; generating a first scoring factor with negative penalty when the category labels of the initial industry category and the secondary validation category are inconsistent; calculating the information entropy value of the preliminary classification probability distribution output by each preset dimension-specific processing branch, and obtaining a second scoring factor indicating the consensus degree of the branch by performing an inverse proportional mapping calculation on the information entropy value; and weighting and summing the basic probability score, the first scoring factor, and the second scoring factor according to preset weight coefficients to obtain the final confidence score.

[0015] By adopting the above technical solution, the final confidence score comprehensively considers information from three dimensions: the maximum probability value of the secondary classification probability is used as the basic probability score, reflecting the probability level of the secondary classification result itself; the consistency between the labels of the initial industry category and the secondary validation category is used to generate the first scoring factor, giving a positive gain when consistent and imposing a negative penalty when inconsistent, reflecting the degree of mutual corroboration between the two-stage classification results; the information entropy of the preliminary classification probability distribution output by the dedicated processing branches of each preset dimension is used to obtain the second scoring factor through inverse proportional mapping, reflecting the degree of consensus among multiple processing branches on the classification result. The weighted sum of these three factors allows the final confidence score to comprehensively evaluate the reliability of the classification result from three perspectives: classification probability, cross-stage consistency, and branch consensus, providing a more comprehensive basis for subsequent hierarchical processing.

[0016] In conjunction with some embodiments of the first aspect, in some embodiments, when the final confidence level is lower than a preset judgment threshold, the step of controlling a preset sandbox environment to run the APK to be classified in order to extract dynamic behavior features specifically includes: triggering a simulated interaction command for the APK to be classified in the preset sandbox environment; during the execution of the simulated interaction command, monitoring the network communication request frequency, file read / write actions, and inter-process communication status of the APK to be classified; converting the monitored runtime state data into a time-series behavior vector, and using the time-series behavior vector as a dynamic behavior feature.

[0017] By employing the above technical solution, when the final confidence level is insufficient, simulated interactive commands are triggered in a preset sandbox environment to drive the APK to be classified to execute its internal logic. During runtime, the frequency of network communication requests, file read / write actions, and inter-process communication status are continuously monitored. This runtime state data is transformed into a time-series behavioral vector as dynamic behavioral features. These dynamic behavioral features reflect the runtime behavior of the APK during actual execution, supplementing the behavioral profile features extracted in the static feature analysis stage. They can capture some behavioral information that can only be observed during runtime, providing additional feature basis for subsequent updates to the classification results.

[0018] In conjunction with some embodiments of the first aspect, in some embodiments, after the steps of creating emerging industry category labels in an external industry knowledge base based on received external category instructions and associating the full features of the APK to be classified with the emerging industry category labels, the method further includes: using the full features as training sample data and the emerging industry category labels as target ground truth; based on the training sample data and the target ground truth, performing incremental parameter optimization on each preset dimension-specific processing branch by introducing a preset low-rank adaptation matrix; and merging the low-rank adaptation matrix after incremental parameter optimization into the corresponding preset dimension-specific processing branch.

[0019] By adopting the above technical solution, after creating emerging industry category labels and completing full feature association, the full features are used as training sample data, and the emerging industry category labels are used as the target ground truth. A pre-defined low-rank adaptation matrix is ​​introduced into each pre-defined dimension's dedicated processing branch. Only the parameters of the low-rank factor matrix are updated, while the original model parameters are frozen. After incremental parameter optimization, the low-rank adaptation matrix is ​​merged into the corresponding processing branch. This allows each processing branch to retain its original classification capabilities while obtaining classification ability for emerging industry categories with a smaller number of trainable parameters. When encountering similar APKs later, it can output more accurate classification probabilities in the initial classification stage, reducing the frequency of sandbox analysis and continuously expanding the coverage of emerging industry categories in the pre-defined external industry knowledge base.

[0020] In a second aspect, embodiments of this application provide a classification system comprising: one or more processors and a memory; the memory is coupled to the one or more processors and is used to store computer program code, the computer program code including computer instructions, wherein the one or more processors invoke the computer instructions to cause the classification system to perform the method described in the first aspect and any possible implementation thereof.

[0021] Thirdly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on a classification system, cause the classification system to perform the method described in the first aspect and any possible implementation thereof.

[0022] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a classification system, cause the classification system to perform the method described in the first aspect and any possible implementation thereof.

[0023] Understandably, the classification system provided in the second aspect, the computer program product provided in the third aspect, and the computer storage medium provided in the fourth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.

[0024] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:

[0025] 1. The classification system extracts heterogeneous feature vectors from the APK to be classified in parallel from four dimensions: static metadata, code semantic structure, resource fingerprint, and behavioral profile. A gating network adaptively calculates fusion weight coefficients based on the joint distribution of features from each dimension. The initial classification probability distributions of the dedicated processing branches for each dimension are weighted and summed to obtain the initial industry category. Then, using the initial industry category as an index, target industry knowledge entries are retrieved from a pre-set external industry knowledge base. These knowledge entries are concatenated with the heterogeneous feature vectors for secondary classification calculation, and a comprehensive multi-dimensional score is used to obtain the final confidence score. If the final confidence score is insufficient, further sandbox dynamic analysis, external knowledge expansion, and incremental model updates are triggered, forming a complete classification process from static multi-dimensional feature fusion to dynamic verification and knowledge base expansion, which helps improve the accuracy of APK industry classification.

[0026] 2. When extracting heterogeneous feature vectors corresponding to the semantic structure information of the code, semantic feature vectors from the decompiled source code and structural feature vectors based on the code call graph are extracted separately, and then fused together using a cross-attention mechanism. The semantic feature vector captures the semantic meaning of the code, while the structural feature vector captures the call relationships between classes and methods. The cross-attention mechanism enables the two types of features to establish a correlation during fusion. Compared with the direct concatenation method, the resulting joint feature vector of code semantic structure can simultaneously retain information in both semantic and structural dimensions, providing a more complete code-level feature representation for subsequent classification reasoning.

[0027] 3. After creating emerging industry category labels and completing full feature association, using the full features as training sample data and the emerging industry category labels as the target ground truth, a pre-defined low-rank adaptation matrix is ​​introduced into the dedicated processing branches of each pre-defined dimension. Only the parameters of the low-rank factor matrix are updated while the original model parameters are frozen. After incremental parameter optimization, the low-rank adaptation matrix is ​​merged into the corresponding processing branch. This allows each processing branch to retain its original classification capabilities while obtaining classification ability for emerging industry categories with a smaller number of trainable parameters. When encountering similar APKs later, it can output more accurate classification probabilities in the initial classification stage, reducing the frequency of triggering sandbox analysis and continuously expanding the coverage of emerging industry categories in the pre-defined external industry knowledge base. Attached Figure Description

[0028] Figure 1 This is a flowchart illustrating an APK industry classification method based on multi-source heterogeneous data fusion in an embodiment of this application.

[0029] Figure 2 This is another flowchart illustrating an APK industry classification method based on multi-source heterogeneous data fusion in an embodiment of this application.

[0030] Figure 3This is a schematic diagram of the physical device structure of a classification system in an embodiment of this application. Detailed Implementation

[0031] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.

[0032] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0033] This application provides an APK industry classification method and system based on multi-source heterogeneous data fusion, which is used to improve the accuracy of APK industry classification.

[0034] Please see Figure 1 This is a flowchart illustrating an APK industry classification method based on multi-source heterogeneous data fusion in an embodiment of this application.

[0035] S101. Convert the static meta-information, code semantic structure information, resource fingerprint information, and behavioral profile information of the APK to be classified into corresponding heterogeneous feature vectors.

[0036] Specifically, this step utilizes decompilation tools to unpack the APKs to be categorized, extracting heterogeneous feature vectors from four dimensions in parallel. For static metadata feature extraction, the package name and version number are extracted from the unpacked file's AndroidManifest.xml, the application name from res / values / strings.xml, and the developer signature information and application description text are extracted. These metadata are concatenated into a text sequence, and a lightweight text encoder such as BERT-base is used to extract the semantic feature vector F_meta. For code semantic structure feature extraction, the decompiled smali code or Java source code is input into a code feature extractor based on CodeLlama or Longformer to extract the code semantic feature vector F_code_sem. The class and method call relationships in the code are then parsed to construct a code call graph, and a pre-defined graph neural network is used to extract the structural feature vector F_code_struct from the call graph. Finally, F_code_sem and F_code_struct are fused using a cross-attention mechanism to obtain the joint code semantic structure feature vector F_code. For resource fingerprint feature extraction, application icon images are extracted from the res / mipmap / directory, and the visual feature vector F_icon is extracted using a visual Transformer model. The structure description of the XML layout file is parsed from the res / layout / directory, and the layout feature vector F_layout is extracted using a text encoder. F_icon and F_layout are then fused to obtain the resource fingerprint feature vector F_resource. For behavior profile feature extraction, all declared uses-permission permissions are extracted from AndroidManifest.xml to construct permission binary vectors. Declaration information of the four major components—Activity, Service, BroadcastReceiver, and ContentProvider—is extracted. The call frequency of sensitive APIs such as network access, file operations, and SMS sending and receiving is statistically analyzed from the decompiled code. The three types of features are concatenated and dimensionality reduced to obtain the behavior profile feature vector F_behavior. Through the above parallel extraction process, this step outputs four heterogeneous feature vectors: F_meta, F_code, F_resource, and F_behavior.

[0037] In some embodiments, the semantic structure information of the APK to be classified is transformed into a corresponding heterogeneous feature vector. The APK can be unpacked using apktool to obtain smali code files. The smali code is then input into a code feature extractor based on the Longformer architecture. Longformer uses a sliding window attention mechanism to process code text exceeding the length limit of a conventional Transformer. The mean pooling output of the last layer of the encoder is extracted as the semantic feature vector F_code_sem. Simultaneously, the invoke instructions in the smali code file are traversed to parse class method call relationships. A code call graph is constructed with classes and methods as nodes and call relationships as directed edges. The code call graph is input into a preset graph attention network for message passing and aggregation to obtain a full-graph level structural feature vector F_code_struct. F_code_sem is used as a query, and F_code_struct is used as a key and value input into a cross-attention module. Attention weights are calculated, weighted, aggregated, and added to the residual of F_code_sem to obtain the joint semantic structure feature vector F_code.

[0038] S102. Calculate the fusion weight coefficients corresponding to each feature dimension based on the joint distribution feature of heterogeneous feature vectors, and input each heterogeneous feature vector into the corresponding preset dimension-specific processing branch to obtain the preliminary classification probability distribution under each feature dimension.

[0039] The joint distribution feature representation is a comprehensive feature representation formed by concatenating the four heterogeneous feature vectors of F_meta, F_code, F_resource, and F_behavior along the feature dimensions, i.e., F_all = concat(F_meta, F_code, F_resource, F_behavior). Preset dimension-specific processing branches refer to expert classification networks pre-configured for specific feature dimensions. This application sets four preset dimension-specific processing branches: Expert A (text semantics) for processing F_meta, whose model base is a large language model fine-tuned with application description text data; Expert B (code structure) for processing F_code, whose model base is a large code model fine-tuned with decompiled source code and call graph data; Expert C (visual features) for processing F_resource, whose model base is a multimodal large model fine-tuned with application icon and interface screenshot data; and Expert D (behavioral patterns) for processing F_behavior, whose model base is a large language model fine-tuned with permission-API call sequence data. The preliminary classification probability distribution represents the industry category probability distribution output by each preset dimension's dedicated processing branch after independently reasoning about the input features, denoted as P_A, P_B, P_C, and P_D, respectively.

[0040] Specifically, this step employs a hybrid expert architecture, setting up four dedicated processing branches for predefined dimensions and a gating network. The gating network receives the concatenated result F_all of four heterogeneous feature vectors as input. A multilayer perceptron within the gating network performs a non-linear transformation on F_all. At the output layer, a Softmax function maps the transformation result to a normalized weight coefficient distribution. From this distribution, weight coefficients w_A, w_B, w_C, and w_D, corresponding to the four feature dimensions F_meta, F_code, F_resource, and F_behavior respectively, are extracted. The gating network's role is to adaptively adjust the contribution weights of each expert based on the feature distribution characteristics of the APK to be classified. For APKs with rich descriptive text information, the weight w_A corresponding to Expert_A is relatively high. For APKs with complex code structures, the weight w_B corresponding to Expert_B is relatively high. In terms of dedicated processing branches for each preset dimension, Expert_A receives F_meta and outputs a preliminary classification probability distribution P_A, Expert_B receives F_code and outputs a preliminary classification probability distribution P_B, Expert_C receives F_resource and outputs a preliminary classification probability distribution P_C, and Expert_D receives F_behavior and outputs a preliminary classification probability distribution P_D. The four expert branches perform inference calculations independently and in parallel, and their respective output preliminary classification probability distributions are paired with the corresponding fusion weight coefficients.

[0041] In some embodiments, for calculating the fusion weight coefficients corresponding to each feature dimension based on the joint distributed feature of heterogeneous feature vectors, the four types of feature vectors F_meta, F_code, F_resource, and F_behavior can be aligned to a unified dimension through a linear projection layer and then concatenated along the feature dimensions to obtain a joint feature vector F_all. F_all is then input into a three-layer fully connected gated network. The first fully connected layer maps the input to 512 dimensions and activates it using ReLU. The second fully connected layer maps the 512 dimensions to 128 dimensions and activates it using ReLU. The third fully connected layer maps the 128 dimensions to 4 dimensions corresponding to the four feature dimensions. The output of the third layer is normalized by applying the Softmax function to obtain four fusion weight coefficients w_A, w_B, w_C, and w_D that satisfy the normalization constraints.

[0042] S103. The initial industry category and initial confidence level are obtained by weighting and summing the probability distributions of each preliminary classification with the corresponding fusion weight coefficients.

[0043] Specifically, this step multiplies P_A and w_A element-wise, P_B and w_B element-wise, P_C and w_C element-wise, and P_D and w_D element-wise. The four weighted probability distributions are then summed according to element position to obtain the fused classification probability distribution P_initial. The element with the highest probability value is found in P_initial, and its corresponding industry category index is mapped to a preset industry label system to obtain the initial industry category C_initial. Simultaneously, the highest probability value is recorded as the initial confidence level Conf_initial. C_initial integrates the classification inference results of the APK to be classified across four dimensions: static metadata, code semantic structure, resource fingerprint, and behavioral profile. Weights dynamically allocated by the gating network based on the actual distribution of features in each dimension participate in the fusion, ensuring that the fusion result can adapt to the differences in feature distribution among different types of APKs.

[0044] S104. Using the initial industry category as the query index, retrieve the target industry knowledge entries from the preset external industry knowledge base.

[0045] The pre-built external industry knowledge base refers to a collection of industry knowledge data that is pre-built and stored before the classification system is deployed. It consists of three parts: an industry classification standard library, which includes authoritative industry standard texts such as the National Economic Industry Classification Standard (GB / T 4754) and the Ministry of Industry and Information Technology Software Industry Classification Standard, and stores each classification standard text in vector form; an industry knowledge graph, which constructs a three-level knowledge association structure of industry-enterprise-product, and includes information on typical enterprises and their application products in various industries; and an application-industry mapping library, which includes the pairing records of the feature vectors of accurately classified APK samples and their industry tags.

[0046] Specifically, this step concatenates the category name of the initial industry category C_initial obtained in step S103 with its corresponding descriptive text in the preset industry tag system. The concatenated text is then encoded into a query vector using the same vector encoder used when indexing the preset external industry knowledge base. The three parts of the preset external industry knowledge base—the industry classification standard library, the industry knowledge graph, and the application-industry mapping library—have all been pre-vectorized and indexed upon entry into the database. During retrieval, the cosine similarity between the query vector and the vectors of each knowledge entry in the library is calculated. The top K knowledge entries, sorted by similarity score from highest to lowest, are returned as target industry knowledge entries. The value of K is pre-set based on the size of the knowledge base and the dimensional constraints of subsequent feature concatenation, to cover both industry classification standard definitions and similar samples. The retrieved target industry knowledge entries will be concatenated with heterogeneous feature vectors in step S105, providing external knowledge support for secondary classification calculations.

[0047] S105. The target industry knowledge items and heterogeneous feature vectors are concatenated, and a secondary classification calculation is performed based on the concatenated feature set to obtain the secondary verification category and the final confidence level.

[0048] Feature concatenation involves converting at least one target industry knowledge item retrieved in step S104 into a knowledge representation vector, then concatenating this knowledge representation vector with heterogeneous feature vectors F_meta, F_code, F_resource, and F_behavior along the feature dimensions to generate a joint feature sequence with attributes related to both the APK's own features and the external industry knowledge context. Secondary classification calculation refers to the process of extracting attention features based on the concatenated joint feature sequence using a pre-defined sequence mapping network, establishing a correlation between the APK's own features and the knowledge item features, and then calculating the secondary classification probability of each candidate industry category through a mapping layer. The secondary verification category is the candidate industry category with the highest probability in the secondary classification probability, serving as the classification result after verification by the external industry knowledge base. The final confidence score is a comprehensive confidence score obtained by weighting and summing three factors: the maximum probability value in the secondary classification probability, the label consistency score between the initial industry category and the secondary verification category, and the information entropy inverse proportional mapping value of the output probability distribution of each pre-defined dimension's dedicated processing branch, according to pre-defined weight coefficients.

[0049] Specifically, this step first converts the text of each target industry knowledge entry obtained in step S104 into a knowledge representation vector using a preset encoder. The knowledge representation vector is then concatenated with F_meta, F_code, F_resource, and F_behavior along the feature dimensions to generate a joint feature sequence. This joint feature sequence is input into a preset sequence mapping network, which extracts features from the joint feature sequence using an attention mechanism. The extraction results are mapped through a fully connected classification layer to obtain a secondary classification probability distribution for each candidate industry category. The candidate industry category with the highest probability value in the secondary classification probability distribution is used as the secondary validation category. When calculating the final confidence score, the highest probability value in the secondary classification probability distribution is used as the base probability score. When the secondary validation category matches the category label of C_initial obtained in step S103, a first scoring factor with positive gain is generated; when the two category labels do not match, a first scoring factor with negative penalty is generated. Calculate the information entropy values ​​of the preliminary classification probability distributions P_A, P_B, P_C, and P_D output by the dedicated processing branches for each preset dimension. By performing an inverse proportional mapping on the information entropy values, a second scoring factor indicating the degree of consensus among the branches is obtained; the lower the entropy value, the higher the degree of consensus among the expert branches regarding the classification results. The base probability score, the first scoring factor, and the second scoring factor are then weighted and summed according to preset weight coefficients to obtain the final confidence level.

[0050] S106. If the final confidence level is lower than the preset judgment threshold, control the preset sandbox environment to run the APK to be classified in order to extract dynamic behavior features.

[0051] The preset sandbox environment refers to a pre-configured virtual execution environment for securely isolating and running Android applications. Dynamic behavioral features are used to represent the feature representation obtained by listening to runtime state data such as network communication request frequency, file read and write actions, and inter-process communication status during the APK's operation in the preset sandbox environment, and converting it into a time-series behavioral vector. This feature complements the static features and can reflect the behavior pattern of the APK during actual execution.

[0052] Specifically, when the final confidence level calculated in step S105 is lower than the preset judgment threshold, the classification system triggers a preset sandbox environment to perform dynamic runtime analysis on the APK to be classified. In the preset sandbox environment, simulated interaction commands are triggered to the APK to be classified, simulating user clicks, swipes, input, and other operations to drive the APK to execute its internal logic. During the execution of the simulated interaction commands, the monitoring component of the preset sandbox environment continuously monitors the frequency of network communication requests generated by the APK to be classified, including the target address of the requests and the number of requests per unit time. It also monitors file read / write actions, including file path access records and read / write operation types. Furthermore, it monitors inter-process communication status, including Binder calls and cross-process data transfer records. The monitored runtime status data, such as the frequency of network communication requests, file read / write actions, and inter-process communication status, are aligned with timestamps and converted into a time-series behavior vector. This time-series behavior vector is then used as a dynamic behavior feature for step S107.

[0053] In some embodiments, dynamic behavioral features can be extracted in multiple ways. Optionally, the APK to be classified can be installed in a preset sandbox environment built on an Android emulator. A startup Intent can be sent to the APK as a simulated interaction command through the Android debug bridge interface. The tcpdump tool can be used to capture network packets generated by the APK at the sandbox network interface and count the request frequency per unit time. The inotify mechanism can be used to monitor the file paths and read / write types accessed by the APK in the sandbox file system. The Binder inter-process communication call records initiated by the APK can be intercepted through the Hook mechanism. The three types of runtime state data are aligned by timestamp and concatenated into a multi-dimensional time series sequence. The time series sequence is encoded into a fixed-dimensional time series behavioral vector as dynamic behavioral features using an LSTM network. Optionally, the APK to be classified can be run in a preset sandbox environment built based on dynamic instrumentation technology. Random touch commands are sent to the APK as simulated interaction commands through the Monkey tool. The instrumentation code intercepts the APK's calls to APIs related to network, file and inter-process communication during runtime, records the timestamps and call parameters of various API calls, divides the API call sequence into time period statistical vectors according to preset time windows, and concatenates the statistical vectors of each time period and reduces the dimensionality through a fully connected layer to obtain a fixed-dimensional temporal behavior vector as dynamic behavior features.

[0054] S107. Introduce dynamic behavior features as new features into the heterogeneous feature vector, and re-execute the steps from obtaining the initial industry category to obtaining the secondary verification category based on the updated full features, so as to update the final confidence.

[0055] The full set of features includes F_meta, F_code, F_resource, and the updated F_behavior_aug, obtained by incorporating dynamic behavior features. F_behavior_aug is the updated behavior feature vector obtained by fusing the dynamic behavior feature vector with the original behavior profile feature vector F_behavior, and serves as the update input for the behavior pattern-specific processing branch Expert_D. Re-execution refers to replacing the original input of step S102 with the feature vectors corresponding to each dimension of the full set of features, and then re-executing the complete process of calculating the fusion weight coefficients, obtaining the preliminary classification probability distributions for each dimension, weighted summation, and secondary classification calculation according to the processing logic from steps S102 to S105, thereby obtaining the updated final confidence score.

[0056] Specifically, in this step, the dynamic behavior feature vector extracted in step S106 is concatenated with the behavior profile feature vector F_behavior obtained in step S101 along the feature dimension. After being mapped to the same dimension as F_behavior by a linear projection layer, the updated behavior feature vector F_behavior_aug is obtained. F_behavior_aug replaces F_behavior as the update input of Expert_D, and together with F_meta, F_code, and F_resource, they constitute the full feature set. When the classification process is re-executed, F_meta, F_code, F_resource, and F_behavior_aug are re-concatenated into the updated joint feature vector F_all_aug, which is input into the gating network to calculate the new fusion weight coefficients w_A, w_B, w_C, and w_D. The gating network adaptively adjusts the weights of each dimension according to the joint distribution of F_all_aug to reflect the influence of dynamic behavior information on the importance judgment of each dimension. The inputs to Expert_A, Expert_B, and Expert_C remain unchanged. Expert_D, with F_behavior_aug as input, re-outputs the preliminary classification probability distribution P_D_aug for the behavior pattern dimension. The preliminary classification probability distributions of each processing branch are weighted and summed with the updated fusion weight coefficients to obtain the updated initial industry category. Then, the updated initial industry category is used as the query index to re-retrieve the target industry knowledge entries. The target industry knowledge entries are concatenated with F_meta, F_code, F_resource, and F_behavior_aug along the feature dimension, and a secondary classification calculation is performed to obtain the updated secondary verification category. Finally, the updated final confidence score is recalculated by comprehensively considering the secondary classification probability, label consistency, and branch consensus. The updated final confidence score incorporates dynamic behavioral information on top of the original static features, and can more comprehensively reflect the industry affiliation of the APK to be classified.

[0057] S108. If the updated final confidence level is still lower than the preset judgment threshold, create an emerging industry category label in the external industry knowledge base based on the received external category instruction, and associate the full features of the APK to be classified with the emerging industry category label.

[0058] The external category instruction is a category confirmation instruction sent by reviewers outside the classification system based on the assessment results of the APK to be classified. This instruction contains the actual industry category information of the APK, which has been manually determined. It is used to provide a supplementary manual judgment result when the automatic classification process cannot meet the confidence requirements. The emerging industry category label refers to an industry category identifier that does not yet exist in the existing label system of the preset external industry knowledge base. It is created in the knowledge base based on the industry category information contained in the external category instruction. It is used to indicate the industry category to which an emerging application type not covered by the current classification system belongs. For example, when a reviewer confirms that the industry to which an APK belongs is an emerging sub-sector that does not exist in the existing label system, the creation of the emerging industry category label is triggered.

[0059] Specifically, if the final confidence level after the update in step S107 is still lower than the preset judgment threshold, it indicates that the current classification system cannot make a reliable classification judgment on the APK based on the existing industry knowledge system, and the classification system waits to receive the results of external manual review. After the manual reviewer conducts a manual assessment of the APK to be classified, they send an external category instruction through the system interface. The external category instruction contains the name of the industry category to which the APK belongs. The classification system parses the external category instruction and determines whether the industry category tag in the instruction already exists in the tag system of the preset external industry knowledge base. If the industry category tag does not exist in the existing knowledge base, an emerging industry category tag is created in the preset external industry knowledge base, and a category description text record and vectorized index entry are established for the tag. Subsequently, the full feature vector of the APK to be classified (including F_meta, F_code, F_resource, and F_behavior_aug) is associated with the emerging industry category label in the application sample vector mapping relationship of the preset external industry knowledge base. The full features of the APK are stored in the knowledge base as known samples of the emerging industry category, so that when classifying similar APKs in the future, the sample can be recalled as a reference knowledge entry through the retrieval step, thereby enabling the classification system to gradually have the knowledge support capability for emerging industry categories.

[0060] In the above embodiments, the classification system extracts heterogeneous feature vectors of the APK to be classified in parallel from four dimensions: static metadata, code semantic structure, resource fingerprint, and behavioral profile. A gating network adaptively calculates fusion weight coefficients based on the joint distribution of features from each dimension. The initial classification probability distributions of the dedicated processing branches for each dimension are weighted and summed to obtain an initial industry category. Then, using the initial industry category as an index, target industry knowledge entries are retrieved from a preset external industry knowledge base. These knowledge entries are concatenated with the heterogeneous feature vectors for secondary classification calculation, and a comprehensive multi-dimensional score is used to obtain the final confidence score. If the final confidence score is insufficient, further sandbox dynamic analysis, external knowledge expansion, and incremental model updates are triggered, forming a complete classification process from static multi-dimensional feature fusion to dynamic verification and knowledge base expansion, which helps improve the accuracy of APK industry classification.

[0061] However, when the external industry knowledge base lacks a category label corresponding to the industry of the APK to be classified, the classification system can create emerging industry category labels and complete feature association after receiving external category instructions. However, the model parameters of each pre-defined dimension-specific processing branch are not updated after the association operation. When encountering similar emerging APKs later, each processing branch may still output classification results with insufficient confidence in the initial classification stage due to the lack of parameter representation of the corresponding industry category, leading to frequent triggering of sandbox validation. To solve the above problem, after the external industry knowledge base completes the creation of emerging industry category labels and feature association, supervised samples composed of full features and emerging industry category labels can be further utilized. Incremental parameter optimization can be performed by introducing a pre-defined low-rank adaptation matrix into each pre-defined dimension-specific processing branch, and the optimized low-rank adaptation matrix can be merged into the corresponding processing branch, so that the parameters of each processing branch are updated in a targeted manner, improving its classification ability for emerging industry categories.

[0062] Please see Figure 2 This is another flowchart illustrating an APK industry classification method based on multi-source heterogeneous data fusion in an embodiment of this application.

[0063] S201. Convert the static metadata, code semantic structure information, resource fingerprint information, and behavioral profile information of the APK to be classified into corresponding heterogeneous feature vectors.

[0064] S202. Calculate the fusion weight coefficients corresponding to each feature dimension based on the joint distribution feature of heterogeneous feature vectors, and input each heterogeneous feature vector into the corresponding preset dimension-specific processing branch to obtain the preliminary classification probability distribution under each feature dimension.

[0065] S203. The initial industry category and initial confidence level are obtained by weighting and summing the probability distributions of each preliminary classification with the corresponding fusion weight coefficients.

[0066] S204. Using the initial industry category as the query index, retrieve the target industry knowledge entries from the preset external industry knowledge base.

[0067] S205. The target industry knowledge items and heterogeneous feature vectors are concatenated, and a secondary classification calculation is performed based on the concatenated feature set to obtain the secondary verification category and the final confidence level.

[0068] S206. If the final confidence level is lower than the preset judgment threshold, control the preset sandbox environment to run the APK to be classified in order to extract dynamic behavior features.

[0069] S207. Introduce dynamic behavioral features as new features into the heterogeneous feature vector, and re-execute the steps from obtaining the initial industry category to obtaining the secondary verification category based on the updated full features, so as to update the final confidence.

[0070] S208. If the updated final confidence level is still lower than the preset judgment threshold, create an emerging industry category label in the external industry knowledge base based on the received external category instruction, and associate all features of the APK to be classified with the emerging industry category label.

[0071] Step S201 is similar to step S101, step S202 is similar to step S102, step S203 is similar to step S103, step S204 is similar to step S104, step S205 is similar to step S105, step S206 is similar to step S106, step S207 is similar to step S107, and step S208 is similar to step S108. They will not be described again here.

[0072] S209. Use all features as training sample data and emerging industry category labels as target ground truth.

[0073] The training sample data consists of input feature data used to drive model parameter updates. In this step, the training sample data comprises the full feature vectors of the APK to be classified, which were associated with the emerging industry category label in step S208. It includes four categories: F_meta, F_code, F_resource, and F_behavior_aug. F_behavior_aug is the updated behavior feature vector obtained by fusing the dynamic behavior feature vector with F_behavior in step S207, and is organized according to the input format of each preset dimension's dedicated processing branch. The target ground truth is used to represent the supervision signal in the supervised training process, i.e., the emerging industry category label created in step S208 based on external category instructions. This label, after manual review and confirmation, represents the accurate labeling result of the industry category to which the APK to be classified belongs, and is represented in the label format required for classification loss calculation.

[0074] Specifically, in this step, the full feature vectors associated with the emerging industry category labels from step S208 are extracted according to the input format of each predefined dimension's dedicated processing branch. The training input for Expert_A is F_meta, for Expert_B it is F_code, for Expert_C it is F_resource, and for Expert_D it is F_behavior_aug. The emerging industry category labels are converted into one-hot vectors or category indices, or other labeling formats required for classification loss calculation, and paired with the corresponding feature vectors of each dimension to form supervised training sample-label pairs for each predefined dimension's dedicated processing branch, which are then used for incremental parameter optimization in step S210.

[0075] S210. Based on the training sample data and the target true value, incremental parameter optimization is performed on the dedicated processing branches of each preset dimension by introducing a preset low-rank adaptation matrix.

[0076] The pre-defined low-rank adaptation matrix refers to a parameter matrix with a pre-set structure based on the principle of low-rank decomposition. The original parameter update matrix is ​​decomposed into the product of two low-rank factor matrices A and B. During fine-tuning, only the parameters of the low-rank factor matrices A and B are updated, while the original model parameters of each pre-defined dimension-specific processing branch are frozen. This allows for targeted expansion of the classification capabilities of each processing branch with a smaller number of trainable parameters. Incremental parameter optimization refers to the parameter optimization process that, while keeping the original parameters of each pre-defined dimension-specific processing branch (Expert_A, Expert_B, Expert_C, Expert_D) unchanged, improves the classification capability of each processing branch for emerging industry categories by optimizing the introduced low-rank adaptation matrix parameters.

[0077] Specifically, this step introduces a pre-defined low-rank adaptation matrix into each of the pre-defined dimension-specific processing branches (Expert_A, Expert_B, Expert_C, and Expert_D). This pre-defined low-rank adaptation matrix is ​​appended to the weight matrix of the attention layer or fully connected layer of each processing branch, and the original weight matrix parameters remain frozen during optimization. During forward propagation, the actual weights of each layer are the sum of the products of the original frozen weight matrix and the corresponding low-rank adaptation matrix, i.e., W_effective = W_pretrained + B × A, where B and A are low-rank factor matrices. The training sample data for each dimension organized in step S209 is input into the corresponding processing branch, and the cross-entropy loss between the classification probability distribution output by each processing branch and the target ground truth is calculated. The gradient is calculated only for the parameters of each low-rank factor matrix A and B using the backpropagation algorithm, and parameter updates are performed. Iterative optimization continues until the loss converges or the pre-defined number of training steps is reached, completing the incremental parameter optimization for each pre-defined dimension-specific processing branch. The number of trainable parameters of the low-rank fitting matrix is ​​much smaller than the total number of parameters of each processing branch, which enables each processing branch to gain the ability to identify emerging industry categories while retaining the original classification ability.

[0078] S211. Merge the low-rank adaptation matrix after incremental parameter optimization into the corresponding preset dimension-specific processing branch.

[0079] Specifically, this step performs a low-rank adaptation matrix merging operation on the dedicated processing branches for each preset dimension of Expert_A, Expert_B, Expert_C, and Expert_D. For each weight layer that has introduced a low-rank adaptation matrix, the original frozen weight matrix W_pretrained and the low-rank factor matrices A and B optimized in step S210 are extracted. B×A is calculated to obtain an increment matrix with the same dimension as the original weight matrix. The increment matrix is ​​added element-wise to W_pretrained to obtain the merged weight matrix W_merged = W_pretrained + B×A. The original weight matrix parameters of this layer are replaced with W_merged, and the storage space occupied by the low-rank adaptation matrix structure is released. After performing the above operations on all layers with attached low-rank adaptation matrices in the dedicated processing branches of each preset dimension and saving the merged weight file, the updated Expert_A, Expert_B, Expert_C, and Expert_D can directly use the merged weight parameters for inference in subsequent classification inference without loading independent low-rank adaptation matrices. When encountering APKs similar to emerging industry categories, it can output more accurate classification probabilities in the initial classification stage, reducing the frequency of triggering sandbox analysis.

[0080] In the above embodiments, after creating emerging industry category labels and completing the association of all features, using all features as training sample data and emerging industry category labels as target ground truth, a preset low-rank adaptation matrix is ​​introduced into the dedicated processing branches of each preset dimension. Only the parameters of the low-rank factor matrix are updated while the original model parameters are frozen. After incremental parameter optimization, the low-rank adaptation matrix is ​​merged into the corresponding processing branch. This allows each processing branch to retain its original classification capabilities while obtaining classification ability for emerging industry categories with a smaller number of trainable parameters. When encountering similar APKs later, it can output more accurate classification probabilities in the initial classification stage, reducing the frequency of triggering sandbox analysis and continuously expanding the coverage of emerging industry categories in the preset external industry knowledge base.

[0081] The above describes an APK industry classification method based on multi-source heterogeneous data fusion in the embodiments of this application. The following describes an exemplary classification system 300 provided in the embodiments of this application.

[0082] Figure 3 This is an exemplary hardware structure diagram of the classification system 300 provided in an embodiment of this application. In some embodiments, the classification system 300 is a computer device. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with other external terminals or servers via a network connection. In some embodiments, the network interface can be a wired network interface; in some embodiments, the network interface can also be a wireless network interface. When the computer program is executed by the processor, it implements an APK industry classification method based on multi-source heterogeneous data fusion according to an embodiment of this application.

[0083] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0084] In some embodiments of this application, a computer-readable storage medium is also provided, including instructions that, when executed on the classification system 300, cause the classification system 300 to perform an APK industry classification method based on multi-source heterogeneous data fusion according to an embodiment of this application.

[0085] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0086] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".

[0087] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0088] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. An APK industry classification method based on multi-source heterogeneous data fusion, characterized in that, Applied to a classification system, the method includes: The static meta-information, code semantic structure information, resource fingerprint information, and behavioral profile information of the APK to be classified are transformed into corresponding heterogeneous feature vectors. Based on the joint distribution features of the heterogeneous feature vectors, calculate the fusion weight coefficients corresponding to each feature dimension, and input each heterogeneous feature vector into the corresponding preset dimension-specific processing branch to obtain the preliminary classification probability distribution under each feature dimension. The initial industry category and initial confidence level are obtained by weighting and summing the initial classification probability distributions with the corresponding fusion weight coefficients. Using the initial industry category as the query index, target industry knowledge entries are retrieved from a preset external industry knowledge base, which stores the mapping relationship between industry standard texts and known application sample vectors. The target industry knowledge items are concatenated with the heterogeneous feature vectors, and a secondary classification calculation is performed based on the concatenated feature set to obtain the secondary verification category and the final confidence level. If the final confidence level is lower than the preset judgment threshold, the APK to be classified is run in a preset sandbox environment to extract dynamic behavior features; The dynamic behavior features are introduced as new features into the heterogeneous feature vector, and the steps from obtaining the initial industry category to obtaining the secondary verification category are re-executed based on the updated full features to update the final confidence level. If the updated final confidence level is still lower than the preset judgment threshold, an emerging industry category label is created in the external industry knowledge base based on the received external category instruction, and the full features of the APK to be classified are associated with the emerging industry category label.

2. The method according to claim 1, characterized in that, The step of converting the code semantic structure information of the APK to be classified into a corresponding heterogeneous feature vector specifically includes: The semantic feature vector of the decompiled source code of the APK to be classified is extracted according to the preset code feature extractor; A code call graph is constructed based on the class and method call relationships in the decompiled source code, and the structural feature vector of the code call graph is extracted based on a preset graph neural network. The semantic feature vector and the structural feature vector are fused based on the cross-attention mechanism to obtain the heterogeneous feature vector corresponding to the semantic structure information of the code.

3. The method according to claim 1, characterized in that, The step of calculating the fusion weight coefficients corresponding to each feature dimension based on the joint distribution features of the heterogeneous feature vectors specifically includes: The heterogeneous feature vectors are concatenated, and the concatenation result is input into a preset gating network. The splicing result is calculated based on the multilayer perceptron in the preset gated network, and the normalized weight coefficient distribution is output through the Softmax function; The values ​​corresponding to each feature dimension in the weight coefficient distribution are respectively used as the fusion weight coefficients.

4. The method according to claim 1, characterized in that, The step of concatenating the target industry knowledge items with the heterogeneous feature vector, performing secondary classification calculations based on the concatenated feature set, and obtaining the secondary verification category and final confidence score specifically includes: Convert at least one of the target industry knowledge entries retrieved into a knowledge representation vector; The knowledge representation vector and the heterogeneous feature vector are concatenated along the feature dimension to generate a joint feature sequence with contextual association attributes; Attention features are extracted from the joint feature sequence based on a preset sequence mapping network, and the secondary classification probability of each candidate industry is obtained based on the extraction results. The candidate industry with the highest probability is taken as the secondary verification category.

5. The method according to claim 4, characterized in that, The step of obtaining the final confidence level specifically includes: The highest probability among the secondary classification probabilities is used as the base probability score; If the initial industry category matches the category label of the secondary validation category, a first scoring factor with positive gain is generated; If the category label of the initial industry category is inconsistent with that of the secondary verification category, a first scoring factor with a negative penalty is generated; Calculate the information entropy value of the preliminary classification probability distribution output by each preset dimension-specific processing branch, and obtain the second scoring factor indicating the consensus degree of the branch by performing an inverse proportional mapping calculation on the information entropy value; The base probability score, the first scoring factor, and the second scoring factor are weighted and summed according to preset weight coefficients to obtain the final confidence level.

6. The method according to claim 1, characterized in that, The step of controlling a preset sandbox environment to run the APK to be classified in order to extract dynamic behavioral features when the final confidence level is lower than a preset judgment threshold specifically includes: Trigger simulated interaction commands for the APK to be classified in the preset sandbox environment; During the execution of the simulated interaction instructions, the network communication request frequency, file read / write actions, and inter-process communication status of the APK to be classified are monitored. The monitored runtime state data is transformed into a time-series behavior vector, and the time-series behavior vector is used as the dynamic behavior feature.

7. The method according to claim 1, characterized in that, After the steps of creating emerging industry category tags in the external industry knowledge base based on the received external category instructions and associating the full set of features of the APK to be classified with the emerging industry category tags, the method further includes: The full set of features is used as training sample data, and the emerging industry category label is used as the target ground truth. Based on the training sample data and the target ground value, incremental parameter optimization is performed on each of the preset dimension-specific processing branches by introducing a preset low-rank adaptation matrix. The low-rank adaptation matrix after optimization of the incremental parameters is merged into the corresponding preset dimension-specific processing branch.

8. A classification system, characterized in that, The classification system includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the classification system to perform the method as described in any one of claims 1-7.

9. A computer program product containing instructions, characterized in that, When the computer program product is run on the classification system, the classification system performs the method as described in any one of claims 1-7.

10. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on the classification system, the classification system performs the method as described in any one of claims 1-7.