+

CN118628113A - A financial transaction risk assessment method, device and medium based on machine learning - Google Patents

A financial transaction risk assessment method, device and medium based on machine learning Download PDF

Info

Publication number
CN118628113A
CN118628113A CN202410819248.4A CN202410819248A CN118628113A CN 118628113 A CN118628113 A CN 118628113A CN 202410819248 A CN202410819248 A CN 202410819248A CN 118628113 A CN118628113 A CN 118628113A
Authority
CN
China
Prior art keywords
financial
predicted
transaction
market
risk
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.)
Pending
Application number
CN202410819248.4A
Other languages
Chinese (zh)
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.)
Tianyuan Big Data Credit Management Co Ltd
Original Assignee
Tianyuan Big Data Credit Management 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 Tianyuan Big Data Credit Management Co Ltd filed Critical Tianyuan Big Data Credit Management Co Ltd
Priority to CN202410819248.4A priority Critical patent/CN118628113A/en
Publication of CN118628113A publication Critical patent/CN118628113A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4016Transaction verification involving fraud or risk level assessment in transaction processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/217Validation; Performance evaluation; Active pattern learning techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Technology Law (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本说明书实施例公开了一种基于机器学习的金融交易风险评估方法、设备及介质,涉及金融技术领域,方法包括:通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定待预测金融交易对应的模型预测风险指标,利用网络爬虫技术,采集市场参与用户的实时文本数据,以基市场参与用户的实时文本数据,对所述前金融市场进行市场情绪评估,确定当前金融市场对应的当前市场情绪指标;根据当前市场情绪指标,确定当前金融市场对应的预测金融事件,以通过预测金融事件,对模型预测风险指标进行修正,确定待预测金融交易的当前预测风险指标;基于待预测金融交易的当前预测风险指标,确定所述待预测金融交易的风险等级。

The embodiments of this specification disclose a financial transaction risk assessment method, device and medium based on machine learning, which relate to the field of financial technology. The method includes: determining the model prediction risk index corresponding to the financial transaction to be predicted through multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-built financial risk assessment model, using web crawler technology to collect real-time text data of market participants, and based on the real-time text data of market participants, conducting market sentiment assessment on the previous financial market to determine the current market sentiment index corresponding to the current financial market; determining the predicted financial event corresponding to the current financial market according to the current market sentiment index, and correcting the model prediction risk index through the predicted financial event to determine the current predicted risk index of the financial transaction to be predicted; and determining the risk level of the financial transaction to be predicted based on the current predicted risk index of the financial transaction to be predicted.

Description

一种基于机器学习的金融交易风险评估方法、设备及介质A financial transaction risk assessment method, device and medium based on machine learning

技术领域Technical Field

本说明书涉及金融技术领域,尤其涉及一种基于机器学习的金融交易风险评估方法、设备及介质。This specification relates to the field of financial technology, and in particular to a financial transaction risk assessment method, device and medium based on machine learning.

背景技术Background Art

随着全球金融市场的不断扩大和复杂化,投资者和金融机构对于交易风险的识别和管理需求日益增长。金融交易风险评估的准确性和实时性对于保障市场稳定、优化投资策略以及确保资产安全具有重要意义。传统的金融交易风险评估方法主要依赖于人工分析、专家经验和简单的数学模型,在处理大规模、高维度的金融数据时存在很大的局限性,难以满足现代金融市场的风险评估需求。并且,传统的交融交易风险评估依赖于已经发生的历史数据,缺少实时维度的数据。因此,传统的金融交易风险评估方法在处理大规模、高维度的金融数据时存在很大的局限性,并且缺少实时维度的数据,导致风险评估的准确性和可靠性无法满足评估需求。As the global financial market continues to expand and become more complex, investors and financial institutions have an increasing need to identify and manage transaction risks. The accuracy and real-time nature of financial transaction risk assessment are of great significance for ensuring market stability, optimizing investment strategies, and ensuring asset security. Traditional financial transaction risk assessment methods mainly rely on manual analysis, expert experience, and simple mathematical models. They have great limitations when processing large-scale, high-dimensional financial data and are difficult to meet the risk assessment needs of modern financial markets. In addition, traditional cross-border transaction risk assessment relies on historical data that has already occurred and lacks real-time dimensional data. Therefore, traditional financial transaction risk assessment methods have great limitations when processing large-scale, high-dimensional financial data, and lack real-time dimensional data, resulting in the inability of the accuracy and reliability of risk assessment to meet assessment needs.

发明内容Summary of the invention

本说明书一个或多个实施例提供了一种基于机器学习的金融交易风险评估方法、设备及介质,用于解决如下技术问题:传统的金融交易风险评估方法在处理大规模、高维度的金融数据时存在很大的局限性,并且缺少实时维度的数据,导致风险评估的准确性和可靠性无法满足评估需求。One or more embodiments of the present specification provide a financial transaction risk assessment method, device and medium based on machine learning, which are used to solve the following technical problems: Traditional financial transaction risk assessment methods have great limitations when processing large-scale, high-dimensional financial data, and lack real-time dimensional data, resulting in the accuracy and reliability of risk assessment being unable to meet assessment requirements.

本说明书一个或多个实施例采用下述技术方案:One or more embodiments of this specification adopt the following technical solutions:

本说明书一个或多个实施例提供一种基于机器学习的金融交易风险评估方法,所述方法包括:通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定所述待预测金融交易对应的模型预测风险指标,其中,所述多维度历史交易信息包括历史交易数据、用户行为数据和市场趋势数据;利用网络爬虫技术,采集所述待预测金融交易对应当前金融市场的市场参与用户的实时文本数据,以基于所述市场参与用户的实时文本数据,对所述当前金融市场进行市场情绪评估,确定所述当前金融市场对应的当前市场情绪指标;根据所述当前市场情绪指标,确定所述当前金融市场对应的预测金融事件,以通过所述预测金融事件,对所述模型预测风险指标进行修正,确定所述待预测金融交易的当前预测风险指标;基于所述待预测金融交易的当前预测风险指标,对所述待预测金融交易进行风险评估,确定所述待预测金融交易的风险等级。One or more embodiments of the present specification provide a financial transaction risk assessment method based on machine learning, the method comprising: determining a model prediction risk index corresponding to the financial transaction to be predicted through multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-built financial risk assessment model, wherein the multi-dimensional historical transaction information includes historical transaction data, user behavior data and market trend data; using web crawler technology to collect real-time text data of market participants in the current financial market corresponding to the financial transaction to be predicted, so as to conduct a market sentiment assessment on the current financial market based on the real-time text data of the market participants, and determine a current market sentiment index corresponding to the current financial market; determining a predicted financial event corresponding to the current financial market based on the current market sentiment index, so as to correct the model prediction risk index through the predicted financial event and determine the current predicted risk index of the financial transaction to be predicted; and conducting a risk assessment on the financial transaction to be predicted based on the current predicted risk index of the financial transaction to be predicted, and determining the risk level of the financial transaction to be predicted.

进一步地,通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定所述待预测金融交易对应的模型预测风险指标,具体包括:采集与所述待预测金融交易相关的多维度历史交易信息,以对所述多维度历史交易信息进行特征提取,确定对应的交易风险特征集合,其中,所述交易风险特征集合包括交易价格与波动性特征、交易量特征、用户行为特征和市场趋势指标;使用预设的机器学习算法构建金融风险评估模型,将所述交易风险特征集合输入至所述金融风险评估模型中,确定所述待预测金融交易对应的模型预测风险指标。Furthermore, the model prediction risk index corresponding to the financial transaction to be predicted is determined through the multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and the pre-constructed financial risk assessment model, which specifically includes: collecting multi-dimensional historical transaction information related to the financial transaction to be predicted to perform feature extraction on the multi-dimensional historical transaction information to determine the corresponding transaction risk feature set, wherein the transaction risk feature set includes transaction price and volatility characteristics, transaction volume characteristics, user behavior characteristics and market trend indicators; using a preset machine learning algorithm to construct a financial risk assessment model, inputting the transaction risk feature set into the financial risk assessment model, and determining the model prediction risk index corresponding to the financial transaction to be predicted.

进一步地,基于所述市场参与用户的实时文本数据,对所述当前金融市场进行市场情绪评估,确定所述当前金融市场对应的当前市场情绪指标,具体包括:对所述市场参与用户的实时文本数据进行预处理,以提取所述市场参与用户的实时文本数据中的实时文本情绪特征集合;根据所述实时文本情绪特征集合和预先构建的市场情绪预测模型,确定所述当前金融市场对应的当前市场情绪指标。Furthermore, based on the real-time text data of the market participating users, a market sentiment assessment is performed on the current financial market to determine the current market sentiment index corresponding to the current financial market, specifically including: preprocessing the real-time text data of the market participating users to extract a real-time text emotion feature set in the real-time text data of the market participating users; determining the current market sentiment index corresponding to the current financial market based on the real-time text emotion feature set and a pre-constructed market sentiment prediction model.

进一步地,对所述市场参与用户的实时文本数据进行预处理,以提取所述市场参与用户的实时文本数据中的实时文本情绪特征集合,具体包括:对所述市场参与用户的实时文本数据进行预处理,以获取标准文本数据;对所述标准文本数据进行分词处理,以将所述标准文本数据切分为多个文本词,生成文本词汇集合;利用自然语言处理技术,对所述文本词汇集合中的多个问本词进行词形还原,以确定所述实时文本情绪特征集合。Furthermore, the real-time text data of the market participating users are preprocessed to extract a real-time text emotion feature set from the real-time text data of the market participating users, specifically including: preprocessing the real-time text data of the market participating users to obtain standard text data; performing word segmentation processing on the standard text data to divide the standard text data into multiple text words to generate a text vocabulary set; using natural language processing technology to perform word form restoration on multiple question words in the text vocabulary set to determine the real-time text emotion feature set.

进一步地,根据所述当前市场情绪指标,确定所述当前金融市场对应的预测金融事件,具体包括:获取多个历史市场情绪信息,其中,所述历史市场情绪信息包括历史市场情绪指标和历史时间戳;按照所述历史市场情绪指标,将所述多个历史市场情绪信息进行分类,生成每个情绪指标对应的情绪指标数据集合;基于每个所述情绪指标数据集合中的历史时间戳,获取每个所述历史时间戳对应的指定时间周期内的至少一个历史金融事件,其中,所述指定时间周期为位于所述历史时间戳之后的时间区间;对所述情绪指标数据集合中每个所述历史时间戳对应的指定时间周期内的至少一个历史金融事件进行统计分析,确定每个所述情绪指标数据集合中最多的指定历史金融事件;根据每个所述情绪指标数据集合中最多的指定历史金融事件,建立每个情绪指标和金融事件的对应关系;根据每个情绪指标和金融事件的对应关系,对所述当前市场情绪指标进行匹配,确定所述预测金融事件。Further, according to the current market sentiment index, the predicted financial event corresponding to the current financial market is determined, specifically including: obtaining multiple historical market sentiment information, wherein the historical market sentiment information includes historical market sentiment indicators and historical timestamps; classifying the multiple historical market sentiment information according to the historical market sentiment indicators to generate a sentiment indicator data set corresponding to each sentiment indicator; based on the historical timestamps in each of the sentiment indicator data sets, obtaining at least one historical financial event within a specified time period corresponding to each of the historical timestamps, wherein the specified time period is a time interval after the historical timestamp; performing statistical analysis on at least one historical financial event within a specified time period corresponding to each of the historical timestamps in the sentiment indicator data set to determine the largest number of specified historical financial events in each of the sentiment indicator data sets; establishing a correspondence between each sentiment indicator and a financial event based on the largest number of specified historical financial events in each of the sentiment indicator data sets; matching the current market sentiment indicators based on the correspondence between each of the sentiment indicators and financial events to determine the predicted financial event.

进一步地,通过所述预测金融事件,对所述模型预测风险指标进行修正,确定所述待预测金融交易的当前预测风险指标,具体包括:获取所述预测金融事件对应的历史交易影响参数,其中,所述历史交易影响参数包括市场波动参数、交易成交参数;通过所述历史交易影响参数,对所述预测金融事件的交易影响风险进行评估,以确定对应的影响风险指标,其中,所述影响风险指标包括正向影响指标和负面影响指标中的任意一项;根据所述影响风险指标和所述模型预测风险指标,生成所述待预测金融交易的当前预测风险指标。Furthermore, through the predicted financial event, the model prediction risk indicator is corrected to determine the current prediction risk indicator of the financial transaction to be predicted, which specifically includes: obtaining the historical transaction impact parameters corresponding to the predicted financial event, wherein the historical transaction impact parameters include market volatility parameters and transaction completion parameters; through the historical transaction impact parameters, the transaction impact risk of the predicted financial event is evaluated to determine the corresponding impact risk indicator, wherein the impact risk indicator includes any one of a positive impact indicator and a negative impact indicator; based on the impact risk indicator and the model prediction risk indicator, the current prediction risk indicator of the financial transaction to be predicted is generated.

进一步地,基于所述待预测金融交易的当前预测风险指标,对所述待预测金融交易进行风险评估,确定所述待预测金融交易的风险等级之后,所述方法还包括:设置风险等级阈值,以基于所述待预测金融交易的风险等级和所述风险等级阈值,生成预警信息;基于所述风险等级,确定对应的风险管理策略,以基于所述预警信息和所述风险管理策略,生成风险评估报告。Furthermore, after performing a risk assessment on the financial transaction to be predicted based on the current predicted risk indicator of the financial transaction to be predicted and determining the risk level of the financial transaction to be predicted, the method further includes: setting a risk level threshold to generate early warning information based on the risk level of the financial transaction to be predicted and the risk level threshold; and determining a corresponding risk management strategy based on the risk level to generate a risk assessment report based on the early warning information and the risk management strategy.

进一步地,对所述多维度历史交易信息进行特征提取,确定对应的交易风险特征集合,具体包括:获取所述多维度历史交易信息中的历史交易数据,用户行为数据和市场趋势数据;对所述历史交易数据中的历史交易价格进行分析,确定交易价格变化率和交易价格波动性;对所述历史交易数据中的历史交易量进行分析,生成交易量变化率以及交易量与交易价格之间的影响关系,确定交易量特征;根据所述用户行为数据,确定用户的交易频率、持仓时间和交易偏好数据,以确定用户行为特征;通过所述市场趋势数据,确定市场指数,以确定市场趋势指标。Furthermore, feature extraction is performed on the multi-dimensional historical transaction information to determine a corresponding set of transaction risk features, specifically including: obtaining historical transaction data, user behavior data and market trend data in the multi-dimensional historical transaction information; analyzing historical transaction prices in the historical transaction data to determine the transaction price change rate and transaction price volatility; analyzing historical transaction volumes in the historical transaction data to generate the transaction volume change rate and the influence relationship between the transaction volume and the transaction price to determine the transaction volume characteristics; determining the user's transaction frequency, position holding time and transaction preference data based on the user behavior data to determine the user behavior characteristics; determining the market index through the market trend data to determine the market trend indicator.

本说明书一个或多个实施例提供一种基于机器学习的金融交易风险评估设备,包括:One or more embodiments of this specification provide a financial transaction risk assessment device based on machine learning, including:

至少一个处理器;以及,at least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定所述待预测金融交易对应的模型预测风险指标,其中,所述多维度历史交易信息包括历史交易数据、用户行为数据和市场趋势数据;利用网络爬虫技术,采集所述待预测金融交易对应当前金融市场的市场参与用户的实时文本数据,以基于所述市场参与用户的实时文本数据,对所述当前金融市场进行市场情绪评估,确定所述当前金融市场对应的当前市场情绪指标;根据所述当前市场情绪指标,确定所述当前金融市场对应的预测金融事件,以通过所述预测金融事件,对所述模型预测风险指标进行修正,确定所述待预测金融交易的当前预测风险指标;基于所述待预测金融交易的当前预测风险指标,对所述待预测金融交易进行风险评估,确定所述待预测金融交易的风险等级。The model prediction risk index corresponding to the financial transaction to be predicted is determined by using the multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-built financial risk assessment model, wherein the multi-dimensional historical transaction information includes historical transaction data, user behavior data and market trend data; the real-time text data of market participants in the current financial market corresponding to the financial transaction to be predicted is collected by using web crawler technology, so as to conduct a market sentiment assessment on the current financial market based on the real-time text data of the market participants, and determine the current market sentiment index corresponding to the current financial market; the predicted financial event corresponding to the current financial market is determined based on the current market sentiment index, so as to correct the model prediction risk index through the predicted financial event and determine the current predicted risk index of the financial transaction to be predicted; based on the current predicted risk index of the financial transaction to be predicted, the risk of the financial transaction to be predicted is assessed to determine the risk level of the financial transaction to be predicted.

本说明书一个或多个实施例提供的一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:

通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定所述待预测金融交易对应的模型预测风险指标,其中,所述多维度历史交易信息包括历史交易数据、用户行为数据和市场趋势数据;利用网络爬虫技术,采集所述待预测金融交易对应当前金融市场的市场参与用户的实时文本数据,以基于所述市场参与用户的实时文本数据,对所述当前金融市场进行市场情绪评估,确定所述当前金融市场对应的当前市场情绪指标;根据所述当前市场情绪指标,确定所述当前金融市场对应的预测金融事件,以通过所述预测金融事件,对所述模型预测风险指标进行修正,确定所述待预测金融交易的当前预测风险指标;基于所述待预测金融交易的当前预测风险指标,对所述待预测金融交易进行风险评估,确定所述待预测金融交易的风险等级。The model prediction risk index corresponding to the financial transaction to be predicted is determined by using the multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-built financial risk assessment model, wherein the multi-dimensional historical transaction information includes historical transaction data, user behavior data and market trend data; the real-time text data of market participants in the current financial market corresponding to the financial transaction to be predicted is collected by using web crawler technology, so as to conduct a market sentiment assessment on the current financial market based on the real-time text data of the market participants, and determine the current market sentiment index corresponding to the current financial market; the predicted financial event corresponding to the current financial market is determined based on the current market sentiment index, so as to correct the model prediction risk index through the predicted financial event and determine the current predicted risk index of the financial transaction to be predicted; based on the current predicted risk index of the financial transaction to be predicted, the risk of the financial transaction to be predicted is assessed to determine the risk level of the financial transaction to be predicted.

本说明书实施例采用的上述至少一个技术方案能够达到以下有益效果:通过上述技术方案,多维度历史交易信息(包括历史交易数据、用户行为数据和市场趋势数据)为风险评估提供了丰富的背景信息和数据支持,使得评估结果更加全面,预先构建的金融风险评估模型基于大量历史数据训练,能够识别并量化不同类型的风险,提高了风险评估的准确性;利用网络爬虫技术实时采集市场参与用户的文本数据,能够迅速捕捉市场情绪的变化,为风险评估提供最新的市场反馈;实时市场情绪评估使得风险评估具有动态性,能够及时调整投资策略和风险管理措施;根据当前市场情绪指标确定的预测金融事件,为模型预测风险指标提供了重要的修正依据,有助于更准确地反映市场实际情况,提高风险评估的针对性和有效性;风险等级的确定使得投资者能够更直观地了解待预测金融交易的风险水平,为投资决策提供直观参考;通过及时监测和评估市场风险,金融机构可以及时发现潜在风险并采取相应的风险管理措施,降低潜在损失。At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: through the above technical solutions, multi-dimensional historical transaction information (including historical transaction data, user behavior data and market trend data) provides rich background information and data support for risk assessment, making the assessment results more comprehensive. The pre-built financial risk assessment model is trained based on a large amount of historical data, which can identify and quantify different types of risks, thereby improving the accuracy of risk assessment; the use of web crawler technology to collect text data of market participants in real time can quickly capture changes in market sentiment and provide the latest market feedback for risk assessment; real-time market sentiment assessment makes risk assessment dynamic and can adjust investment strategies and risk management measures in a timely manner; the predicted financial events determined based on the current market sentiment indicators provide an important basis for revising the model's predicted risk indicators, which helps to more accurately reflect the actual market situation and improve the pertinence and effectiveness of risk assessment; the determination of risk levels enables investors to more intuitively understand the risk level of the financial transactions to be predicted, providing an intuitive reference for investment decisions; through timely monitoring and assessment of market risks, financial institutions can promptly discover potential risks and take corresponding risk management measures to reduce potential losses.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

图1为本说明书实施例提供的一种基于机器学习的金融交易风险评估方法的流程示意图;FIG1 is a flow chart of a financial transaction risk assessment method based on machine learning provided in an embodiment of this specification;

图2为本说明书实施例提供的一种基于机器学习的金融交易风险评估设备的结构示意图。FIG2 is a schematic diagram of the structure of a financial transaction risk assessment device based on machine learning provided in an embodiment of this specification.

具体实施方式DETAILED DESCRIPTION

为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

随着全球金融市场的不断扩大和复杂化,投资者和金融机构对于交易风险的识别和管理需求日益增长。金融交易风险评估的准确性和实时性对于保障市场稳定、优化投资策略以及确保资产安全具有重要意义。传统的金融交易风险评估方法主要依赖于人工分析、专家经验和简单的数学模型,在处理大规模、高维度的金融数据时存在很大的局限性,难以满足现代金融市场的风险评估需求。并且,传统的交融交易风险评估依赖于已经发生的历史数据,缺少实时维度的数据。因此,传统的金融交易风险评估方法在处理大规模、高维度的金融数据时存在很大的局限性,并且缺少实时维度的数据,导致风险评估的准确性和可靠性无法满足评估需求。As the global financial market continues to expand and become more complex, investors and financial institutions have an increasing need to identify and manage transaction risks. The accuracy and real-time nature of financial transaction risk assessment are of great significance for ensuring market stability, optimizing investment strategies, and ensuring asset security. Traditional financial transaction risk assessment methods mainly rely on manual analysis, expert experience, and simple mathematical models. They have great limitations when processing large-scale, high-dimensional financial data and are difficult to meet the risk assessment needs of modern financial markets. In addition, traditional cross-border transaction risk assessment relies on historical data that has already occurred and lacks real-time dimensional data. Therefore, traditional financial transaction risk assessment methods have great limitations when processing large-scale, high-dimensional financial data, and lack real-time dimensional data, resulting in the inability of the accuracy and reliability of risk assessment to meet assessment needs.

本说明书实施例提供一种基于机器学习的金融交易风险评估方法,需要说明的是,本说明书实施例中的执行主体可以是服务器,也可以是任意一种具备数据处理能力的设备。图1为本说明书实施例提供的一种基于机器学习的金融交易风险评估方法的流程示意图,如图1所示,主要包括如下步骤:The embodiment of this specification provides a financial transaction risk assessment method based on machine learning. It should be noted that the execution subject in the embodiment of this specification can be a server or any device with data processing capabilities. Figure 1 is a flow chart of a financial transaction risk assessment method based on machine learning provided by the embodiment of this specification. As shown in Figure 1, it mainly includes the following steps:

步骤S101,通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定待预测金融交易对应的模型预测风险指标。Step S101, determining the model prediction risk index corresponding to the financial transaction to be predicted through the multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and the pre-built financial risk assessment model.

其中,该多维度历史交易信息包括历史交易数据、用户行为数据和市场趋势数据。Among them, the multi-dimensional historical transaction information includes historical transaction data, user behavior data and market trend data.

通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定该待预测金融交易对应的模型预测风险指标,具体包括:采集与该待预测金融交易相关的多维度历史交易信息,以对该多维度历史交易信息进行特征提取,确定对应的交易风险特征集合,其中,该交易风险特征集合包括交易价格与波动性特征、交易量特征、用户行为特征和市场趋势指标;使用预设的机器学习算法构建金融风险评估模型,将该交易风险特征集合输入至该金融风险评估模型中,确定该待预测金融交易对应的模型预测风险指标。The model prediction risk index corresponding to the financial transaction to be predicted is determined by using the multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-constructed financial risk assessment model, specifically including: collecting the multi-dimensional historical transaction information related to the financial transaction to be predicted, performing feature extraction on the multi-dimensional historical transaction information, and determining the corresponding transaction risk feature set, wherein the transaction risk feature set includes transaction price and volatility features, transaction volume features, user behavior features, and market trend indicators; using a preset machine learning algorithm to construct a financial risk assessment model, inputting the transaction risk feature set into the financial risk assessment model, and determining the model prediction risk index corresponding to the financial transaction to be predicted.

在本说明书的一个实施例中,采集待预测金融交易对应的多维度历史交易信息,其中,该多维度历史交易信息包括历史交易数据、用户行为数据和市场趋势数据。收集与待预测金融交易相关的历史交易记录,包括交易时间、交易价格、交易量等;分析历史交易中用户的交易行为,如交易频率、持仓时间、交易偏好等;收集市场趋势数据,如宏观经济数据、行业数据、政策变化等,以了解市场的大背景。对收集到的多维度历史交易信息进行清洗、整合和标准化处理,以确保数据的质量和一致性,进行缺失值填充、异常值处理、数据归一化等操作。对多维度历史交易信息进行交易价格与波动性特征、交易量特征、用户行为特征和市场趋势指标的特征提取,确定对应的交易风险特征集合。加载预先构建的金融风险评估模型,该模型基于机器学习、深度学习或传统统计方法构建,用于预测金融交易的风险。将提取的特征作为输入,传递给金融风险评估模型,模型根据输入的特征进行计算,输出待预测金融交易对应的模型预测风险指标,指标通常是一个数值或分数,表示交易的风险水平。In one embodiment of the present specification, multi-dimensional historical transaction information corresponding to the financial transaction to be predicted is collected, wherein the multi-dimensional historical transaction information includes historical transaction data, user behavior data and market trend data. Collect historical transaction records related to the financial transaction to be predicted, including transaction time, transaction price, transaction volume, etc.; analyze the transaction behavior of users in historical transactions, such as transaction frequency, position holding time, transaction preference, etc.; collect market trend data, such as macroeconomic data, industry data, policy changes, etc., to understand the market background. Clean, integrate and standardize the collected multi-dimensional historical transaction information to ensure the quality and consistency of the data, and perform operations such as missing value filling, outlier processing, and data normalization. Extract the characteristics of transaction price and volatility, transaction volume, user behavior and market trend indicators from the multi-dimensional historical transaction information to determine the corresponding transaction risk feature set. Load a pre-built financial risk assessment model, which is built based on machine learning, deep learning or traditional statistical methods and is used to predict the risks of financial transactions. The extracted features are used as input and passed to the financial risk assessment model. The model calculates based on the input features and outputs the model prediction risk index corresponding to the financial transaction to be predicted. The index is usually a number or score that represents the risk level of the transaction.

对该多维度历史交易信息进行特征提取,确定对应的交易风险特征集合,具体包括:获取该多维度历史交易信息中的历史交易数据,用户行为数据和市场趋势数据;对该历史交易数据中的历史交易价格进行分析,确定交易价格变化率和交易价格波动性;对该历史交易数据中的历史交易量进行分析,生成交易量变化率以及交易量与交易价格之间的影响关系,确定交易量特征;根据该用户行为数据,确定用户的交易频率、持仓时间和交易偏好数据,以确定用户行为特征;通过该市场趋势数据,确定市场指数,以确定市场趋势指标。Feature extraction is performed on the multi-dimensional historical transaction information to determine the corresponding transaction risk feature set, specifically including: obtaining historical transaction data, user behavior data and market trend data in the multi-dimensional historical transaction information; analyzing the historical transaction prices in the historical transaction data to determine the transaction price change rate and transaction price volatility; analyzing the historical transaction volume in the historical transaction data to generate the transaction volume change rate and the influence relationship between the transaction volume and the transaction price to determine the transaction volume characteristics; determining the user's transaction frequency, position holding time and transaction preference data based on the user behavior data to determine the user behavior characteristics; determining the market index through the market trend data to determine the market trend indicator.

在本说明书的一个实施例中,从多维度历史交易信息中提取与金融交易风险相关的特征,是金融风险评估中至关重要的一步,特征能够揭示金融市场的动态、交易者的行为模式以及潜在的风险因素。获取多维度历史交易信息中的历史交易数据,用户行为数据和市场趋势数据。对历史交易数据中的历史交易价格进行分析,计算交易价格的历史变化率,如日涨跌幅、周涨跌幅等,使用标准差、方差或波动率指数(如VIX)来衡量价格的波动程度,确定交易价格变化率和交易价格波动性。对该历史交易数据中的历史交易量进行分析,交易量使用每日或每小时的交易量数据,计算交易量的变化率,以了解市场活跃度的变化,分析交易量在价格上涨或下跌时的表现,例如“量价齐升”或“量缩价跌”,生成交易量变化率以及交易量与交易价格之间的影响关系,确定交易量特征。根据该用户行为数据,计算用户的交易次数或交易频率,分析用户持有某种资产的时间长度,识别用户是否倾向于买入或卖出某种资产,或是否偏好某种交易策略,以确定用户行为特征。通过该市场趋势数据,确定市场指数,使用如道指、标普500等市场指数来衡量整体市场的表现,以确定市场趋势指标。In one embodiment of the present specification, extracting features related to financial transaction risks from multi-dimensional historical transaction information is a crucial step in financial risk assessment. Features can reveal the dynamics of financial markets, trader behavior patterns, and potential risk factors. Obtain historical transaction data, user behavior data, and market trend data in multi-dimensional historical transaction information. Analyze the historical transaction prices in the historical transaction data, calculate the historical change rate of the transaction price, such as daily increase or decrease, weekly increase or decrease, etc., use standard deviation, variance or volatility index (such as VIX) to measure the degree of price fluctuation, and determine the transaction price change rate and transaction price volatility. Analyze the historical transaction volume in the historical transaction data, use daily or hourly transaction volume data, calculate the change rate of transaction volume, so as to understand the changes in market activity, analyze the performance of transaction volume when prices rise or fall, such as "volume and price rise together" or "volume shrinkage and price drop", generate the transaction volume change rate and the influence relationship between transaction volume and transaction price, and determine the transaction volume characteristics. Based on the user behavior data, the number of transactions or transaction frequency of the user is calculated, the length of time the user holds a certain asset is analyzed, and whether the user tends to buy or sell a certain asset, or whether the user prefers a certain trading strategy, is identified to determine the user's behavior characteristics. Through the market trend data, the market index is determined, and market indices such as the Dow Jones and S&P 500 are used to measure the performance of the overall market to determine the market trend indicators.

通过上述技术方案,多维度历史交易信息包含了丰富的市场波动参数、交易成交参数等关键数据,这些数据能够为金融风险评估模型提供全面、细致的交易背景。预先构建的金融风险评估模型基于大量的历史数据和统计分析,能够识别并量化不同类型的风险,如信用风险、市场风险和操作风险等。通过结合多维度历史交易信息和风险评估模型,可以更加准确地预测待预测金融交易的风险水平,提高风险评估的准确性和可靠性。Through the above technical solutions, multi-dimensional historical transaction information contains a wealth of key data such as market volatility parameters and transaction parameters, which can provide a comprehensive and detailed transaction background for the financial risk assessment model. The pre-built financial risk assessment model is based on a large amount of historical data and statistical analysis, and can identify and quantify different types of risks, such as credit risk, market risk, and operational risk. By combining multi-dimensional historical transaction information and risk assessment models, the risk level of the financial transaction to be predicted can be more accurately predicted, improving the accuracy and reliability of risk assessment.

步骤S102,利用网络爬虫技术,采集待预测金融交易对应当前金融市场的市场参与用户的实时文本数据,以基于市场参与用户的实时文本数据,对当前金融市场进行市场情绪评估,确定当前金融市场对应的当前市场情绪指标。Step S102, using web crawler technology to collect real-time text data of market participants in the current financial market corresponding to the financial transaction to be predicted, so as to evaluate the market sentiment of the current financial market based on the real-time text data of market participants, and determine the current market sentiment index corresponding to the current financial market.

在本说明书的一个实施例中,利用网络爬虫技术,采集待预测金融交易对应当前金融市场的市场参与用户的实时文本数据,此处的市场参与用户包括投资用户、金融分析师、交易用户等多种交易身份,实时文本数据可以包括在社交媒体、财经论坛等社交平台上的文本数据,还可以是与金融市场相关的新闻报道等文本数据,数据通常包含他们对市场的看法、预测和情绪表达。In one embodiment of the present specification, web crawler technology is used to collect real-time text data of market participants in the current financial market corresponding to the financial transaction to be predicted. The market participants here include various trading identities such as investment users, financial analysts, and trading users. The real-time text data may include text data on social platforms such as social media and financial forums, and may also be text data such as news reports related to the financial market. The data usually includes their views, predictions and emotional expressions on the market.

基于该市场参与用户的实时文本数据,对该当前金融市场进行市场情绪评估,确定该当前金融市场对应的当前市场情绪指标,具体包括:对该市场参与用户的实时文本数据进行预处理,以提取该市场参与用户的实时文本数据中的实时文本情绪特征集合;根据该实时文本情绪特征集合和预先构建的市场情绪预测模型,确定该当前金融市场对应的当前市场情绪指标。Based on the real-time text data of the market participating users, a market sentiment assessment is conducted on the current financial market to determine the current market sentiment index corresponding to the current financial market, specifically including: preprocessing the real-time text data of the market participating users to extract a real-time text sentiment feature set in the real-time text data of the market participating users; and determining the current market sentiment index corresponding to the current financial market based on the real-time text sentiment feature set and a pre-built market sentiment prediction model.

对该市场参与用户的实时文本数据进行预处理,以提取该市场参与用户的实时文本数据中的实时文本情绪特征集合,具体包括:对该市场参与用户的实时文本数据进行预处理,以获取标准文本数据;对该标准文本数据进行分词处理,以将该标准文本数据切分为多个文本词,生成文本词汇集合;利用自然语言处理技术,对该文本词汇集合中的多个问本词进行词形还原,以确定该实时文本情绪特征集合。The real-time text data of the market participating users is preprocessed to extract a real-time text emotion feature set in the real-time text data of the market participating users, specifically including: preprocessing the real-time text data of the market participating users to obtain standard text data; performing word segmentation processing on the standard text data to divide the standard text data into multiple text words to generate a text vocabulary set; using natural language processing technology to perform word form restoration on multiple question words in the text vocabulary set to determine the real-time text emotion feature set.

在本说明书的一个实施例中,对收集到的文本数据进行清洗,去除重复、无关和噪声数据。进行文本分词,将文本数据切分成独立的词汇或短语。去除停用词,如常见的介词、连词等,以减少数据稀疏性。可能还需要进行词干提取或词形还原,将不同形式的词汇统一到同一词干或词根。提取文本数据中的情感倾向,这可以通过情感分析算法(如基于规则的方法、基于机器学习的方法)来实现。情感分析算法能够识别文本中的积极、消极或中性情绪,提取文本中的主题或关键词,这有助于理解用户讨论的主要内容。根据提取的特征,构建市场情绪模型。模型可以是基于统计的(如计算积极和消极情绪的比例),也可以是基于机器学习的(如使用分类器预测市场情绪类别)。如果有历史市场情绪数据和对应的金融市场数据,可以利用这些数据来训练模型,以提高模型的预测能力。例如,获取多个历史市场情绪文本数据,并对该历史市场情绪文本数据进行数据标注,以构建标注数据集,其中,该标注数据集包括历史市场情绪文本数据和对应的情绪类别标签;将标注数据集划分为训练集、验证集和测试集,使用训练集数据对市场情绪预测模型进行训练,调整模型参数,确定该市场情绪预测模型。In one embodiment of the present specification, the collected text data is cleaned to remove duplicate, irrelevant and noise data. Text segmentation is performed to divide the text data into independent words or phrases. Stop words, such as common prepositions, conjunctions, etc., are removed to reduce data sparsity. Stem extraction or morphological restoration may also be required to unify different forms of vocabulary into the same stem or root. The emotional tendency in the text data is extracted, which can be achieved by a sentiment analysis algorithm (such as a rule-based method or a machine learning-based method). The sentiment analysis algorithm can identify positive, negative or neutral emotions in the text and extract topics or keywords in the text, which helps to understand the main content of the user discussion. Based on the extracted features, a market sentiment model is constructed. The model can be based on statistics (such as calculating the ratio of positive and negative emotions) or based on machine learning (such as using a classifier to predict market sentiment categories). If there is historical market sentiment data and corresponding financial market data, these data can be used to train the model to improve the model's predictive ability. For example, multiple historical market sentiment text data are obtained, and the historical market sentiment text data are annotated to construct an annotated data set, wherein the annotated data set includes the historical market sentiment text data and corresponding sentiment category labels; the annotated data set is divided into a training set, a validation set, and a test set, and the market sentiment prediction model is trained using the training set data, the model parameters are adjusted, and the market sentiment prediction model is determined.

将实时收集到的文本数据输入到市场情绪模型中,得到当前市场情绪的预测结果,可以是一个数值(如情绪得分或情绪指数),也可以是一个类别(如乐观、悲观、中性)根据模型输出的预测结果,确定当前金融市场对应的当前市场情绪指标。这个指标可以是直接基于模型输出的情绪得分或情绪指数,也可以是根据模型预测结果进一步计算或转换得到的。例如,当投资者情绪指数偏高时,表明投资者普遍乐观,可能预示着市场的上涨趋势,尤其是当指数持续上升并超过历史平均水平时;指数偏低则可能意味着市场悲观,存在低估的机会。Input the text data collected in real time into the market sentiment model to obtain the prediction results of the current market sentiment, which can be a numerical value (such as sentiment score or sentiment index) or a category (such as optimistic, pessimistic, neutral). According to the prediction results output by the model, determine the current market sentiment index corresponding to the current financial market. This indicator can be directly based on the sentiment score or sentiment index output by the model, or it can be further calculated or converted based on the model prediction results. For example, when the investor sentiment index is high, it indicates that investors are generally optimistic, which may indicate an upward trend in the market, especially when the index continues to rise and exceeds the historical average; a low index may mean that the market is pessimistic and there is an opportunity for underestimation.

通过上述技术方案,网络爬虫技术能够自动、快速地抓取互联网上的实时文本数据,如新闻报道、社交媒体评论、论坛讨论等,这些数据往往直接反映了市场参与者的即时情绪和观点,通过分析这些实时数据,金融机构和投资者可以迅速获取市场情绪变化的信息,从而及时调整投资策略,降低投资风险,网络爬虫技术能够采集到大量、全面的市场参与用户实时文本数据,这些数据的丰富性为市场情绪评估提供了更多的信息来源和参考依据;结合自然语言处理(NLP)等先进技术,可以对这些文本数据进行深入分析和挖掘,提取出市场情绪的关键特征,从而更准确地评估市场情绪。Through the above technical solutions, web crawler technology can automatically and quickly capture real-time text data on the Internet, such as news reports, social media comments, forum discussions, etc. These data often directly reflect the immediate emotions and opinions of market participants. By analyzing these real-time data, financial institutions and investors can quickly obtain information on changes in market sentiment, thereby adjusting investment strategies in a timely manner and reducing investment risks. Web crawler technology can collect a large amount of comprehensive real-time text data from market participants. The richness of this data provides more information sources and reference bases for market sentiment assessment; combined with advanced technologies such as natural language processing (NLP), these text data can be deeply analyzed and mined to extract the key features of market sentiment, thereby more accurately assessing market sentiment.

步骤S103,根据当前市场情绪指标,确定当前金融市场对应的预测金融事件,以通过预测金融事件,对模型预测风险指标进行修正,确定待预测金融交易的当前预测风险指标。Step S103, determining the predicted financial event corresponding to the current financial market according to the current market sentiment index, so as to correct the model prediction risk index by predicting the financial event and determine the current prediction risk index of the financial transaction to be predicted.

根据该当前市场情绪指标,确定该当前金融市场对应的预测金融事件,具体包括:获取多个历史市场情绪信息,其中,该历史市场情绪信息包括历史市场情绪指标和历史时间戳;按照该历史市场情绪指标,将该多个历史市场情绪信息进行分类,生成每个情绪指标对应的情绪指标数据集合;基于每个该情绪指标数据集合中的历史时间戳,获取每个该历史时间戳对应的指定时间周期内的至少一个历史金融事件,其中,该指定时间周期为位于该历史时间戳之后的时间区间;对该情绪指标数据集合中每个该历史时间戳对应的指定时间周期内的至少一个历史金融事件进行统计分析,确定每个该情绪指标数据集合中最多的指定历史金融事件;根据每个该情绪指标数据集合中最多的指定历史金融事件,建立每个情绪指标和金融事件的对应关系;根据每个情绪指标和金融事件的对应关系,对该当前市场情绪指标进行匹配,确定该预测金融事件。According to the current market sentiment index, the predicted financial event corresponding to the current financial market is determined, specifically including: obtaining multiple historical market sentiment information, wherein the historical market sentiment information includes historical market sentiment indicators and historical timestamps; classifying the multiple historical market sentiment information according to the historical market sentiment indicators to generate a sentiment indicator data set corresponding to each sentiment indicator; based on the historical timestamps in each of the sentiment indicator data sets, obtaining at least one historical financial event within a specified time period corresponding to each of the historical timestamps, wherein the specified time period is a time interval after the historical timestamp; performing statistical analysis on at least one historical financial event within a specified time period corresponding to each of the historical timestamps in the sentiment indicator data set to determine the largest number of specified historical financial events in each of the sentiment indicator data sets; establishing a correspondence between each sentiment indicator and a financial event based on the largest number of specified historical financial events in each of the sentiment indicator data sets; matching the current market sentiment indicators based on the correspondence between each of the sentiment indicators and financial events to determine the predicted financial event.

在本说明书的一个实施例中,获取多个历史市场情绪信息,历史市场情绪信息包括历史市场情绪指标和历史时间戳。按照历史市场情绪指标,将多个历史市场情绪信息进行分类,生成每个情绪指标对应的情绪指标数据集合,得到多个情绪指标集合。根据每个该情绪指标数据集合中的历史时间戳,获取每个该历史时间戳对应的指定时间周期内的至少一个历史金融事件,其中,该指定时间周期为位于该历史时间戳之后的时间区间,即发生在历史时间戳之后的历史金融事件。对情绪指标数据集合中每个历史时间戳对应的指定时间周期内的至少一个历史金融事件进行统计分析,确定每个该情绪指标数据集合中发生次数最多的指定历史金融事件。根据每个该情绪指标数据集合中最多的指定历史金融事件,建立每个情绪指标和金融事件的对应关系;根据每个情绪指标和金融事件的对应关系,对当前市场情绪指标进行匹配,确定预测金融事件。此处的预测金融事件包括市场上涨、市场下跌和市场动荡等多种金融事件。例如当投资者情绪指数高,且持续上升,一般容易发生市场上涨事件,投资者情绪指数低,且持续下降时一般发生市场下跌事件,市场动荡一般指投资者情绪指数出现波动的情况。In one embodiment of the present specification, a plurality of historical market sentiment information is obtained, and the historical market sentiment information includes historical market sentiment indicators and historical timestamps. According to the historical market sentiment indicators, the plurality of historical market sentiment information is classified, and a sentiment indicator data set corresponding to each sentiment indicator is generated to obtain a plurality of sentiment indicator sets. According to the historical timestamps in each of the sentiment indicator data sets, at least one historical financial event in a specified time period corresponding to each of the historical timestamps is obtained, wherein the specified time period is a time interval after the historical timestamp, that is, a historical financial event that occurs after the historical timestamp. A statistical analysis is performed on at least one historical financial event in a specified time period corresponding to each of the historical timestamps in the sentiment indicator data set, and the designated historical financial event with the most occurrences in each of the sentiment indicator data sets is determined. According to the designated historical financial event with the most occurrences in each of the sentiment indicator data sets, a corresponding relationship between each sentiment indicator and a financial event is established; according to the corresponding relationship between each sentiment indicator and a financial event, the current market sentiment indicator is matched to determine a predicted financial event. The predicted financial events herein include a variety of financial events such as market rise, market fall, and market turmoil. For example, when the investor sentiment index is high and continues to rise, market rising events are generally prone to occur. When the investor sentiment index is low and continues to decline, market falling events generally occur. Market turbulence generally refers to fluctuations in the investor sentiment index.

通过该预测金融事件,对该模型预测风险指标进行修正,确定该待预测金融交易的当前预测风险指标,具体包括:获取该预测金融事件对应的历史交易影响参数,其中,该历史交易影响参数包括市场波动参数、交易成交参数;通过该历史交易影响参数,对该预测金融事件的交易影响风险进行评估,以确定对应的影响风险指标,其中,该影响风险指标包括正向影响指标和负面影响指标中的任意一项;根据该影响风险指标和该模型预测风险指标,生成该待预测金融交易的当前预测风险指标。Through the predicted financial event, the model prediction risk index is corrected to determine the current prediction risk index of the financial transaction to be predicted, specifically including: obtaining the historical transaction impact parameters corresponding to the predicted financial event, wherein the historical transaction impact parameters include market volatility parameters and transaction completion parameters; through the historical transaction impact parameters, the transaction impact risk of the predicted financial event is evaluated to determine the corresponding impact risk index, wherein the impact risk index includes any one of a positive impact index and a negative impact index; based on the impact risk index and the model prediction risk index, the current prediction risk index of the financial transaction to be predicted is generated.

在本说明书的一个实施例中,获取预测金融事件对应的历史交易影响参数,历史交易影响参数包括市场波动参数、交易成交参数,此处的历史交易影响参数通常是指历史状态下,发生金融事件时所影响的交易参数;收集历史上发生过的金融事件及其对应时间点的市场数据,确保数据包含市场波动参数(如价格波动率、交易量变化率等)和交易成交参数(如成交价格、成交量、买卖比等)。清洗数据,去除缺失值、异常值或错误数据之后,对数据进行标准化或归一化处理,以便进行后续分析。从历史数据中提取与金融事件相关的市场波动参数和交易成交参数作为特征,可以考虑使用时间序列分析、事件研究法等方法来进一步提炼特征。使用统计模型(如线性回归、逻辑回归、随机森林等)或机器学习模型(如神经网络、深度学习等)来建立金融事件与市场波动参数、交易成交参数之间的关系模型。通过训练模型,可以预测给定金融事件下可能的市场波动和交易成交情况。对于待预测的金融事件,使用已建立的模型来预测其可能的市场波动参数和交易成交参数,根据预测结果,评估该金融事件对交易的正向影响(如提升交易量、稳定价格等)或负面影响(如导致价格暴跌、交易量萎缩等)。In one embodiment of the present specification, historical transaction impact parameters corresponding to the predicted financial event are obtained, and the historical transaction impact parameters include market volatility parameters and transaction completion parameters. The historical transaction impact parameters here generally refer to the transaction parameters affected when the financial event occurs in the historical state; the market data of the financial events that have occurred in history and their corresponding time points are collected to ensure that the data contains market volatility parameters (such as price volatility, transaction volume change rate, etc.) and transaction completion parameters (such as transaction price, transaction volume, buy-sell ratio, etc.). After cleaning the data, removing missing values, outliers or erroneous data, the data is standardized or normalized for subsequent analysis. The market volatility parameters and transaction completion parameters related to the financial event are extracted from the historical data as features, and time series analysis, event study method and other methods can be considered to further refine the features. Use statistical models (such as linear regression, logistic regression, random forest, etc.) or machine learning models (such as neural networks, deep learning, etc.) to establish a relationship model between financial events and market volatility parameters and transaction completion parameters. By training the model, the possible market fluctuations and transaction completion situations under a given financial event can be predicted. For the financial events to be predicted, the established models are used to predict their possible market volatility parameters and transaction parameters. Based on the prediction results, the positive impact (such as increasing transaction volume, stabilizing prices, etc.) or negative impact (such as causing price plunges, shrinking transaction volumes, etc.) of the financial events on transactions are evaluated.

根据预测结果和风险评估,确定影响风险指标,影响风险指标包括正向影响指标(如预期交易量增长率、预期价格稳定度等)或负面影响指标(如预期价格跌幅、预期交易量跌幅等)。结合该金融事件的模型预测风险指标(如基于历史数据训练的模型输出的风险预测值)和上述确定的影响风险指标,生成待预测金融交易的当前预测风险指标。预测风险指标可以是一个综合的数值或评分,反映金融事件对交易的综合影响风险。Based on the prediction results and risk assessment, the impact risk indicators are determined, including positive impact indicators (such as expected transaction volume growth rate, expected price stability, etc.) or negative impact indicators (such as expected price decline, expected transaction volume decline, etc.). Combined with the model prediction risk indicators of the financial event (such as the risk prediction value output by the model trained based on historical data) and the above-determined impact risk indicators, the current prediction risk indicator of the financial transaction to be predicted is generated. The prediction risk indicator can be a comprehensive value or score that reflects the comprehensive impact risk of the financial event on the transaction.

通过上述技术方案,通过综合考虑历史交易中的市场波动参数和交易成交参数,可以更全面地评估金融事件对交易的实际影响;影响风险指标(包括正向和负面影响指标)的确定,使得风险管理更具针对性,可以根据这些指标,制定更加精细化的风险管理策略,有效应对金融事件带来的潜在风险,通过预测金融事件的交易影响风险,投资者可以更好地了解不同资产在特定事件下的表现,从而优化投资组合的配置;对金融事件进行实时分析,评估其对交易的潜在影响,使得投资者和金融机构能够及时发现风险并采取措施,降低损失。Through the above technical solution, by comprehensively considering the market volatility parameters and transaction completion parameters in historical transactions, the actual impact of financial events on transactions can be more comprehensively evaluated; the determination of risk indicators (including positive and negative impact indicators) makes risk management more targeted, and more refined risk management strategies can be formulated based on these indicators to effectively deal with the potential risks brought by financial events. By predicting the transaction impact risk of financial events, investors can better understand the performance of different assets under specific events, thereby optimizing the allocation of investment portfolios; real-time analysis of financial events and assessment of their potential impact on transactions enable investors and financial institutions to promptly identify risks and take measures to reduce losses.

步骤S104,基于待预测金融交易的当前预测风险指标,对待预测金融交易进行风险评估,确定待预测金融交易的风险等级。Step S104: Based on the current prediction risk index of the financial transaction to be predicted, a risk assessment is performed on the financial transaction to be predicted to determine the risk level of the financial transaction to be predicted.

基于该待预测金融交易的当前预测风险指标,对该待预测金融交易进行风险评估,确定该待预测金融交易的风险等级之后,该方法还包括:设置风险等级阈值,以基于该待预测金融交易的风险等级和该风险等级阈值,生成预警信息;基于该风险等级,确定对应的风险管理策略,以基于该预警信息和该风险管理策略,生成风险评估报告。After performing a risk assessment on the financial transaction to be predicted based on the current predicted risk indicator of the financial transaction to be predicted and determining the risk level of the financial transaction to be predicted, the method further includes: setting a risk level threshold to generate early warning information based on the risk level of the financial transaction to be predicted and the risk level threshold; and determining a corresponding risk management strategy based on the risk level to generate a risk assessment report based on the early warning information and the risk management strategy.

在本说明书的一个实施例中,根据历史数据和经验,设定一系列风险等级,例如低风险、中风险、高风险等。每个风险等级应对应一个风险指标的范围或阈值。将待预测金融交易的当前预测风险指标与设定的风险等级阈值进行比较。根据比较结果,确定待预测金融交易的风险等级。编写风险评估报告,详细说明待预测金融交易的风险等级以及评估依据。报告中可以包含对风险因素的详细分析、潜在风险的预测以及相应的风险管理建议。In one embodiment of the present specification, a series of risk levels are set based on historical data and experience, such as low risk, medium risk, high risk, etc. Each risk level should correspond to a range or threshold of a risk indicator. The current predicted risk indicator of the financial transaction to be predicted is compared with the set risk level threshold. Based on the comparison result, the risk level of the financial transaction to be predicted is determined. A risk assessment report is prepared, detailing the risk level of the financial transaction to be predicted and the basis for the assessment. The report may include a detailed analysis of risk factors, a prediction of potential risks, and corresponding risk management recommendations.

当评估结果显示风险等级超过预设阈值时,系统将自动发出预警信号。预警信号将通过电子邮件、短信或系统界面直接通知相关风险管理人员。还包括一个反馈机制,能够根据实际发生的金融事件对风险评估模型进行调整和优化。这种自我学习和适应机制将不断提高模型的准确性。提供一个用户友好的界面,允许风险管理人员查看风险评估结果、调整风险阈值、查看预警历史等。When the assessment results show that the risk level exceeds the preset threshold, the system will automatically issue an early warning signal. The early warning signal will be notified to the relevant risk managers directly via email, SMS or system interface. It also includes a feedback mechanism that can adjust and optimize the risk assessment model based on actual financial events. This self-learning and adaptation mechanism will continuously improve the accuracy of the model. Provide a user-friendly interface that allows risk managers to view risk assessment results, adjust risk thresholds, view early warning history, etc.

通过基于当前预测风险指标的风险评估,可以更精确地确定待预测金融交易的风险等级。有助于投资者和金融机构更准确地把握交易的风险水平,制定更加精细化的风险管理策略;风险评估结果为投资者提供了关于待预测金融交易风险水平的重要信息,投资者可以根据风险等级,权衡风险与收益,做出更加明智的交易决策;通过设定明确的风险等级和评估标准,可以实现风险管理的标准化和规范化,有助于提高风险管理的效率和一致性,降低人为因素对风险管理的影响。Through risk assessment based on current forecast risk indicators, the risk level of the financial transaction to be forecasted can be determined more accurately. This helps investors and financial institutions to more accurately grasp the risk level of transactions and formulate more refined risk management strategies; the risk assessment results provide investors with important information about the risk level of the financial transaction to be forecasted, and investors can weigh risks and benefits according to the risk level and make more informed trading decisions; by setting clear risk levels and assessment standards, risk management can be standardized and normalized, which helps to improve the efficiency and consistency of risk management and reduce the impact of human factors on risk management.

通过上述技术方案,多维度历史交易信息(包括历史交易数据、用户行为数据和市场趋势数据)为风险评估提供了丰富的背景信息和数据支持,使得评估结果更加全面,预先构建的金融风险评估模型基于大量历史数据训练,能够识别并量化不同类型的风险,提高了风险评估的准确性;利用网络爬虫技术实时采集市场参与用户的文本数据,能够迅速捕捉市场情绪的变化,为风险评估提供最新的市场反馈;实时市场情绪评估使得风险评估具有动态性,能够及时调整投资策略和风险管理措施;根据当前市场情绪指标确定的预测金融事件,为模型预测风险指标提供了重要的修正依据,有助于更准确地反映市场实际情况,提高风险评估的针对性和有效性;风险等级的确定使得投资者能够更直观地了解待预测金融交易的风险水平,为投资决策提供直观参考;通过及时监测和评估市场风险,金融机构可以及时发现潜在风险并采取相应的风险管理措施,降低潜在损失。Through the above technical solutions, multi-dimensional historical transaction information (including historical transaction data, user behavior data and market trend data) provides rich background information and data support for risk assessment, making the assessment results more comprehensive. The pre-built financial risk assessment model is trained based on a large amount of historical data, which can identify and quantify different types of risks and improve the accuracy of risk assessment. The use of web crawler technology to collect text data of market participants in real time can quickly capture changes in market sentiment and provide the latest market feedback for risk assessment. Real-time market sentiment assessment makes risk assessment dynamic and can adjust investment strategies and risk management measures in a timely manner. The predicted financial events determined according to the current market sentiment indicators provide an important basis for revising the model's predicted risk indicators, which helps to more accurately reflect the actual market situation and improve the pertinence and effectiveness of risk assessment. The determination of risk levels enables investors to more intuitively understand the risk level of the financial transactions to be predicted, providing an intuitive reference for investment decisions. By timely monitoring and evaluating market risks, financial institutions can promptly discover potential risks and take corresponding risk management measures to reduce potential losses.

本说明书实施例还提供一种基于机器学习的金融交易风险评估设备,如图2所示,设备包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够:通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定该待预测金融交易对应的模型预测风险指标,其中,该多维度历史交易信息包括历史交易数据、用户行为数据和市场趋势数据;利用网络爬虫技术,采集该待预测金融交易对应当前金融市场的市场参与用户的实时文本数据,以基于该市场参与用户的实时文本数据,对该当前金融市场进行市场情绪评估,确定该当前金融市场对应的当前市场情绪指标;根据该当前市场情绪指标,确定该当前金融市场对应的预测金融事件,以通过该预测金融事件,对该模型预测风险指标进行修正,确定该待预测金融交易的当前预测风险指标;基于该待预测金融交易的当前预测风险指标,对该待预测金融交易进行风险评估,确定该待预测金融交易的风险等级。The embodiment of the present specification also provides a financial transaction risk assessment device based on machine learning, as shown in Figure 2, the device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: determine the model prediction risk index corresponding to the financial transaction to be predicted through the multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and the pre-built financial risk assessment model, wherein the multi-dimensional historical transaction information includes historical transaction data, user behavior data and market trend data; use web crawler technology to collect real-time text data of market participants in the current financial market corresponding to the financial transaction to be predicted, so as to conduct market sentiment assessment on the current financial market based on the real-time text data of the market participants, and determine the current market sentiment index corresponding to the current financial market; determine the predicted financial event corresponding to the current financial market according to the current market sentiment index, so as to correct the model prediction risk index through the predicted financial event and determine the current predicted risk index of the financial transaction to be predicted; conduct risk assessment on the financial transaction to be predicted based on the current predicted risk index of the financial transaction to be predicted, and determine the risk level of the financial transaction to be predicted.

本说明书实施例还提供一种非易失性计算机存储介质,存储有计算机可执行指令,计算机可执行指令设置为:通过待预测金融交易对应的多维度历史交易信息和预先构建的金融风险评估模型,确定该待预测金融交易对应的模型预测风险指标,其中,该多维度历史交易信息包括历史交易数据、用户行为数据和市场趋势数据;利用网络爬虫技术,采集该待预测金融交易对应当前金融市场的市场参与用户的实时文本数据,以基于该市场参与用户的实时文本数据,对该当前金融市场进行市场情绪评估,确定该当前金融市场对应的当前市场情绪指标;根据该当前市场情绪指标,确定该当前金融市场对应的预测金融事件,以通过该预测金融事件,对该模型预测风险指标进行修正,确定该待预测金融交易的当前预测风险指标;基于该待预测金融交易的当前预测风险指标,对该待预测金融交易进行风险评估,确定该待预测金融交易的风险等级。The embodiments of the present specification also provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to: determine the model prediction risk index corresponding to the financial transaction to be predicted through multi-dimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-built financial risk assessment model, wherein the multi-dimensional historical transaction information includes historical transaction data, user behavior data, and market trend data; collect real-time text data of market participants in the current financial market corresponding to the financial transaction to be predicted by using web crawler technology, so as to conduct a market sentiment assessment on the current financial market based on the real-time text data of the market participants, and determine the current market sentiment index corresponding to the current financial market; determine the predicted financial event corresponding to the current financial market based on the current market sentiment index, so as to correct the model prediction risk index through the predicted financial event, and determine the current predicted risk index of the financial transaction to be predicted; conduct a risk assessment on the financial transaction to be predicted based on the current predicted risk index of the financial transaction to be predicted, and determine the risk level of the financial transaction to be predicted.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、设备、非易失性计算机存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

本说明书实施例提供的设备和介质与方法是一一对应的,因此,设备和介质也具有与其对应的方法类似的有益技术效果,由于上面已经对方法的有益技术效果进行了详细说明,因此,这里不再赘述设备和介质的有益技术效果。The devices and media provided in the embodiments of this specification correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

本领域内的技术人员应明白,本说明书的实施例可提供为方法、系统、或计算机程序产品。因此,本说明书可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This specification is described with reference to the flowchart and/or block diagram of the method, device (system), and computer program product according to the embodiment of this specification. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

以上所述仅为本说明书的一个或多个实施例而已,并不用于限制本说明书。对于本领域技术人员来说,本说明书的一个或多个实施例可以有各种更改和变化。凡在本说明书的一个或多个实施例的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本说明书的权利要求范围之内。The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.

Claims (10)

1. A machine learning based financial transaction risk assessment method, the method comprising:
Determining a model prediction risk index corresponding to the financial transaction to be predicted through multidimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-constructed financial risk assessment model, wherein the multidimensional historical transaction information comprises historical transaction data, user behavior data and market trend data;
collecting real-time text data of market participant users of the current financial market corresponding to the financial transaction to be predicted by utilizing a web crawler technology, so as to evaluate market emotion of the current financial market based on the real-time text data of the market participant users, and determining a current market emotion index corresponding to the current financial market;
determining a predicted financial event corresponding to the current financial market according to the current market emotion index, correcting the model predicted risk index through the predicted financial event, and determining the current predicted risk index of the financial transaction to be predicted;
And carrying out risk assessment on the financial transaction to be predicted based on the current predicted risk index of the financial transaction to be predicted, and determining the risk level of the financial transaction to be predicted.
2. The machine learning-based financial transaction risk assessment method according to claim 1, wherein determining a model prediction risk indicator corresponding to a financial transaction to be predicted through multidimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-constructed financial risk assessment model specifically comprises:
Collecting multi-dimensional historical transaction information related to the financial transaction to be predicted, so as to perform feature extraction on the multi-dimensional historical transaction information and determine a corresponding transaction risk feature set, wherein the transaction risk feature set comprises transaction price and volatility features, transaction quantity features, user behavior features and market trend indexes;
And constructing a financial risk assessment model by using a preset machine learning algorithm, inputting the transaction risk feature set into the financial risk assessment model, and determining a model prediction risk index corresponding to the financial transaction to be predicted.
3. The machine learning based financial transaction risk assessment method according to claim 1, wherein the market emotion assessment is performed on the current financial market based on real-time text data of the market participant, and determining the current market emotion index corresponding to the current financial market specifically comprises:
Preprocessing the real-time text data of the market participant users to extract a real-time text emotion feature set in the real-time text data of the market participant users;
And determining the current market emotion index corresponding to the current financial market according to the real-time text emotion feature set and a pre-constructed market emotion prediction model.
4. A machine learning based financial transaction risk assessment method according to claim 3, wherein the preprocessing of the real-time text data of the market participant user to extract a set of real-time text emotional characteristics in the real-time text data of the market participant user specifically comprises:
Preprocessing the real-time text data of the market participant users to obtain standard text data;
Word segmentation is carried out on the standard text data so as to segment the standard text data into a plurality of text words and generate a text vocabulary set;
and performing morphological reduction on a plurality of question words in the text vocabulary set by using a natural language processing technology so as to determine the real-time text emotion feature set.
5. The machine learning based financial transaction risk assessment method according to claim 1, wherein determining the predicted financial event corresponding to the current financial market according to the current market emotion index specifically comprises:
Acquiring a plurality of historical market emotion information, wherein the historical market emotion information comprises historical market emotion indexes and historical timestamps;
Classifying the historical market emotion information according to the historical market emotion indexes to generate emotion index data sets corresponding to each emotion index;
Acquiring at least one historical financial event in a specified time period corresponding to each historical timestamp based on the historical timestamp in each emotion index data set, wherein the specified time period is a time interval after the historical timestamp;
carrying out statistical analysis on at least one historical financial event in a specified time period corresponding to each historical timestamp in the emotion index data set, and determining the most specified historical financial event in each emotion index data set;
establishing a corresponding relation between each emotion index and financial event according to the most appointed historical financial event in each emotion index data set;
and matching the current market emotion indexes according to the corresponding relation between each emotion index and the financial event, and determining the predicted financial event.
6. The machine learning based financial transaction risk assessment method according to claim 1, wherein the model predicted risk indicator is modified by the predicted financial event to determine a current predicted risk indicator for the financial transaction to be predicted, specifically comprising:
acquiring historical transaction influence parameters corresponding to the predicted financial event, wherein the historical transaction influence parameters comprise market fluctuation parameters and transaction achievement parameters;
Evaluating the transaction impact risk of the predicted financial event through the historical transaction impact parameters to determine corresponding impact risk indicators, wherein the impact risk indicators comprise any one of positive impact indicators and negative impact indicators;
And generating the current predicted risk index of the financial transaction to be predicted according to the influence risk index and the model predicted risk index.
7. The machine learning based financial transaction risk assessment method of claim 1, wherein, based on the current predicted risk indicator of the financial transaction to be predicted, risk assessment is performed on the financial transaction to be predicted, and after determining the risk level of the financial transaction to be predicted, the method further comprises:
setting a risk level threshold to generate early warning information based on the risk level of the financial transaction to be predicted and the risk level threshold;
and determining a corresponding risk management strategy based on the risk level so as to generate a risk assessment report based on the early warning information and the risk management strategy.
8. The machine learning based financial transaction risk assessment method according to claim 2, wherein the feature extraction is performed on the multi-dimensional historical transaction information, and the corresponding transaction risk feature set is determined, and specifically comprises:
Acquiring historical transaction data, user behavior data and market trend data in the multi-dimensional historical transaction information;
Analyzing the historical transaction price in the historical transaction data to determine the transaction price change rate and the transaction price fluctuation;
analyzing the historical transaction amount in the historical transaction data, generating a transaction amount change rate and an influence relation between the transaction amount and the transaction price, and determining transaction amount characteristics;
According to the user behavior data, determining the transaction frequency, the holding time and the transaction preference data of the user so as to determine the user behavior characteristics;
And determining the market index according to the market trend data so as to determine the market trend index.
9. A machine learning based financial transaction risk assessment device, the device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor, the instructions are executable by the at least one processor to enable the at least one processor to:
Determining a model prediction risk index corresponding to the financial transaction to be predicted through multidimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-constructed financial risk assessment model, wherein the multidimensional historical transaction information comprises historical transaction data, user behavior data and market trend data;
collecting real-time text data of market participant users of the current financial market corresponding to the financial transaction to be predicted by utilizing a web crawler technology, so as to evaluate market emotion of the current financial market based on the real-time text data of the market participant users, and determining a current market emotion index corresponding to the current financial market;
determining a predicted financial event corresponding to the current financial market according to the current market emotion index, correcting the model predicted risk index through the predicted financial event, and determining the current predicted risk index of the financial transaction to be predicted;
And carrying out risk assessment on the financial transaction to be predicted based on the current predicted risk index of the financial transaction to be predicted, and determining the risk level of the financial transaction to be predicted.
10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:
Determining a model prediction risk index corresponding to the financial transaction to be predicted through multidimensional historical transaction information corresponding to the financial transaction to be predicted and a pre-constructed financial risk assessment model, wherein the multidimensional historical transaction information comprises historical transaction data, user behavior data and market trend data;
collecting real-time text data of market participant users of the current financial market corresponding to the financial transaction to be predicted by utilizing a web crawler technology, so as to evaluate market emotion of the current financial market based on the real-time text data of the market participant users, and determining a current market emotion index corresponding to the current financial market;
determining a predicted financial event corresponding to the current financial market according to the current market emotion index, correcting the model predicted risk index through the predicted financial event, and determining the current predicted risk index of the financial transaction to be predicted;
And carrying out risk assessment on the financial transaction to be predicted based on the current predicted risk index of the financial transaction to be predicted, and determining the risk level of the financial transaction to be predicted.
CN202410819248.4A 2024-06-24 2024-06-24 A financial transaction risk assessment method, device and medium based on machine learning Pending CN118628113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410819248.4A CN118628113A (en) 2024-06-24 2024-06-24 A financial transaction risk assessment method, device and medium based on machine learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410819248.4A CN118628113A (en) 2024-06-24 2024-06-24 A financial transaction risk assessment method, device and medium based on machine learning

Publications (1)

Publication Number Publication Date
CN118628113A true CN118628113A (en) 2024-09-10

Family

ID=92603500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410819248.4A Pending CN118628113A (en) 2024-06-24 2024-06-24 A financial transaction risk assessment method, device and medium based on machine learning

Country Status (1)

Country Link
CN (1) CN118628113A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118822543A (en) * 2024-09-19 2024-10-22 深圳合纵富科技有限公司 A method for monitoring and evaluating data risks of Internet terminals and financial IC cards
CN119047486A (en) * 2024-10-30 2024-11-29 深圳格隆汇信息科技有限公司 Financial expert language semantic emotion analysis system and method
CN119313338A (en) * 2024-12-19 2025-01-14 深圳鼎智通讯股份有限公司 A transaction risk identification method and device based on AI intelligence
CN119398905A (en) * 2024-10-10 2025-02-07 弘量科技(深圳)有限公司 Financial big data analysis system
CN119416796A (en) * 2024-11-05 2025-02-11 平安银行股份有限公司 Information processing method, device, equipment and medium based on sentiment analysis
CN119417603A (en) * 2025-01-07 2025-02-11 云集数字科技(山东)股份有限公司 A method for building a data risk control model based on neural network
CN119477540A (en) * 2025-01-10 2025-02-18 泉州行创网络科技有限公司 Financial investment risk control system based on big data technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150106154A1 (en) * 2013-10-15 2015-04-16 Actimize Ltd. System and method for financial risk assessment
CN117726439A (en) * 2023-12-07 2024-03-19 山东怡轩琳信息科技有限公司 Financial risk data management method based on machine learning
CN117974321A (en) * 2023-12-28 2024-05-03 武汉天行健网络工程有限公司 Financial product risk management and control method based on rule engine
CN118134649A (en) * 2024-03-06 2024-06-04 重庆邮电大学 Financial risk intelligent recognition prediction method and system based on deep learning
CN118229420A (en) * 2024-04-10 2024-06-21 数盾信息科技股份有限公司 Supply chain financial application method based on manageable blockchain privacy transaction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150106154A1 (en) * 2013-10-15 2015-04-16 Actimize Ltd. System and method for financial risk assessment
CN117726439A (en) * 2023-12-07 2024-03-19 山东怡轩琳信息科技有限公司 Financial risk data management method based on machine learning
CN117974321A (en) * 2023-12-28 2024-05-03 武汉天行健网络工程有限公司 Financial product risk management and control method based on rule engine
CN118134649A (en) * 2024-03-06 2024-06-04 重庆邮电大学 Financial risk intelligent recognition prediction method and system based on deep learning
CN118229420A (en) * 2024-04-10 2024-06-21 数盾信息科技股份有限公司 Supply chain financial application method based on manageable blockchain privacy transaction

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118822543A (en) * 2024-09-19 2024-10-22 深圳合纵富科技有限公司 A method for monitoring and evaluating data risks of Internet terminals and financial IC cards
CN119398905A (en) * 2024-10-10 2025-02-07 弘量科技(深圳)有限公司 Financial big data analysis system
CN119047486A (en) * 2024-10-30 2024-11-29 深圳格隆汇信息科技有限公司 Financial expert language semantic emotion analysis system and method
CN119047486B (en) * 2024-10-30 2025-02-11 深圳格隆汇信息科技有限公司 A financial expert language semantic sentiment analysis system and method
CN119416796A (en) * 2024-11-05 2025-02-11 平安银行股份有限公司 Information processing method, device, equipment and medium based on sentiment analysis
CN119313338A (en) * 2024-12-19 2025-01-14 深圳鼎智通讯股份有限公司 A transaction risk identification method and device based on AI intelligence
CN119417603A (en) * 2025-01-07 2025-02-11 云集数字科技(山东)股份有限公司 A method for building a data risk control model based on neural network
CN119477540A (en) * 2025-01-10 2025-02-18 泉州行创网络科技有限公司 Financial investment risk control system based on big data technology

Similar Documents

Publication Publication Date Title
CN118628113A (en) A financial transaction risk assessment method, device and medium based on machine learning
Herrera et al. Renewable energy stocks forecast using Twitter investor sentiment and deep learning
CN117764724A (en) Intelligent credit rating report construction method and system
CN116611696A (en) A digital asset market risk prediction system based on time series analysis
CN111597510B (en) A method and system for evaluating the quality of power transmission and transformation inspection data
CN117974321A (en) Financial product risk management and control method based on rule engine
CN120297690A (en) Production scheduling strategy adjustment system and method
CN118780808A (en) A predictive complaint handling decision support method and system based on machine learning
CN118708676A (en) Information processing method, device, equipment, storage medium and program product
Wu et al. The influence of social media on stock volatility
CN120218318A (en) A procurement demand forecasting method and system based on big data analysis
CN114118793B (en) A local exchange risk warning method, device and equipment
CN115439265A (en) Intelligent insurance industry compensation abnormal transaction risk control system
CN119991032A (en) A bidding information feedback comparison system based on big data
CN115392953A (en) Public opinion risk early warning method and device, computer equipment and storage medium
CN118586969A (en) A business opportunity stage evaluation method, device and medium based on C139 model
KR101710649B1 (en) System for providing evaluation service of enterprise value by automated network deduction
CN118551093A (en) A feedback information hazard degree analysis system and method based on artificial intelligence
CN111046281A (en) Hot topic construction method and device
CN116402228A (en) A stock trend prediction method and device based on causal reasoning
CN116777506A (en) Bulk product transaction decision-making method and system based on generation type AI service
Yacoubian The Predictive Power of Social Media Sentiment on Stock Market Returns
CN112256974A (en) Public opinion information processing method and device
CN119809642B (en) Transaction risk early warning control method and device based on risk measurement model
Liang et al. FinGPT: Enhancing Sentiment-Based Stock Movement Prediction with Dissemination-Aware and Context-Enriched LLMs

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载