A method and system for analyzing text message content based on artificial intelligence

By preprocessing text message data and regularizing expressions to extract key information, establish a keyword comparison library and optimize the text message classification model, the problem of low efficiency of keyword identification in text message content is solved, and more accurate keyword identification and more accurate keyword identification are achieved. Accurate matching degree acquisition improves the classification effect of text message content.

CN118394945BActive Publication Date: 2024-10-18BEIJING JIUJIA XINTONG TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410851363.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

In the existing technology, the efficiency of keyword recognition in text message content is low, especially the incomplete understanding of complex and obscure semantics, resulting in inaccurate keyword recognition.

Method used

By preprocessing the initial text message data provided by the user to be analyzed, using regular expressions to extract key information data, and establishing a keyword comparison library, conducting comparison and verification based on keyword matching indicators, building and optimizing the text message classification model, combined with The model optimization results are used for event analysis to improve the efficiency of keyword recognition.

Benefits of technology

It improves the efficiency and accuracy of keyword recognition in text message content, enhances the accuracy of obtaining keyword matching indicators, optimizes the performance of the text message classification model, and improves the content classification effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394945B_ABST
    Figure CN118394945B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for analyzing text message content based on artificial intelligence, and relates to the field of data processing technology. The method for analyzing text message content based on artificial intelligence comprises the following steps: extracting key information data; comparing and verifying; constructing and optimizing a text message classification model; and event analysis. The present invention obtains text message data by analyzing the initial text message data provided by the user to be analyzed and preprocessing the data. At the same time, the text message content provided by the user to be analyzed is subjected to secondary processing, and then the key information data is extracted and a keyword comparison library is established. Then, the preprocessed text message data is compared and verified with the keyword comparison library according to the keyword matching index, and a text message classification model is constructed and the model is optimized. Finally, an event analysis is performed on the text message content provided by the user to be analyzed, thereby achieving the effect of improving the efficiency of keyword recognition of text message content, and solving the problem of low efficiency of keyword recognition of text message content in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a text message content analysis method and system based on artificial intelligence. Background Art

[0002] With the rapid development of mobile communication technology, SMS, as an important tool for people's daily communication, continues to grow in usage. SMS is not only used for communication between individuals, but also widely used in various fields such as corporate marketing and service notifications. Secondly, the continuous advancement of artificial intelligence technology provides strong technical support for SMS content analysis. Through natural language processing, machine learning and other technologies, SMS texts can be deeply understood to achieve automated and intelligent content analysis. These technologies can identify keywords, emotional tendencies, intentions and other information in SMS, and can also be used to identify and filter spam SMS. By training models, SMS containing fraud, malicious links and other content can be identified to protect user information security and provide support for subsequent decision-making. In addition, with the advent of the big data era, the accumulation and processing of SMS data has become increasingly important. By processing and analyzing a large amount of SMS data, users' behavioral habits, consumption preferences and other information can be discovered, providing a basis for enterprises to formulate precise marketing strategies. Therefore, an SMS content analysis method and system based on artificial intelligence came into being.

[0003] The existing system divides the SMS content into preset categories, describes the key feature information in the SMS content through text clustering methods, and then automatically identifies the key feature information based on machine learning algorithms and automatically classifies and analyzes it in combination with preset classification indicators, thereby achieving real-time analysis of the key feature information.

[0004] For example, the invention patent with announcement number CN110633466B discloses a text message crime identification method, system and readable storage medium based on semantic analysis, including: establishing a text semantic representation space with text concepts as dimensions, and performing machine learning on input sample text message data of various text message crime types; obtaining semantic features and black-and-white samples corresponding to the text message crime types based on the results of machine learning, and determining whether the real text message data is criminal text message data; if the real text message data is determined to be criminal text message data, outputting the determination result information.

[0005] For example, the patent application with publication number: CN115983248A discloses a behavior analysis method and device based on mobile phone text messages, including: extracting mobile phone text message information and performing keyword comparison, rule comparison and text message behavior analysis to obtain corresponding text message analysis results; fusing the text message analysis results and constructing a text message analysis model, and outputting the text message behavior analysis characterization results according to the constructed text message analysis model.

[0006] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:

[0007] In the prior art, the semantic understanding of complex, obscure and specific fields is incomplete, resulting in inaccurate keyword recognition of SMS content and low efficiency of keyword recognition of SMS content. Summary of the invention

[0008] The embodiments of the present application provide an artificial intelligence-based SMS content analysis method and system, thereby solving the problem of low efficiency in SMS content keyword recognition in the prior art and improving the efficiency of SMS content keyword recognition.

[0009] The embodiment of the present application provides an artificial intelligence-based SMS content analysis method, comprising the following steps: S1, analyzing the initial SMS data provided by the user to be analyzed to obtain SMS data and preprocessing it, and using a regular expression to perform secondary processing on the SMS content provided by the user to be analyzed and extract key information data; S2, establishing a keyword comparison library based on the extracted key information data, and comparing and verifying the preprocessed SMS data with the keyword comparison library based on a keyword matching index, wherein the keyword matching index is used to measure the degree of match between the keyword data in the SMS content provided by the user to be analyzed and the keyword data in the keyword comparison library; S3, constructing an SMS classification model based on the results of the comparison and verification, and encoding the key information data and inputting it into the SMS classification model as a training data set to optimize the SMS classification model; S4, combining the results of the model optimization with the SMS provided by the user to be analyzed The process of performing event analysis on the content and visualizing the event analysis in the form of a chart; the specific process of comparing and verifying the pre-processed SMS data with the keyword comparison library is as follows: setting a matching data structure corresponding to the pre-processed SMS data according to the data structure of the keyword comparison library; setting a matching threshold according to the preset matching condition of the SMS content provided by the user to be analyzed and in combination with the matching data structure, and performing data testing in combination with the matching condition evaluation factor and monitoring the data testing process in real time; obtaining the SMS content matching rate and SMS content false alarm rate between the SMS content provided by the user to be analyzed and the preset matching condition during the real-time monitoring process, and obtaining the keyword matching index in combination with the corresponding average value, and judging whether the keyword matching index is equal to the preset keyword matching index. If so, stopping the data test, otherwise dynamically adjusting the matching threshold and re-performing the data test until the preset keyword matching index is met.

[0010] Furthermore, the specific extraction process of the key information data is as follows: performing word segmentation on the SMS content provided by the user to be analyzed and designing a regular expression pattern according to the preset requirements of the user to be analyzed; matching the SMS content provided by the user to be analyzed with the keyword data through regular matching to extract the key information that conforms to the regular expression pattern; identifying the entity information and time information in the key information in combination with the regular matching to extract the key information data.

[0011] Furthermore, the specific method for obtaining the regular expression matching degree is as follows: comparing the extracted key information with the preset key information, and obtaining key matching items in combination with the keyword data and encoding them, wherein the key matching items include similarity matching items and format matching items; obtaining the corresponding similarity score and format correctness score according to the obtained key matching items and in combination with the complexity of the regular expression pattern; and obtaining the regular expression matching degree by combining the similarity score and the format correctness score, wherein the regular expression matching degree is calculated by the following formula:

[0012] ,

[0013] In the formula, m is the number of the SMS content provided by the user to be analyzed, , M is the total number of SMS contents provided by the users to be analyzed, represents the regular matching degree corresponding to the SMS content provided by the mth user to be analyzed, e is a natural constant, represents the similarity score corresponding to the SMS content provided by the mth user to be analyzed, represents the similarity reference score, represents the similarity score reference deviation, represents the format correctness score of the SMS content provided by the mth user to be analyzed, represents the reference score for format correctness, represents the reference deviation of the format correctness score, Indicates the complexity of the regular expression pattern corresponding to the SMS content provided by the mth user to be analyzed, Indicates the reference complexity of the regular expression pattern. Indicates the regular expression pattern complexity reference deviation.

[0014] Furthermore, the keyword matching index is calculated by the following formula:

[0015] ,

[0016] In the formula, m is the number of the SMS content provided by the user to be analyzed, , M is the total number of SMS contents provided by the users to be analyzed, j is the number of data test times, , J is the total number of data tests, represents the keyword matching index of the SMS content provided by the mth user to be analyzed in the jth data test, e is a natural constant, It represents the false alarm rate of the SMS content provided by the mth user to be analyzed in the jth data test, Indicates the reference false alarm rate of SMS content. Indicates the average false alarm rate of SMS content. It represents the SMS content matching rate of the SMS content provided by the mth user to be analyzed in the jth data test, Indicates the reference matching rate of SMS content. Indicates the average matching rate of SMS content. It represents the matching condition evaluation factor of the SMS content provided by the mth user to be analyzed in the jth data test.

[0017] Furthermore, the specific steps of constructing the SMS classification model include: removing stop words in the key information data and encoding the key information data using a preset encoding strategy, and converting the encoding result into binary form; extracting priority information from the encoded key information data and constructing an SMS classification model in combination with a correlation classification index, wherein the correlation classification index is used to measure the degree of correlation between the priority information and the preset event.

[0018] Furthermore, the specific steps of optimizing the SMS classification model include: inputting the encoded key information data as a training data set into the constructed SMS classification model, and encoding the SMS content provided by the user to be analyzed in the same encoding method as the key information data; optimizing the SMS classification model according to the training data set and the SMS content provided by the user to be analyzed after encoding, combined with priority information and preset model performance indicators, and monitoring and recording the performance of the SMS classification model during the optimization process in real time until the preset model performance indicators are reached.

[0019] The embodiment of the present application provides an artificial intelligence-based SMS content analysis system, including: a key information data extraction module, a comparison and verification module, an SMS classification model construction and optimization module and an event analysis module; wherein the key information data extraction module is used to analyze the initial SMS data provided by the user to be analyzed to obtain SMS data and perform preprocessing, and at the same time, use a regular expression to perform secondary processing on the SMS content provided by the user to be analyzed and then extract the key information data; the comparison and verification module is used to establish a keyword comparison library based on the extracted key information data, and at the same time, compare and verify the preprocessed SMS data with the keyword comparison library based on the keyword matching index, and the keyword matching index is used to measure the degree of matching between the keyword data in the SMS content provided by the user to be analyzed and the keyword data in the keyword comparison library; the SMS classification model construction and optimization module is used to construct an SMS classification model based on the results of the comparison and verification, and at the same time, after encoding the key information data, it is input into the SMS classification model as a training data set to calibrate the SMS classification model. The event analysis module is used to perform event analysis on the SMS content provided by the user to be analyzed in combination with the results of the model optimization and visualize the event analysis process in the form of a chart; the specific process of comparing and verifying the pre-processed SMS data with the keyword comparison library is as follows: setting a matching data structure corresponding to the pre-processed SMS data according to the data structure of the keyword comparison library; setting a matching threshold according to the preset matching condition of the SMS content provided by the user to be analyzed and in combination with the matching data structure, and performing data testing and real-time monitoring of the data testing process in combination with the matching condition evaluation factor; obtaining the SMS content matching rate and SMS content false alarm rate between the SMS content provided by the user to be analyzed and the preset matching condition during the real-time monitoring process, and obtaining the keyword matching index in combination with the corresponding average value, and judging whether the keyword matching index is equal to the preset keyword matching index. If so, stopping the data test, otherwise dynamically adjusting the matching threshold and re-performing the data test until the preset keyword matching index is met.

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

[0021] 1. The SMS data is obtained by analyzing the initial SMS data provided by the user to be analyzed and preprocessed. At the same time, the SMS content provided by the user to be analyzed is subjected to secondary processing to extract key information data and establish a keyword comparison library. Then, the preprocessed SMS data is compared and verified with the keyword comparison library according to the keyword matching index. Finally, an SMS classification model is constructed and optimized according to the comparison and verification results. At the same time, event analysis is performed on the SMS content provided by the user to be analyzed, thereby achieving more accurate extraction of key information data, and then achieving improved efficiency in SMS content keyword recognition, effectively solving the problem of low efficiency in SMS content keyword recognition in the prior art.

[0022] 2. A matching data structure corresponding to the preprocessed SMS data is set through the data structure of the keyword comparison library, and then a matching threshold is set according to the preset matching conditions of the SMS content provided by the user to be analyzed and combined with the matching data structure. At the same time, data testing is performed in combination with the matching condition evaluation factor and the data testing process is monitored in real time. Finally, the SMS content matching rate and SMS content false alarm rate between the SMS content provided by the user to be analyzed and the preset matching conditions during the real-time monitoring process are obtained, and the keyword matching index is obtained in combination with the corresponding average value, thereby improving the accuracy of data testing and achieving more accurate acquisition of keyword matching indicators.

[0023] 3. By inputting the encoded key information data as a training data set into the constructed SMS classification model, and encoding the SMS content provided by the user to be analyzed in the same encoding method as the key information data, and then optimizing the SMS classification model based on the training data set and the SMS content provided by the user to be analyzed after encoding, combined with priority information and preset model performance indicators, and at the same time monitoring and recording the performance of the SMS classification model in the optimization process in real time until the preset model performance indicators are reached, a more accurate optimization of the SMS classification model is achieved, thereby improving the SMS content classification effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A flowchart of a text message content analysis method based on artificial intelligence provided in an embodiment of the present application;

[0025] Figure 2 A flowchart for extracting key information data provided by an embodiment of the present application;

[0026] Figure 3 A flowchart for constructing a text message classification model provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of the structure of an artificial intelligence-based SMS content analysis system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The embodiment of the present application solves the problem of low efficiency of keyword recognition of SMS content in the prior art by providing an artificial intelligence-based SMS content analysis method and system. The initial SMS data provided by the user to be analyzed is analyzed by a key information data extraction module to obtain SMS data and preprocess it. At the same time, the SMS content provided by the user to be analyzed is secondary processed by a regular expression to extract key information data. Then, a keyword comparison library is established according to the extracted key information data by a comparison and verification module. At the same time, the preprocessed SMS data and the keyword comparison library are compared and verified according to the keyword matching index. Then, an SMS classification model is constructed according to the result of the comparison and verification by an SMS classification model construction and optimization module. At the same time, the key information data is encoded and input into the SMS classification model as a training data set to optimize the SMS classification model. Finally, an event analysis module is used to perform event analysis on the SMS content provided by the user to be analyzed in combination with the result of model optimization, and the process of event analysis is visualized in the form of a chart, thereby improving the efficiency of keyword recognition of SMS content.

[0029] The technical solution in the embodiment of the present application is to solve the problem of low efficiency of keyword recognition in the above-mentioned SMS content, and the overall idea is as follows:

[0030] The SMS data is obtained by analyzing the initial SMS data provided by the user to be analyzed and preprocessed. At the same time, the SMS content provided by the user to be analyzed is secondary processed using regular expressions to extract key information data and establish a keyword comparison library. Then, the preprocessed SMS data is compared and verified with the keyword comparison library according to the keyword matching index. Finally, according to the results of the comparison and verification, an SMS classification model is constructed and the model is optimized. At the same time, event analysis is performed on the SMS content provided by the user to be analyzed and the process of event analysis is visualized in the form of charts, thereby achieving the effect of improving the efficiency of keyword recognition in SMS content.

[0031] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0032] like Figure 1As shown, it is a flow chart of a method for analyzing text message content based on artificial intelligence provided by an embodiment of the present application, and the method includes the following steps: S1, analyzing the initial text message data provided by the user to be analyzed to obtain text message data and preprocessing it, and at the same time, using a regular expression to perform secondary processing on the text message content provided by the user to be analyzed, and then extracting key information data, the text message data is used to numerically display the sending time, receiving time, sending method and receiving method of the text message content provided by the user to be analyzed, and the key information data is used to describe the keyword data in the text message content provided by the user to be analyzed; S2, establishing a keyword comparison library based on the extracted key information data, and at the same time comparing and verifying the preprocessed text message data with the keyword comparison library based on the keyword matching index, and the keyword comparison library is used to visualize the stored text messages within a preset time period. The keyword data in the SMS content provided by the user to be analyzed, the keyword matching index is used to measure the matching degree between the keyword data in the SMS content provided by the user to be analyzed and the keyword data in the keyword comparison library; S3, constructing an SMS classification model according to the results of the comparison and verification, and encoding the key information data as a training data set to input into the SMS classification model to optimize the SMS classification model, the SMS classification model is used to prioritize the key information data, and the model optimization means iteratively optimizing the SMS classification model to automatically identify and classify the SMS content; S4, combining the results of the model optimization to perform event analysis on the SMS content provided by the user to be analyzed and visualize the event analysis process in the form of a chart, and the event analysis is used to analyze the SMS content of the user to be analyzed when a preset event occurs.

[0033] In this embodiment, filling missing values ​​usually utilizes regular expression matching pattern to identify and fill missing values ​​in SMS content. For example, by matching a specific date format, missing values ​​of sending and receiving time can be filled; converting data format usually utilizes regular expression to convert the format of SMS data. For example, converting the date and time in SMS from one format to another format for comparison and analysis with other data; in practical applications, the extracted key information data is usually used for: classifying or clustering SMS according to keywords or special identifiers to identify SMS of different categories and SMS with similar content; by analyzing the frequency and pattern of occurrence of keywords or phrases, the emotional tendency of SMS can be analyzed to determine whether it is positive, negative or neutral; by analyzing the sending and receiving time and frequency information of SMS, the behavior patterns and habits of the persons involved can be identified; keyword data refers to words or phrases related to a specific topic or event. By analyzing the keywords in the SMS content, we can understand the subject, intent or emotional tendency of the SMS; special identification data refers to some special symbols, codes or identifiers that may be contained in the SMS (such as verification codes, order numbers, links); other metadata data usually includes the identity information of the sender and receiver, the length of the SMS, and the network environment in which it is sent and received. These metadata data can provide additional context and dimensions for analysis, thereby improving the efficiency of keyword recognition in SMS content.

[0034] Further, such as Figure 2 As shown, it is a flow chart for extracting key information data provided by an embodiment of the present application. The specific extraction process of key information data is: performing word segmentation processing on the SMS content provided by the user to be analyzed and designing a regular expression pattern according to the preset requirements of the user to be analyzed. The word segmentation processing means dividing the SMS content provided by the user to be analyzed into vocabulary units according to the preset division standard. The regular expression pattern is used to identify the keyword data in the SMS content provided by the user to be analyzed and classify them according to the preset analysis target; the SMS content provided by the user to be analyzed is matched with the keyword data through the regular matching degree to extract the key information that conforms to the regular expression pattern. The regular matching degree is used to measure the matching degree between the keyword data and the key information. The key information represents the text information of the SMS content provided by the user to be analyzed after the word segmentation processing; the entity information and time information in the key information are identified in combination with the regular matching degree to extract the key information data.

[0035] In this embodiment, the specific steps of word segmentation processing are: according to the specific application scenario and the characteristics of the SMS content, a suitable word segmentation tool or method can be selected. In addition, a deep learning-based word segmentation model (such as a neural network-based word segmenter) can also be used; the SMS content is used as input, and the word segmentation tool is called for word segmentation processing. The word segmentation tool will divide the continuous text into independent vocabulary units according to the dictionary and algorithm, and return the word segmentation result.

[0036] Specifically, the specific design steps of the regular expression pattern are as follows: before designing the regular expression pattern, it is necessary to deeply analyze the characteristics and preset requirements of the SMS content, understand the keywords, phrases and special identification information usually contained in the SMS, as well as their formats and arrangement rules; design a suitable regular expression pattern according to the characteristics of the SMS content. Regular expressions are a powerful text processing tool that can use specific syntax to describe and match text patterns. By defining appropriate metacharacters, quantifiers and boundary symbols, you can construct a regular expression pattern that can match the target text; use the actual SMS content to test the designed regular expression pattern to verify its matching effect and accuracy, and adjust and optimize it according to the test results to ensure that the regular expression pattern can accurately match the target text.

[0037] It is important to understand that time information can help us understand the time and duration of an event. Through regular expressions or a dedicated time parsing library, time information can be extracted from the text message content and standardized. By integrating the results of entity information and time information extraction, a complete key information data set is formed. This data can be used for subsequent event analysis and personnel behavior pattern recognition, thereby achieving more accurate acquisition of key information data.

[0038] Furthermore, by extracting features related to regular matching (such as word frequency) from the text message content,

[0039] The deep learning model is trained with the annotated data set to predict the matching degree between the SMS content and the regular expression. The trained deep learning model is then combined with the regular expression matching to obtain the regular matching degree. In addition to obtaining the regular matching degree through the above deep learning method, it can also be obtained and calculated through the following methods and formulas: The specific method for obtaining the regular matching degree is: comparing the extracted key information with the preset key information, and obtaining and encoding the key matching items in combination with the keyword data. The key matching items include similarity matching items and format matching items. According to the obtained key matching items and combined with the complexity of the regular expression pattern, the corresponding similarity score and format correctness score are obtained. The complexity of the regular expression pattern is used to measure the matching efficiency between the keyword data and the key information. The similarity score is used to measure the similarity between the similarity matching item and the keyword data. The format correctness score is used to measure the format matching degree between the format matching item and the regular expression pattern. The regular matching degree is obtained by combining the similarity score and the format correctness score. The regular matching degree is calculated by the following formula:

[0040] ,

[0041] In the formula, m is the number of the SMS content provided by the user to be analyzed, , M is the total number of SMS contents provided by the users to be analyzed, represents the regular matching degree corresponding to the SMS content provided by the mth user to be analyzed, e is a natural constant, represents the similarity score corresponding to the SMS content provided by the mth user to be analyzed, represents the similarity reference score, represents the similarity score reference deviation, Indicates the format correctness score of the SMS content provided by the mth user to be analyzed represents the reference score for format correctness, represents the reference deviation of the format correctness score, Indicates the complexity of the regular expression pattern corresponding to the SMS content provided by the mth user to be analyzed, Indicates the reference complexity of the regular expression pattern. Indicates the regular expression pattern complexity reference deviation.

[0042] In this embodiment, when the pattern complexity coefficient is greater than or equal to 1, the regular matching degree is 0, and when the pattern complexity coefficient is less than 1, the change statistics of the regular matching degree are shown in Table 1:

[0043] Table 1 Statistics of changes in regular matching degree

[0044]

[0045] It should be understood that the similarity reference score and format correctness reference score in Table 1 can be obtained by weighted averaging the existing historical SMS content data that has run well; the pattern complexity coefficient represents the ratio of the absolute value of the difference between the regular expression pattern complexity and the corresponding reference value to the reference deviation of the regular expression pattern complexity. The regular expression pattern complexity can be measured in many ways, such as the length of the regular expression, the number of metacharacters used, and the nesting level. The more complex the regular expression, the longer the matching time and the higher the computational cost. In addition, when measuring the complexity of the regular expression pattern, you can refer to some existing complexity measurement methods or tools, or you can customize the complexity calculation method according to the actual situation; the specific calculation method of the similarity score can be based on the character When obtaining the similarity score, the string similarity algorithm (such as cosine similarity and custom similarity function) also needs to consider the influence of the complexity of the regular expression pattern. If the regular expression pattern is too complex, it may lead to a long matching time or an increase in mismatches, thereby affecting the accuracy of the similarity score. The format correctness score can be achieved by comparing the format matching items in the key matching items with the preset format standards. The specific calculation method can be based on rule matching or pattern recognition methods. Similarly, when obtaining the format correctness score, it is also necessary to consider the influence of the complexity of the regular expression pattern. If the complexity of the regular expression is too high, it may increase the complexity and error rate of format verification, thereby affecting the reliability of the format correctness score, thereby achieving improved accuracy and reliability of regular matching.

[0046] Furthermore, the specific process of comparing and verifying the preprocessed SMS data with the keyword comparison library is as follows: a matching data structure corresponding to the preprocessed SMS data is set according to the data structure of the keyword comparison library, and the matching data structure is used to record the keywords in the SMS content provided by the user to be analyzed that match the data structure of the keyword comparison library; a matching threshold is set according to the preset matching condition of the SMS content provided by the user to be analyzed and combined with the matching data structure, and data testing is performed in combination with the matching condition evaluation factor and the data testing process is monitored in real time, the matching threshold represents the preset compliance range between the SMS content provided by the user to be analyzed and the preset matching condition, the matching condition evaluation factor is used to quantitatively evaluate the degree of compliance between the SMS content provided by the user to be analyzed and the preset matching condition, and the data testing represents the use of known The event SMS content is tested on the SMS content provided by the user to be analyzed to evaluate the accuracy of the set matching threshold; the SMS content matching rate and SMS content false alarm rate between the SMS content provided by the user to be analyzed and the preset matching conditions are obtained during the real-time monitoring process, and the keyword matching index is obtained by combining the corresponding average values, and it is determined whether the keyword matching index is equal to the preset keyword matching index. If so, the data test is stopped, otherwise the matching threshold is dynamically adjusted and the data test is performed again until the preset keyword matching index is met. The SMS content matching rate is used to measure the degree of compliance between the SMS content provided by the user to be analyzed and the preset matching conditions, and the SMS content false alarm rate is used to measure the proportion of SMS content that does not meet the preset matching conditions being mistakenly identified as meeting the conditions during the real-time monitoring process.

[0047] In this embodiment, in actual application, the matching data structure can be used to further analyze the SMS content. For example, the potential risk of the SMS content can be evaluated based on the matched keywords and their metadata, or a report containing all matching items can be generated. According to specific application scenarios and requirements, it is necessary to adjust and expand this data structure to include more information or implement more complex matching logic; the matching condition evaluation factor is a parameter variable used to adjust and optimize the matching threshold. These factors usually include the length of the SMS content, a specific combination of keywords, and the sending time. For example, if the SMS content is very long, it may be desirable to reduce the requirement on the number of keywords. If the keywords appear frequently within a specific time period, it may be desirable to adjust the calculation method of the weight. After setting the matching condition evaluation factor, the matching condition evaluation factor can be used to adjust the matching condition evaluation factor. After matching the threshold and evaluation factor, it is necessary to use historical data and simulation data for testing to verify the accuracy and effectiveness of the matching threshold. If the current matching index does not meet the preset conditions, the matching threshold needs to be dynamically adjusted. The dynamic adjustment strategy can be based on some heuristic methods and machine learning models. The dynamic adjustment process needs to be iterated until the matching index meets the preset conditions or reaches the preset maximum number of attempts. In each iteration, the matching threshold is dynamically adjusted according to the current matching index, and the matching score is recalculated. In this way, the matching threshold can be gradually optimized to ensure that it can more accurately reflect the relationship between the SMS content and the keyword matching index, thereby improving the accuracy of the comparison verification.

[0048] Furthermore, the weight of the keyword in the SMS content is calculated by the vector space model method, and the cosine similarity between the SMS content vector and the keyword vector is calculated according to the frequency of occurrence of the keyword in the SMS content to measure the matching degree between the keywords, thereby obtaining the keyword matching index; in addition to obtaining the keyword matching index by the vector space model method in the above machine learning algorithm, it can also be calculated by the following formula:

[0049] ,

[0050] In the formula, m is the number of the SMS content provided by the user to be analyzed, , M is the total number of SMS contents provided by the users to be analyzed, j is the number of data test times, , J is the total number of data tests, represents the keyword matching index of the SMS content provided by the mth user to be analyzed in the jth data test, e is a natural constant, It represents the false alarm rate of the SMS content provided by the mth user to be analyzed in the jth data test, Indicates the reference false alarm rate of SMS content. Indicates the average false alarm rate of SMS content. Indicates the SMS content matching rate of the mth user to be analyzed in the jth data test Indicates the reference matching rate of SMS content Indicates the average matching rate of SMS content. It represents the matching condition evaluation factor of the SMS content provided by the mth user to be analyzed in the jth data test.

[0051] In this embodiment, when the matching condition evaluation factor is greater than or equal to 1, the keyword matching index is 0. When the matching condition evaluation factor is less than 1, the change statistics of the keyword matching index are shown in Table 2:

[0052] Table 2 Statistics of changes in keyword matching index

[0053]

[0054] It should be understood that the reference false alarm rate and reference matching rate are benchmark values, usually set based on expert knowledge or historical data, and are used to compare the false alarm rate and matching rate levels after different data tests or algorithm adjustments. The average false alarm rate and average matching rate are the average values ​​of all test false alarm rates and test matching rates after multiple data tests, and are used to reflect the false alarm performance and matching performance of the algorithm or model under general circumstances. The SMS content false alarm rate and matching rate are based on data testing and provide performance details of the algorithm under specific circumstances. If the false alarm rate is high, it means that the keyword matching indicator is less accurate and the matching threshold is set too loosely and needs to be tightened appropriately. If the matching rate is low, it may be necessary to adjust the matching strategy or optimize the algorithm to improve the recognition accuracy, thereby improving the reliability of the keyword matching indicator.

[0055] Further, such as Figure 3 As shown, it is a flow chart for constructing the SMS classification model provided in the embodiment of the present application, and the specific construction steps of the SMS classification model include: removing stop words in the key information data and encoding the key information data using a preset encoding strategy, and converting the encoding result into binary form; extracting priority information from the encoded key information data, and the priority information is used to describe the association information between the keyword data and the preset event; constructing the SMS classification model according to the priority information and in combination with the correlation classification index, and the correlation classification index is used to measure the degree of association between the priority information and the preset event.

[0056] In this embodiment, stop words generally refer to words that frequently appear in the text of SMS content but contribute little, such as "de", "shi", "le", etc. Before encoding the key information data, these words need to be removed to reduce data noise and improve the efficiency of subsequent processing. During the encoding process, some effective encoding strategies (such as word embedding, hash encoding) are usually adopted to reduce the dimension and complexity of the data while retaining the key information; the priority information is a comprehensive indicator that can accurately describe the degree of association between keyword data and a preset event. This degree of association can be determined based on multiple factors, such as the matching degree of keywords, the weight of keywords in the text, and the urgency of the event. In practical applications, text matching algorithms can be used to calculate the similarity or matching degree between keywords and a preset event. These algorithms can measure the degree of association between keywords and events based on word frequency and semantic similarity.

[0057] Specifically, in practical applications, the specific construction process of the SMS classification model is as follows: According to the priority information and the relevance classification index, extract the key features in the SMS text. The word embedding method can be used to convert the text into a numerical feature vector; analyze the relevance among the SMS content, the sender, and the recipient to determine the classification index. The association rule mining method can be used to identify the association patterns between different categories of SMS; select an appropriate classification algorithm (such as Naive Bayes, Support Vector Machine, deep learning model) according to the characteristics of the keyword data; use the extracted features and the relevance classification index to construct an SMS classification model that conforms to the preset classification architecture. At the same time, adjust the model parameters through the cross-validation method to optimize the model performance, realizing a more accurate construction of the SMS classification model.

[0058] Furthermore, the specific method for obtaining the relevance classification index is as follows: Screen and extract the priority features from the key information data according to the actual requirements of the preset event. The priority features include the sender's credibility and the timestamp of the SMS content; perform priority annotation on the preset event to obtain the priority event, and at the same time perform relevance analysis on the priority event and the key information data to obtain the relevance classification index. The relevance analysis means analyzing the occurrence frequency and event similarity of the keyword data in the priority event. The event similarity is used to measure the degree of similarity between the keyword data and the priority event.

[0059] In this embodiment, in some scenarios, the identity and reputation of the sender have an important impact on judging the importance and urgency of the SMS. For example, SMS from official agencies or trusted sources may have a higher priority. Therefore, when filtering key information data, it can be sorted and filtered according to the sender's reputation, and priority is given to those SMS from high-reputation senders. Secondly, the timestamp of the SMS content can understand the sending time of the SMS, which is very critical for judging the urgency of the SMS. For example, a recently sent SMS may be more urgent than a SMS sent a few days ago because it may contain the latest information or warnings. When extracting priority features, SMS can be sorted according to the timestamp. Recently sent SMS can be are given higher priorities. In addition, in actual applications, other factors, such as the start and end time of preset events, can be combined to further adjust the priority ranking. Specific methods of correlation analysis usually include: checking whether the key information data contains keywords or phrases related to priority events; using natural language processing technology to evaluate the semantic similarity between key information data and priority events; considering the chronological order of events and the timestamps of key information data to identify potential correlations between them; through correlation analysis, key information data that is highly correlated with priority events can be identified, and response strategies can be formulated accordingly. For example, for high-priority events, key information related to them can be processed first, and corresponding actions can be taken.

[0060] Specifically, natural language processing technology is used to extract the correlation information between the content of the SMS and the preset event, and the correlation information is preprocessed and feature extracted, including text cleaning (such as removing stop words and punctuation marks), word segmentation and part-of-speech tagging to extract text features (such as word frequency, n-gram features and sentiment tendencies, which reflect the key information of the SMS content). Finally, a deep learning model is used for automatic identification and tagging to obtain correlation classification indicators. In addition to obtaining the correlation classification indicators through the above natural language processing technology, the following formula can also be used for calculation:

[0061] ,

[0062] In the formula, m is the number of the SMS content provided by the user to be analyzed, , M is the total number of SMS contents provided by the users to be analyzed, n is the number of times the correlation analysis is performed, , N is the total number of correlation analyses, It represents the relevance index of the SMS content provided by the mth user to be analyzed in the nth relevance analysis, e is a natural constant, Indicates the time when the SMS content provided by the mth user to be analyzed is received in the nth correlation analysis. Indicates the time when the SMS content provided by the mth user to be analyzed is sent in the nth correlation analysis. Indicates the reference deviation of the timestamp of the SMS content. Indicates the frequency of keyword data appearance in the nth correlation analysis of the SMS content provided by the mth user to be analyzed, Indicates the frequency of occurrence of keyword data reference, Indicates the reference deviation of the frequency of occurrence of keyword data. It represents the event similarity of the SMS content provided by the mth user to be analyzed in the nth correlation analysis. represents the event reference similarity, represents the reference deviation of event similarity;

[0063] Specifically, the statistical table of changes in correlation indicators is shown in Table 3:

[0064] Table 3 Statistics of changes in correlation indicators

[0065]

[0066] It should be understood that the SMS content timestamp represents the absolute value of the difference between the SMS content reception time and the SMS content sending time, the keyword data frequency deviation represents the absolute value of the difference between the keyword data frequency and the corresponding reference value, and the event similarity deviation represents the absolute value of the difference between the event similarity and the event reference similarity. It can be seen from Table 3 that the ratio of the SMS content timestamp to the corresponding reference deviation is negatively correlated with the correlation index, the ratio of the keyword data frequency deviation to the corresponding reference deviation is positively correlated with the correlation index, and the ratio of the event similarity deviation to the corresponding reference deviation is positively correlated with the correlation index, thereby achieving more accurate acquisition of the correlation index.

[0067] Furthermore, the specific steps of optimizing the SMS classification model include: inputting the encoded key information data as a training data set into the constructed SMS classification model, and encoding the SMS content provided by the user to be analyzed in the same encoding method as the key information data, and the encoding processing is used to automatically encode and classify the SMS content provided by the user to be analyzed according to the format of the training data set; optimizing the SMS classification model according to the training data set and the SMS content provided by the user to be analyzed after encoding, combined with priority information and preset model performance indicators, and monitoring and recording the performance of the SMS classification model during the optimization process in real time until the preset model performance indicators are reached.

[0068] In this embodiment, in order to classify the SMS content provided by the user to be analyzed, it is necessary to encode these SMS in the same encoding method as the key information data, which means that the same encoding strategy, vocabulary and feature extraction method need to be used to ensure that the SMS classification model can understand and process new data. The encoding process usually includes text cleaning, word segmentation and word embedding, which depends on the selected encoding strategy and model type. By using the same encoding method, it can be ensured that the SMS content of the user to be analyzed is consistent with the training data set in the feature space. In this way, the SMS classification model can use the knowledge learned in the training process to classify the new data and output the corresponding classification results.

[0069] It should be noted that the performance of the SMS classification model not only depends on the selection of training data and encoding method, but is also affected by many factors such as model complexity, training strategy, and hyperparameter settings. Therefore, in practical applications, multiple experiments and adjustments are needed to find the best model configuration and parameter settings to achieve the best classification performance. In addition, the performance of the model can be further optimized by combining priority information. For example, the training data set can be weighted according to the priority information so that the SMS classification model pays more attention to samples with higher priority. At the same time, in the model evaluation stage, the priority information can also be considered to be included in the evaluation indicators to more comprehensively measure the performance of the model and achieve more accurate optimization of the SMS classification model.

[0070] Furthermore, the specific steps of performing event analysis on the SMS content provided by the user to be analyzed are: filtering out the SMS content at a preset time point from the keyword data, the SMS content at the preset time point representing the SMS content of the user to be analyzed when the preset event occurs; analyzing the changing trend of the communication behavior of the user to be analyzed based on the SMS content at the preset time point, and at the same time judging whether the user to be analyzed has an abnormal communication pattern in combination with the keyword data of the user to be analyzed; if so, performing keyword analysis on the SMS content provided by the user to be analyzed; otherwise, deciding whether to continue monitoring the SMS content provided by the user to be analyzed is required based on the specific circumstances of the preset event; keyword analysis is used to analyze key information data and keyword data.

[0071] In this embodiment, analyzing the changing trend of the communication behavior of the user to be analyzed specifically includes: counting the frequency of sending and receiving text messages within a preset time period, and observing whether there is an obvious changing trend (such as a sudden increase or decrease); classifying the text message content by subject, such as daily communication, business dealings, marketing promotion, etc., to observe whether unusual topics appear; the specific steps of analyzing keyword data are: counting the frequency of occurrence of each keyword in the text message content, and analyzing the frequency distribution to identify high-frequency keywords and low-frequency keywords; using word vector technology or dictionary resources to perform semantic analysis on keywords to identify possible abnormal or sensitive words; analyzing the relationship between keywords and key information, such as which keywords often appear with specific types of information; achieving improved accuracy and reliability of event analysis.

[0072] like Figure 4 As shown, it is a structural schematic diagram of an artificial intelligence-based SMS content analysis system provided in an embodiment of the present application. The artificial intelligence-based SMS content analysis system provided in an embodiment of the present application includes: a key information data extraction module, a comparison and verification module, an SMS classification model construction and optimization module, and an event analysis module; wherein the key information data extraction module is used to analyze the initial SMS data provided by the user to be analyzed to obtain the SMS data and perform preprocessing, and at the same time, use a regular expression to perform secondary processing on the SMS content provided by the user to be analyzed to extract the key information data, and the key information data is used to describe the keyword data in the SMS content provided by the user to be analyzed; the comparison and verification module is used to establish a keyword comparison model based on the extracted key information data The preprocessed SMS data is compared with the keyword comparison library according to the keyword matching index. The keyword matching index is used to measure the matching degree between the keyword data in the SMS content provided by the user to be analyzed and the keyword data in the keyword comparison library; the SMS classification model construction and optimization module is used to build the SMS classification model according to the results of the comparison and verification, and at the same time, the key information data is encoded and input into the SMS classification model as a training data set to optimize the SMS classification model. The SMS classification model is used to prioritize the key information data; the event analysis module is used to perform event analysis on the SMS content provided by the user to be analyzed in combination with the results of the model optimization and visualize the event analysis process in the form of charts.

[0073] In this embodiment, during the comparative verification process, a portion of the labeled SMS data is used as a verification set to verify the SMS classification model, and the performance of the model is evaluated through the verification results and the actual labeling results. Usually, another independent portion of SMS data that has not participated in the model optimization process is used as a test set to evaluate the trained model, and then according to the evaluation results, the parameters of the model (such as learning rate, number of iterations) are adjusted to improve the performance of the model and achieve more accurate classification of key information data.

[0074] The technical scheme in the above-mentioned embodiment of the present application has at least the following technical effects or advantages: relative to the SMS crime identification method, system and readable storage medium based on semantic analysis announced by the invention patent with announcement number: CN110633466B, the embodiment of the present application sets a matching data structure corresponding to the preprocessed SMS data through the data structure of the keyword comparison library, and then sets a matching threshold according to the preset matching condition of the SMS content provided by the user to be analyzed and in combination with the matching data structure, and at the same time performs data testing in combination with the matching condition evaluation factor and monitors the data testing process in real time, and finally obtains the SMS content matching rate and SMS content false alarm rate between the SMS content provided by the user to be analyzed and the preset matching condition during the real-time monitoring process, and obtains the keyword matching index in combination with the corresponding average value, thereby improving the data test accuracy. The improvement of keyword matching index is achieved, thereby achieving more accurate acquisition of keyword matching index; relative to a method and device for generating digital SMS content disclosed in a patent application with publication number: CN110956027A, the embodiment of the present application inputs the encoded key information data as a training data set into the constructed SMS classification model, and at the same time, uses the same encoding method as the key information data to encode the SMS content provided by the user to be analyzed, and then optimizes the SMS classification model according to the training data set and the SMS content provided by the user to be analyzed after encoding, combined with priority information and preset model performance indicators, and at the same time monitors and records the performance of the SMS classification model in the optimization process in real time until the preset model performance indicators are reached, thereby achieving more accurate optimization of the SMS classification model and improving the SMS content classification effect.

[0075] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0076] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0077] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0079] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0080] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A text message content analysis method based on artificial intelligence, characterized in that: The following steps are involved: S1, analyzing the initial SMS data provided by the user to be analyzed to obtain SMS data and preprocessing it, and using regular expressions to perform secondary processing on the SMS content provided by the user to be analyzed to extract key information data, the SMS data is used to numerically display the sending time, receiving time, sending method and receiving method of the SMS content provided by the user to be analyzed, and the key information data is used to describe the keyword data in the SMS content provided by the user to be analyzed; S2, establishing a keyword comparison library based on the extracted key information data, and comparing and verifying the pre-processed SMS data with the keyword comparison library based on a keyword matching index, wherein the keyword matching index is used to measure the matching degree between the keyword data in the SMS content provided by the user to be analyzed and the keyword data in the keyword comparison library; S3, constructing a text message classification model according to the comparison and verification results, and encoding the key information data as a training data set and inputting it into the text message classification model to optimize the text message classification model; S4, combining the results of model optimization to perform event analysis on the SMS content provided by the user to be analyzed and visualize the process of event analysis in the form of graphs; The specific process of comparing and verifying the pre-processed SMS data with the keyword comparison library is as follows: According to the data structure of the keyword comparison library, a matching data structure corresponding to the pre-processed SMS data is set; According to the preset matching conditions of the SMS content provided by the user to be analyzed and in combination with the matching data structure, a matching threshold is set, and at the same time, data testing is performed in combination with the matching condition evaluation factor and the data testing process is monitored in real time; Obtain the SMS content matching rate and SMS content false alarm rate between the SMS content provided by the user to be analyzed and the preset matching condition during the real-time monitoring process, and obtain the keyword matching index in combination with the corresponding average values, and determine whether the keyword matching index is equal to the preset keyword matching index. If so, stop the data test, otherwise dynamically adjust the matching threshold and re-test the data until the preset keyword matching index is met; The specific extraction process of the key information data is as follows: Perform word segmentation on the SMS content provided by the user to be analyzed and design a regular expression pattern based on the preset requirements of the user to be analyzed; Match the SMS content provided by the user to be analyzed with the keyword data through regular expression matching to extract key information that conforms to the regular expression pattern; Combine regular matching degree to identify entity information and time information in key information to extract key information data; The specific steps of constructing the SMS classification model include: Remove stop words from key information data and encode the key information data using a preset encoding strategy, and convert the encoding results into binary form; Extracting priority information from the encoded key information data and building a short message classification model in combination with a relevance classification index, wherein the relevance classification index is used to measure the degree of relevance between the priority information and the preset event; The keyword matching index is calculated by the following formula: , In the formula, m is the number of the SMS content provided by the user to be analyzed, , M is the total number of SMS contents provided by the users to be analyzed, j is the number of data test times, , J is the total number of data tests, represents the keyword matching index of the SMS content provided by the mth user to be analyzed in the jth data test, e is a natural constant, It represents the false alarm rate of the SMS content provided by the mth user to be analyzed in the jth data test, Indicates the reference false alarm rate of SMS content. Indicates the average false alarm rate of SMS content. It represents the SMS content matching rate of the SMS content provided by the mth user to be analyzed in the jth data test, Indicates the reference matching rate of SMS content. Indicates the average matching rate of SMS content. It represents the matching condition evaluation factor of the SMS content provided by the mth user to be analyzed in the jth data test.

2. The method for analyzing text message content based on artificial intelligence as claimed in claim 1, characterized in that: The specific method for obtaining the regular matching degree is: Compare the extracted key information with the preset key information, and simultaneously obtain key matching items in combination with the keyword data and encode them, wherein the key matching items include similarity matching items and format matching items; Obtain the corresponding similarity score and format correctness score based on the obtained key matching items and combined with the complexity of the regular expression pattern; The similarity score and the format correctness score are combined to obtain the canonical matching degree, which is calculated by the following formula: , In the formula, m is the number of the SMS content provided by the user to be analyzed, , M is the total number of SMS contents provided by the users to be analyzed, represents the regular matching degree corresponding to the SMS content provided by the mth user to be analyzed, e is a natural constant, represents the similarity score corresponding to the SMS content provided by the mth user to be analyzed, represents the similarity reference score, represents the similarity score reference deviation, represents the format correctness score of the SMS content provided by the mth user to be analyzed, represents the reference score for format correctness, represents the reference deviation of the format correctness score, Indicates the complexity of the regular expression pattern corresponding to the SMS content provided by the mth user to be analyzed, Indicates the reference complexity of the regular expression pattern. Indicates the regular expression pattern complexity reference deviation.

3. The method for analyzing text message content based on artificial intelligence as claimed in claim 1, characterized in that: The specific method for obtaining the relevance classification index is: Filter key information data and extract priority features according to the actual needs of preset events; Priority marking is performed on preset events to obtain priority events, and correlation analysis is performed on priority events and key information data to obtain correlation classification indicators.

4. The method for analyzing text message content based on artificial intelligence as claimed in claim 1, characterized in that: The specific steps of optimizing the SMS classification model include: The encoded key information data is input into the constructed SMS classification model as a training data set, and the SMS content provided by the user to be analyzed is encoded in the same encoding method as the key information data; The SMS classification model is optimized based on the training data set and the SMS content provided by the user to be analyzed after encoding, combined with priority information and preset model performance indicators. At the same time, the performance of the SMS classification model during the optimization process is monitored and recorded in real time until the preset model performance indicators are reached.

5. The method for analyzing text message content based on artificial intelligence as claimed in claim 1, characterized in that: The specific steps of performing event analysis on the SMS content provided by the user to be analyzed are: Filter out SMS content at a preset time point from the keyword data, and analyze the changing trend of the communication behavior of the user to be analyzed based on the SMS content at the preset time point. At the same time, determine whether the user to be analyzed has an abnormal communication pattern in combination with the keyword data of the user to be analyzed. If so, perform keyword analysis on the SMS content provided by the user to be analyzed. Otherwise, decide whether to continue monitoring the SMS content provided by the user to be analyzed based on the specific circumstances of the preset event.

6. A system using the method for analyzing text message content based on artificial intelligence as described in any one of claims 1 to 5, characterized in that: include: Key information data extraction module, comparison and verification module, SMS classification model construction and optimization module and event analysis module; The key information data extraction module is used to analyze the initial SMS data provided by the user to be analyzed to obtain SMS data and perform preprocessing, and at the same time, use regular expressions to perform secondary processing on the SMS content provided by the user to be analyzed and then extract the key information data; The comparison and verification module is used to establish a keyword comparison library based on the extracted key information data, and at the same time compare and verify the pre-processed SMS data with the keyword comparison library based on the keyword matching index, which is used to measure the matching degree between the keyword data in the SMS content provided by the user to be analyzed and the keyword data in the keyword comparison library; The SMS classification model construction and optimization module is used to construct a SMS classification model according to the results of the comparison and verification, and at the same time, the key information data is encoded and input into the SMS classification model as a training data set to optimize the SMS classification model; The event analysis module is used to perform event analysis on the SMS content provided by the user to be analyzed based on the results of model optimization and visualize the event analysis process in the form of a chart; The specific process of comparing and verifying the pre-processed SMS data with the keyword comparison library is as follows: According to the data structure of the keyword comparison library, a matching data structure corresponding to the pre-processed SMS data is set; According to the preset matching conditions of the SMS content provided by the user to be analyzed and in combination with the matching data structure, a matching threshold is set, and at the same time, data testing is performed in combination with the matching condition evaluation factor and the data testing process is monitored in real time; The SMS content matching rate and SMS content false alarm rate between the SMS content provided by the user to be analyzed and the preset matching conditions are obtained during the real-time monitoring process. The keyword matching index is obtained by combining the corresponding average values, and it is determined whether the keyword matching index is equal to the preset keyword matching index. If so, the data test is stopped. Otherwise, the matching threshold is dynamically adjusted and the data test is performed again until the preset keyword matching index is met.

Citation Information

Patent Citations

  • A semantic analysis-based method, system, and readable storage medium for identifying SMS-based crimes.

    CN110633466B

  • Method and device for generating digital short message content

    CN110956027A

  • Behavior analysis method and device based on mobile phone short message

    CN115983248A

  • Method and device for identifying junk short message, and mobile communication terminal with device

    CN102801859A

  • Method for extracting and analyzing information of financial credit short messages

    CN107423279A