CN114462925A - Inventory abnormal asset identification method and device and terminal equipment - Google Patents

Inventory abnormal asset identification method and device and terminal equipment Download PDF

Info

Publication number
CN114462925A
CN114462925A CN202111675538.9A CN202111675538A CN114462925A CN 114462925 A CN114462925 A CN 114462925A CN 202111675538 A CN202111675538 A CN 202111675538A CN 114462925 A CN114462925 A CN 114462925A
Authority
CN
China
Prior art keywords
asset
circulation
trajectory
target
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111675538.9A
Other languages
Chinese (zh)
Other versions
CN114462925B (en
Inventor
李兵
王浩
李翀
王锦腾
贾永良
韩桂楠
蔺静
王洋
刘侠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Marketing Service Center of State Grid Hebei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Marketing Service Center of State Grid Hebei Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Marketing Service Center of State Grid Hebei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202111675538.9A priority Critical patent/CN114462925B/en
Publication of CN114462925A publication Critical patent/CN114462925A/en
Application granted granted Critical
Publication of CN114462925B publication Critical patent/CN114462925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Quality & Reliability (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an inventory abnormal asset identification method, an inventory abnormal asset identification device and terminal equipment, wherein the method comprises the following steps: acquiring a circulation track and attribute data of a target asset; calculating asset abnormal probability corresponding to the asset circulation track, extracting characteristic values corresponding to target asset characteristics from the attribute data, and generating characteristic vectors corresponding to target assets on the basis of the asset abnormal probability and the characteristic values corresponding to the target asset characteristics; and inputting the characteristic vector into a preset abnormal asset identification model, and determining an inventory abnormal identification result of the target asset. The method, the device and the terminal equipment for identifying the abnormal inventory assets can improve the efficiency and the accuracy of identifying the abnormal inventory assets.

Description

库存异常资产识别方法、装置及终端设备Inventory abnormal asset identification method, device and terminal equipment

技术领域technical field

本发明属于库存异常资产识别技术领域,更具体地说,是涉及一种库存异常资产识别方法、装置及终端设备。The invention belongs to the technical field of inventory abnormal asset identification, and more particularly relates to a method, device and terminal equipment for inventory abnormal asset identification.

背景技术Background technique

在网省级公司日常资产运营管理中发现,计量资产账卡物不一致的现象时有发生,如库存资产的单位和状态不符。计量资产本身具有数量多,位置分散、处理环节复杂等特点。目前,管理人员通常使用现场核查、业务稽查等传统库房盘点方法进行库存资产预测,工作量大,导致库存异常资产的识别效率较低。In the daily asset operation management of the provincial-level company of the Internet, it is found that the phenomenon of inconsistency in the measurement of assets and accounts, such as the unit and status of the inventory assets, is inconsistent. The measurement assets themselves have the characteristics of a large number, scattered locations, and complex processing links. At present, managers usually use traditional warehouse inventory methods such as on-site inspection and business inspection to predict inventory assets, which results in a large workload and low efficiency in identifying abnormal inventory assets.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种库存异常资产识别方法、装置及终端设备,以解决现有技术中库存异常资产的识别效率较低的技术问题。The purpose of the present invention is to provide a method, device and terminal equipment for identifying abnormal inventory assets, so as to solve the technical problem of low identification efficiency of inventory abnormal assets in the prior art.

本发明实施例的第一方面,提供了一种库存异常资产识别方法,包括:A first aspect of the embodiments of the present invention provides a method for identifying abnormal inventory assets, including:

获取目标资产的流转轨迹及属性数据;Obtain the circulation trajectory and attribute data of the target asset;

计算所述资产流转轨迹对应的资产异常概率,从所述属性数据中提取各个目标资产特征对应的特征值,基于所述资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量;Calculate the asset abnormality probability corresponding to the asset circulation trajectory, extract the feature value corresponding to each target asset feature from the attribute data, and generate a feature vector corresponding to the target asset based on the asset abnormality probability and the feature value corresponding to each target asset feature ;

将所述特征向量输入至预设的异常资产识别模型中,确定目标资产的库存异常识别结果。The feature vector is input into a preset abnormal asset identification model to determine the abnormal inventory identification result of the target asset.

在一种可能的实现方式中,所述计算所述资产流转轨迹对应的资产异常概率,包括:In a possible implementation manner, the calculating the asset abnormality probability corresponding to the asset circulation trajectory includes:

判断所述资产流转轨迹是否与预设数据库中的历史资产流转轨迹匹配;judging whether the asset circulation trajectory matches the historical asset circulation trajectory in the preset database;

若存在某历史流转轨迹与所述资产流转轨迹匹配,则将该历史流转轨迹对应的资产异常概率作为所述资产流转轨迹对应的资产异常概率;If there is a certain historical circulation trajectory that matches the asset circulation trajectory, the asset abnormality probability corresponding to the historical circulation trajectory is used as the asset abnormality probability corresponding to the asset circulation trajectory;

若预设数据库中不存在与所述资产流转轨迹匹配的历史资产流转轨迹,则将所述资产流转轨迹输入至预设的轨迹检测模型中,得到所述资产流转轨迹对应的资产异常概率。If there is no historical asset circulation trajectory matching the asset circulation trajectory in the preset database, the asset circulation trajectory is input into the preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory.

在一种可能的实现方式中,在将所述资产流转轨迹输入至预设的轨迹检测模型中之前,所述库存异常资产识别方法还包括:In a possible implementation manner, before inputting the asset circulation trajectory into a preset trajectory detection model, the method for identifying abnormal assets in inventory further includes:

提取所述资产流转轨迹中的各个流转节点以及各个流转节点对应的流转时间,基于各个流转节点以及各个流转节点对应的流转时间生成特征序列;Extracting each circulation node in the asset circulation trajectory and the circulation time corresponding to each circulation node, and generating a feature sequence based on each circulation node and the circulation time corresponding to each circulation node;

相应的,将所述资产流转轨迹输入至预设的轨迹检测模型中,得到所述资产流转轨迹对应的资产异常概率,包括:Correspondingly, the asset circulation trajectory is input into a preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory, including:

将所述特征序列输入至预设的轨迹检测模型中,得到所述资产流转轨迹对应的资产异常概率。Inputting the feature sequence into a preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory.

在一种可能的实现方式中,所述基于各个流转节点以及各个流转节点对应的流转时间生成特征序列,包括:In a possible implementation manner, the generating a feature sequence based on each flow node and the flow time corresponding to each flow node includes:

将各个流转节点以不同的值表示;Represent each flow node with different values;

获取值为空的预设时间序列,在预设时间序列中的某个时刻,基于各个流转节点的流转时间判断目标资产在该时刻所在的流转节点,并将目标资产在该时刻所在的流转节点的值作为该时刻的对应值;A preset time series with an empty value is obtained. At a certain moment in the preset time series, the circulation node where the target asset is located at that moment is determined based on the circulation time of each circulation node, and the circulation node where the target asset is located at that moment is determined. The value of is used as the corresponding value at this moment;

确定预设时间序列内各个时刻的对应值,将确定所有时刻对应值的预设时间序列作为特征序列。The corresponding values of each moment in the preset time series are determined, and the preset time series of the corresponding values of all the moments is determined as the characteristic sequence.

在一种可能的实现方式中,所述基于所述资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量,包括:In a possible implementation manner, generating a feature vector corresponding to the target asset based on the asset abnormality probability and the feature value corresponding to each target asset feature includes:

基于所述资产异常概率生成一个特征向量,记为第一特征向量;基于各个目标资产特征对应的特征值生成一个特征向量,记为第二特征向量;合成所述第一特征向量和所述第二特征向量,得到目标资产对应的特征向量。Generate a eigenvector based on the asset abnormality probability, denoted as the first eigenvector; generate a eigenvector based on the eigenvalues corresponding to the characteristics of each target asset, denoted as the second eigenvector; synthesize the first eigenvector and the first eigenvector Two eigenvectors to obtain the eigenvectors corresponding to the target asset.

在一种可能的实现方式中,各个目标资产特征的确定方法为:In a possible implementation manner, the method for determining the characteristics of each target asset is:

获取目标资产的所有资产特征,对所述所有资产特征进行主成分分析,得到目标资产的目标资产特征。All asset characteristics of the target asset are acquired, and principal component analysis is performed on all the asset characteristics to obtain the target asset characteristics of the target asset.

在一种可能的实现方式中,所述异常资产识别模型为XGBoost模型。In a possible implementation manner, the abnormal asset identification model is an XGBoost model.

本发明实施例的第二方面,提供了一种库存异常资产识别装置,包括:In a second aspect of the embodiments of the present invention, a device for identifying abnormal inventory assets is provided, including:

数据获取模块,用于获取目标资产的流转轨迹及属性数据;The data acquisition module is used to acquire the circulation trajectory and attribute data of the target asset;

特征提取模块,用于计算所述资产流转轨迹对应的资产异常概率,从所述属性数据中提取各个目标资产特征对应的特征值,基于所述资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量;The feature extraction module is used to calculate the asset abnormality probability corresponding to the asset circulation trajectory, extract the feature value corresponding to each target asset feature from the attribute data, and generate the feature value based on the asset abnormality probability and the feature value corresponding to each target asset feature The feature vector corresponding to the target asset;

状态识别模块,用于将所述特征向量输入至预设的异常资产识别模型中,确定目标资产的库存异常识别结果。The state identification module is used for inputting the feature vector into a preset abnormal asset identification model to determine the abnormal inventory identification result of the target asset.

本发明实施例的第三方面,提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的库存异常资产识别方法的步骤。In a third aspect of the embodiments of the present invention, a terminal device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program When implementing the steps of the above-mentioned method for identifying abnormal inventory assets.

本发明实施例的第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述的库存异常资产识别方法的步骤。In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for identifying abnormal inventory assets are implemented .

本发明实施例提供的库存异常资产识别方法、装置及终端设备的有益效果在于:The beneficial effects of the method, device and terminal equipment for identifying abnormal inventory assets provided by the embodiments of the present invention are:

区别于现有技术中人工核查的方案,本发明提供了一种基于大数据的库存异常资产识别方法,可实现自动化核查,提高了库存异常资产识别的效率。具体的,本发明综合考虑了目标资产的资产流转轨迹以及属性数据,在此过程中,考虑到资产流转轨迹的不确定性(轨迹长度不确定,轨迹本身具有随机性),本发明根据资产流转轨迹确定了资产异常概率,也即将资产流转轨迹转换为了资产异常概率,将资产流转轨迹以资产异常概率的形式加入特征向量,实现了资产流转轨迹以及属性数据的综合考量,从而在提高库存异常资产识别效率的基础上实现了异常资产识别准确度的提升。Different from the manual verification scheme in the prior art, the present invention provides a method for identifying abnormal inventory assets based on big data, which can realize automatic verification and improve the efficiency of identifying abnormal inventory assets. Specifically, the present invention comprehensively considers the asset circulation trajectory and attribute data of the target asset. In this process, considering the uncertainty of the asset circulation trajectory (the trajectory length is uncertain, and the trajectory itself has randomness), the present invention is based on the asset circulation. The trajectory determines the asset abnormal probability, that is, the asset circulation trajectory is converted into the asset abnormal probability, and the asset circulation trajectory is added to the feature vector in the form of the asset abnormal probability, which realizes the comprehensive consideration of the asset circulation trajectory and attribute data, thus improving the inventory of abnormal assets Based on the identification efficiency, the identification accuracy of abnormal assets is improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present invention. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明一实施例提供的库存异常资产识别方法的流程示意图;1 is a schematic flowchart of a method for identifying abnormal inventory assets provided by an embodiment of the present invention;

图2为本发明一实施例提供的库存异常资产识别装置的结构框图;2 is a structural block diagram of a device for identifying abnormal inventory assets provided by an embodiment of the present invention;

图3为本发明一实施例提供的终端设备的示意框图。FIG. 3 is a schematic block diagram of a terminal device according to an embodiment of the present invention.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are set forth in order to provide a thorough understanding of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图通过具体实施例来进行说明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the following descriptions will be given through specific embodiments in conjunction with the accompanying drawings.

请参考图1,图1为本发明一实施例提供的库存异常资产识别方法的流程示意图,该方法包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for identifying abnormal inventory assets provided by an embodiment of the present invention. The method includes:

S101:获取目标资产的流转轨迹及属性数据。S101: Obtain the circulation track and attribute data of the target asset.

在本实施例中,可从电网内计量中心生产调度平台MDS系统以及营销系统直接采集目标资产的流转轨迹以及属性数据。其中,目标资产的属性数据包括但不限于目标资产的设备标识、所在单位、设备类别、规格、接线方式、电压、标定电流、有功准确度等级、建档日期等。目标资产的流转轨迹可以包括各次检定日期、各次装表日期、各次拆表日期、装拆次数、报废日期等。In this embodiment, the flow trajectory and attribute data of the target asset can be directly collected from the production scheduling platform MDS system and the marketing system of the metering center in the power grid. Among them, the attribute data of the target asset includes but is not limited to the equipment identification of the target asset, the unit where it is located, the equipment category, the specification, the wiring method, the voltage, the calibration current, the active power accuracy level, the filing date, etc. The circulation track of the target asset may include the date of each verification, the date of each meter installation, the date of each meter disassembly, the number of times of installation and disassembly, and the date of scrapping.

S102:计算资产流转轨迹对应的资产异常概率,从属性数据中提取各个目标资产特征对应的特征值,基于资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量。S102: Calculate the asset abnormality probability corresponding to the asset circulation trajectory, extract the feature value corresponding to each target asset feature from the attribute data, and generate a feature vector corresponding to the target asset based on the asset abnormality probability and the feature value corresponding to each target asset feature.

资产流转轨迹相同,意味着目标资产的使用环境相同,考虑到目标资产库存出现异常时,同一应用批次或同一使用环境下资产出现同样问题的概率较高,本发明实施例将资产流转轨迹作为识别特征的一部分,以提高库存异常资产的识别准确度。The asset circulation trajectory is the same, which means the use environment of the target asset is the same. Considering that when the target asset inventory is abnormal, the probability of the same problem occurring in the same application batch or in the same use environment is high. In this embodiment of the present invention, the asset circulation trajectory is used as the Part of the identification feature to improve the identification accuracy of anomalous assets in inventory.

考虑到资产流转轨迹的轨迹长度和轨迹本身具有随机性,本实施例在基于资产流转轨迹进行库存异常资产的识别时,不便根据资产流转轨迹直接生成目标资产对应的特征向量。并且,虽然资产流转轨迹具有随机性,但是鉴于目标资产的数量巨大,资产流转轨迹的重合度很高,在此基础上,每次都将整个资产流转轨迹作为特征向量去运算会消耗很多不必要的计算资源。因此,本发明实施例首先计算资产流转轨迹对应的资产异常概率,也即将资产异常概率作为资产流转轨迹的表征量加入目标资产特征向量的计算中,从而综合考虑目标资产的属性信息以及资产流转轨迹。其中,资产流转轨迹对应的资产异常概率指的是以资产流转轨迹为目标资产库存异常的影响参数,在此影响参数基础上计算得到的目标资产的库存异常概率。Considering the randomness of the trajectory length and the trajectory of the asset circulation trajectory, in this embodiment, when identifying abnormal assets in inventory based on the asset circulation trajectory, it is inconvenient to directly generate a feature vector corresponding to the target asset according to the asset circulation trajectory. Moreover, although the asset circulation trajectory is random, in view of the huge number of target assets and the high degree of coincidence of asset circulation trajectories, on this basis, using the entire asset circulation trajectory as a feature vector to calculate every time will consume a lot of unnecessary. computing resources. Therefore, the embodiment of the present invention first calculates the asset abnormality probability corresponding to the asset circulation trajectory, that is, the asset abnormality probability is added to the calculation of the target asset feature vector as the characterization quantity of the asset circulation trajectory, so as to comprehensively consider the attribute information of the target asset and the asset circulation trajectory. . Among them, the asset abnormality probability corresponding to the asset circulation trajectory refers to the abnormality probability of the target asset's inventory calculated on the basis of the asset circulation trajectory as the influence parameter of the target asset inventory abnormality.

S103:将特征向量输入至预设的异常资产识别模型中,确定目标资产的库存异常识别结果。S103: Input the feature vector into the preset abnormal asset identification model, and determine the abnormal inventory identification result of the target asset.

在本实施例中,目标资产的库存异常识别结果即为目标资产的库存异常、目标资产的库存正常。其中,目标资产的库存异常表示目标资产的库存信息存在错误,比如目标资产已丢失、目标资产库存位置错误、目标资产的使用状态错误等。其中,目标资产可以为电能表、断路器等。In this embodiment, the abnormal inventory identification result of the target asset is that the inventory of the target asset is abnormal and the inventory of the target asset is normal. The abnormal inventory of the target asset indicates that there is an error in the inventory information of the target asset, such as the target asset has been lost, the inventory location of the target asset is wrong, and the use state of the target asset is wrong. Among them, the target assets can be electric energy meters, circuit breakers, etc.

在本实施例一种可能的实现方式中,异常资产识别模型可以为XGBoost模型。XGBoost模型先从初始训练集中训练出一个基学习器,再根据基学习器表现对训练样本分布进行调整,使得先前分错样本在后续受到更多关注,然后基于调整后的样本分布训练下一个基学习器,对准确度较高的基学习器给予较高的权重。如此重复进行,直至基学习器数目达到事先指定的值。其结合目标是通过学习器的组合来最小化指数损失函数。XGBoost在代价函数里加入了叶子节点权重和树的深度等正则项,一方面可以控制模型的复杂度,另一方面可以防止过拟合。同时,它对代价函数使用二阶泰勒展开近似,使得目标函数近似优化更接近实际值,从而提高预测精度。XGBoost收敛效果好,过程稳健,计算速度快,对实际问题的解决能力强,因此本实施例采用XGBoost模型进行库存异常资产的识别。In a possible implementation manner of this embodiment, the abnormal asset identification model may be an XGBoost model. The XGBoost model first trains a base learner from the initial training set, and then adjusts the training sample distribution according to the performance of the base learner, so that the previously misclassified samples will receive more attention in the follow-up, and then train the next base learner based on the adjusted sample distribution. Learner, giving higher weight to base learners with higher accuracy. This is repeated until the number of base learners reaches a pre-specified value. The combined goal is to minimize the exponential loss function through a combination of learners. XGBoost adds regular terms such as leaf node weights and tree depths to the cost function, which can control the complexity of the model on the one hand, and prevent overfitting on the other hand. At the same time, it uses the second-order Taylor expansion approximation to the cost function, which makes the approximate optimization of the objective function closer to the actual value, thereby improving the prediction accuracy. XGBoost has good convergence effect, stable process, fast calculation speed, and strong ability to solve practical problems. Therefore, the XGBoost model is used in this embodiment to identify abnormal inventory assets.

由上可以得出,区别于现有技术中人工核查的方案,本发明实施例提供了一种基于大数据的库存异常资产识别方法,可实现自动化核查,提高了库存异常资产识别的效率。具体的,本发明实施例综合考虑了目标资产的资产流转轨迹以及属性数据,在此过程中,考虑到资产流转轨迹的不确定性(轨迹长度不确定,轨迹本身具有随机性),本发明实施例根据资产流转轨迹确定了资产异常概率,也即将资产流转轨迹转换为了资产异常概率,将资产流转轨迹以资产异常概率的形式加入特征向量,实现了资产流转轨迹以及属性数据的综合考量,从而在提高库存异常资产识别效率的基础上实现了异常资产识别准确度的提升。It can be concluded from the above that, different from the manual verification scheme in the prior art, the embodiment of the present invention provides a method for identifying abnormal inventory assets based on big data, which can realize automatic verification and improve the efficiency of identifying abnormal inventory assets. Specifically, the embodiment of the present invention comprehensively considers the asset circulation trajectory and attribute data of the target asset. In this process, considering the uncertainty of the asset circulation trajectory (the trajectory length is uncertain, and the trajectory itself has randomness), the present invention implements For example, the asset abnormality probability is determined according to the asset circulation trajectory, that is, the asset circulation trajectory is converted into the asset abnormality probability, and the asset circulation trajectory is added to the feature vector in the form of the asset abnormality probability, which realizes the comprehensive consideration of the asset circulation trajectory and attribute data. On the basis of improving the efficiency of identifying abnormal assets in inventory, the accuracy of identifying abnormal assets is improved.

在一种可能的实现方式中,计算资产流转轨迹对应的资产异常概率,包括:In a possible implementation, calculating the asset anomaly probability corresponding to the asset circulation trajectory, including:

判断资产流转轨迹是否与预设数据库中的历史资产流转轨迹匹配。Determine whether the asset circulation trajectory matches the historical asset circulation trajectory in the preset database.

若存在某历史流转轨迹与资产流转轨迹匹配,则将该历史流转轨迹对应的资产异常概率作为资产流转轨迹对应的资产异常概率。If there is a certain historical circulation trajectory that matches the asset circulation trajectory, the asset abnormality probability corresponding to the historical circulation trajectory is used as the asset abnormality probability corresponding to the asset circulation trajectory.

若预设数据库中不存在与资产流转轨迹匹配的历史资产流转轨迹,则将资产流转轨迹输入至预设的轨迹检测模型中,得到资产流转轨迹对应的资产异常概率。If there is no historical asset circulation trajectory matching the asset circulation trajectory in the preset database, input the asset circulation trajectory into the preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory.

在本实施例中,判断资产流转轨迹是否与预设数据库中的历史资产流转轨迹匹配就是检测预设数据库中是否存在与目标资产的资产流转轨迹相同的历史资产流转轨迹,若存在与目标资产的资产流转轨迹相同的历史资产流转轨迹,则说明存在历史流转轨迹与资产流转轨迹匹配。若不存在与目标资产的资产流转轨迹相同的历史资产流转轨迹,则说明不存在历史流转轨迹与资产流转轨迹匹配。In this embodiment, judging whether the asset circulation trajectory matches the historical asset circulation trajectory in the preset database is to detect whether there is a historical asset circulation trajectory in the preset database that is the same as the asset circulation trajectory of the target asset. If the asset circulation trajectory is the same as the historical asset circulation trajectory, it means that there is a match between the historical circulation trajectory and the asset circulation trajectory. If there is no historical asset circulation trajectory that is the same as the asset circulation trajectory of the target asset, it means that there is no historical circulation trajectory matching the asset circulation trajectory.

在本实施例中,预设的轨迹检测模型可以为预先训练得到的神经网络模型,该神经网络模型以资产流转轨迹为输入,以资产异常概率为输出。In this embodiment, the preset trajectory detection model may be a neural network model obtained by pre-training, and the neural network model takes the asset circulation trajectory as an input and takes the asset abnormality probability as an output.

在一种可能的实现方式中,在将资产流转轨迹输入至预设的轨迹检测模型中之前,库存异常资产识别方法还包括:In a possible implementation manner, before the asset circulation trajectory is input into the preset trajectory detection model, the method for identifying abnormal assets in inventory further includes:

提取资产流转轨迹中的各个流转节点以及各个流转节点对应的流转时间,基于各个流转节点以及各个流转节点对应的流转时间生成特征序列。Extract each transfer node and the corresponding transfer time of each transfer node in the asset transfer trajectory, and generate a feature sequence based on each transfer node and the corresponding transfer time of each transfer node.

相应的,将资产流转轨迹输入至预设的轨迹检测模型中,得到资产流转轨迹对应的资产异常概率,包括:Correspondingly, input the asset circulation trajectory into the preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory, including:

将特征序列输入至预设的轨迹检测模型中,得到资产流转轨迹对应的资产异常概率。Input the feature sequence into the preset trajectory detection model to obtain the asset anomaly probability corresponding to the asset circulation trajectory.

在本实施例中,所生成的特征序列的长度是固定的,其中,资产流转轨迹长度较短、生成特征序列时,不够的轨迹长度部分用“0”补足。In this embodiment, the length of the generated feature sequence is fixed, wherein the asset circulation track has a shorter length, and when the feature sequence is generated, the part of the insufficient track length is supplemented with "0".

在一种可能的实现方式中,基于各个流转节点以及各个流转节点对应的流转时间生成特征序列,包括:In a possible implementation manner, a feature sequence is generated based on each flow node and the flow time corresponding to each flow node, including:

将各个流转节点以不同的值表示。Each flow node is represented by a different value.

获取值为空的预设时间序列,在预设时间序列中的某个时刻,基于各个流转节点的流转时间判断目标资产在该时刻所在的流转节点,并将目标资产在该时刻所在的流转节点的值作为该时刻的对应值。A preset time series with an empty value is obtained. At a certain moment in the preset time series, the circulation node where the target asset is located at that moment is determined based on the circulation time of each circulation node, and the circulation node where the target asset is located at that moment is determined. value as the corresponding value at this moment.

确定预设时间序列内各个时刻的对应值,将确定所有时刻对应值的预设时间序列作为特征序列。The corresponding values of each moment in the preset time series are determined, and the preset time series of the corresponding values of all the moments is determined as the characteristic sequence.

在本实施例中,特征序列表示的是目标资产在各个预设时刻所在的流转节点。例如,流转节点为a、b、c,第一时刻目标资产在a,第三时刻由a流转到b,第七时刻由b流转到c,预设时间序列包含十个时刻,则本例对应的特征序列为[aabbbbcccc]。In this embodiment, the feature sequence represents the flow node where the target asset is located at each preset moment. For example, the transfer nodes are a, b, c, the target asset is at a at the first moment, the flow from a to b at the third moment, and the flow from b to c at the seventh moment, the preset time series contains ten moments, then this example corresponds to The feature sequence of is [aabbbbcccc].

在一种可能的实现方式中,基于资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量,包括:In a possible implementation manner, a feature vector corresponding to the target asset is generated based on the abnormal probability of the asset and the feature value corresponding to each target asset feature, including:

基于资产异常概率生成一个特征向量,记为第一特征向量。基于各个目标资产特征对应的特征值生成一个特征向量,记为第二特征向量。合成第一特征向量和第二特征向量,得到目标资产对应的特征向量。A feature vector is generated based on the asset abnormality probability, which is recorded as the first feature vector. A eigenvector is generated based on the eigenvalues corresponding to each target asset feature, which is recorded as the second eigenvector. Synthesize the first feature vector and the second feature vector to obtain the feature vector corresponding to the target asset.

在本实施例中,可直接将资产异常概率作为一个特征值生成特征向量,基于各个目标资产特征对应的特征值生成特征向量,最后合成特征向量得到目标资产对应的特征向量。In this embodiment, a feature vector can be generated directly by using the asset abnormality probability as a feature value, a feature vector can be generated based on the feature values corresponding to each target asset feature, and finally the feature vector corresponding to the target asset can be obtained by synthesizing the feature vector.

在一种可能的实现方式中,各个目标资产特征的确定方法为:In a possible implementation manner, the method for determining the characteristics of each target asset is:

获取目标资产的所有资产特征,对所有资产特征进行主成分分析,得到目标资产的目标资产特征。Obtain all asset characteristics of the target asset, perform principal component analysis on all asset characteristics, and obtain the target asset characteristics of the target asset.

在本实施例中,目标资产特征指的是对资产库存异常影响程度大于预设阈值的资产特征。为了有效选取该类特征,本发明实施例采用主成分分析或者相关性分析方法来实现目标资产特征的筛选。In this embodiment, the target asset feature refers to an asset feature whose degree of influence on the abnormality of the asset inventory is greater than a preset threshold. In order to effectively select such features, the embodiment of the present invention adopts a principal component analysis or a correlation analysis method to realize the screening of target asset features.

对应于上文实施例的库存异常资产识别方法,图2为本发明一实施例提供的库存异常资产识别装置的结构框图。为了便于说明,仅示出了与本发明实施例相关的部分。参考图2,该库存异常资产识别装置20包括:数据获取模块21、特征提取模块22、状态识别模块23。Corresponding to the method for identifying abnormal inventory assets in the above embodiment, FIG. 2 is a structural block diagram of a device for identifying abnormal inventory assets provided by an embodiment of the present invention. For the convenience of description, only the parts related to the embodiments of the present invention are shown. Referring to FIG. 2 , the abnormal inventory asset identification device 20 includes: a data acquisition module 21 , a feature extraction module 22 , and a state identification module 23 .

其中,数据获取模块21,用于获取目标资产的流转轨迹及属性数据。Among them, the data acquisition module 21 is used to acquire the circulation track and attribute data of the target asset.

特征提取模块22,用于计算资产流转轨迹对应的资产异常概率,从属性数据中提取各个目标资产特征对应的特征值,基于资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量。The feature extraction module 22 is used to calculate the asset abnormality probability corresponding to the asset circulation trajectory, extract the feature value corresponding to each target asset feature from the attribute data, and generate the target asset corresponding feature based on the asset abnormality probability and the feature value corresponding to each target asset feature vector.

状态识别模块23,用于将特征向量输入至预设的异常资产识别模型中,确定目标资产的库存异常识别结果。The state identification module 23 is configured to input the feature vector into a preset abnormal asset identification model to determine the abnormal inventory identification result of the target asset.

在一种可能的实现方式中,特征提取模块22具体用于:In a possible implementation manner, the feature extraction module 22 is specifically used for:

判断资产流转轨迹是否与预设数据库中的历史资产流转轨迹匹配。Determine whether the asset circulation trajectory matches the historical asset circulation trajectory in the preset database.

若存在某历史流转轨迹与资产流转轨迹匹配,则将该历史流转轨迹对应的资产异常概率作为资产流转轨迹对应的资产异常概率。If there is a certain historical circulation trajectory that matches the asset circulation trajectory, the asset abnormality probability corresponding to the historical circulation trajectory is used as the asset abnormality probability corresponding to the asset circulation trajectory.

若预设数据库中不存在与资产流转轨迹匹配的历史资产流转轨迹,则将资产流转轨迹输入至预设的轨迹检测模型中,得到资产流转轨迹对应的资产异常概率。If there is no historical asset circulation trajectory matching the asset circulation trajectory in the preset database, input the asset circulation trajectory into the preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory.

在一种可能的实现方式中,特征提取模块22还用于在将资产流转轨迹输入至预设的轨迹检测模型中之前,提取资产流转轨迹中的各个流转节点以及各个流转节点对应的流转时间,基于各个流转节点以及各个流转节点对应的流转时间生成特征序列。In a possible implementation manner, the feature extraction module 22 is further configured to extract each circulation node in the asset circulation trajectory and the corresponding circulation time of each circulation node before inputting the asset circulation trajectory into the preset trajectory detection model, A feature sequence is generated based on each flow node and the flow time corresponding to each flow node.

相应的,特征提取模块22具体用于:Correspondingly, the feature extraction module 22 is specifically used for:

将特征序列输入至预设的轨迹检测模型中,得到资产流转轨迹对应的资产异常概率。Input the feature sequence into the preset trajectory detection model to obtain the asset anomaly probability corresponding to the asset circulation trajectory.

在一种可能的实现方式中,特征提取模块22具体用于:In a possible implementation manner, the feature extraction module 22 is specifically used for:

将各个流转节点以不同的值表示。Each flow node is represented by a different value.

获取值为空的预设时间序列,在预设时间序列中的某个时刻,基于各个流转节点的流转时间判断目标资产在该时刻所在的流转节点,并将目标资产在该时刻所在的流转节点的值作为该时刻的对应值。A preset time series with an empty value is obtained. At a certain moment in the preset time series, the circulation node where the target asset is located at that moment is determined based on the circulation time of each circulation node, and the circulation node where the target asset is located at that moment is determined. value as the corresponding value at this moment.

确定预设时间序列内各个时刻的对应值,将确定所有时刻对应值的预设时间序列作为特征序列。The corresponding values of each moment in the preset time series are determined, and the preset time series of the corresponding values of all the moments is determined as the characteristic sequence.

在一种可能的实现方式中,特征提取模块22具体用于:In a possible implementation manner, the feature extraction module 22 is specifically used for:

基于资产异常概率生成一个特征向量,记为第一特征向量。基于各个目标资产特征对应的特征值生成一个特征向量,记为第二特征向量。合成第一特征向量和第二特征向量,得到目标资产对应的特征向量。A feature vector is generated based on the asset abnormality probability, which is recorded as the first feature vector. A eigenvector is generated based on the eigenvalues corresponding to each target asset feature, which is recorded as the second eigenvector. Synthesize the first feature vector and the second feature vector to obtain the feature vector corresponding to the target asset.

在一种可能的实现方式中,特征提取模块22还用于:In a possible implementation manner, the feature extraction module 22 is also used for:

获取目标资产的所有资产特征,对所有资产特征进行主成分分析,得到目标资产的目标资产特征。Obtain all asset characteristics of the target asset, perform principal component analysis on all asset characteristics, and obtain the target asset characteristics of the target asset.

在一种可能的实现方式中,异常资产识别模型为XGBoost模型。In a possible implementation, the abnormal asset identification model is an XGBoost model.

参见图3,图3为本发明一实施例提供的终端设备的示意框图。如图3所示的本实施例中的终端300可以包括:一个或多个处理器301、一个或多个输入设备302、一个或多个输出设备303及一个或多个存储器304。上述处理器301、输入设备302、输出设备303及存储器304通过通信总线305完成相互间的通信。存储器304用于存储计算机程序,计算机程序包括程序指令。处理器301用于执行存储器304存储的程序指令。其中,处理器301被配置用于调用程序指令执行以下操作上述各装置实施例中各模块/单元的功能,例如图2所示模块21至23的功能。Referring to FIG. 3, FIG. 3 is a schematic block diagram of a terminal device according to an embodiment of the present invention. As shown in FIG. 3 , the terminal 300 in this embodiment may include: one or more processors 301 , one or more input devices 302 , one or more output devices 303 , and one or more memories 304 . The processor 301 , the input device 302 , the output device 303 and the memory 304 communicate with each other through the communication bus 305 . Memory 304 is used to store computer programs including program instructions. The processor 301 is used to execute program instructions stored in the memory 304 . The processor 301 is configured to invoke the program instructions to perform the following operations to perform the functions of the modules/units in the above device embodiments, for example, the functions of the modules 21 to 23 shown in FIG. 2 .

应当理解,在本发明实施例中,所称处理器301可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present invention, the so-called processor 301 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated Integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

输入设备302可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备303可以包括显示器(LCD等)、扬声器等。The input device 302 may include a touchpad, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, and the like, and the output device 303 may include a display (LCD, etc.), a speaker, and the like.

该存储器304可以包括只读存储器和随机存取存储器,并向处理器301提供指令和数据。存储器304的一部分还可以包括非易失性随机存取存储器。例如,存储器304还可以存储设备类型的信息。The memory 304 may include read only memory and random access memory, and provides instructions and data to the processor 301 . A portion of memory 304 may also include non-volatile random access memory. For example, memory 304 may also store device type information.

具体实现中,本发明实施例中所描述的处理器301、输入设备302、输出设备303可执行本发明实施例提供的库存异常资产识别方法的第一实施例和第二实施例中所描述的实现方式,也可执行本发明实施例所描述的终端的实现方式,在此不再赘述。In specific implementation, the processor 301 , the input device 302 , and the output device 303 described in the embodiments of the present invention can execute the methods described in the first embodiment and the second embodiment of the method for identifying abnormal inventory assets provided by the embodiments of the present invention. For the implementation manner, the implementation manner of the terminal described in the embodiments of the present invention can also be implemented, and details are not described herein again.

在本发明的另一实施例中提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序包括程序指令,程序指令被处理器执行时实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, all or all of the methods in the foregoing embodiments are implemented. Part of the process can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of the above method embodiments. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in computer-readable media may be appropriately increased or decreased in accordance with the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include It is an electrical carrier signal and a telecommunication signal.

计算机可读存储介质可以是前述任一实施例的终端的内部存储单元,例如终端的硬盘或内存。计算机可读存储介质也可以是终端的外部存储设备,例如终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,计算机可读存储介质还可以既包括终端的内部存储单元也包括外部存储设备。计算机可读存储介质用于存储计算机程序及终端所需的其他程序和数据。计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the terminal in any of the foregoing embodiments, such as a hard disk or a memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash memory card (Flash Card). )Wait. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been or will be output.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的终端和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the terminal and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的终端和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces or units, and may also be electrical, mechanical or other forms of connection.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions in the embodiments of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or modifications within the technical scope disclosed by the present invention. Replacement, these modifications or replacements should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

1.一种库存异常资产识别方法,其特征在于,包括:1. A method for identifying abnormal inventory assets, comprising: 获取目标资产的流转轨迹及属性数据;Obtain the circulation trajectory and attribute data of the target asset; 计算所述资产流转轨迹对应的资产异常概率,从所述属性数据中提取各个目标资产特征对应的特征值,基于所述资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量;Calculate the asset abnormality probability corresponding to the asset circulation trajectory, extract the feature value corresponding to each target asset feature from the attribute data, and generate a feature vector corresponding to the target asset based on the asset abnormality probability and the feature value corresponding to each target asset feature ; 将所述特征向量输入至预设的异常资产识别模型中,确定目标资产的库存异常识别结果。The feature vector is input into a preset abnormal asset identification model to determine the abnormal inventory identification result of the target asset. 2.如权利要求1所述的库存异常资产识别方法,其特征在于,所述计算所述资产流转轨迹对应的资产异常概率,包括:2 . The method for identifying abnormal inventory assets according to claim 1 , wherein the calculating the abnormal asset probability corresponding to the asset circulation trajectory comprises: 2 . 判断所述资产流转轨迹是否与预设数据库中的历史资产流转轨迹匹配;judging whether the asset circulation trajectory matches the historical asset circulation trajectory in the preset database; 若存在某历史流转轨迹与所述资产流转轨迹匹配,则将该历史流转轨迹对应的资产异常概率作为所述资产流转轨迹对应的资产异常概率;If there is a certain historical circulation trajectory that matches the asset circulation trajectory, the asset abnormality probability corresponding to the historical circulation trajectory is used as the asset abnormality probability corresponding to the asset circulation trajectory; 若预设数据库中不存在与所述资产流转轨迹匹配的历史资产流转轨迹,则将所述资产流转轨迹输入至预设的轨迹检测模型中,得到所述资产流转轨迹对应的资产异常概率。If there is no historical asset circulation trajectory matching the asset circulation trajectory in the preset database, the asset circulation trajectory is input into the preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory. 3.如权利要求2所述的库存异常资产识别方法,其特征在于,在将所述资产流转轨迹输入至预设的轨迹检测模型中之前,所述库存异常资产识别方法还包括:3. The method for identifying abnormal inventory assets according to claim 2, wherein before the asset circulation trajectory is input into a preset trajectory detection model, the method for identifying abnormal inventory assets further comprises: 提取所述资产流转轨迹中的各个流转节点以及各个流转节点对应的流转时间,基于各个流转节点以及各个流转节点对应的流转时间生成特征序列;Extracting each circulation node in the asset circulation trajectory and the circulation time corresponding to each circulation node, and generating a feature sequence based on each circulation node and the circulation time corresponding to each circulation node; 相应的,将所述资产流转轨迹输入至预设的轨迹检测模型中,得到所述资产流转轨迹对应的资产异常概率,包括:Correspondingly, the asset circulation trajectory is input into a preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory, including: 将所述特征序列输入至预设的轨迹检测模型中,得到所述资产流转轨迹对应的资产异常概率。Inputting the feature sequence into a preset trajectory detection model to obtain the asset abnormality probability corresponding to the asset circulation trajectory. 4.如权利要求3所述的库存异常资产识别方法,其特征在于,所述基于各个流转节点以及各个流转节点对应的流转时间生成特征序列,包括:4. The method for identifying abnormal inventory assets according to claim 3, wherein the generating a characteristic sequence based on each circulation node and the circulation time corresponding to each circulation node, comprising: 将各个流转节点以不同的值表示;Represent each flow node with different values; 获取值为空的预设时间序列,在预设时间序列中的某个时刻,基于各个流转节点的流转时间判断目标资产在该时刻所在的流转节点,并将目标资产在该时刻所在的流转节点的值作为该时刻的对应值;A preset time series with an empty value is obtained. At a certain moment in the preset time series, the circulation node where the target asset is located at that moment is determined based on the circulation time of each circulation node, and the circulation node where the target asset is located at that moment is determined. The value of is used as the corresponding value at this moment; 确定预设时间序列内各个时刻的对应值,将确定所有时刻对应值的预设时间序列作为特征序列。The corresponding values of each moment in the preset time series are determined, and the preset time series of the corresponding values of all the moments is determined as the characteristic sequence. 5.如权利要求1所述的库存异常资产识别方法,其特征在于,所述基于所述资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量,包括:5 . The method for identifying abnormal assets in inventory according to claim 1 , wherein the generating a feature vector corresponding to the target asset based on the abnormal probability of the asset and the feature value corresponding to each target asset feature, comprising: 6 . 基于所述资产异常概率生成一个特征向量,记为第一特征向量;基于各个目标资产特征对应的特征值生成一个特征向量,记为第二特征向量;合成所述第一特征向量和所述第二特征向量,得到目标资产对应的特征向量。Generate a eigenvector based on the asset abnormality probability, denoted as the first eigenvector; generate a eigenvector based on the eigenvalues corresponding to the characteristics of each target asset, denoted as the second eigenvector; synthesize the first eigenvector and the first eigenvector Two eigenvectors to obtain the eigenvectors corresponding to the target asset. 6.如权利要求1所述的库存异常资产识别方法,其特征在于,各个目标资产特征的确定方法为:6. The method for identifying abnormal assets in inventory as claimed in claim 1, wherein the method for determining the characteristics of each target asset is: 获取目标资产的所有资产特征,对所述所有资产特征进行主成分分析,得到目标资产的目标资产特征。All asset characteristics of the target asset are acquired, and principal component analysis is performed on all the asset characteristics to obtain the target asset characteristics of the target asset. 7.如权利要求1至6任一项所述的库存异常资产识别方法,其特征在于,所述异常资产识别模型为XGBoost模型。7. The method for identifying abnormal assets in inventory according to any one of claims 1 to 6, wherein the abnormal asset identification model is an XGBoost model. 8.一种库存异常资产识别装置,其特征在于,包括:8. A device for identifying abnormal assets in inventory, comprising: 数据获取模块,用于获取目标资产的流转轨迹及属性数据;The data acquisition module is used to acquire the circulation trajectory and attribute data of the target asset; 特征提取模块,用于计算所述资产流转轨迹对应的资产异常概率,从所述属性数据中提取各个目标资产特征对应的特征值,基于所述资产异常概率以及各个目标资产特征对应的特征值生成目标资产对应的特征向量;The feature extraction module is used to calculate the asset abnormality probability corresponding to the asset circulation trajectory, extract the feature value corresponding to each target asset feature from the attribute data, and generate the feature value based on the asset abnormality probability and the feature value corresponding to each target asset feature The feature vector corresponding to the target asset; 状态识别模块,用于将所述特征向量输入至预设的异常资产识别模型中,确定目标资产的库存异常识别结果。The state identification module is used for inputting the feature vector into a preset abnormal asset identification model to determine the abnormal inventory identification result of the target asset. 9.一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述方法的步骤。9. A terminal device, comprising a memory, a processor and a computer program stored in the memory and running on the processor, characterized in that, when the processor executes the computer program, the implementation as claimed in the claims The steps of any one of 1 to 7 of the method. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述方法的步骤。10. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented .
CN202111675538.9A 2021-12-31 2021-12-31 Abnormal inventory asset identification method, device and terminal equipment Active CN114462925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111675538.9A CN114462925B (en) 2021-12-31 2021-12-31 Abnormal inventory asset identification method, device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111675538.9A CN114462925B (en) 2021-12-31 2021-12-31 Abnormal inventory asset identification method, device and terminal equipment

Publications (2)

Publication Number Publication Date
CN114462925A true CN114462925A (en) 2022-05-10
CN114462925B CN114462925B (en) 2024-10-15

Family

ID=81407370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111675538.9A Active CN114462925B (en) 2021-12-31 2021-12-31 Abnormal inventory asset identification method, device and terminal equipment

Country Status (1)

Country Link
CN (1) CN114462925B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109657547A (en) * 2018-11-13 2019-04-19 成都四方伟业软件股份有限公司 A kind of abnormal trajectory analysis method based on associated model
CN110544057A (en) * 2019-04-24 2019-12-06 华宇智联科技(武汉)有限公司 asset checking method for small-area automatic verification
CN110751557A (en) * 2019-10-10 2020-02-04 中国建设银行股份有限公司 Abnormal fund transaction behavior analysis method and system based on sequence model
CN110929203A (en) * 2019-10-18 2020-03-27 平安科技(深圳)有限公司 Abnormal user identification method, device, equipment and storage medium
CN113780329A (en) * 2021-04-06 2021-12-10 北京沃东天骏信息技术有限公司 Method, apparatus, server and medium for identifying data anomalies

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109657547A (en) * 2018-11-13 2019-04-19 成都四方伟业软件股份有限公司 A kind of abnormal trajectory analysis method based on associated model
CN110544057A (en) * 2019-04-24 2019-12-06 华宇智联科技(武汉)有限公司 asset checking method for small-area automatic verification
CN110751557A (en) * 2019-10-10 2020-02-04 中国建设银行股份有限公司 Abnormal fund transaction behavior analysis method and system based on sequence model
CN110929203A (en) * 2019-10-18 2020-03-27 平安科技(深圳)有限公司 Abnormal user identification method, device, equipment and storage medium
CN113780329A (en) * 2021-04-06 2021-12-10 北京沃东天骏信息技术有限公司 Method, apparatus, server and medium for identifying data anomalies

Also Published As

Publication number Publication date
CN114462925B (en) 2024-10-15

Similar Documents

Publication Publication Date Title
CN110472675B (en) Image classification method, image classification device, storage medium and electronic equipment
CN108280757B (en) User credit evaluation method and device
TW202011285A (en) Sample attribute evaluation model training method and apparatus, and server
CN112733995B (en) Method for training neural network, behavior detection method and behavior detection device
CN109726763A (en) A kind of information assets recognition methods, device, equipment and medium
CN114925938B (en) Electric energy meter running state prediction method and device based on self-adaptive SVM model
CN111582315B (en) Sample data processing method and device and electronic equipment
CN109633448B (en) Method and device for identifying battery health state and terminal equipment
CN111537884B (en) Method, device, computer equipment and medium for obtaining power battery life data
CN115170000A (en) Remote monitoring method and system based on electric energy meter communication module
CN113268403B (en) Time series analysis and forecasting methods, devices, equipment and storage media
CN112883990A (en) Data classification method and device, computer storage medium and electronic equipment
CN113298121A (en) Message sending method and device based on multi-data source modeling and electronic equipment
CN113516275A (en) A method, device and terminal equipment for ultra-short-term load forecasting of distribution network
CN114399321A (en) Business system stability analysis method, device and equipment
CN115422788B (en) Power distribution network line loss analysis management method, device, storage medium and system
CN115617784A (en) Data processing system and processing method for informationized power distribution
CN111091099A (en) Scene recognition model construction method, scene recognition method and device
CN117633680B (en) Metering standard analysis method, device and equipment for direct-current electric energy meter and storage medium
CN114462925A (en) Inventory abnormal asset identification method and device and terminal equipment
CN117670359A (en) Abnormal transaction data identification method and device, storage medium and electronic equipment
CN112346995B (en) Banking industry-based test risk prediction model construction method and device
CN113657623A (en) Method, device, terminal and storage medium for determining effect of power equipment status diagnosis
CN114722061A (en) Data processing method and device, equipment and computer readable storage medium
CN114048905A (en) Price prediction method, device, equipment and storage medium of power resource

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant