A big data security analysis method and system for online business session interaction

Through the text description mining and feature parsing subnet of the Transformer network, combined with the detection offset index and common metric value calculation of risk subject word vectors, the problem of low efficiency and accuracy of conversational big data security analysis in traditional technology is solved, achieving a more efficient and precise security analysis.

CN116384370BActive Publication Date: 2024-10-22锦轩科技服务(绍兴)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310371622.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-22
Estimated Expiration
2043-04-10

AI Technical Summary

Technical Problem

Traditional data security analysis technology has low efficiency and accuracy when detecting session big data, and it is difficult to effectively ensure the security of session big data.

Method used

Using the text description mining and feature parsing subnets in the Transformer network, the target session security detection text is processed through the text description mining subnet and the description feature parsing subnet, and the detection offset index of the risk subject word vector is obtained, and compared with the reference session The security detection text is used to calculate the commonality metric value and determine the similarity of the text for security analysis.

Benefits of technology

It improves the accuracy of risk topic identification and the efficiency of security analysis, reduces deviations in text analysis, and ensures the accuracy and credibility of risk topic analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116384370B_ABST
    Figure CN116384370B_ABST
Patent Text Reader

Abstract

The present invention provides a big data security analysis method and system for online business session interaction. When obtaining the commonality measurement value of the target session security detection text and the reference session security detection text, the contribution of the detection offset index of the abnormal text description set to the commonality measurement value is also introduced, instead of only analyzing the abnormal text description array corresponding to the abnormal text description set, thereby avoiding the problem that the abnormal text description array is difficult to accurately output the word vector of the risk topic due to the disturbance in the session security detection text, so as to improve the accuracy of risk topic discrimination and reduce the deviation generated during text analysis. After determining that the target session security detection text and the reference session security detection text are similar texts, a series of security analyses can be performed on the target session security detection text based on the relevant security analysis strategy of the reference session security detection text, thereby improving the security analysis accuracy and efficiency of the target session security detection text.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data security technology, and in particular to a big data security analysis method and system for online business session interaction. Background Art

[0002] With the advent of the big data era, the data scale of various industries has grown at the TB level, and high-value data sources occupy a vital core position in the big data industry chain. With the upgrading of online business in various industries, business interactions are mostly achieved through online conversations, and the amount of information generated by the conversation big data cannot be ignored. How to ensure the security of conversation big data is an issue that needs to be paid attention to. Traditional data security analysis technologies are mostly implemented by analyzing the detection text, but this method has problems with low efficiency and accuracy. Summary of the invention

[0003] The present invention provides a big data security analysis method and system for online business session interaction. To achieve the above technical objectives, the present invention adopts the following technical solutions.

[0004] The first aspect is a big data security analysis method for online business session interaction, which is applied to an artificial intelligence service system, and the method includes:

[0005] Performing text description mining on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set;

[0006] Processing the first abnormal text description set to obtain a first text detection variable corresponding to the first abnormal text description set, wherein the first text detection variable is used to characterize a detection offset index of a risk theme word vector in the target session security detection text reflected by the first abnormal text description set;

[0007] Obtain a commonality metric value between the target session security detection text and the reference session security detection text according to the first abnormal text description array, the first text detection variable, a second abnormal text description array corresponding to a second abnormal text description set of a reference session security detection text, and a second text detection variable corresponding to the second abnormal text description set, wherein the second text detection variable is used to characterize a detection offset index of a risk theme word vector in the reference session security detection text reflected by the second abnormal text description set;

[0008] On the basis that the commonality metric value is greater than the set metric value, it is determined that the target session security detection text and the reference session security detection text are similar texts, and a security analysis is performed on the target session security detection text based on the reference session security detection text.

[0009] In some optional embodiments, the performing text description mining on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set includes:

[0010] Through the text description mining subnet in the Transformer network, text description mining is performed on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set.

[0011] In some optional embodiments, the processing the first abnormal text description set to obtain a first text detection variable corresponding to the first abnormal text description set includes:

[0012] The first abnormal text description set is processed through the description feature parsing subnet in the Transformer network to obtain a first text detection variable corresponding to the first abnormal text description set.

[0013] In some optional embodiments, the text description mining subnet includes a text description mining unit and a text description projection unit, and the text description mining subnet in the Transformer network performs text description mining on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set, including:

[0014] By means of the text description mining unit, text description mining is performed on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text;

[0015] The text description projection unit performs text description projection on the first abnormal text description set to obtain a first abnormal text description array corresponding to the first abnormal text description set.

[0016] In some optional embodiments, before the first abnormal text description set is processed by the description feature parsing subnet in the Transformer network to obtain the first text detection variable corresponding to the first abnormal text description set, the method further includes:

[0017] Adjusting the text description mining subnet according to the session security detection text sample and the abnormal text description array sample corresponding to the session security detection text sample;

[0018] On the basis of maintaining the adjusted text description mining subnet unchanged, the description feature parsing subnet is adjusted according to the key text description array of the risk topic label corresponding to the abnormal text description array sample and the session security detection text sample.

[0019] In some optional embodiments, adjusting the text description mining subnet according to the session security detection text sample and the abnormal text description array sample corresponding to the session security detection text sample includes:

[0020] Obtain the session security detection text sample and an abnormal text description array sample corresponding to the session security detection text sample;

[0021] Through the text description mining subnet, text description mining is performed on the session security detection text sample to obtain an abnormal text analysis description set corresponding to the session security detection text sample and an abnormal text analysis array corresponding to the abnormal text analysis description set;

[0022] The text description mining subnet is adjusted according to the comparison result between the abnormal text parsing array and the abnormal text description array samples.

[0023] In some optional embodiments, the text description mining subnet includes a text description mining unit and a text description projection unit, and the text description mining subnet performs text description mining on the session security detection text sample to obtain an abnormal text parsing description set corresponding to the session security detection text sample and an abnormal text parsing array corresponding to the abnormal text parsing description set, including:

[0024] By means of the text description mining unit, text description mining is performed on the session security detection text sample to obtain an abnormal text parsed description set corresponding to the session security detection text sample;

[0025] The text description projection unit performs text description projection on the abnormal text analysis description set to obtain an abnormal text analysis array corresponding to the abnormal text analysis description set.

[0026] In some optional embodiments, the Transformer network further includes a network cost generation subnet, the network cost generation subnet includes a confidence description array corresponding to each risk topic label, and the text description mining subnet is adjusted according to the comparison result between the abnormal text parsing array and the abnormal text description array sample, including:

[0027] Through the network cost generation subnet, the abnormal text analysis array is enhanced according to the confidence description array corresponding to the risk topic label corresponding to the session security detection text sample, so as to obtain the abnormal text description enhancement array corresponding to the abnormal text analysis array;

[0028] Obtaining a second calibration cost index between the abnormal text description enhancement array and the abnormal text description array sample, wherein the second calibration cost index represents a comparison result between the abnormal text description enhancement array and the abnormal text description array sample;

[0029] The text description mining subnet and the network cost generation subnet are adjusted according to the second adjustment cost indicator.

[0030] In some optional embodiments, the adjusting the description feature parsing subnet based on maintaining the adjusted text description mining subnet unchanged and according to the abnormal text description array sample and the key text description array of the risk topic label corresponding to the session security detection text sample, includes:

[0031] Obtain a key text description array of the risk topic label corresponding to the session security detection text sample, wherein the key text description array represents a risk topic word vector corresponding to the risk topic label;

[0032] The abnormal text parsing description set is processed by the description feature parsing subnet to obtain a text detection variable parsing result corresponding to the abnormal text parsing description set, wherein the text detection variable parsing result is used to characterize the detection offset index of the risk theme word vector in the session security detection text sample reflected by the abnormal text parsing description set;

[0033] According to the abnormal text parsing array, the key text description array and the text detection variable parsing result, a third calibration cost indicator is obtained, wherein the third calibration cost indicator represents the training cost of the text detection variable parsing result corresponding to the abnormal text parsing description set;

[0034] The descriptive feature parsing subnet is adjusted according to the third adjustment cost indicator.

[0035] In some optional embodiments, obtaining a third calibration cost indicator according to the abnormal text parsing array, the key text description array and the text detection variable parsing result includes:

[0036] Obtaining a target text detection variable according to the difference features between the abnormal text parsing array and the key text description array;

[0037] The third calibration cost indicator is obtained according to a comparison result between the target text detection variable and the text detection variable parsing result.

[0038] In some optional embodiments, the step of obtaining a key text description array of a risk topic tag corresponding to the session security detection text sample includes:

[0039] Obtain an array of abnormal text descriptions corresponding to multiple session security detection texts with risk topic labels corresponding to the session security detection text sample;

[0040] The key text description array is determined according to the acquired multiple abnormal text description arrays.

[0041] In some optional embodiments, the step of obtaining a key text description array of a risk topic tag corresponding to the session security detection text sample includes:

[0042] Obtaining an array of confidence descriptions corresponding to the risk topic labels corresponding to the session security detection text sample;

[0043] The confidence description array corresponding to the session security detection text sample is determined as the key text description array.

[0044] The second aspect is an artificial intelligence service system, comprising a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the artificial intelligence service system executes the method of the first aspect.

[0045] A third aspect is a computer-readable storage medium having a computer program stored thereon, wherein the computer program executes the method of the first aspect when run.

[0046] The technical solution provided by the embodiment of the present invention obtains a first abnormal text description set corresponding to a target session security detection text and a first abnormal text description array and a first text detection variable corresponding to the first abnormal text description set, obtains a commonality measurement value between the target session security detection text and the reference session security detection text according to the first abnormal text description array, the first text detection variable and the second abnormal text description array and the second text detection variable corresponding to the second abnormal text description set of the reference session security detection text, and determines that the target session security detection text and the reference session security detection text are similar texts based on the commonality measurement value being greater than a set measurement value. Given that the first text detection variable represents the detection offset index of the risk theme word vector in the target session security detection text reflected by the first abnormal text description set, and the second text detection variable represents the detection offset index of the risk theme word vector in the reference session security detection text reflected by the second abnormal text description set, when obtaining the commonality measurement value of the target session security detection text and the reference session security detection text, the contribution of the detection offset index of the abnormal text description set to the commonality measurement value is also introduced, instead of only analyzing the abnormal text description array corresponding to the abnormal text description set, thereby avoiding the problem that the abnormal text description array is difficult to accurately output the word vector of the risk theme due to the disturbance in the session security detection text, so as to improve the accuracy of risk theme discrimination and reduce the deviation generated during text analysis. After determining that the target session security detection text and the reference session security detection text are similar texts, a series of security analyses can be performed on the target session security detection text based on the relevant security analysis strategy of the reference session security detection text, thereby improving the security analysis accuracy and efficiency of the target session security detection text.

[0047] In addition, in an embodiment of the present invention, the text description of the target session security detection text is projected into the text scene vector relationship network to obtain a first abnormal text description set corresponding to the target session security detection text. In view of the fact that the text scene vector relationship network is more compatible with the vector relationship network of the risk theme than the traditional text vector relationship network, mining the text description of the risk theme in the text scene vector relationship network can make the extracted risk theme word vector as accurate and complete as possible, so as to ensure the accuracy and credibility of the risk theme analysis.

[0048] In addition, the session security detection text sample and the abnormal text description array sample corresponding to the session security detection text sample are obtained, and the abnormal text parsing description set and the abnormal text parsing array of the session security detection text sample are extracted through the text description mining subnet. According to the comparison result between the abnormal text parsing array and the abnormal text description array sample, the text description mining subnet is adjusted. The key text description array of the risk topic label corresponding to the session security detection text sample is obtained, and the text detection variable parsing result corresponding to the abnormal text parsing description set is obtained through the description feature parsing subnet. According to the abnormal text parsing array, the key text description array and the text detection variable parsing result, the third adjustment cost indicator is obtained, and the description feature parsing subnet is adjusted according to the third adjustment cost indicator. After that, risk topic analysis can be performed through the Transformer network including the text description mining subnet and the description feature analysis subnet. In view of the introduction of the description feature analysis subnet, when obtaining the commonality measurement value between the target session security detection text and the reference session security detection text, the contribution of the text detection variable generated by the description feature analysis subnet to the commonality measurement value is also introduced, that is, the contribution of the detection offset index of the abnormal text description set to the commonality measurement value is introduced, instead of only analyzing the abnormal text description array corresponding to the abnormal text description set, thereby avoiding the problem that the abnormal text description array is difficult to accurately output the word vector of the risk topic due to the disturbance in the session security detection text, so as to improve the accuracy of risk topic discrimination and reduce the deviation generated during text analysis.

[0049] In addition, the text description mining subnet is adjusted according to the session security detection text samples and the abnormal text description array samples corresponding to the session security detection text samples. On the basis of keeping the adjusted text description mining subnet unchanged, the description feature parsing subnet is adjusted according to the abnormal text description array samples and the key text description array of the risk topic label corresponding to the session security detection text samples. In this way, the calibration process of the Transformer network can be divided into the calibration link of the text description mining subnet and the calibration link of the description feature parsing subnet. On the basis of the calibration of the text description mining subnet, it is only necessary to obtain the session security detection text samples for calibrating the text description mining subnet and calibrate the description feature parsing subnet. There is no need to calibrate the new text description mining subnet again, nor is there any need to obtain the session security detection text samples again. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A flowchart of a big data security analysis method for online business session interaction provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In the following, the terms "first", "second", "third", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", or "third", etc. may explicitly or implicitly include one or more of the features.

[0052] Figure 1 A flow chart of a big data security analysis method for online business session interaction provided by an embodiment of the present invention is shown. The big data security analysis method for online business session interaction can be implemented by an artificial intelligence service system, and the artificial intelligence service system may include a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the artificial intelligence service system executes steps 101 to 105.

[0053] Step 101: Perform text description mining on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set.

[0054] When the artificial intelligence service system obtains the target session security detection text, it performs text description mining on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set.

[0055] Among them, the first abnormal text description set is a record of text features representing the target session security detection text, for example, the text features of the session security detection text may include detection rule text features, session behavior text features, potential risk text features, etc. of the session security detection text. The first abnormal text description array is a linear field representing the text features of the target session security detection text, for example, the first abnormal text description array may be a multi-dimensional linear field. In the field of artificial intelligence, those skilled in the art may know that text features may be recorded using feature vectors, description arrays, linear fields, etc. as carriers.

[0056] Step 102: Process the first abnormal text description set to obtain a first text detection variable corresponding to the first abnormal text description set.

[0057] When the artificial intelligence service system obtains the first abnormal text description set corresponding to the target session security detection text, it processes the first abnormal text description set to obtain the first text detection variable corresponding to the first abnormal text description set. The first text detection variable is used to characterize the detection offset index of the risk theme word vector in the target session security detection text reflected by the first abnormal text description set.

[0058] The detection deviation index can be understood as the degree of doubt on the results obtained due to the deviation in the processing process, which can reflect the possibility that the first abnormal text description set can accurately represent the risk subject word vector. Therefore, the detection deviation index can also be understood as a doubt coefficient or uncertainty coefficient. Further, the text detection variable can be understood as a feature variable. The smaller the first text detection variable is, the better the accuracy of the risk subject word vector in the target session security detection text is reflected by the first abnormal text description set. The larger the first text detection variable is, the worse the accuracy of the risk subject word vector in the target session security detection text is reflected by the first abnormal text description set. In addition, the risk subject word vector can be used to represent the category characteristics of different session risks. For example, risk subject word vector 1 can represent data leakage risk, risk subject word vector 2 can represent phishing traps, and risk subject word vector 3 can represent telecommunications fraud.

[0059] Step 103: Obtain a commonality measurement value between the target session security detection text and the reference session security detection text based on the first abnormal text description array, the first text detection variable, the second abnormal text description array corresponding to the second abnormal text description set of the reference session security detection text, and the second text detection variable corresponding to the second abnormal text description set.

[0060] The risk topic parsing task of the embodiment of the present invention is to parse the target session security detection text and the reference session security detection text to determine whether the target session security detection text is a similar text to the reference session security detection text, wherein the reference session security detection text is a previously recorded session security detection text, and the target session security detection text is the currently acquired text data that needs to be parsed for the risk topic. In order to perform similarity analysis between the target session security detection text and the reference session security detection text, the artificial intelligence service system obtains the second abnormal text description array corresponding to the second abnormal text description set of the reference session security detection text and the second text detection variable corresponding to the second abnormal text description set, and obtains the commonality measurement value between the target session security detection text and the reference session security detection text according to the first abnormal text description array, the first text detection variable, the second abnormal text description array, and the second text detection variable.

[0061] The second abnormal text description set is a record of text features representing the reference session security detection text, and the second abnormal text description array is a linear field representing the text features of the reference session security detection text. The second text detection variable is used to characterize the detection offset index of the risk theme word vector in the reference session security detection text reflected by the second abnormal text description set.

[0062] Among them, the larger the commonality measurement value between the target session security detection text and the reference session security detection text, the higher the possibility that the target session security detection text and the reference session security detection text are similar texts, and the smaller the commonality measurement value between the target session security detection text and the reference session security detection text, the lower the possibility that the target session security detection text and the reference session security detection text are similar texts. Therefore, the commonality measurement value can also be understood as text similarity.

[0063] Step 104: On the basis that the commonality metric value is greater than the set metric value, it is determined that the target session security detection text and the reference session security detection text are similar texts.

[0064] When the artificial intelligence service system obtains the commonality metric value between the target session security detection text and the reference session security detection text, the commonality metric value is compared with the set metric value. If the commonality metric value is greater than the set metric value, it is determined that the target session security detection text and the reference session security detection text are similar texts, and the target session security detection text can be indirectly and efficiently security analyzed. If the commonality metric value is not greater than the set metric value, it is determined that the target session security detection text and the reference session security detection text are not similar texts. At this time, the target session security detection text and the next reference session security detection text can continue to be similarly analyzed until the target session security detection text is determined to be similar to a certain reference session security detection text. In this case, the target session security detection text can be indirectly and efficiently security analyzed, or until it is determined that the target session security detection text and each recorded reference session security detection text are not similar texts, then the target session security detection text is directly security analyzed. Among them, those skilled in the art can adjust the set metric value by themselves.

[0065] Step 105: Perform security analysis on the target session security detection text based on the reference session security detection text.

[0066] In an embodiment of the present invention, the reference security analysis strategy corresponding to the reference session security detection text can be used, for example, the target session security detection text can be subjected to security analysis through the reference security analysis strategy. Exemplarily, the reference security analysis strategy can also be a neural network model, such as a decision tree model. In actual implementation, since the reference session security detection text and the target session security detection text are similar texts, it is reasonable to input the target session security detection text into the decision tree model for discrimination processing of the abnormal event text block. In this way, since the decision tree model has been put into use before, the decision tree model does not need to be debugged and trained again. Since the reference session security detection text and the target session security detection text are similar texts, the decision tree model will not have too much deviation in processing the target session security detection text, which can ensure the accuracy and credibility of the abnormal event text block obtained.

[0067] Based on the above-mentioned related content, in some independent embodiments, the security analysis of the target session security detection text based on the reference session security detection text in step 105 includes steps 1051 to 1054.

[0068] Step 1051: pass the target session security detection text into the decision tree model corresponding to the reference session security detection text, and obtain a session text block pool for the target session security detection text generated by the decision tree model, wherein the session text block pool includes no less than two session text blocks.

[0069] Step 1052: Obtain contribution weights of each conversation text block in the conversation text block pool relative to the target conversation security detection text.

[0070] Step 1053: sort the conversation text blocks according to the contribution weights corresponding to the conversation text blocks and the abnormal decision vectors of the conversation text blocks to obtain corresponding conversation text block queues.

[0071] Step 1054: Determine a security analysis decision result set about the target session security detection text based on the session text block queue, wherein the security analysis decision result set includes at least two abnormal event probabilities.

[0072] Step 1055: Utilize the abnormal event probability to determine the abnormal event text block from the target session security detection text.

[0073] Among them, the contribution weight can be understood as the relevance of the conversation text block to the target conversation security detection text, and the abnormal event probability is used to indicate the possibility that the corresponding conversation text block is an abnormal event text block. Based on this, when determining the abnormal event text block, it can be implemented based on the set event probability threshold. For example, if the event probability threshold is set to 0.6, the conversation text block corresponding to the abnormal event probability higher than 0.6 is determined as an abnormal event text block, so as to customize targeted security protection strategies and risk response strategies for these abnormal event text blocks. It can be seen that determining the abnormal event text block based on the abnormal event probability can improve the flexibility of determining the abnormal event text block. When the abnormal event text block determination standard is relatively strict, the abnormal event probability can be lowered, and when the abnormal event text block determination standard is relatively loose, the abnormal event probability can be increased.

[0074] Based on the above-mentioned related content, in some independent embodiments, the text block sorting of each conversation text block according to the contribution weight corresponding to each conversation text block and the abnormal decision vector of each conversation text block to obtain a corresponding conversation text block queue includes: according to the contribution weight corresponding to each conversation text block and the abnormal decision vector of each conversation text block, each conversation text block is disassembled to obtain at least two conversation text block clusters; each conversation text block cluster is text-sorted, and each conversation text block in each conversation text block cluster is text-sorted to obtain the conversation text block queue.

[0075] Based on the above-mentioned related content, in some independent embodiments, the each conversation text block is disassembled according to the contribution weight corresponding to the each conversation text block and the abnormal decision vector of the each conversation text block to obtain at least two conversation text block clusters, including: strengthening the abnormal decision vector of each conversation text block according to the contribution weight corresponding to the each conversation text block to obtain the strengthened abnormal decision vector of each conversation text block; clustering the each conversation text block according to the strengthened abnormal decision vector of each conversation text block to obtain at least two conversation text block clusters.

[0076] Based on the above-mentioned related content, in some independent embodiments, the text block arrangement is performed between each conversation text block cluster, and the text block arrangement is performed on each conversation text block in each conversation text block cluster to obtain the conversation text block queue, including: according to the number of conversation text blocks included in each conversation text block cluster, the text block arrangement is performed on each conversation text block cluster; and for each conversation text block cluster, the following operations are performed respectively: according to the connection between the abnormal decision vector of each conversation text block in the conversation text block cluster and the conversation text block cluster, the text block arrangement is performed on each conversation text block in the conversation text block cluster; based on the text block arrangement results between the conversation text block clusters and the text block arrangement results of each conversation text block in the conversation text block cluster, the conversation text block queue is generated.

[0077] The method provided by an embodiment of the present invention obtains a first abnormal text description set corresponding to a target session security detection text and a first abnormal text description array and a first text detection variable corresponding to the first abnormal text description set, obtains a commonality measurement value between the target session security detection text and the reference session security detection text according to the first abnormal text description array, the first text detection variable and a second abnormal text description array and a second text detection variable corresponding to a second abnormal text description set of a reference session security detection text, and determines that the target session security detection text and the reference session security detection text are similar texts based on the commonality measurement value being greater than a set measurement value. Given that the first text detection variable represents the detection offset index of the risk theme word vector in the target session security detection text reflected by the first abnormal text description set, and the second text detection variable represents the detection offset index of the risk theme word vector in the reference session security detection text reflected by the second abnormal text description set, when obtaining the commonality measurement value between the target session security detection text and the reference session security detection text, the contribution of the detection offset index of the abnormal text description set to the commonality measurement value is also introduced, instead of only analyzing the abnormal text description array corresponding to the abnormal text description set, thereby avoiding the problem that the abnormal text description array is difficult to accurately output the word vector of the risk theme due to the disturbance in the session security detection text, so as to improve the accuracy of risk theme discrimination and reduce the deviation generated during text analysis.

[0078] After determining that the target session security detection text and the reference session security detection text are similar texts, a series of security analyses can be performed on the target session security detection text based on the relevant security analysis strategy of the reference session security detection text, thereby improving the security analysis accuracy and efficiency of the target session security detection text.

[0079] Another big data security analysis method for online business session interaction provided by an embodiment of the present invention includes the following steps.

[0080] Step 201: The artificial intelligence service system performs text description mining on the target session security detection text through the text description mining unit in the Transformer network to obtain a first abnormal text description set corresponding to the target session security detection text.

[0081] In an embodiment of the present invention, the Transformer network can be a neural network that has been pre-calibrated by the artificial intelligence service system, or a model that is loaded into the artificial intelligence service system after being calibrated by other systems. The Transformer network is a neural network used for risk topic analysis (which can also be understood as similar text analysis). The Transformer network includes a text description mining subnet (feature extraction network) and a description feature analysis subnet (prediction network). The text description mining subnet is connected to the description feature analysis subnet. The text description mining subnet is used to extract the abnormal text description set and abnormal text description array of the session security detection text. The description feature analysis subnet is used to obtain text detection variables based on the abnormal text description set. The text description mining subnet includes a text description mining unit and a text description projection unit (feature mapping layer). The text description mining unit is connected to the text description projection unit. The text description mining unit is used to extract the corresponding abnormal text description set based on the session security detection text. The text description projection unit is used to obtain the corresponding abnormal text description array based on the abnormal text description set.

[0082] When the artificial intelligence service system obtains the target conversation security detection text to be analyzed for similarity, the text description mining unit in the Transformer network performs text description mining on the target conversation security detection text to obtain the first abnormal text description set corresponding to the target conversation security detection text. Among them, the text description mining unit in the embodiment of the present invention can project the text description of the target conversation security detection text into the text scene vector relationship network to obtain the first abnormal text description set corresponding to the target conversation security detection text, so that the details recorded in the first abnormal text description set conform to the distribution of the text scene vector relationship network (feature space with higher dimension). In view of the fact that the text scene vector relationship network is more matched with the vector relationship network of risk themes than the traditional text vector relationship network, the text description mining of the conversation security detection text in the text scene vector relationship network can make the extracted risk theme word vector as accurate and complete as possible.

[0083] In some examples, the text description mining unit may be an AI network such as CNN, RNN, etc., and those skilled in the art may also choose one according to actual needs.

[0084] Among them, the first abnormal text description set is a record of text features representing the target session security detection text. For example, the text features of the session security detection text may include detection rule text features, session behavior text features, potential risk text features, etc. of the session security detection text.

[0085] For another example, regarding the method of obtaining the target session security detection text, those skilled in the art may choose one according to actual needs.

[0086] Step 202: The artificial intelligence service system performs text description projection on the first abnormal text description set through the text description projection unit in the Transformer network to obtain a first abnormal text description array corresponding to the first abnormal text description set.

[0087] The text description projection unit in the Transformer network is connected to the text description mining unit, and the text description projection unit is used to obtain the corresponding abnormal text description array according to the abnormal text description set. Exemplarily, the text description projection unit can be a fully connected layer, and those skilled in the art can also choose it according to actual needs.

[0088] When the artificial intelligence service system obtains the first abnormal text description set corresponding to the target session security detection text, the text description projection unit in the Transformer network projects the text description of the first abnormal text description set to obtain the first abnormal text description array corresponding to the first abnormal text description set. The first abnormal text description array is obtained by projecting the first abnormal text description set, and the first abnormal text description array is a linear field used to characterize the text features of the target session security detection text, which can be a multi-dimensional linear field. For example, the first abnormal text description array is a 1*h-dimensional linear field, and the first abnormal text description array includes description variables of h dimensions, where h is a positive integer.

[0089] In an embodiment of the present invention, the text description mining subnet in the Transformer network includes a text description mining unit and a text description projection unit. Therefore, the above steps 201 and 202 take the text description mining unit processing the target session security detection text and the text description projection unit processing the first abnormal text description set as an example to introduce the process of obtaining the first abnormal text description set corresponding to the target session security detection text and the first abnormal text description array corresponding to the first abnormal text description set. Under other design ideas, the text description mining subnet can also be a subnet of other structures, as long as it is guaranteed that the first abnormal text description set and the first abnormal text description array can be obtained by performing text description mining on the target session security detection text through the text description mining subnet.

[0090] Step 203: The artificial intelligence service system processes the first abnormal text description set through the description feature parsing subnet in the Transformer network to obtain a first text detection variable corresponding to the first abnormal text description set.

[0091] Among them, the description feature parsing subnet in the Transformer network is connected to the text description mining subnet, and the description feature parsing subnet is used to process the abnormal text description set to obtain the corresponding text detection variable. In an embodiment of the present invention, the text description mining subnet includes a text description mining unit and a text description projection unit, and the description feature parsing subnet is connected to the text description mining unit in the text description mining subnet. Exemplarily, the description feature parsing subnet can be a residual model, etc., and those skilled in the art can also choose it according to actual needs.

[0092] When the artificial intelligence service system obtains the first abnormal text description set corresponding to the target session security detection text, the first abnormal text description set is processed through the description feature parsing subnet to obtain the first text detection variable corresponding to the first abnormal text description set. Among them, the first text detection variable is used to characterize the detection offset index of the risk subject word vector in the target session security detection text reflected by the first abnormal text description set. The detection offset index can be understood as the degree of doubt on the obtained result due to the deviation in the processing process, which can reflect the degree to which the first abnormal text description set can accurately characterize the risk subject word vector. The smaller the first text detection variable, the better the accuracy of the risk subject word vector in the target session security detection text reflected by the first abnormal text description set. The larger the first text detection variable, the worse the accuracy of the risk subject word vector in the first session security detection text reflected by the first abnormal text description set. Exemplarily, the first abnormal text description set is an abnormal text description set of the session security detection text mapped in the text scene vector relationship network, and the details recorded in the first abnormal text description set conform to the distribution of the text scene vector relationship network. Then the first text detection variable is also the first text detection variable that conforms to the distribution of the text scene vector relationship network, which is used to characterize the first abnormal text description set of the text scene vector relationship network to reflect the detection offset index of the risk theme word vector in the target session security detection text.

[0093] Step 204: The artificial intelligence service system performs text description mining on the reference session safety detection text through a text description mining unit to obtain a second abnormal text description set corresponding to the reference session safety detection text.

[0094] The risk topic parsing task of the embodiment of the present invention is to parse the target session security detection text and the reference session security detection text to determine whether the target session security detection text is similar to the reference session security detection text. The reference session security detection text is the session security detection text recorded in advance by the artificial intelligence service system, and the target session security detection text is the text data currently acquired by the artificial intelligence service system that needs to be parsed for risk topics. The target session security detection text and the reference session security detection text are similar texts when the risk topic in the target session security detection text is the same or similar to the risk topic in the reference session security detection text.

[0095] Based on this, the artificial intelligence service system obtains the previously recorded reference session security detection text, and performs text description mining on the reference session security detection text through the text description mining unit in the Transformer network to obtain a second abnormal text description set corresponding to the reference session security detection text, wherein the second abnormal text description set is a record of text features representing the reference session security detection text. Among them, the text description mining unit in the embodiment of the present invention can project the text description of the reference session security detection text into the text scene vector relationship network to obtain the second abnormal text description set corresponding to the reference session security detection text. The text scene vector relationship network in step 204 is the same as the text scene vector relationship network in step 201.

[0096] Step 205: The artificial intelligence service system performs text description projection on the second abnormal text description set through a text description projection unit to obtain a second abnormal text description array corresponding to the second abnormal text description set.

[0097] When the artificial intelligence service system obtains the second abnormal text description set corresponding to the reference session security detection text, the text description projection unit in the Transformer network performs text description projection on the second abnormal text description set to obtain the second abnormal text description array corresponding to the second abnormal text description set. The second abnormal text description array is a linear field used to characterize the text features of the reference session security detection text, and can be a multi-dimensional linear field. For example, if the second abnormal text description array is a 1*h-dimensional linear field, the second abnormal text description array includes description variables of h dimensions. The second abnormal text description array is obtained by projecting the second abnormal text description set.

[0098] The text description mining subnet in the Transformer network in the embodiment of the present invention includes a text description mining unit and a text description projection unit. Therefore, steps 204 and 205 take the text description mining unit processing the reference session security detection text and the text description projection unit processing the second abnormal text description set as an example to introduce the process of obtaining the second abnormal text description set corresponding to the reference session security detection text and the second abnormal text description array corresponding to the second abnormal text description set. Under other design ideas, the text description mining subnet can also be a subnet of other structures, as long as it is ensured that the reference session security detection text is subjected to text description mining by the text description mining subnet, the second abnormal text description set and the second abnormal text description array can be obtained.

[0099] Step 206: The artificial intelligence service system processes the second abnormal text description set through the description feature parsing subnet to obtain a second text detection variable corresponding to the second abnormal text description set.

[0100] The second text detection variable is used to characterize the detection deviation index of the risk theme word vector in the reference session security detection text reflected by the second abnormal text description set.

[0101] Exemplarily, before the current round of risk topic analysis, the artificial intelligence service system can pre-process the reference session security detection text to obtain the second abnormal text description array and the second text detection variable corresponding to the reference session security detection text, and record the second abnormal text description array and the second text detection variable. There is no need to implement steps 204-206, and the recorded second abnormal text description array and the second text detection variable can be directly obtained. Alternatively, after the artificial intelligence service system obtains the target session security detection text to be analyzed for similarity, it obtains the previously recorded reference session security detection text, loads the target session security detection text and the reference session security detection text into the Transformer network in the form of a text binary, and the target session security detection text and the reference session security detection text are processed separately in the Transformer network to obtain the first abnormal text description array, the first text detection variable, the second abnormal text description array, and the second text detection variable. Among them, each subnet of the Transformer network can perform synchronous operations on the target session security detection text and the reference session security detection text. For example, while the text description mining model in the Transformer network processes the target session security detection text, the description feature parsing subnet in the Transformer network can process the reference session security detection text, thereby achieving synchronous processing of the target session security detection text and the reference session security detection text, thereby improving the timeliness of the overall solution.

[0102] Step 207: The artificial intelligence service system obtains a commonality measurement value between the target session security detection text and the reference session security detection text based on the first abnormal text description array, the first text detection variable, the second abnormal text description array corresponding to the second abnormal text description set of the reference session security detection text, and the second text detection variable corresponding to the second abnormal text description set.

[0103] When the artificial intelligence service system obtains the first abnormal text description array, the first text detection variable, the second abnormal text description array, and the second text detection variable, the commonality measurement value between the target session security detection text and the reference session security detection text is obtained according to the first abnormal text description array, the first text detection variable, the second abnormal text description array, and the second text detection variable. Among them, the larger the commonality measurement value between the target session security detection text and the reference session security detection text, the higher the possibility that the risk theme in the target session security detection text is the same or similar to the risk theme in the reference session security detection text, that is, the higher the possibility that the target session security detection text and the reference session security detection text are similar texts; the smaller the commonality measurement value between the target session security detection text and the reference session security detection text, the lower the possibility that the risk theme in the target session security detection text and the risk theme in the reference session security detection text are the same or similar, that is, the lower the possibility that the target session security detection text and the reference session security detection text are similar texts.

[0104] In some examples, the artificial intelligence service system uses the cosine similarity calculation idea to process the first abnormal text description array, the first text detection variable, the second abnormal text description array, and the second text detection variable to obtain the commonality measurement value between the target session security detection text and the reference session security detection text.

[0105] Step 208: The artificial intelligence service system determines that the target session security detection text and the reference session security detection text are similar texts based on the commonality metric value being greater than the set metric value.

[0106] When the artificial intelligence service system obtains the commonality metric value between the target session security detection text and the reference session security detection text, the commonality metric value is compared with the set metric value. If the commonality metric value is greater than the set metric value, it is determined that the risk topic in the target session security detection text is the same as or similar to the risk topic in the reference session security detection text, that is, the target session security detection text and the reference session security detection text are similar texts. If the commonality metric value is not greater than the set metric value, it is determined that the risk topic in the target session security detection text and the risk topic in the reference session security detection text are not the same as or similar to the risk topic in the reference session security detection text, that is, the target session security detection text and the reference session security detection text are not similar texts.

[0107] The embodiment of the present invention takes the example of an artificial intelligence service system parsing a target session security detection text and a reference session security detection text to introduce the process of risk topic parsing. Under other design ideas, the artificial intelligence service system stores multiple reference session security detection texts. After the artificial intelligence service system obtains the target session security detection text to be analyzed for similarity, it processes the multiple reference session security detection texts in sequence, and implements the above-mentioned related technical solutions for each of the reference session security detection texts processed in sequence, until it is determined that the target session security detection text and a reference session security detection text among the multiple reference session security detection texts are similar texts, or until it is determined that the target session security detection text and any of the reference session security detection texts among the multiple reference session security detection texts are not similar texts.

[0108] It can be understood that the embodiment of the present invention is introduced by taking the example of an artificial intelligence service system processing text through a text description mining subnet and a description feature parsing subnet in a Transformer network. Under other design ideas, the artificial intelligence service system can use other ideas to implement text description mining on the target session security detection text, obtain the first abnormal text description set corresponding to the target session security detection text and the first abnormal text description array corresponding to the first abnormal text description set, process the first abnormal text description set, and obtain the first text detection variable corresponding to the first abnormal text description set.

[0109] The method provided by the embodiment of the present invention obtains a first abnormal text description array and a first text detection variable corresponding to a first abnormal text description set through a text description mining subnet and a description feature parsing subnet in a Transformer network, obtains a commonality metric value between a target session security detection text and a reference session security detection text according to the first abnormal text description array, the first text detection variable and a second abnormal text description array and a second text detection variable corresponding to a reference session security detection text, and determines that the target session security detection text and the reference session security detection text are similar texts based on the commonality metric value being greater than a set metric value. Given that the first text detection variable represents the detection offset index of the risk theme word vector in the target session security detection text reflected by the first abnormal text description set, and the second text detection variable represents the detection offset index of the risk theme word vector in the reference session security detection text reflected by the second abnormal text description set, when obtaining the commonality measurement value between the target session security detection text and the reference session security detection text, the contribution of the detection offset index of the abnormal text description set to the commonality measurement value is also introduced, instead of only analyzing the abnormal text description array corresponding to the abnormal text description set, thereby avoiding the problem that the abnormal text description array is difficult to accurately output the word vector of the risk theme due to the disturbance in the session security detection text, so as to improve the accuracy of risk theme discrimination and reduce the deviation generated during text analysis.

[0110] In an embodiment of the present invention, the text description of the target session security detection text is projected into the text scene vector relationship network to obtain a first abnormal text description set corresponding to the target session security detection text. In view of the fact that the text scene vector relationship network is more compatible with the vector relationship network of the risk theme than the traditional text vector relationship network, mining the text description of the risk theme in the text scene vector relationship network can make the extracted risk theme word vector as accurate and complete as possible, so as to ensure the accuracy and credibility of the risk theme analysis.

[0111] Before performing risk topic analysis (similar text analysis) through the Transformer network, the Transformer network needs to be calibrated and trained. The relevant calibration and training method includes the following steps.

[0112] Step 301: The artificial intelligence service system obtains a session security detection text sample and an abnormal text description array sample corresponding to the session security detection text sample.

[0113] The artificial intelligence service system obtains session security detection text samples and abnormal text description array samples corresponding to the session security detection text samples for adjusting the Transformer network. Among them, the session security detection text samples are text data including risk topics, and the abnormal text description array samples corresponding to the session security detection text samples are linear fields used to characterize the text features of the session security detection text samples. For example, the abnormal text description array sample can be used to characterize the risk topic label corresponding to the session security detection text sample. Taking security risk 1 and security risk 2 as examples, the abnormal text description array samples corresponding to any session security detection text sample including the risk topic of security risk 1 are all abnormal text description array sample sample 1, and the abnormal text description array samples corresponding to any session security detection text sample including the risk topic of security risk 2 are all abnormal text description array sample sample 2.

[0114] Among them, the session security detection text sample can be a session security detection text sample pre-recorded in the artificial intelligence service system, or a session security detection text sample called by the artificial intelligence service system from other systems, or a session security detection text sample uploaded to the artificial intelligence service system by other systems. Among them, the abnormal text description array sample corresponding to the session security detection text sample can be an abnormal text description array sample annotated for the session security detection text sample, or an abnormal text description array sample obtained by another idea. Those skilled in the art can also choose according to actual needs. The above samples can be understood as sample information used for network training, and can also be generally understood as text examples, exemplary texts or authenticated texts.

[0115] Step 302: The artificial intelligence service system performs text description mining on the session security detection text sample through the text description mining unit in the Transformer network to obtain an abnormal text analysis description set corresponding to the session security detection text sample.

[0116] The Transformer network is a network used for risk topic parsing (text similarity analysis), and the Transformer network includes a text description mining subnet and a description feature parsing subnet. The text description mining subnet is connected to the description feature parsing subnet, and the text description mining subnet is used to extract the abnormal text description set and abnormal text description array corresponding to the session security detection text, and the description feature parsing subnet is used to obtain the corresponding text detection variable according to the abnormal text description set. The text description mining subnet includes a text description mining unit and a text description projection unit, and the text description mining unit is connected to the text description projection unit, and the text description mining unit is used to extract the corresponding abnormal text description set according to the session security detection text, and the text description projection unit is used to obtain the corresponding abnormal text description array according to the abnormal text description set.

[0117] When the artificial intelligence service system obtains a session security detection text sample, the text description mining unit in the Transformer network performs text description mining on the session security detection text sample to obtain an abnormal text parsing description set corresponding to the session security detection text sample. The abnormal text parsing description set is text data representing the features of the session security detection text sample.

[0118] Among them, the text description mining unit in the embodiment of the present invention projects the text description of the session security detection text sample into the text scene vector relationship network to obtain the abnormal text parsing description set corresponding to the session security detection text sample. Compared with the traditional text vector relationship network, the text scene vector relationship network is more compatible with the vector relationship network of the risk theme. Mining the text description of the risk theme in the text scene vector relationship network can make the extracted risk theme word vector as accurate and complete as possible.

[0119] Step 303: The artificial intelligence service system performs text description projection on the abnormal text analysis description set through the text description projection unit in the Transformer network to obtain an abnormal text analysis array corresponding to the abnormal text analysis description set.

[0120] The text description projection unit in the Transformer network is connected to the text description mining unit, and the text description projection unit is used to obtain the corresponding abnormal text description array according to the abnormal text description set. Exemplarily, the text description projection unit can be a fully connected layer, or the text description projection unit can also be a network of other structures, and those skilled in the art can also choose according to actual needs.

[0121] When the artificial intelligence service system obtains the abnormal text parsing description set corresponding to the session security detection text sample, the text description projection unit in the Transformer network projects the text description of the abnormal text parsing description set to obtain the abnormal text parsing array corresponding to the abnormal text parsing description set. The abnormal text parsing array is a linear field used to characterize the features of the session security detection text sample, and the abnormal text parsing array is obtained by projecting the abnormal text parsing description set.

[0122] In the embodiment of the present invention, the text description mining subnet in the Transformer network includes a text description mining unit and a text description projection unit. Therefore, the above steps 302 and 03 take the text description mining unit processing the session security detection text sample and the text description projection unit processing the abnormal text analysis description set as an example to introduce the process of obtaining the abnormal text analysis description set corresponding to the session security detection text sample and the abnormal text analysis array corresponding to the abnormal text analysis description set. Under other design ideas, the text description mining subnet can also be a subnet of other structures, as long as it is guaranteed that the abnormal text analysis description set and the abnormal text analysis array can be obtained by performing text description mining on the session security detection text sample through the text description mining subnet.

[0123] Step 304: The artificial intelligence service system adjusts the text description mining subnet according to the comparison results between the abnormal text parsing array and the abnormal text description array samples.

[0124] Among them, the abnormal text parsing array is a linear field that represents the characteristics of the session security detection text sample inferred by the Transformer network, and the abnormal text description array sample is a real linear field that represents the characteristics of the session security detection text sample. Therefore, when the artificial intelligence service system obtains the abnormal text parsing array and the abnormal text description array sample, it adjusts the text description mining subnet in the Transformer network according to the comparison result between the abnormal text parsing array and the abnormal text description array sample, that is, adjusts the text description mining unit and the text description projection unit, so that the comparison result (difference) between the abnormal text parsing array and the abnormal text description array sample obtained by the text description mining unit and the text description projection unit becomes smaller and smaller.

[0125] In some examples, the artificial intelligence service system obtains a first calibration cost index between the abnormal text parsing array and the abnormal text description array sample, and calibrates the text description mining subnet according to the first calibration cost index, wherein the first calibration cost index represents a comparison result between the abnormal text parsing array and the abnormal text description array sample.

[0126] Exemplarily, the artificial intelligence service system obtains a first cost function, determines the abnormal text parsing array and the abnormal text description array samples according to the first cost function, and obtains a first calibration cost indicator. The first cost function is an evaluation algorithm for obtaining the training cost between the abnormal text parsing array and the abnormal text description array samples.

[0127] In some examples, the Transformer network also includes a network cost generation subnet, which is connected to the text description mining subnet. The network cost generation subnet includes a confidence description array corresponding to each risk topic label. The artificial intelligence service system uses the network cost generation subnet to perform a reinforcement operation (weighted operation) on the abnormal text parsing array according to the confidence description array corresponding to the risk topic label corresponding to the session security detection text sample, obtains the abnormal text description reinforcement array corresponding to the abnormal text parsing array, obtains the second adjustment cost index between the abnormal text description reinforcement array and the abnormal text description array sample, and adjusts the text description mining subnet and the network cost generation subnet according to the second adjustment cost index. Among them, the second adjustment cost index represents the comparison result between the abnormal text description reinforcement array and the abnormal text description array sample.

[0128] The network cost generation subnet is used to obtain the corresponding adjustment cost index according to the abnormal text description array. The network cost generation subnet is connected to the text description mining subnet. In the embodiment of the present invention, the text description mining subnet includes a text description mining unit and a text description projection unit, and the network cost generation subnet is connected to the text description projection unit in the text description mining subnet. The network cost generation subnet can be a classification model, and those skilled in the art can also choose it according to actual needs.

[0129] Among them, the confidence description array corresponding to each risk topic label is used to characterize the weight of the abnormal text description array corresponding to the session security detection text corresponding to the risk topic label. Exemplarily, the abnormal text parsing array corresponding to the session security detection text sample is a 1*h-dimensional linear field, and the abnormal text parsing array includes h-dimensional description variables. Then the confidence description array corresponding to the risk topic label is also a 1*h-dimensional linear field, and the confidence description array includes h-dimensional bias coefficients, and the h-dimensional bias coefficients respectively represent the importance of the description variable of each dimension in the corresponding abnormal text parsing array.

[0130] After the artificial intelligence service system obtains the abnormal text parsing description set corresponding to the session security detection text sample, the confidence description array corresponding to the risk topic label corresponding to the session security detection text sample is determined in the multiple confidence description arrays included in the network cost generation subnet, and the abnormal text parsing array is strengthened according to the confidence description array corresponding to the risk topic label corresponding to the session security detection text sample through the network cost generation subnet, so as to obtain the abnormal text description strengthening array corresponding to the abnormal text parsing array. That is, the description variable of each dimension in the abnormal text parsing array is multiplied by the corresponding bias coefficient in the confidence description array to obtain the abnormal text description strengthening array. Exemplarily, the network cost generation subnet also includes a second cost function. The artificial intelligence service system obtains the second cost function, processes the abnormal text description strengthening array and the abnormal text description array sample according to the second cost function, and obtains the second adjustment cost index. Among them, the second cost function is an evaluation algorithm for obtaining the training cost between the abnormal text description strengthening array and the abnormal text description array sample.

[0131] In some examples, the artificial intelligence service system improves the text description mining subnet and the network cost generation subnet based on the gradient descent rule to achieve the purpose of adjusting the text description mining subnet and the network cost generation subnet. Among them, those skilled in the art can also select the gradient descent rule according to actual needs.

[0132] It can be understood that steps 301 to 304 only introduce obtaining an abnormal text parsing array based on a session security detection text sample, and adjusting the text description mining subnet and the network cost generation subnet based on the comparison result between the abnormal text parsing array and the abnormal text description array sample, so as to adjust the text description mining subnet based on the session security detection text sample and the abnormal text description array sample corresponding to the session security detection text sample. Under other design ideas, the artificial intelligence service system can also adopt other ideas to adjust the text description mining subnet based on the session security detection text sample and the abnormal text description array sample corresponding to the session security detection text sample.

[0133] In the embodiment of the present invention, the calibration is performed by adjusting the text description mining subnet and the network cost generation subnet according to an abnormal text description set sample and an abnormal text description array sample corresponding to the abnormal text description set sample. In the actual calibration process, the artificial intelligence service system will adjust the text description mining subnet and the network cost generation subnet according to multiple session security detection text samples and the abnormal text description array samples corresponding to the multiple session security detection text samples. Among them, the risk topic labels corresponding to any two session security detection text samples among the multiple session security detection text samples may be consistent or inconsistent.

[0134] In some examples, the artificial intelligence service system obtains multiple session security detection text samples and abnormal text description array samples corresponding to the multiple session security detection text samples, loads the multiple session security detection text samples into the text description mining unit in the Transformer network at the same time, and processes the multiple session security detection text samples in the Transformer network respectively, and adjusts the text description mining subnet and the network cost generation subnet according to the obtained abnormal text parsing array and the corresponding abnormal text description array sample. Among them, the text description mining subnet and the network cost generation subnet in the Transformer network can perform synchronous operations on multiple session security detection text samples. For example, the multiple session security detection text samples include the first session security detection text sample and the second session security detection text sample. While the network cost generation subnet in the Transformer network processes the first session security detection text sample, the text description mining subnet in the Transformer network can process the second session security detection text sample, so as to achieve synchronous processing of multiple session security detection text samples and improve the timeliness of the overall solution.

[0135] In some examples, when the number of cycles of adjusting the text description mining subnet and the network cost generation subnet reaches a set number, the adjustment of the text description mining subnet and the network cost generation subnet is completed. Alternatively, when the first adjustment cost index or the second adjustment cost index obtained by the artificial intelligence service system is less than the first set index value, it means that the adjustment cost index of the text description mining subnet and the network cost generation subnet tends to be stable, and the adjustment of the text description mining subnet and the network cost generation subnet is completed.

[0136] Under other design ideas, the artificial intelligence service system has a pre-calibrated text description mining subnet and a session security detection text sample used to calibrate the text description mining subnet. In this case, the artificial intelligence service system does not need to execute the above steps 301 to 304, but only needs to obtain the session security detection text sample used to calibrate the text description mining subnet, and execute the following steps 305 to 307 to complete the calibration of the description feature parsing subnet.

[0137] Step 305: The artificial intelligence service system obtains an array of key text descriptions of risk topic tags corresponding to the conversation security detection text sample.

[0138] Among them, each risk topic label corresponds to a key text description array, and the key text description array represents the risk topic word vector corresponding to the risk topic label. After the artificial intelligence service system completes the adjustment of the text description mining subnet and the network cost generation subnet in the Transformer network, the artificial intelligence service system obtains the key text description array of the risk topic label corresponding to the session security detection text sample, and the key text description array can be used to characterize the risk topic word vector in the session security detection text sample.

[0139] In some examples, the artificial intelligence service system obtains an array of abnormal text descriptions corresponding to multiple session security detection texts with risk topic labels corresponding to the session security detection text sample, and determines a key text description array based on the obtained multiple arrays of abnormal text descriptions. In the process of adjusting the text description mining subnet and the network cost generation subnet, the artificial intelligence service system obtains an array of abnormal text descriptions corresponding to multiple session security detection texts, then the artificial intelligence service system determines multiple session security detection texts with risk topic labels corresponding to the sample of the abnormal text description set, obtains multiple arrays of abnormal text descriptions corresponding to the multiple session security detection texts, averages the obtained multiple arrays of abnormal text descriptions, and obtains a key text description array corresponding to the risk topic label corresponding to the session security detection text sample.

[0140] In some examples, the artificial intelligence service system obtains a confidence description array corresponding to a risk topic label corresponding to a session security detection text sample, and determines the confidence description array corresponding to the session security detection text sample as a key text description array.

[0141] Among them, the network cost generation subnet includes a confidence description array corresponding to each risk topic label. In the process of adjusting the text description mining subnet and the network cost generation subnet, each confidence description array in the network cost generation subnet will be continuously adjusted. When the adjustment is completed, the network cost generation subnet includes each adjusted confidence description array. Then the artificial intelligence service system can determine the risk topic label corresponding to the session security detection text sample, obtain the confidence description array corresponding to the risk topic label from the multiple confidence description arrays in the network cost generation subnet, and determine the confidence description array as the key text description array corresponding to the risk topic label corresponding to the session security detection text sample.

[0142] Step 306: The artificial intelligence service system processes the abnormal text analysis description set through the description feature analysis subnet to obtain the text detection variable analysis result corresponding to the abnormal text analysis description set.

[0143] The text detection variable parsing results are used to characterize the abnormal text parsing description set, which reflects the detection deviation index of the risk theme word vector in the session security detection text sample.

[0144] Step 307: The artificial intelligence service system obtains a third calibration cost indicator based on the abnormal text parsing array, the key text description array, and the text detection variable parsing results, and calibrates the description feature parsing subnet based on the third calibration cost indicator.

[0145] When the artificial intelligence service system obtains the abnormal text parsing array, key text description array and text detection variable parsing results corresponding to the session security detection text sample, the third adjustment cost index is obtained according to the abnormal text parsing array, key text description array and text detection variable parsing results, and the description feature parsing subnet in the Transformer network is adjusted according to the third adjustment cost index, so that the text detection variable parsing results corresponding to the abnormal text parsing description set generated by the description feature parsing subnet are as accurate and complete as possible. Among them, the third adjustment cost index represents the training cost of the text detection variable parsing results (prediction results of text detection variables) corresponding to the abnormal text parsing description set.

[0146] In some examples, the artificial intelligence service system obtains a third cost function, determines the abnormal text parsing array, the key text description array, and the text detection variable parsing results according to the third cost function, and obtains a third adjustment cost indicator.

[0147] In some examples, the artificial intelligence service system obtains the target text detection variable based on the difference features between the abnormal text parsing array and the key text description array, and obtains the third calibration cost indicator based on the comparison result between the target text detection variable and the text detection variable parsing result.

[0148] Given that the text detection variable parsing results are used to characterize the detection offset index of the risk theme word vector in the conversation security detection text reflected by the abnormal text description set samples, in actual application, the artificial intelligence service system will obtain the commonality measurement value between the conversation security detection texts based on the abnormal text description array corresponding to the abnormal text description set and the text detection variable. Therefore, the text detection variable parsing results are essentially the detection offset index that needs to be represented by the abnormal text parsing array corresponding to the conversation security detection text sample and the key text description array corresponding to the conversation security detection text sample. The smaller the difference feature between the abnormal text parsing array and the key text description array, the more similar the abnormal text parsing array and the key text description array are, that is, the closer the abnormal text parsing array and the key text description array are.

[0149] Among them, the artificial intelligence service system can obtain the target text detection variable according to the difference characteristics between the abnormal text parsing array and the key text description array, and the target text detection variable can represent the detection offset index of the abnormal text parsing array and the key text description array. The larger the difference characteristics between the abnormal text parsing array and the key text description array, the larger the detection offset index of the abnormal text parsing array and the key text description array, that is, the larger the target text detection variable; the smaller the difference characteristics between the abnormal text parsing array and the key text description array, the smaller the detection offset index of the abnormal text parsing array and the key text description array, that is, the smaller the target text detection variable.

[0150] However, in the actual implementation process, it is difficult to obtain the risk topic label corresponding to the conversation security detection text to be analyzed for similarity, so it is also difficult to obtain the key text description array corresponding to the conversation security detection text. Therefore, the artificial intelligence service system obtains the text detection variable according to the abnormal text description set. In this way, in the adjustment process of the description feature parsing subnet, it is necessary to ensure that the text detection variable parsing result obtained by the description feature parsing subnet can represent the detection offset index that matches the abnormal text parsing array corresponding to the conversation security detection text sample and the key text description array corresponding to the conversation security detection text sample, that is, it is necessary to ensure that the comparison result between the text detection variable parsing result and the target text detection variable is smaller. Therefore, the artificial intelligence service system can obtain the third adjustment cost index based on the comparison result between the target text detection variable and the text detection variable parsing result, and adjust the description feature parsing subnet according to the third adjustment cost index, so that the comparison result between the target text detection variable and the text detection variable parsing result becomes smaller and smaller, so that the text detection variable parsing result generated by the description feature parsing subnet becomes more and more accurate.

[0151] In some examples, the artificial intelligence service system optimizes the description feature parsing subnet based on the gradient descent rule to achieve the purpose of adjusting the description feature parsing subnet.

[0152] By implementing steps 305 to 307, the description feature parsing subnet is adjusted based on the abnormal text description array sample and the key text description array of the risk topic label corresponding to the session security detection text sample while maintaining the adjusted text description mining subnet unchanged. Under other design ideas, the artificial intelligence service system can also adopt another idea to adjust the description feature parsing subnet based on the abnormal text description array sample and the key text description array.

[0153] In the method provided in the embodiment of the present invention, the calibration of the Transformer network is divided into the calibration phase of the text description mining subnet and the calibration phase of the description feature parsing subnet. In some examples, the logic for obtaining the commonality metric value is configured as a commonality metric determination unit, and the logic for comparing the commonality metric value with the set metric value is configured as a metric comparison unit. Then, the artificial intelligence service system can configure the calibrated text description mining subnet, description feature parsing subnet, commonality metric determination unit and metric comparison unit to obtain a Transformer network. Exemplary design ideas include: (1) calibrating the text description mining unit and the text description projection unit; (2) calibrating the description feature parsing subnet; (3) integrating the text description mining unit, the text description projection unit, the description feature parsing subnet, the commonality metric determination unit and the metric comparison unit to generate a Transformer network.

[0154] The technical solution provided by the embodiment of the present invention obtains a session security detection text sample and an abnormal text description array sample corresponding to the session security detection text sample, extracts an abnormal text parsing description set and an abnormal text parsing array of the session security detection text sample through a text description mining subnet, and adjusts the text description mining subnet according to the comparison result between the abnormal text parsing array and the abnormal text description array sample. Obtain the key text description array of the risk topic label corresponding to the session security detection text sample, obtain the text detection variable parsing result corresponding to the abnormal text parsing description set through the description feature parsing subnet, obtain the third calibration cost indicator according to the abnormal text parsing array, the key text description array and the text detection variable parsing result, and adjust the description feature parsing subnet according to the third calibration cost indicator. After that, risk topic analysis can be performed through the Transformer network including the text description mining subnet and the description feature analysis subnet. In view of the introduction of the description feature analysis subnet, when obtaining the commonality measurement value between the target session security detection text and the reference session security detection text, the contribution of the text detection variable generated by the description feature analysis subnet to the commonality measurement value is also introduced, that is, the contribution of the detection offset index of the abnormal text description set to the commonality measurement value is introduced, instead of only analyzing the abnormal text description array corresponding to the abnormal text description set, thereby avoiding the problem that the abnormal text description array is difficult to accurately output the word vector of the risk topic due to the disturbance in the session security detection text, so as to improve the accuracy of risk topic discrimination and reduce the deviation generated during text analysis.

[0155] In addition, the text description mining subnet is adjusted according to the session security detection text samples and the abnormal text description array samples corresponding to the session security detection text samples. On the basis of keeping the adjusted text description mining subnet unchanged, the description feature parsing subnet is adjusted according to the abnormal text description array samples and the key text description array of the risk topic label corresponding to the session security detection text samples. In this way, the calibration process of the Transformer network can be divided into the calibration link of the text description mining subnet and the calibration link of the description feature parsing subnet. On the basis of the calibration of the text description mining subnet, it is only necessary to obtain the session security detection text samples for calibrating the text description mining subnet and calibrate the description feature parsing subnet. There is no need to calibrate the new text description mining subnet again, nor is there any need to obtain the session security detection text samples again.

[0156] In addition, in an embodiment of the present invention, the text description of the session security detection text sample is projected into the text scene vector relationship network to obtain the abnormal text analysis description set corresponding to the session security detection text sample. In view of the fact that the text scene vector relationship network is more compatible with the vector relationship network of the risk theme than the traditional text vector relationship network, mining the text description of the risk theme in the text scene vector relationship network can make the extracted risk theme word vector as accurate and complete as possible, and can improve the accuracy of the adjusted Transformer network when parsing the risk theme.

[0157] The above is only a specific embodiment of the present invention. Those skilled in the art may conceive of changes or substitutions based on the specific embodiments provided by the present invention, which should all be included in the protection scope of the present invention.

Claims

1. A big data security analysis method for online business session interaction, characterized in that: Applied to an artificial intelligence service system, the method includes: Performing text description mining on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set; Processing the first abnormal text description set to obtain a first text detection variable corresponding to the first abnormal text description set, wherein the first text detection variable is used to characterize a detection offset index of a risk theme word vector in the target session security detection text reflected by the first abnormal text description set; Obtain a commonality metric value between the target session security detection text and the reference session security detection text according to the first abnormal text description array, the first text detection variable, a second abnormal text description array corresponding to a second abnormal text description set of a reference session security detection text, and a second text detection variable corresponding to the second abnormal text description set, wherein the second text detection variable is used to characterize a detection offset index of a risk theme word vector in the reference session security detection text reflected by the second abnormal text description set; On the basis that the commonality metric value is greater than the set metric value, determining that the target session security detection text and the reference session security detection text are similar texts, and performing security analysis on the target session security detection text based on the reference session security detection text; The step of performing security analysis on the target session security detection text based on the reference session security detection text comprises: The target session security detection text is passed into the decision tree model corresponding to the reference session security detection text, and a session text block pool for the target session security detection text generated by the decision tree model is obtained, wherein the session text block pool includes no less than two session text blocks; Obtaining a contribution weight of each conversation text block in the conversation text block pool relative to the target conversation security detection text; According to the contribution weights corresponding to the respective conversation text blocks and the abnormal decision vectors of the respective conversation text blocks, the respective conversation text blocks are sorted into text blocks to obtain corresponding conversation text block queues; Determine a security analysis decision result set about the target session security detection text based on the session text block queue, wherein the security analysis decision result set includes at least two abnormal event probabilities; The abnormal event probability is used to determine an abnormal event text block from the target session security detection text.

2. The method according to claim 1, characterized in that The performing text description mining on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set includes: Through the text description mining subnet in the Transformer network, text description mining is performed on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set.

3. The method according to claim 2, characterized in that The processing of the first abnormal text description set to obtain a first text detection variable corresponding to the first abnormal text description set includes: The first abnormal text description set is processed through the description feature parsing subnet in the Transformer network to obtain a first text detection variable corresponding to the first abnormal text description set.

4. The method according to claim 2, characterized in that: The text description mining subnet includes a text description mining unit and a text description projection unit. The text description mining subnet in the Transformer network performs text description mining on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text and a first abnormal text description array corresponding to the first abnormal text description set, including: By means of the text description mining unit, text description mining is performed on the target session security detection text to obtain a first abnormal text description set corresponding to the target session security detection text; The text description projection unit performs text description projection on the first abnormal text description set to obtain a first abnormal text description array corresponding to the first abnormal text description set.

5. The method according to claim 3, characterized in that: Before the first abnormal text description set is processed by the description feature parsing subnet in the Transformer network to obtain a first text detection variable corresponding to the first abnormal text description set, the method further includes: Adjusting the text description mining subnet according to the session security detection text sample and the abnormal text description array sample corresponding to the session security detection text sample; On the basis of maintaining the adjusted text description mining subnet unchanged, adjusting the description feature parsing subnet according to the abnormal text description array sample and the key text description array of the risk topic label corresponding to the session security detection text sample; The step of adjusting the text description mining subnet according to the session security detection text sample and the abnormal text description array sample corresponding to the session security detection text sample includes: Obtain the session security detection text sample and an abnormal text description array sample corresponding to the session security detection text sample; Through the text description mining subnet, text description mining is performed on the session security detection text sample to obtain an abnormal text analysis description set corresponding to the session security detection text sample and an abnormal text analysis array corresponding to the abnormal text analysis description set; Adjusting the text description mining subnet according to the comparison result between the abnormal text parsing array and the abnormal text description array sample; The text description mining subnet includes a text description mining unit and a text description projection unit. The text description mining subnet performs text description mining on the session security detection text sample to obtain an abnormal text parsing description set corresponding to the session security detection text sample and an abnormal text parsing array corresponding to the abnormal text parsing description set, including: performing text description mining on the session security detection text sample by the text description mining unit to obtain an abnormal text parsing description set corresponding to the session security detection text sample; performing text description projection on the abnormal text parsing description set by the text description projection unit to obtain an abnormal text parsing array corresponding to the abnormal text parsing description set; Wherein, the Transformer network also includes a network cost generation subnet, the network cost generation subnet includes a confidence description array corresponding to each risk topic label, and the text description mining subnet is adjusted according to the comparison result between the abnormal text parsing array and the abnormal text description array sample, including: through the network cost generation subnet, the abnormal text parsing array is strengthened according to the confidence description array corresponding to the risk topic label corresponding to the session security detection text sample, to obtain the abnormal text description strengthening array corresponding to the abnormal text parsing array; obtain the second adjustment cost index between the abnormal text description strengthening array and the abnormal text description array sample, the second adjustment cost index represents the comparison result between the abnormal text description strengthening array and the abnormal text description array sample; according to the second adjustment cost index, the text description mining subnet and the network cost generation subnet are adjusted; Among them, on the basis of maintaining the adjusted text description mining subnet unchanged, the description feature parsing subnet is adjusted according to the abnormal text description array sample and the key text description array of the risk topic label corresponding to the session security detection text sample, including: obtaining the key text description array of the risk topic label corresponding to the session security detection text sample, the key text description array represents the risk theme word vector corresponding to the risk theme label; processing the abnormal text parsing description set through the description feature parsing subnet to obtain the text detection variable parsing result corresponding to the abnormal text parsing description set, the text detection variable parsing result is used to characterize the detection offset index of the risk theme word vector in the session security detection text sample reflected by the abnormal text parsing description set; obtaining a third adjustment cost indicator according to the abnormal text parsing array, the key text description array and the text detection variable parsing result, the third adjustment cost indicator represents the training cost of the text detection variable parsing result corresponding to the abnormal text parsing description set; and adjusting the description feature parsing subnet according to the third adjustment cost indicator.

6. The method according to claim 5, characterized in that The obtaining of a third calibration cost indicator according to the abnormal text parsing array, the key text description array and the text detection variable parsing result includes: Obtaining a target text detection variable according to the difference features between the abnormal text parsing array and the key text description array; The third calibration cost indicator is obtained according to a comparison result between the target text detection variable and the text detection variable parsing result.

7. The method according to claim 5, characterized in that The step of obtaining a key text description array of a risk topic label corresponding to the session security detection text sample includes: Obtain an array of abnormal text descriptions corresponding to multiple session security detection texts with risk topic labels corresponding to the session security detection text sample; The key text description array is determined according to the acquired multiple abnormal text description arrays.

8. The method according to claim 5, characterized in that The step of obtaining a key text description array of a risk topic label corresponding to the session security detection text sample includes: Obtaining an array of confidence descriptions corresponding to the risk topic labels corresponding to the session security detection text sample; The confidence description array corresponding to the session security detection text sample is determined as the key text description array.

9. An artificial intelligence service system, characterized in that: include: A memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the artificial intelligence service system executes the method as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is run, the method according to any one of claims 1 to 8 is performed.