Credit rating analysis method and device, electronic equipment and storage medium

Through the cluster analysis method, the cargo inspection data set with marked grade information is used to evaluate the data to be analyzed, which solves the problem of unobjective freight forwarder rating results in the existing technology, improves the accuracy and efficiency of evaluation, and assists in the allocation of security inspection resources. Reasonable arrangements.

CN118657538AActive Publication Date: 2024-09-17INFOSKY TECH CO LTD

Patent Information

Application Number
CN202411125243.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-09-17
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

The existing freight forwarder rating method relies heavily on human factors and is highly subjective, resulting in unobjective rating results.

Method used

By obtaining the cargo inspection data set to be analyzed and the reference cargo inspection data set, cluster analysis is performed using the cargo inspection data with marked grade information, and the grade information of the cargo inspection data to be analyzed is obtained, thereby improving the accuracy and efficiency of assessment.

Benefits of technology

It has improved the objectivity and efficiency of freight forwarder credit rating assessment, assisted in the reasonable arrangement of security inspection resources, and improved security inspection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657538A
    Figure CN118657538A
Patent Text Reader

Abstract

The invention provides a credit rating analysis method and device, electronic equipment and a storage medium, and relates to the technical field of data analysis, the method comprises the following steps: obtaining a to-be-analyzed goods inspection data set and obtaining a reference goods inspection data set, each reference goods inspection data in the reference goods inspection data set comprising corresponding rating information, and according to each piece of reference goods inspection data in the reference goods inspection data set and the grade information corresponding to each piece of reference goods inspection data. Through the method of guiding the to-be-analyzed goods inspection data to perform clustering analysis by adopting the goods inspection data with the marked grade information in the reference goods inspection data set, the accuracy and the evaluation efficiency of performing agent credit grade evaluation on the to-be-analyzed goods inspection data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data analysis technology, and in particular to a credit rating analysis method, device, electronic equipment and storage medium. Background Art

[0002] At present, the agent credit management platform has been applied in some airports. The agent credit management platform is a violation management program provided by airport managers to freight forwarders. At present, the rating rules, scoring and deduction rules of the agent credit management platform are generally determined by industry experts. In the actual cargo inspection process, airport managers input the scoring or deduction situation according to the cargo inspection situation to update the credit rating.

[0003] It can be seen that the existing freight forwarder rating method is based on artificially formulated and artificially implemented rules. Since it relies heavily on human intervention and is too subjective, the existing agent rating results are not objective. Summary of the invention

[0004] The present invention provides a credit rating analysis method to solve the defect that the agent rating results in the prior art are not objective. By adopting the cargo inspection data with grade information marked in the reference cargo inspection data set to guide the cluster analysis of the cargo inspection data to be analyzed, the accuracy and evaluation efficiency of the agent credit rating evaluation of the cargo inspection data to be analyzed can be improved.

[0005] The present invention provides a credit rating analysis method, comprising the following steps: Acquire a cargo inspection data set to be analyzed and obtain a reference cargo inspection data set, wherein each reference cargo inspection data in the reference cargo inspection data set includes corresponding grade information, and the grade information is used to represent the credit grade of the freight forwarder corresponding to the reference cargo inspection data; According to each reference cargo inspection data in the reference cargo inspection data set and the grade information corresponding to each reference cargo inspection data set, cluster analysis is performed on the cargo inspection data set to be analyzed to obtain the grade information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

[0006] According to a credit rating analysis method provided by the present invention, cluster analysis is performed on the cargo inspection data set to be analyzed based on each reference cargo inspection data in the reference cargo inspection data set and the rating information corresponding to each reference cargo inspection data, to obtain the rating information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed, including: Clustering the reference cargo inspection data set according to the level information corresponding to each reference cargo inspection data in the reference cargo inspection data set to obtain at least two reference clusters, wherein the level information corresponding to the reference cargo inspection data included in each reference cluster of the at least two reference clusters is the same, and the category information of each reference cluster is the level information of the reference cargo inspection data included; Cluster analysis is performed on the cargo inspection data set to be analyzed according to the at least two reference clusters to obtain level information corresponding to each cargo inspection data to be analyzed, where the level information corresponding to each cargo inspection data to be analyzed is category information of the cluster corresponding to each cargo inspection data to be analyzed.

[0007] According to a credit rating analysis method provided by the present invention, cluster analysis is performed on the cargo inspection data set to be analyzed according to the at least two reference clusters to obtain the rating information corresponding to each cargo inspection data to be analyzed, including: According to the distance between each cargo inspection data to be analyzed and the cluster center of each reference cluster in the at least two reference clusters, each cargo inspection data to be analyzed is divided into the reference cluster corresponding to the cluster center closest to the data, so as to obtain at least two current clusters corresponding to the cargo inspection data set to be analyzed; Determine at least two target clusters corresponding to the cargo inspection data set to be analyzed according to the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster, and if the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster is less than or equal to the target center threshold, determine that the at least two target clusters are the at least two current clusters; According to the category information of the target cluster corresponding to each data to be analyzed in the cargo inspection data set to be analyzed, the level information corresponding to each data to be analyzed is determined.

[0008] According to a credit rating analysis method provided by the present invention, determining at least two target clusters corresponding to the cargo inspection data set to be analyzed according to the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster includes: If the distance between the cluster center of each of the at least two current clusters and the cluster center of the corresponding reference cluster is greater than the target center threshold, the cluster iteration step is repeatedly performed until it is determined that the distance between the cluster center of each of the at least two updated clusters and the cluster center of the corresponding current cluster is less than or equal to the preset center threshold, or the number of repeated cluster iteration steps is greater than the preset number of iterations, the at least two updated clusters are determined to be the at least two target clusters corresponding to the cargo inspection data set to be analyzed; The cluster iteration step comprises: According to the distance between each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed and the cluster center of each current cluster, each cargo inspection data to be analyzed is divided into the current cluster corresponding to the cluster center closest to itself, so as to obtain at least two updated clusters corresponding to the cargo inspection data set to be analyzed; When it is determined that the distance between the cluster center of each of the at least two update clusters and the cluster center of the corresponding current cluster is greater than a preset distance threshold, the at least two update clusters are determined to be at least two current clusters.

[0009] According to a credit rating analysis method provided by the present invention, the step of obtaining a reference cargo inspection data set includes: Acquire a plurality of initial cargo inspection data, each of the plurality of initial cargo inspection data comprising values ​​of at least two cargo inspection indicators, the at least two cargo inspection indicators comprising at least two of the number of security inspection items, the rate of package opening, the number of dangerous goods, package opening result data, transfer data, return data, and temporary detention data; According to the values ​​of at least two cargo inspection indicators included in each of the multiple initial cargo inspection data, the respective initial cargo inspection data are marked with corresponding grade information to obtain the reference cargo inspection data set.

[0010] According to a credit rating analysis method provided by the present invention, the step of marking corresponding rating information on each of the multiple initial cargo inspection data according to the values ​​of at least two cargo inspection indicators included in each of the multiple initial cargo inspection data includes: Determine, according to the values ​​of at least two cargo inspection indicators included in each of the initial cargo inspection data and the preset indicator thresholds of each cargo inspection indicator, a target indicator state of each of the at least two cargo inspection indicators included in each of the initial cargo inspection data, wherein the target indicator state includes being greater than the threshold, and being less than or equal to the threshold; According to the target indicator state of each cargo inspection indicator among at least two cargo inspection indicators included in each initial cargo inspection data, and the corresponding relationship between the preset level information and the indicator state, the level information corresponding to each initial cargo inspection data is determined and marked.

[0011] According to a credit rating analysis method provided by the present invention, the number of credit ratings represented by the rating information corresponding to all reference cargo inspection data in the reference cargo inspection data set is the target rating number. Before obtaining the cargo inspection data set to be analyzed and obtaining the reference cargo inspection data set, the method further includes: Determine a target level number, the target level number corresponds to a target cluster number corresponding to an optimal silhouette coefficient among a plurality of silhouette coefficients, the plurality of silhouette coefficients are obtained by analyzing a plurality of clustering results corresponding to a plurality of cluster numbers, the plurality of clustering results corresponding to a plurality of cluster numbers are obtained by clustering a target cargo inspection data set using a plurality of cluster numbers.

[0012] The present invention also provides a credit rating analysis device, comprising the following modules: A data acquisition module, used to acquire a cargo inspection data set to be analyzed and a reference cargo inspection data set, wherein each reference cargo inspection data in the reference cargo inspection data set includes corresponding grade information, and the grade information is used to represent the credit grade of the freight forwarder corresponding to the reference cargo inspection data; The data analysis module is used to perform cluster analysis on the cargo inspection data set to be analyzed according to each reference cargo inspection data in the reference cargo inspection data set and the grade information corresponding to each reference cargo inspection data, so as to obtain the grade information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any of the above-mentioned credit rating analysis methods is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the credit rating analysis method described in any one of the above methods is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the credit rating analysis method described above is implemented.

[0016] The credit rating analysis method, device, electronic device and storage medium provided by the present invention can improve the accuracy and evaluation efficiency of the agent credit rating evaluation of the cargo inspection data to be analyzed by using the cargo inspection data with grade information marked in the reference cargo inspection data set to guide the cluster analysis of the cargo inspection data to be analyzed. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1This is one of the flow charts of the credit rating analysis method provided by the present invention.

[0019] Figure 2 It is a flow chart of the credit rating acquisition method provided by the present invention.

[0020] Figure 3 It is a flowchart of the method for obtaining level information provided by the present invention.

[0021] Figure 4 It is a flowchart of the method for obtaining a reference cargo inspection data set provided by the present invention.

[0022] Figure 5 It is a flow chart of the method for marking grade information on initial cargo inspection data provided by the present invention.

[0023] Figure 6 A schematic diagram of the overall flow of the credit rating analysis method provided by an embodiment of the present invention.

[0024] Figure 7 A schematic diagram of the relationship between the silhouette coefficient provided by the present invention and the number of different clusters.

[0025] Figure 8 It is a schematic diagram of the clustering results after applying the K-Means algorithm provided by the present invention.

[0026] Fig. 9 It is a schematic diagram of the clustering results after using the constrained seed K-Means algorithm provided by the present invention.

[0027] Fig.10 A schematic diagram of the structure of a credit rating analysis device provided in an embodiment of the present invention.

[0028] Fig.11 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] At present, the agent credit management platform has been applied in some airports. The agent credit management platform is a violation management plan provided by airport managers to freight forwarders. Through the agent credit management platform, the credit level of each agent can be intuitively obtained, so as to reasonably arrange security inspection resources for them and improve security inspection efficiency. There are two existing credit rating methods. One is to convert qualitative or non-qualitative data such as violations and shipments into evaluation rules through feature analysis, and to evaluate agents' behaviors in cargo security inspection or freight business by centrally collecting and recording them, and using a combination of plus and minus points. One is to use the hierarchical analysis method for credit evaluation in actual business. The hierarchical analysis method is a systematic analysis method used to evaluate and optimize decision-making plans. It helps analysts better understand and compare decision-making plans by decomposing problems into multiple levels in order to make the best decision.

[0031] Among them, the plus / minus method is to evaluate the credit of agents based on established rules. This scheme relies heavily on human intervention, selects evaluation rules based on subjective factors, and sets plus or minus scores for each rule, which is too subjective. In addition, when evaluating data, the hierarchical analysis method needs to organize experts to evaluate the data, which has high labor costs. At the same time, the correctness of the rating depends on the industry level of the experts and is greatly affected by human subjective factors, which does not conform to the trend of electronic civil aviation information.

[0032] It can be seen that the existing agent rating methods are all based on artificially formulated and artificially implemented rules. Since they are heavily dependent on humans and are too subjective, the existing agent rating results are not objective.

[0033] In view of this, an embodiment of the present invention provides a credit rating analysis method, which adopts the method of obtaining a cargo inspection data set to be analyzed and a reference cargo inspection data set, and according to each reference cargo inspection data in the reference cargo inspection data set and the grade information corresponding to each reference cargo inspection data, that is, guiding the cargo inspection data set to be analyzed to perform cluster analysis through cargo inspection data with grade information marked, to obtain the grade information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed. This method can improve the accuracy and efficiency of the agent credit rating assessment for the cargo inspection data to be analyzed.

[0034] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0035] Figure 1This is one of the flow charts of the credit rating analysis method provided by the present invention. The credit rating analysis method can be applied to electronic devices, which can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include a personal computer, a laptop, a PDA or a server, etc.; the electronic device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer or a projector, etc. Figure 1 As shown, the method may include the following steps 101 to 102: Step 101: obtaining a cargo inspection data set to be analyzed and a reference cargo inspection data set, wherein each reference cargo inspection data in the reference cargo inspection data set includes corresponding grade information, and the grade information is used to represent the credit grade of the freight forwarder corresponding to the reference cargo inspection data.

[0036] It should be noted that the cargo inspection data set to be analyzed includes the cargo inspection data set to be analyzed, the reference cargo inspection data set includes multiple reference cargo inspection data, the reference cargo inspection data may be cargo inspection data marked with grade information, and the cargo inspection data to be analyzed may be cargo inspection data not marked with grade information.

[0037] Exemplarily, if the freight forwarder's credit rating includes excellent, medium and poor, then the rating information corresponding to each reference cargo inspection data represents the credit rating of the freight forwarder corresponding to the reference cargo inspection data. For example, if reference cargo inspection data A is marked as excellent, the credit rating of the freight forwarder corresponding to the reference cargo inspection data A is excellent.

[0038] There are many ways to obtain the cargo inspection data set to be analyzed and the reference cargo inspection data set. For example, the electronic device can obtain data in the cargo inspection system by itself, or the electronic device can obtain cargo inspection data sent by other devices. The present invention does not limit the way to obtain the cargo inspection data set to be analyzed and the reference cargo inspection data set.

[0039] Step 102: performing cluster analysis on the cargo inspection data set to be analyzed according to each reference cargo inspection data in the reference cargo inspection data set and the level information corresponding to each reference cargo inspection data, to obtain the level information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

[0040] It should be noted that, according to each reference cargo inspection data in the reference cargo inspection data set and the level information corresponding to each reference cargo inspection data, the cargo inspection data set to be analyzed is clustered, that is, the cargo inspection data set to be analyzed is clustered by guiding each reference cargo inspection data and the level information corresponding to each reference cargo inspection data. There are many methods of cluster analysis, for example, the cargo inspection data set to be analyzed can be clustered by guiding a clustering algorithm according to each reference cargo inspection data and the corresponding level information, or a clustering rule can be determined according to each reference cargo inspection data and the corresponding level information, and then the cargo inspection data set to be analyzed is clustered according to the clustering rule, etc., wherein the clustering algorithm can adopt a K-Means clustering method, a K-Medoids clustering method or a K-Modes clustering method, etc. The present invention does not limit the method of clustering the cargo inspection data set to be analyzed according to each reference cargo inspection data in the reference cargo inspection data set and the level information corresponding to each reference cargo inspection data, and obtaining the level information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

[0041] Among them, each reference cargo inspection data in the reference cargo inspection data set and the level information corresponding to each reference cargo inspection data can be considered as a constraint seed for cluster analysis. By guiding the cluster analysis through the constraint seeds, a more accurate clustering result can be obtained.

[0042] It can be understood that the credit rating analysis method provided by the present invention can improve the accuracy of the agent credit rating assessment based on the cargo inspection data to be analyzed, and also improve the assessment efficiency by referring to the cargo inspection data set as the constraint seed to perform cluster analysis on the cargo inspection data to be analyzed corresponding to the agent in the cargo security inspection information system to complete the rating division of the agent credit. In addition, by rating the agent's credit performance, it can assist the security inspector in performing differentiated security inspection methods, and also improve the security inspection efficiency.

[0043] Exemplarily, in order to improve the accuracy of cluster analysis, the present invention can adopt the constrained seed K-Means method of semi-supervised learning. On the basis of the traditional K-Means algorithm, a small amount of labeled cargo inspection data is introduced to guide the cluster analysis to obtain a clustering effect that meets user needs.

[0044] In some embodiments, the reference cargo inspection data set may be clustered according to the corresponding grade information of each reference cargo inspection data set, and then the clustering result may be used to guide the cluster analysis of the cargo inspection data set to be analyzed.

[0045] Figure 2 Schematic diagram of the credit rating acquisition method provided by the present invention. Figure 2As shown, the cluster analysis of the cargo inspection data set to be analyzed is performed according to each reference cargo inspection data set in the reference cargo inspection data set and the level information corresponding to each reference cargo inspection data set to obtain the level information corresponding to each cargo inspection data set to be analyzed in the cargo inspection data set to be analyzed, which may include: Step 201: Clustering the reference cargo inspection data set according to the level information corresponding to each reference cargo inspection data in the reference cargo inspection data set to obtain at least two reference clusters, wherein the level information corresponding to the reference cargo inspection data included in each reference cluster of the at least two reference clusters is the same, and the category information of each reference cluster is the level information of the reference cargo inspection data included.

[0046] It should be noted that the reference cargo inspection data set may be clustered according to the level information corresponding to each reference cluster in the reference cargo inspection data set, and the level information of the reference cargo inspection data included in each cluster is the same.

[0047] For example, if the grade information includes three levels: excellent, medium, and poor, then the reference cargo inspection data set can be divided into three clusters: the reference cargo inspection data with excellent grade information constitutes a cluster with excellent category information, the reference cargo inspection data with medium grade information constitutes a cluster with medium category information, and the reference cargo inspection data with poor grade information constitutes a cluster with poor category information.

[0048] Step 202: performing cluster analysis on the cargo inspection data set to be analyzed according to the at least two reference clusters to obtain level information corresponding to each cargo inspection data to be analyzed, wherein the level information corresponding to each cargo inspection data to be analyzed is the category information of the cluster corresponding to each cargo inspection data to be analyzed.

[0049] It should be noted that there are many methods for performing cluster analysis on the cargo inspection data set to be analyzed based on the at least two reference clusters. For example, at least two reference clusters can be used as initially determined clusters, and cluster analysis can be performed using a clustering algorithm based on the at least two reference clusters. Other clusters corresponding to the cargo inspection data set to be analyzed can also be generated based on the at least two reference clusters. The present invention does not limit the method for performing cluster analysis on the cargo inspection data set to be analyzed based on the at least two reference clusters.

[0050] In addition, after the clusters corresponding to the cargo inspection data to be analyzed are determined, the level information corresponding to the cargo inspection data to be analyzed in the clusters can be determined according to the category information of the clusters corresponding to the cargo inspection data to be analyzed.

[0051] In some embodiments, cluster analysis may be performed based on the distance between each cargo inspection data to be analyzed and the cluster center.

[0052] Figure 3 FIG. 1 is a flow chart of the method for obtaining level information provided by the present invention. Figure 3As shown, performing cluster analysis on the cargo inspection data set to be analyzed according to the at least two reference clusters to obtain the level information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed may include: Step 301: According to the distance between each cargo inspection data to be analyzed and the cluster center of each reference cluster in the at least two reference clusters, each cargo inspection data to be analyzed is divided into the reference cluster corresponding to the cluster center closest to itself, so as to obtain at least two current clusters corresponding to the cargo inspection data set to be analyzed.

[0053] It should be noted that when determining to which cluster a certain cargo inspection data to be analyzed belongs, the determination may be made based on the distance between the cargo inspection data to be analyzed and the cluster center of each cluster.

[0054] The cluster center of each reference cluster may be a mass point of each reference cluster. Exemplarily, the method for calculating the cluster center may be to calculate the mean of all points in each cluster, or to calculate other statistics, wherein the mean is more commonly used. The calculated mean point may be used as the cluster center of the reference cluster.

[0055] In addition, the Euclidean distance from each cargo inspection data to be analyzed to the cluster center of each reference cluster can be calculated, and each cargo inspection data to be analyzed can be assigned to the cluster corresponding to the cluster center closest to it. For reference cargo inspection data that already have labels (level information), they can be fixed to which cluster they belong. These reference cargo inspection data with level information determine the initial cluster center of each reference cluster.

[0056] Step 302: Determine at least two target clusters corresponding to the cargo inspection data set to be analyzed based on the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster; if the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster is less than or equal to the target center threshold, determine that the at least two target clusters are the at least two current clusters.

[0057] It should be noted that after obtaining the cluster center of the reference cluster composed of reference cargo inspection data, after dividing the cargo inspection data set to be analyzed into at least two reference clusters, the at least two reference clusters are updated to at least two current clusters. The same method can be used to calculate the cluster center of each current cluster based on the reference cargo inspection data and the cargo inspection data to be analyzed in each current cluster of the at least two current clusters.

[0058] At least two target clusters corresponding to the cargo inspection data set to be analyzed are determined according to the distance between the cluster center of each current cluster and the cluster center of the corresponding reference cluster. Exemplarily, if the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster is less than or equal to the target center threshold, the at least two target clusters are determined to be the at least two current clusters. That is, when the cluster center of the current cluster does not change significantly relative to the cluster center of the reference cluster, the current cluster can be determined to be the target cluster, that is, the iterative convergence condition has been reached.

[0059] Step 303: Determine the level information corresponding to each of the cargo inspection data to be analyzed according to the category information of the target cluster corresponding to each of the cargo inspection data to be analyzed.

[0060] It should be noted that after determining the target cluster corresponding to each cargo inspection data to be analyzed, the category information of the target cluster may be used to determine the level information corresponding to all cargo inspection data to be analyzed in the target cluster.

[0061] Exemplarily, if the category information of the target cluster is excellent, the grade information corresponding to the cargo inspection data to be analyzed included in the target cluster is all excellent.

[0062] It can be understood that the cargo inspection data to be analyzed is divided into at least two reference clusters to obtain the current cluster, and at least two target clusters corresponding to the cargo inspection data set to be analyzed are determined according to whether the cluster center of the current cluster changes relative to the cluster center of the corresponding reference cluster, and then the grade information corresponding to each cargo inspection data to be analyzed in the cluster is determined according to the target cluster, so as to improve the accuracy of the agent credit grade assessment for the cargo inspection data to be analyzed.

[0063] Furthermore, determining at least two target clusters corresponding to the cargo inspection data set to be analyzed according to the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster may also include: If the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster is greater than the target center threshold, the cluster iteration step is repeatedly performed until it is determined that the distance between the cluster center of each updated cluster in the at least two updated clusters and the cluster center of the corresponding current cluster is less than or equal to the preset center threshold, or the number of repeated cluster iteration steps is greater than the preset number of iterations, the at least two updated clusters are determined to be the at least two target clusters corresponding to the cargo inspection data set to be analyzed; wherein the cluster iteration step may include: according to the distance between each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed and the cluster center of each current cluster, each cargo inspection data to be analyzed is divided into the current cluster corresponding to the cluster center closest to itself, so as to obtain at least two update clusters corresponding to the cargo inspection data set to be analyzed; when it is determined that the distance between the cluster center of each updated cluster in the at least two updated clusters and the cluster center of the corresponding current cluster is greater than the preset center threshold, the at least two updated clusters are determined to be at least two current clusters.

[0064] It should be noted that: when the distance between the cluster center of each current cluster and the cluster center of the corresponding reference cluster is greater than the target center threshold, it is necessary to recalculate the cluster center of the current cluster, and according to the new cluster center, divide the cargo inspection data set to be analyzed into corresponding clusters according to the distance from the new cluster center, and then calculate the center of the new cluster, that is, for the unlabeled cargo inspection data to be analyzed, the corresponding cluster is judged according to its distance from each cluster center, and the cluster center point closest to the unlabeled cargo inspection data to be analyzed can be selected, and each cargo inspection data to be analyzed is divided into the sub-cluster where the cluster center point is located, and then the center of each cluster is recalculated. By continuously executing the steps of calculating cluster centers, comparing cluster centers, and re-dividing the cargo inspection data to be analyzed, cluster iteration is achieved.

[0065] Whether to continue cluster iteration is determined based on whether the cluster center of the new cluster changes from the cluster center of the previous round of clusters. There are two conditions for stopping cluster iteration: one is that the distance between the cluster center of each updated cluster and the cluster center of the corresponding current cluster is less than or equal to the preset center threshold, and the other is that the number of cluster iterations is greater than the preset number of iterations. Among them, for the reference cargo inspection data that already have labels, they are fixed to which cluster they belong, and the clusters corresponding to these labeled reference cargo inspection data do not change. When judging which cluster a certain cargo inspection data to be analyzed belongs to, the distance to the cluster center can still be used to judge.

[0066] It can be understood that the method of obtaining the optimal cluster by cluster iteration can improve the accuracy of credit rating based on agent performance, thereby assisting security inspectors to perform differentiated security inspection methods and improve security inspection efficiency.

[0067] For example, the distance between each unlabeled cargo inspection data to be analyzed and the centers of the K clusters can be calculated by: denoting all clusters of all labeled reference cargo inspection data as T = {T1, T2, ..., T i ,…,T k}, for each cluster T i Find the corresponding marked reference cargo inspection data X j ={X j1 , X j2 , …, X jm , …, X jn}, where n is the number of labeled reference cargo inspection data under this category. i The initial center calculation formula is: . Use the formula to calculate the initial centers of all clusters to form a sample set C = {C T1 , C T2 , …, C Ti , …, C Tk}, the initial center sample set replaces the K random initial centers in the traditional K-Means algorithm, and then the Euclidean distance from the unlabeled cargo inspection data to each center point in this center sample set can be calculated. Select the cluster center point closest to the cargo inspection data to be analyzed, divide it into the cluster where the cluster center point is located, and then recalculate the centers of each cluster. That is, for the classification T i The data belonging to the cluster (including labeled data and unlabeled data) is used by T i The initial center calculation formula calculates the new cluster center C Ti Repeat the above steps until all cluster centers no longer change or the maximum iteration value is reached. The final cluster center, that is, the category of the cluster corresponding to the cargo inspection data to be analyzed, is the level corresponding to the agent of the cargo inspection data to be analyzed.

[0068] In some embodiments, the level information may be determined according to the values ​​of at least two cargo inspection indicators in the cargo inspection data, thereby obtaining a reference cargo inspection data set.

[0069] Figure 4 FIG. 1 is a flow chart of a method for obtaining a reference cargo inspection data set provided by the present invention. Figure 4 As shown, obtaining a reference cargo inspection data set may include: Step 401: Acquire multiple initial cargo inspection data, each of which includes values ​​of at least two cargo inspection indicators, and the at least two cargo inspection indicators include at least two of the number of security inspection items, the rate of package opening, the number of dangerous goods, package opening result data, transfer data, return data, and temporary detention data; It should be noted that, first, a plurality of initial cargo inspection data are obtained, the initial cargo inspection data are cargo inspection data without grade information being marked, wherein each initial cargo inspection data may be a series of data corresponding to a cargo inspection operation, and each initial cargo inspection data may include at least one value of at least two cargo inspection indicators, and the at least two cargo inspection indicators include at least two of the number of security inspection items, the rate of package opening, the number of dangerous goods, package opening result data, transfer data, return data, and temporary detention data; Exemplarily, the initial cargo inspection data may include the number of security inspection items, the rate of package opening, the number of dangerous goods, and the value of the package opening result.

[0070] Step 402: According to the values ​​of at least two cargo inspection indicators included in each of the multiple initial cargo inspection data, the respective initial cargo inspection data are marked with corresponding grade information to obtain the reference cargo inspection data set.

[0071] It should be noted that there are many methods for marking the corresponding grade information of each initial cargo inspection data according to the values ​​of at least two cargo inspection indicators included in each initial cargo inspection data. For example, it can be marked after manual judgment or after judgment by a software program. The present invention does not limit the method for marking the corresponding grade information of each initial cargo inspection data according to the values ​​of at least two cargo inspection indicators included in each initial cargo inspection data among the multiple initial cargo inspection data.

[0072] For example, through the business data of the cargo security information system, the data required for agent rating can be counted and analyzed. Some typical data can be marked by relevant personnel of air cargo security inspection. For example, agents with a large number of security inspection items (the agent has a large volume), a low package opening rate, a small number of dangerous goods, and good package opening results are rated as excellent; agents with a small number of security inspection items, a high package opening rate, a large number of dangerous goods, poor package opening results, and a large number of transferred, returned, and temporarily detained packages are marked as poor; in addition, some agents with medium indicators are selected and marked as medium. These marked cargo inspection data are imported into the unlabeled cargo inspection data to be analyzed for cluster analysis, and are used together as input data for semi-supervised clustering.

[0073] Furthermore, the method of marking the corresponding grade information for each of the initial cargo inspection data may be a method of automatically determining and marking the data through a software program.

[0074] Figure 5 FIG. 1 is a flow chart of a method for marking grade information on initial cargo inspection data provided by the present invention. Figure 5 As shown, the marking of the corresponding grade information for each of the multiple initial cargo inspection data according to the values ​​of at least two cargo inspection indicators included in each of the multiple initial cargo inspection data may include: Step 501: According to the values ​​of at least two cargo inspection indicators included in each of the initial cargo inspection data and the preset indicator thresholds of each cargo inspection indicator, determine the target indicator state of each of the at least two cargo inspection indicators included in each of the initial cargo inspection data, wherein the target indicator state includes being greater than the threshold, and being less than or equal to the threshold.

[0075] It should be noted that the indicator thresholds of various cargo inspection indicators can be set. For example, the threshold of the number of security inspection items can be 10 items. When the number of security inspection items in the initial cargo inspection data is less than 10 items, the indicator status is less than the threshold. The threshold of the number of dangerous goods is 1 item. When it is greater than 1 item, the indicator status is greater than the threshold.

[0076] Among them, the method for determining the target indicator state of each of the at least two cargo inspection indicators included in the each initial cargo inspection data may be automatically traversed and determined by a software program, or may be calculated by an algorithm, etc. The present invention does not limit the method for determining the target indicator state of each of the at least two cargo inspection indicators included in the each initial cargo inspection data according to the values ​​of the at least two cargo inspection indicators included in the each initial cargo inspection data and the preset indicator thresholds of each cargo inspection indicator.

[0077] Step 502: Determine and mark the level information corresponding to each of the initial cargo inspection data according to the target indicator state of each of the at least two cargo inspection indicators included in the initial cargo inspection data and the correspondence between the preset level information and the indicator state.

[0078] For example, if the grade information is excellent, the corresponding indicator status of the number of security inspection items is greater than the threshold, the status of the unpacking rate is less than the threshold, the status of the number of dangerous goods is less than the threshold, and the unpacking result is greater than the threshold, then when the indicator status corresponding to the cargo inspection index corresponding to the initial cargo inspection data matches the indicator status of the grade excellent configuration, the grade information corresponding to the initial cargo inspection data is marked as excellent.

[0079] It is understandable that marking cargo inspection data in the above manner can improve the efficiency of data marking, thereby improving the efficiency of credit rating analysis of the cargo inspection data to be analyzed.

[0080] In some embodiments, before obtaining the cargo inspection data set to be analyzed and obtaining the reference cargo inspection data set, the target grade number, that is, the total number of credit grades, which is also the number of initial clusters for cluster analysis, may be determined.

[0081] In an embodiment of the present invention, the level of credit rating represented by the level information corresponding to all reference cargo inspection data in the reference cargo inspection data set is the target level number. Before obtaining the cargo inspection data set to be analyzed and obtaining the reference cargo inspection data set, the method also includes: determining the target level number, the target level number corresponds to the target number of clusters corresponding to the optimal silhouette coefficient among multiple silhouette coefficients, the multiple silhouette coefficients are obtained by analyzing multiple clustering results corresponding to multiple cluster numbers, and the multiple clustering results corresponding to the multiple cluster numbers are obtained by clustering the target cargo inspection data set using multiple cluster numbers.

[0082] It should be noted that before obtaining the cargo inspection data set to be analyzed and the reference cargo inspection data set, the total number of credit ratings of the freight forwarder, i.e., the target number of ratings, can be determined first. The target number of ratings is also the number of target clusters for clustering. After determining the number of target clusters, the credit rating represented by the rating information corresponding to all reference cargo inspection data in the reference cargo inspection data set obtained should include each credit rating.

[0083] For example, before running the constrained seed K-Means algorithm, you can first set the number of clusters, that is, the K value, to determine how many clusters the cargo inspection data to be analyzed is divided into. The silhouette coefficient can be a method of judging the quality of the results in the algorithm. The number of clusters can include multiple clusters. After setting a cluster number K each time, calculate the corresponding silhouette coefficient S K , find the maximum value of the silhouette coefficient corresponding to multiple cluster numbers. The K value at this time is the optimal number of clusters, that is, the number of clusters, and the maximum S K It is called the optimal clustering silhouette coefficient, and the clustering result at this time is considered to be the best clustering result.

[0084] The target cargo inspection data set may be a special data set for determining a target grade number, or may be a cargo inspection data set to be analyzed, for example, may be a cargo inspection data set to be analyzed acquired last time, etc. The present invention does not limit the content of the target cargo inspection data set.

[0085] It can be understood that using the above method to determine the target grade number and then obtaining the reference cargo inspection data set based on the target grade number can improve the accuracy of obtaining the reference cargo inspection data set, thereby improving the accuracy and evaluation efficiency of the agent credit rating assessment of the cargo inspection data to be analyzed.

[0086] The following is an exemplary application of an embodiment of the present invention in a practical application scenario. The traditional K-Means algorithm is sensitive to the center of the reference cluster and has poor effect on irregular clusters, and cannot guarantee that the result is the user-specified classification. Therefore, the present invention can use the constrained seed K-Means clustering method of semi-supervised learning to rate air freight forwarders.

[0087] Figure 6 The overall flow chart of the credit rating analysis method provided by the embodiment of the present invention is as follows. Figure 6 As shown, the method includes the following steps 601 to 606: Step 601: Mark some typical cargo inspection data.

[0088] Among them, through the business data of the cargo security information system, the data required for agent rating is counted and analyzed, and some typical data are marked by relevant personnel of air cargo security inspection. For example, agents with a large number of security inspection items (the agent has a large volume), a low package opening rate, a small number of dangerous goods, and good package opening results are rated as excellent; agents with a small number of security inspection items, a high package opening rate, a large number of dangerous goods, poor package opening results, and a large number of transferred, returned, and temporarily detained packages are marked as poor; in addition, some agents with medium indicators are selected and marked as medium. These marked data are imported into the unlabeled cargo inspection data (cargo inspection data to be analyzed) for cluster analysis, and used together as the input data for semi-supervised clustering.

[0089] Step 602: Classify the marked cargo inspection data.

[0090] The total classification of all labeled cargo inspection data (reference cargo inspection data set) is denoted as T = {T1, T2, ..., T i ,…,T k}, for each category T i Find the corresponding marked cargo inspection data X j ={X j1 , X j2 , …, X jm , …, X jn}, where n is the number of labeled cargo inspection data under this category. The initial center calculation formula of Ti is: .

[0091] Use the formula to calculate the initial center of all categories to form a sample set C = {C T1 , C T2 , …, C Ti , …, C Tk}, the initial center sample set replaces the K random initial centers in the traditional K-Means algorithm, and calculates the Euclidean distance from the unlabeled cargo inspection data to each center point in this center sample set.

[0092] Step 603: Calculate the Euclidean distance between each category and the unlabeled cargo inspection data and classify them into the category corresponding to the nearest center.

[0093] Exemplarily, the center point closest to the unlabeled cargo inspection data is selected and classified into the category where the center point belongs.

[0094] Step 604: Recalculate the cluster center of each category.

[0095] For example, for the classification T i The data belonging to this category (including marked cargo inspection data and unmarked cargo inspection data) are analyzed using T i The initial center calculation formula calculates the new class center C Ti .

[0096] Step 605: Determine whether the clusters have converged. If not, repeat steps 603-604 until the centers of all current classes do not change relative to the class centers of the classes obtained in the previous round (less than or equal to the threshold), or the maximum iteration value is reached.

[0097] Step 606: Output the clustering result. The category corresponding to the final cluster center, that is, the category to which the unlabeled cargo inspection data belongs, is the credit rating of the agent corresponding to the unlabeled cargo inspection data.

[0098] The credit rating analysis method provided in the above embodiment adopts a method for evaluating the credit rating of air freight agents in a more objective and real-time manner. Using the data of the air freight security information system, the constrained seed K-Means clustering method of semi-supervised learning is used to rate air freight agents. Specifically, the security inspection data of air freight agents is analyzed using the semi-supervised constrained seed K-Means clustering algorithm, and the clustering results can effectively divide the agents into several categories. In order to demonstrate the superiority of the semi-supervised constrained seed K-Means algorithm, the present invention compares the clustering results of this algorithm with those of K-Means. The accuracy of semi-supervised constrained seed K-Means clustering is higher than that of K-Means. In addition, by rating the agents, the credit level of each agent can be intuitively obtained, thereby providing reasonable suggestions for them to reasonably arrange security inspection resources and improve efficiency. In addition, the changes in the credit level of agents can be tracked weekly, and encouragement or supervision can be given to improve, thereby providing scientific and reasonable support for the supervision of agents.

[0099] The following is an explanation of the implementation effects of the solutions of the present invention.

[0100] More than 5,300 cargo inspection data of a certain airport were obtained. After data cleaning and statistical analysis of relevant values, more than 160 agent data were obtained. The description of the aviation cargo inspection data fields is shown in Table 1. The first column in Table 1 is the name of the cargo inspection data field, the second column is the Chinese explanation of the field, and the third column is the cargo inspection data example.

[0101] Table 1 Agent cargo inspection data

[0102] Before running the constrained seed K-Means algorithm, you can first set the number of clusters, that is, the K value, to determine how many clusters the data is divided into. The silhouette coefficient can be a method of judging the quality of the results in the algorithm. After setting the number of classifications K, calculate the corresponding silhouette coefficient S K , find the maximum value. The K value at this time is the optimal number of clusters, and the maximum S K It is called the optimal clustering silhouette coefficient, and the clustering result at this time is considered to be the optimal clustering structure.

[0103] Figure 7 The figure is a schematic diagram of the relationship between the silhouette coefficient and the number of different clusters provided by the present invention. Figure 7 As shown in Figure 2, the silhouette coefficient is the largest when K=3.

[0104] Using the data of the freight security inspection system, a small amount of labeled freight inspection data was introduced, and the semi-supervised constrained seed K-Means clustering algorithm was used for cluster analysis. As a control analysis, the traditional K-Means algorithm was used for cluster analysis. In order to intuitively compare the clustering effect, three dimensions were selected for visualization: the total number of freight inspections, the number of packages opened, and the number of dangerous goods.

[0105] Figure 8 Schematic diagram of clustering results after applying K-Means algorithm provided by the present invention. Figure 8 As shown in the figure, when K=3, the K-Means algorithm will divide the agents with high dangerous goods rate and high package opening rate into two different clusters, such as the two agents marked by black circles in the figure, which obviously does not meet the actual evaluation criteria. Agents with high dangerous goods rate and high package opening rate should both be rated low.

[0106] Fig. 9 Schematic diagram of clustering results after using the constrained seed K-Means algorithm provided by the present invention. Fig. 9 As shown in the figure, from the clustering results after introducing the labeled cargo inspection data and applying the constrained seed K-Means algorithm, it can be seen that when the agent size is small, the agents with a high package opening rate and a high proportion of dangerous goods are classified as low credit ratings. This classification result is more in line with the meaning in reality.

[0107] In the embodiment provided by the present invention, the security inspection data of air cargo agents are analyzed using a semi-supervised constrained seed K-Means clustering algorithm, and the clustering results can effectively divide the agents into several categories. In order to demonstrate the superiority of the semi-supervised constrained seed K-Means algorithm, the present invention compares the clustering results of this algorithm with those of K-Means. The accuracy of semi-supervised constrained seed K-Means clustering is higher than that of K-Means. In addition, by rating the agents, the credit level of each agent can be intuitively obtained, thereby providing reasonable suggestions for the reasonable arrangement of security inspection resources and the improvement of security inspection efficiency. In addition, the changes in the credit level of agents can be tracked weekly, and encouragement or supervision can be given to improve, thereby providing scientific and reasonable support for the supervision of agents.

[0108] Based on the foregoing embodiments, an embodiment of the present invention provides a credit rating analysis device, wherein each module included in the device and each unit included in each module can be implemented by a processor; of course, they can also be implemented by a specific logic circuit; during the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0109] The credit rating analysis device provided by the present invention is described below. The credit rating analysis device described below and the credit rating analysis method described above can be referenced to each other.

[0110] Fig.10 This is a schematic diagram of the structure of the credit rating analysis device provided by an embodiment of the present invention. Fig.10 As shown, the device 700 includes a data acquisition module 701 and a data analysis module 702, wherein: The data acquisition module 701 is used to acquire a cargo inspection data set to be analyzed and a reference cargo inspection data set, wherein each reference cargo inspection data in the reference cargo inspection data set includes corresponding grade information, and the grade information is used to represent the credit grade of the freight forwarder corresponding to the reference cargo inspection data; The data analysis module 702 is used to perform cluster analysis on the cargo inspection data set to be analyzed according to each reference cargo inspection data in the reference cargo inspection data set and the level information corresponding to each reference cargo inspection data, so as to obtain the level information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

[0111] In some embodiments, the data analysis module 702 includes a data clustering unit and a data analysis unit, wherein: The data clustering unit is used to cluster the reference cargo inspection data set according to the level information corresponding to each reference cargo inspection data in the reference cargo inspection data set to obtain at least two reference clusters, wherein the level information corresponding to the reference cargo inspection data included in each reference cluster of the at least two reference clusters is the same, and the category information of each reference cluster is the level information of the reference cargo inspection data included; The data analysis unit is used to perform cluster analysis on the cargo inspection data set to be analyzed according to the at least two reference clusters to obtain level information corresponding to each cargo inspection data to be analyzed, wherein the level information corresponding to each cargo inspection data to be analyzed is the category information of the cluster corresponding to each cargo inspection data to be analyzed.

[0112] In some embodiments, the data analysis unit is specifically used to: divide each cargo inspection data to be analyzed into a reference cluster corresponding to the cluster center closest to itself according to the distance between each cargo inspection data to be analyzed and the cluster center of each reference cluster in the at least two reference clusters, so as to obtain at least two current clusters corresponding to the cargo inspection data set to be analyzed; determine at least two target clusters corresponding to the cargo inspection data set to be analyzed according to the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster, and if the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster is less than or equal to the target center threshold, determine the at least two target clusters as the at least two current clusters; determine the level information corresponding to each cargo inspection data to be analyzed according to the category information of the target cluster corresponding to each data to be analyzed in the cargo inspection data set to be analyzed.

[0113] In some embodiments, the data analysis unit is further specifically used to: if the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster is greater than the target center threshold, repeatedly perform the cluster iteration step until it is determined that the distance between the cluster center of each updated cluster in the at least two updated clusters and the cluster center of the corresponding current cluster is less than or equal to the preset center threshold, or the number of repeated executions of the cluster iteration step is greater than the preset number of iterations, determine that the at least two updated clusters are the at least two target clusters corresponding to the cargo inspection data set to be analyzed; The cluster iteration step includes: according to the distance between each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed and the cluster center of each current cluster, each cargo inspection data to be analyzed is divided into the current cluster corresponding to the cluster center closest to itself, so as to obtain at least two updated clusters corresponding to the cargo inspection data set to be analyzed; when it is determined that the distance between the cluster center of each updated cluster in the at least two updated clusters and the cluster center of the corresponding current cluster is greater than a preset distance threshold, the at least two updated clusters are determined to be at least two current clusters.

[0114] In some embodiments, the data acquisition module 701 includes a data acquisition unit and a data marking unit, wherein: The data acquisition unit is used to acquire a plurality of initial cargo inspection data, each of the plurality of initial cargo inspection data includes values ​​of at least two cargo inspection indicators, and the at least two cargo inspection indicators include at least two of the number of security inspection items, the rate of package opening, the number of dangerous goods, package opening result data, transfer data, return data and temporary detention data; The data marking unit is used to mark the corresponding level information of each initial cargo inspection data according to the values ​​of at least two cargo inspection indicators included in each initial cargo inspection data among the multiple initial cargo inspection data, so as to obtain the reference cargo inspection data set.

[0115] In some embodiments, the data marking unit is specifically used to: determine the target indicator state of each of the at least two cargo inspection indicators included in each of the initial cargo inspection data according to the values ​​of the at least two cargo inspection indicators included in each of the initial cargo inspection data and the preset indicator thresholds of each cargo inspection indicator, wherein the target indicator state includes being greater than the threshold and being less than or equal to the threshold; determine and mark the level information corresponding to each of the initial cargo inspection data according to the target indicator state of each of the at least two cargo inspection indicators included in each of the initial cargo inspection data, and the correspondence between the preset level information and the indicator state.

[0116] In some embodiments, the device also includes a level determination module, which is used to: determine a target level number, the target level number corresponds to a target number of clusters corresponding to an optimal silhouette coefficient among multiple silhouette coefficients, the multiple silhouette coefficients are obtained by analyzing multiple clustering results corresponding to multiple cluster numbers, and the multiple clustering results corresponding to multiple cluster numbers are obtained by clustering analysis of a target cargo inspection data set using multiple cluster numbers.

[0117] In an embodiment of the present invention, a method for clustering analysis of cargo inspection data to be analyzed based on cargo inspection data with grade information marked in a reference cargo inspection data set can improve the accuracy and efficiency of agent credit grade evaluation of the cargo inspection data to be analyzed.

[0118] Fig.11 Schematic diagram of the physical structure of the electronic device provided by the present invention. Fig.11As shown, the electronic device may include: a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802 and the memory 803 communicate with each other through the communication bus 804. The processor 801 may call the logic instructions in the memory 803 to execute the credit rating analysis method, which includes: obtaining a cargo inspection data set to be analyzed and obtaining a reference cargo inspection data set, wherein each reference cargo inspection data in the reference cargo inspection data set includes corresponding rating information, and the rating information is used to characterize the credit rating of the freight forwarder corresponding to the reference cargo inspection data; and performing cluster analysis on the cargo inspection data set to be analyzed according to each reference cargo inspection data in the reference cargo inspection data set and the rating information corresponding to each reference cargo inspection data, to obtain the rating information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

[0119] In addition, the logic instructions in the above-mentioned memory 803 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk.

[0120] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the credit rating analysis method provided by the above-mentioned methods, and the method includes: obtaining a cargo inspection data set to be analyzed and obtaining a reference cargo inspection data set, each reference cargo inspection data in the reference cargo inspection data set including corresponding rating information, and the rating information is used to characterize the credit rating of the freight forwarder corresponding to the reference cargo inspection data; performing a cluster analysis on the cargo inspection data set to be analyzed according to each reference cargo inspection data in the reference cargo inspection data set and the rating information corresponding to each reference cargo inspection data, to obtain the rating information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

[0121] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0122] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the credit rating analysis method provided by the above-mentioned methods, the method comprising: obtaining a cargo inspection data set to be analyzed and obtaining a reference cargo inspection data set, wherein each reference cargo inspection data in the reference cargo inspection data set includes corresponding rating information, and the rating information is used to characterize the credit rating of the freight forwarder corresponding to the reference cargo inspection data; performing a cluster analysis on the cargo inspection data set to be analyzed based on each reference cargo inspection data in the reference cargo inspection data set and the rating information corresponding to each reference cargo inspection data, to obtain the rating information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

[0123] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, 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 above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0124] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0125] The program code embodied on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

[0126] Computer program code for performing the operations of the present specification may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0127] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A credit rating analysis method, characterized in that: include: Acquire a cargo inspection data set to be analyzed and obtain a reference cargo inspection data set, wherein each reference cargo inspection data in the reference cargo inspection data set includes corresponding grade information, and the grade information is used to represent the credit grade of the freight forwarder corresponding to the reference cargo inspection data; According to each reference cargo inspection data in the reference cargo inspection data set and the grade information corresponding to each reference cargo inspection data set, cluster analysis is performed on the cargo inspection data set to be analyzed to obtain the grade information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

2. The credit rating analysis method according to claim 1, characterized in that: The step of performing cluster analysis on the cargo inspection data set to be analyzed according to each reference cargo inspection data set in the reference cargo inspection data set and the level information corresponding to each reference cargo inspection data set to obtain the level information corresponding to each cargo inspection data set to be analyzed in the cargo inspection data set to be analyzed includes: Clustering the reference cargo inspection data set according to the level information corresponding to each reference cargo inspection data in the reference cargo inspection data set to obtain at least two reference clusters, wherein the level information corresponding to the reference cargo inspection data included in each reference cluster of the at least two reference clusters is the same, and the category information of each reference cluster is the level information of the reference cargo inspection data included; Cluster analysis is performed on the cargo inspection data set to be analyzed according to the at least two reference clusters to obtain level information corresponding to each cargo inspection data to be analyzed, where the level information corresponding to each cargo inspection data to be analyzed is category information of the cluster corresponding to each cargo inspection data to be analyzed.

3. The credit rating analysis method according to claim 2, characterized in that: The step of performing cluster analysis on the cargo inspection data set to be analyzed according to the at least two reference clusters to obtain level information corresponding to each cargo inspection data set to be analyzed includes: According to the distance between each cargo inspection data to be analyzed and the cluster center of each reference cluster in the at least two reference clusters, each cargo inspection data to be analyzed is divided into the reference cluster corresponding to the cluster center closest to the data, so as to obtain at least two current clusters corresponding to the cargo inspection data set to be analyzed; Determine at least two target clusters corresponding to the cargo inspection data set to be analyzed according to the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster, and if the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster is less than or equal to the target center threshold, determine that the at least two target clusters are the at least two current clusters; According to the category information of the target cluster corresponding to each data to be analyzed in the cargo inspection data set to be analyzed, the level information corresponding to each data to be analyzed is determined.

4. The credit rating analysis method according to claim 3, characterized in that: The determining, according to the distance between the cluster center of each current cluster in the at least two current clusters and the cluster center of the corresponding reference cluster, at least two target clusters corresponding to the cargo inspection data set to be analyzed includes: If the distance between the cluster center of each of the at least two current clusters and the cluster center of the corresponding reference cluster is greater than the target center threshold, the cluster iteration step is repeatedly performed until it is determined that the distance between the cluster center of each of the at least two updated clusters and the cluster center of the corresponding current cluster is less than or equal to the preset center threshold, or the number of repeated cluster iteration steps is greater than the preset number of iterations, the at least two updated clusters are determined to be the at least two target clusters corresponding to the cargo inspection data set to be analyzed; The cluster iteration step comprises: According to the distance between each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed and the cluster center of each current cluster, each cargo inspection data to be analyzed is divided into the current cluster corresponding to the cluster center closest to itself, so as to obtain at least two updated clusters corresponding to the cargo inspection data set to be analyzed; When it is determined that the distance between the cluster center of each of the at least two update clusters and the cluster center of the corresponding current cluster is greater than a preset distance threshold, the at least two update clusters are determined to be at least two current clusters.

5. The credit rating analysis method according to claim 1, characterized in that: The obtaining of a reference cargo inspection data set includes: Acquire a plurality of initial cargo inspection data, each of the plurality of initial cargo inspection data comprising values ​​of at least two cargo inspection indicators, the at least two cargo inspection indicators comprising at least two of the number of security inspection items, the rate of package opening, the number of dangerous goods, package opening result data, transfer data, return data, and temporary detention data; According to the values ​​of at least two cargo inspection indicators included in each of the multiple initial cargo inspection data, the respective initial cargo inspection data are marked with corresponding grade information to obtain the reference cargo inspection data set.

6. The credit rating analysis method according to claim 5, characterized in that: The step of marking each of the plurality of initial cargo inspection data with corresponding grade information according to the values ​​of at least two cargo inspection indicators included in each of the plurality of initial cargo inspection data comprises: Determine, according to the values ​​of at least two cargo inspection indicators included in each of the initial cargo inspection data and the preset indicator thresholds of each cargo inspection indicator, a target indicator state of each of the at least two cargo inspection indicators included in each of the initial cargo inspection data, wherein the target indicator state includes being greater than the threshold, and being less than or equal to the threshold; According to the target indicator state of each cargo inspection indicator among at least two cargo inspection indicators included in each initial cargo inspection data, and the corresponding relationship between the preset level information and the indicator state, the level information corresponding to each initial cargo inspection data is determined and marked.

7. The credit rating analysis method according to claim 1, characterized in that: The number of credit levels represented by the level information corresponding to all reference cargo inspection data in the reference cargo inspection data set is the target level number. Before obtaining the cargo inspection data set to be analyzed and obtaining the reference cargo inspection data set, the method further includes: Determine a target level number, the target level number corresponds to a target cluster number corresponding to an optimal silhouette coefficient among a plurality of silhouette coefficients, the plurality of silhouette coefficients are obtained by analyzing a plurality of clustering results corresponding to a plurality of cluster numbers, the plurality of clustering results corresponding to a plurality of cluster numbers are obtained by clustering a target cargo inspection data set using a plurality of cluster numbers.

8. A credit rating analysis device, characterized in that: include: A data acquisition module, used to acquire a cargo inspection data set to be analyzed and a reference cargo inspection data set, wherein each reference cargo inspection data in the reference cargo inspection data set includes corresponding grade information, and the grade information is used to represent the credit grade of the freight forwarder corresponding to the reference cargo inspection data; The data analysis module is used to perform cluster analysis on the cargo inspection data set to be analyzed according to each reference cargo inspection data in the reference cargo inspection data set and the grade information corresponding to each reference cargo inspection data, so as to obtain the grade information corresponding to each cargo inspection data to be analyzed in the cargo inspection data set to be analyzed.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the credit rating analysis method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the credit rating analysis method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Transportation unit credit rating method and system, electronic equipment and storage medium

    CN112418987A

  • Credit rating evaluation method and device, electronic equipment and storage medium

    CN114493853A

  • Credit evaluation method and device, electronic equipment and storage medium

    CN117726426A

  • Credit Rating Method and System

    KR101928290B1

  • System and method for credit assessment

    US20210224901A1

Cited By

  • Sample quantitative analysis method based on spectral analysis and related device

    CN119296686A