A short message interception method, device and equipment
By acquiring the semantic features, structured behavioral features, and user preference vectors of SMS messages, and combining them with a discriminative model to dynamically adjust the interception criteria, the problem that manual lists cannot cover newly added malicious senders has been solved, thus improving the accuracy and adaptability of SMS interception.
Patent Information
- Application Number
- CN202611043764.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-11-24
AI Technical Summary
Manually maintained blacklists and whitelists cannot keep up with new malicious senders in real time, resulting in low accuracy in SMS interception.
By acquiring the semantic feature vector, structured behavioral feature vector, and user-personalized interception preference vector of the SMS to be detected, and combining them with preset rules and discrimination models, the interception judgment criteria are dynamically adjusted to identify and intercept potential malicious SMS messages.
It improves the accuracy of SMS blocking, can identify variant spam SMS messages, reduces false blocking and missed blocking, and adapts to the ever-changing spoofing methods of spam SMS messages.
Smart Images

Figure CN123164447A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of telecommunications technology, specifically to a method, apparatus, and device for intercepting text messages. Background Technology
[0002] SMS, as a basic mobile communication service, is widely used in scenarios such as government notifications, financial verification, enterprise services, and personal daily communication. However, the problem of rampant spam, fraudulent, and malicious promotional SMS messages has persisted for a long time.
[0003] In related technologies, a sensitive keyword database, number blacklists and whitelists are maintained manually, and fixed sending frequency thresholds are used to achieve coarse SMS interception through regular expression matching and list comparison.
[0004] However, by altering the original text of SMS messages through methods such as homophone replacement, word splitting, insertion of special symbols, homophonic rewriting, and multi-layer short link jumps, the manually maintained blacklists and whitelists cannot cover newly added malicious senders in real time. They can only intercept existing SMS messages with completely fixed characteristics, resulting in low interception accuracy. Summary of the Invention
[0005] The technical problem this invention aims to solve is that manually maintained blacklists and whitelists cannot cover newly added malicious senders in real time, and can only intercept existing SMS messages with completely fixed characteristics, resulting in low interception accuracy.
[0006] The technical solution of the present invention to solve the above-mentioned technical problems is as follows: a text message interception method, the method comprising: acquiring a text message to be detected; determining a semantic feature vector corresponding to the text message to be detected based on the text message to be detected; determining a structured behavioral feature vector based on the operator metadata of the sending end corresponding to the text message to be detected; determining a user-personalized interception preference vector based on user feedback data corresponding to the text message to be detected; and determining whether to intercept the text message to be detected based on the semantic feature vector, the structured behavioral feature vector, and the user-personalized interception preference vector.
[0007] The beneficial effects of this invention are as follows: By acquiring the SMS message to be detected, and then determining the semantic feature vector corresponding to the SMS message, the limitations of relying solely on manually maintained sensitive keyword databases to match surface text are avoided. At the same time, a structured behavioral feature vector is determined based on the operator metadata of the sending end corresponding to the SMS message. The abnormal sending behavior of newly added malicious senders is identified based on the structured behavioral feature vector, which makes up for the deficiency that manually maintained number blacklists and whitelists cannot cover newly added malicious senders. Furthermore, a user-personalized interception preference vector is determined based on the user feedback data corresponding to the SMS message. The semantic feature vector, structured behavioral feature vector, and user-personalized interception preference vector are combined to jointly determine whether to intercept the SMS message to be detected. This no longer relies solely on fixed sending frequency thresholds, regular expression matching, and list comparison to determine SMS message risk, thereby improving the overall interception accuracy.
[0008] Based on the above technical solution, the present invention can be further improved as follows.
[0009] Furthermore, based on the SMS message to be detected, the semantic feature vector corresponding to the SMS message to be detected is determined, including: extracting the surface risk features of the SMS message to be detected, and constructing a surface structured feature vector based on the surface risk features; determining the syntactic feature vector based on the preset risk sentence template and the surface structured feature vector; determining the deep semantic embedding vector based on the SMS content carrying syntactic risk information in the SMS message to be detected using a pre-trained language model; determining the variant attack auxiliary features based on the deep semantic embedding vector and the dynamic spam SMS semantic database; and fusing the surface structured feature vector, the syntactic feature vector, the deep semantic embedding vector, and the variant attack auxiliary features to obtain the semantic feature vector.
[0010] The beneficial effect of adopting the above-mentioned further scheme is that by extracting the surface risk features of the SMS to be detected and constructing a surface structured feature vector, it is possible to capture the intuitively visible risk indicators of the SMS to be detected. Then, based on the preset risk sentence template and the surface structured feature vector, a neural network model is used to obtain a syntactic feature vector to locate the inducement risk sentences in the SMS to be detected. Then, based on the SMS content carrying syntactic risk information in the SMS to be detected, a deep semantic embedding vector is generated by a pre-trained language model, which can capture the underlying fraudulent intent after text tampering. Then, combined with the deep semantic embedding vector and the dynamic spam SMS semantic database, a variant attack auxiliary feature is calculated, which can identify disguised SMS that has only rewritten text but whose risk intent remains unchanged. Finally, the surface structured feature vector, syntactic feature vector, deep semantic embedding vector, and variant attack auxiliary feature are fused to obtain a semantic feature vector. The semantic feature vector that integrates multi-level risk information can comprehensively characterize various disguised risks of the SMS to be detected. Compared with the method of relying solely on single surface text matching, it can effectively identify the SMS to be detected that has been tampered with by means of homophone replacement, word splitting, symbol insertion, etc., and reduce the underreporting of variant spam SMS.
[0011] Furthermore, based on the operator metadata of the sending end corresponding to the SMS to be detected, a structured behavioral feature vector is determined, including: collecting operator metadata corresponding to the sending end of the SMS to be detected from the operator's multi-source business platform; quantifying the operator metadata to obtain multiple types of black market behavior features; among which, the multiple types of black market behavior features include at least two of the following: sending frequency features, sending time distribution anomaly features, receiving user coverage breadth features, number lifecycle index features, and channel dynamic reputation score features; and performing feature splicing and fusion processing on the multiple types of black market behavior features to generate a structured behavioral feature vector.
[0012] The beneficial effect of adopting the above-mentioned further solution is that by collecting the operator's metadata corresponding to the SMS sending end to be detected from the operator's multi-source business platform, and then performing quantitative processing on the operator's metadata, multiple black market behavior characteristics are obtained. These multiple black market behavior characteristics include at least two of the following: sending frequency characteristics, sending time distribution anomaly characteristics, receiving user coverage breadth characteristics, number life cycle index characteristics, and channel dynamic reputation score characteristics. This can quantify the black market-specific behaviors of the sending end from multiple dimensions, such as abnormal mass sending, off-peak sending, massive diffusion, short-term abandonment, and illegal channel use. Finally, the multiple black market behavior characteristics are spliced and fused to generate a structured behavior feature vector. The structured behavior feature vector integrates the risk information of the sending end after multi-dimensional quantification, and no longer relies solely on a single fixed sending frequency threshold to judge the risk of the sending entity. It can accurately identify newly added malicious sending entities that cannot be covered in a timely manner by manually maintained number blacklists and whitelists, making up for the shortcomings of relying solely on static lists to identify the sending end.
[0013] Furthermore, based on user feedback data corresponding to the SMS messages to be detected, a personalized blocking preference vector for the user is determined, including: obtaining user feedback data regarding the blocking judgment result; wherein, the user feedback data indicates information indicating blocking errors; de-identifying the user feedback data to generate anonymized feedback data; determining multi-dimensional blocking preference indicators based on the anonymized feedback data; and combining the multi-dimensional blocking preference indicators to generate a personalized blocking preference vector for the user.
[0014] The beneficial effect of adopting the above-mentioned further solution is that by acquiring user feedback data on the interception judgment results, which indicates the error message of interception, the solution collects user feedback information that truly reflects the user's attitude towards the SMS interception judgment results. Then, the user feedback data is anonymized by performing desensitization processing to generate anonymized feedback data. This avoids the risk of user privacy leakage while retaining valid information related to user interception preferences. Next, based on the anonymized feedback data, multi-dimensional interception preference indicators are determined to quantify the differentiated acceptance standards of different users for various types of SMS interception. Finally, the multi-dimensional interception preference indicators are combined to generate a user-personalized interception preference vector. The user-personalized interception preference vector can carry the unique interception judgment tendency of different users. Instead of using a uniform fixed judgment threshold to complete the SMS interception judgment, the interception judgment standard can be dynamically adjusted according to the user's own preferences, thus solving the problems of false blocking of normal SMS and missed blocking of spam SMS caused by a uniform threshold.
[0015] Furthermore, based on semantic feature vectors, structured behavioral feature vectors, and user-personalized interception preference vectors, it is determined whether to intercept the SMS message to be detected. This includes: performing screening processing on the SMS message to be detected through preset risk rules to obtain the interception result; if the interception result indicates that the SMS message to be detected meets preset conditions, determining the comprehensive risk coefficient based on the semantic feature vectors and structured behavioral feature vectors using a discriminant model; and determining whether to intercept the SMS message to be detected based on the comprehensive risk coefficient and the global judgment threshold.
[0016] The beneficial effect of adopting the above-mentioned further solution is that by performing screening processing on SMS messages to be detected through preset risk rules and obtaining interception results, high-risk SMS messages to be detected can be quickly filtered out. If the interception result indicates that the SMS message to be detected meets the preset conditions, a comprehensive risk coefficient is determined based on semantic feature vectors and structured behavioral feature vectors using a discriminant model. The comprehensive risk coefficient integrates two dimensions of information: the text risk of the SMS message to be detected and the behavioral risk of the sender. Compared with a single dimension, the judgment basis is more comprehensive. Then, based on the comprehensive risk coefficient and the global judgment threshold, it is determined whether to intercept the SMS message to be detected. Standardized judgment is completed by comparing the quantified risk value with the threshold, avoiding the one-sidedness of judgment caused by relying on a single text rule or a single behavioral indicator, and improving the accuracy of the risk judgment of the SMS message to be detected.
[0017] Furthermore, the method also includes: obtaining an interception decision log in response to determining whether to intercept the SMS to be detected; constructing an incremental sample set based on the interception decision log and anonymized user feedback data; updating the first parameter of the pre-trained language model based on the incremental sample set; and updating the second parameter of the discriminative model based on the incremental sample set.
[0018] The beneficial effect of adopting the above-mentioned further scheme is that after determining whether to block the SMS to be detected, an interception decision log is obtained. Then, an incremental sample set is constructed based on the interception decision log and anonymized user feedback data. This integrates automatically generated interception judgment data and real user feedback data, which can continuously supplement training materials containing new spam SMS spoofing samples. Then, the first parameter of the pre-trained language model is updated based on the incremental sample set to continuously optimize the ability of the pre-trained language model to extract deep risk features of the SMS to be detected. At the same time, the second parameter of the discrimination model is updated based on the incremental sample set to continuously optimize the discrimination accuracy of the discrimination model in outputting a comprehensive risk coefficient based on semantic feature vectors and structured behavioral feature vectors. By cyclically updating the parameters of the two types of models with the incremental sample set, it can continuously adapt to the ever-evolving spam SMS spoofing methods and avoid the degradation of the model's recognition ability with the emergence of new spam SMS.
[0019] Furthermore, the present invention provides a text message interception device, which includes: an acquisition module for acquiring a text message to be detected; a first determination module for determining a semantic feature vector corresponding to the text message to be detected based on the text message to be detected; a second determination module for determining a structured behavioral feature vector based on the operator metadata of the sending end corresponding to the text message to be detected; a third determination module for determining a user-personalized interception preference vector based on user feedback data corresponding to the text message to be detected; and a fourth determination module for determining whether to intercept the text message to be detected based on the semantic feature vector, the structured behavioral feature vector, and the user-personalized interception preference vector.
[0020] Furthermore, the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the above-mentioned SMS interception method.
[0021] Furthermore, the present invention provides a computer-readable storage medium storing computer instructions, which are used to cause a computer to execute the above-described SMS interception method.
[0022] Furthermore, the present invention provides a computer program product, including computer instructions, which are used to cause the computer to execute the above-described SMS interception method. Attached Figure Description
[0023] Figure 1This is a schematic diagram of the SMS interception system provided by the present invention; Figure 2 A flowchart illustrating the SMS interception method provided by the present invention; Figure 3 A flowchart illustrating another SMS interception method provided by the present invention; Figure 4 This is a flowchart illustrating another SMS interception method provided by the present invention; Figure 5 This is a flowchart illustrating another SMS interception method provided by the present invention; Figure 6 This is a flowchart illustrating another SMS interception method provided by the present invention; Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0024] The principles and features of the present invention are described below. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.
[0025] Figure 1 This is a schematic diagram of the SMS interception system provided by the present invention.
[0026] Combination Figure 1 As shown, the SMS interception system includes a multimodal semantic understanding module, a sender behavior profiling module, a personalized feedback learning module, a three-level real-time interception module, and a dynamic feedback learning closed-loop module.
[0027] The multimodal semantic understanding module is configured to receive SMS messages to be detected, extract surface risk features from the SMS messages to be detected to construct surface structured feature vectors, determine syntactic feature vectors based on preset risk sentence templates and surface structured feature vectors using a neural network model, determine deep semantic embedding vectors based on SMS content carrying syntactic risk information in the SMS messages to be detected through a pre-trained language model, obtain morphing attack auxiliary features by combining deep semantic embedding vectors with a dynamic spam SMS semantic library, generate semantic feature vectors by fusing surface structured feature vectors, syntactic feature vectors, deep semantic embedding vectors, and morphing attack auxiliary features, and output the semantic feature vectors to the three-level real-time interception module. The sender behavior profiling module is configured to access the operator's multi-source business platform, which consists of SMS gateway logs, historical communication records, and number operation data. It collects operator metadata corresponding to the SMS sender to be detected, and quantifies the operator metadata to obtain multiple black market behavior features, including at least two of the following: sending frequency features, sending time distribution anomaly features, receiving user coverage breadth features, number life cycle index features, and channel dynamic reputation score features. The multiple black market behavior features are spliced and fused to generate a structured behavior feature vector, and the structured behavior feature vector is output to the three-level real-time interception module. The personalized feedback learning module is configured to interact with the user terminal, obtain user feedback data on the interception judgment result and the indication of interception error information, de-identify the user feedback data to generate anonymized feedback data, determine multi-dimensional interception preference indicators based on the anonymized feedback data, combine the multi-dimensional interception preference indicators to generate a user personalized interception preference vector, output the user personalized interception preference vector to the three-level real-time interception module, and push anonymized feedback data to the dynamic feedback learning closed-loop module at the same time. The three-level real-time interception module is configured to receive semantic feature vectors output by the multimodal semantic understanding module, structured behavioral feature vectors output by the sender behavior profiling module, and user-personalized interception preference vectors output by the personalized feedback learning module. It performs screening processing on SMS messages to be detected through preset risk rules to obtain interception results. If the interception result indicates that the SMS message to be detected meets the preset conditions, it uses a discriminant model to determine the comprehensive risk coefficient based on the semantic feature vector and the structured behavioral feature vector. Based on the comprehensive risk coefficient and the global judgment threshold, it determines whether to intercept the SMS message to be detected. After completing the interception judgment, it generates an interception decision log and pushes the interception decision log to the dynamic feedback learning closed-loop module. The dynamic feedback learning closed-loop module is configured to receive the interception decision logs output by the three-level real-time interception module and the anonymized feedback data pushed by the personalized feedback learning module. Based on the interception decision logs and anonymized feedback data, an incremental sample set is constructed. Based on the incremental sample set, the first parameters of the pre-trained language model in the multimodal semantic understanding module are updated. At the same time, based on the incremental sample set, the second parameters of the discriminant model in the three-level real-time interception module are updated. After the parameter update is completed, the model configuration of the multimodal semantic understanding module and the three-level real-time interception module are updated synchronously to achieve iterative loop.
[0028] According to an embodiment of the present invention, an embodiment of a method for intercepting text messages is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0029] This embodiment provides a method for intercepting SMS messages, which can be used in the aforementioned SMS interception system. Figure 2 This is a flowchart of a text message interception method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps: Step S201: Obtain the SMS message to be tested.
[0030] The SMS messages to be detected can be SMS data captured by the operator's SMS gateway and mobile terminal interception components that have not yet undergone risk interception assessment. These SMS messages may include the SMS text, sender ID, recipient ID, and SMS sending timestamp.
[0031] Specifically, the operator's SMS gateway listens to the downlink SMS channel. When an external sender initiates an SMS delivery request, the gateway routing node automatically copies the SMS message. The message encapsulates the SMS text, sender number, recipient user's mobile phone number, sending time, embedded short link domain name, attachment link, etc. The copied message is directly used as the SMS to be detected.
[0032] Step S202: Based on the SMS to be detected, determine the semantic feature vector corresponding to the SMS to be detected.
[0033] Semantic feature vectors can be understood as fixed-dimensional numerical vectors generated after fusion and dimensionality reduction of multi-level risk features of the SMS to be detected. Specifically, they can indicate explicit text features, syntactic inducement sentence features, deep fraud intent features, variant SMS similarity auxiliary features, etc.
[0034] Specifically, after obtaining the SMS message to be detected, the semantic feature vector corresponding to the SMS message can be further determined.
[0035] As an example, the text message to be detected is taken as input. Surface risk features are extracted from the text message to construct a surface structured feature vector. The preset risk sentence template and the surface structured feature vector are input into the BERT-CRF neural network model to identify ACTION-REWARD inducement sentences and sentences impersonating official emergency notices, generating syntactic feature vectors. The text message carrying syntactic risk labeling information is fed into a pre-trained language model for encoding to predict risky intentions such as financial fraud, fake prize winnings, and impersonating customer service, outputting a deep semantic embedding vector. A dynamic spam text message semantic database is retrieved from the cloud, and the cosine similarity between the current deep semantic embedding vector and the samples in the database is calculated. The maximum similarity and the number of highly similar samples are extracted as auxiliary features for variant attacks. Finally, the four types of vectors—surface structured feature vector, syntactic feature vector, deep semantic embedding vector, and variant attack auxiliary features—are concatenated and fed into a multilayer perceptron for fusion and dimensionality reduction, outputting a semantic feature vector.
[0036] In one possible implementation, a distilled, smaller DistilBERT model is used to replace the BERT model. A sequence label classification head is added to the output layer of the pre-trained model to synchronously complete syntactic parsing. The surface risk features are directly matched using a lightweight keyword hash library. A local built-in domain risk classification table is used. Only the top 10 highly similar samples are retained to calculate similarity and simplify the auxiliary features for morphing attacks. A single-layer fully connected network completes feature fusion and outputs a 64-dimensional semantic feature vector.
[0037] Step S203: Determine the structured behavioral feature vector based on the operator metadata of the sending end corresponding to the SMS message to be detected.
[0038] Operator metadata can be understood as the full-dimensional operational data of the sending end number collected by the operator's multi-source business platform. Among them, operator metadata can include SMS gateway logs, historical communication records, number operation data, etc.
[0039] Structured behavioral feature vectors can be understood as standardized data that can be computed by computers.
[0040] Specifically, after determining the carrier metadata of the sending end corresponding to the SMS message to be detected, a structured behavioral feature vector can be further determined.
[0041] As an example, the characteristics of black market behavior are quantified and calculated based on the carrier metadata at the sending end. Specifically, this may include log-normalized sending frequency characteristics, sending time distribution anomaly characteristics obtained by comparing with the normal user time period distribution, normalized receiving user coverage breadth characteristics, number lifecycle index characteristics calculated based on activation duration, and channel dynamic reputation score characteristics dynamically updated based on channel complaint records. The above characteristics are standardized to eliminate dimensional differences, generating a structured behavioral feature vector.
[0042] Step S204: Determine the user's personalized blocking preference vector based on the user feedback data corresponding to the SMS to be detected.
[0043] User feedback data can be used to instruct users to display the SMS blocking decision results and the blocking error information manually marked by the user. This user feedback data can be divided into two categories: erroneous blocking feedback data (normal SMS messages were blocked by the system) and missed blocking feedback data (spam SMS messages were allowed to pass).
[0044] User-personalized blocking preference vectors can be used to characterize the different blocking tolerance standards for different users.
[0045] Specifically, user feedback data submitted by users regarding the blocking determination results is collected from user terminals. This feedback data can carry two types of blocking error indicators: false blocking and missed blocking. The terminal locally anonymizes the user feedback data, removes privacy information that can locate the user, and calculates multi-dimensional blocking preference indicators to further determine the user's personalized blocking preference vector.
[0046] In one possible implementation, the user terminal splits the feedback entry point according to SMS type, and separately labels the entry points for advertising, financial notifications, government notifications, and fraud. The cloud collects statistics on the frequency of false blocking and missed blocking of various types of SMS in different scenarios, generates multi-dimensional blocking preference indicators, and uses a non-linear Sigmoid function to weight and combine the indicators to generate a personalized blocking preference vector for the user.
[0047] Step S205: Based on semantic feature vectors, structured behavioral feature vectors, and user-personalized interception preference vectors, determine whether to intercept the SMS message to be detected.
[0048] After determining the semantic feature vector, structured behavioral feature vector, and user-personalized interception preference vector, it is possible to further determine whether to intercept the SMS message to be detected.
[0049] As an example, the system matches SMS messages to be detected using a pre-defined high-risk keyword database and high-risk short link domain rules, generating interception results. If the interception result matches the pre-defined high-risk conditions, the SMS message is directly intercepted, terminating subsequent calculations. If it does not match, the semantic feature vector and structured behavioral feature vector are concatenated and input into the discrimination model to calculate a comprehensive risk coefficient. Using a global judgment threshold as a benchmark, the value is corrected through the user's personalized interception preference vector to obtain the current user-specific judgment threshold. The comprehensive risk coefficient is compared with the user-specific judgment threshold. If the comprehensive risk coefficient is greater, the SMS message to be detected is intercepted; otherwise, it is allowed to pass normally.
[0050] In one possible implementation scenario, the system is deployed on the operator's SMS downlink gateway to capture every SMS message sent to users for testing. The SMS messages are copied and sent to the cloud-based risk control server simultaneously. A 128-dimensional semantic feature vector is extracted from each SMS message to identify fraudulent SMS messages that use homophone substitutions or word splitting for deception.
[0051] Connect to the operator's gateway logs and number operation backend, pull out the sending number metadata in real time, calculate the characteristics of five types of black market behavior to generate structured behavior feature vectors, and identify newly opened accounts and illegal mass messaging channels; The user's mobile phone is pre-installed with the operator's security terminal APP. The APP pop-up displays the SMS blocking results. The user can mark the wrongly blocked or missed blocking. After the terminal is desensitized, anonymized feedback data is generated. The cloud generates a personalized blocking preference vector for the user in long-term statistics. It receives semantic feature vector, structured behavioral feature vector and personalized blocking preference vector for the user, performs keyword coarse screening, and calculates the comprehensive risk coefficient through MLP model if no match is found. Combined with the user preference, the judgment threshold is adjusted to complete the blocking. An blocking decision log is generated for each SMS.
[0052] The SMS interception method provided in this invention obtains the SMS to be detected, then determines the semantic feature vector corresponding to the SMS. This semantic feature vector avoids the limitations of relying solely on manually maintained sensitive keyword databases to match surface text. Simultaneously, it determines a structured behavioral feature vector based on the operator metadata of the sending end of the SMS. This structured behavioral feature vector identifies abnormal sending behavior of newly added malicious senders, compensating for the inability of manually maintained number blacklists and whitelists to cover newly added malicious senders. Furthermore, it determines a user-personalized interception preference vector based on user feedback data corresponding to the SMS. Combining the semantic feature vector, structured behavioral feature vector, and user-personalized interception preference vector, it jointly determines whether to intercept the SMS. This approach no longer relies solely on fixed sending frequency thresholds, regular expression matching, and list comparisons to determine SMS risk, thereby improving the overall interception accuracy.
[0053] Based on step S202, the semantic feature vector corresponding to the SMS to be detected is determined using the following method: Figure 3 The implementation of steps S3021 to S3025 in the above steps: Step S3021: Extract the surface risk features of the SMS to be detected, and construct a surface structured feature vector based on the surface risk features.
[0054] Surface-level risk features can indicate explicit risk indicators that can be directly statistically analyzed without deep semantic parsing. These surface-level risk features can include keyword matching vectors, the number of sensitive keyword hits, the total number of avoided special symbols, the number of embedded short links, the average risk score of external link domains, and risk levels.
[0055] The surface structured feature vector can indicate the vector obtained after concatenating the surface risk features.
[0056] Specifically, surface-level risk features of the SMS messages to be detected can be extracted to further determine the surface-level structured feature vector.
[0057] As an example, by scanning text rules, the frequency of high-risk and sensitive keywords in the SMS text and the total number of special delimiters used to evade detection are counted. At the same time, short links in the text are retrieved, and the risk score corresponding to each short link is obtained from the domain risk database. The average score of the short link is calculated, and the total number of short links is counted to complete the data collection of surface risk features. The collected surface risk features are standardized to eliminate the influence of differences in the numerical range of different indicators. The standardized surface risk features are then concatenated in a fixed order to generate a surface structured feature vector.
[0058] In one possible implementation, the surface structured feature vector can be determined using the following formula: ;in, Let T be the keyword matching vector, and T be the SMS message to be detected.
[0059] ;in, For the number of embedded short chains, The average risk score for external link domains. R represents the risk level, and R is the range of values for the average risk score of the external link domain.
[0060] Step S3022: Determine the syntactic feature vector based on the preset risk sentence template and the surface structured feature vector.
[0061] The preset risk phrase templates can indicate a set of standard templates for fraudulent phrases prepared in advance. These templates may include phrases that induce users to take action and offer rewards, phrases that impersonate organizations and use urgent coercion, etc.
[0062] Syntactic feature vectors can indicate high-dimensional numerical vectors obtained by aggregating risky sentence fragments such as inducement and impersonation in text messages.
[0063] Specifically, after determining the surface structured feature vector, the syntactic feature vector can be determined by combining it with a preset risk sentence template.
[0064] As an example, the system receives a surface-level structured feature vector and a segmented text sequence of the SMS message to be detected. The surface-level structured feature vector is converted into attention weight bias parameters and superimposed on the output of the BERT encoding layer. The CRF module, combined with a preset risk sentence template, performs sequence label classification on the weighted text encoding content, marking three types of risky content in the text: inducing operation segments, profit-templating segments, and impersonating official identities segments. The encoding vectors corresponding to all the risky sentence segments are aggregated and calculated to integrate the structural information of the segments and generate syntactic feature vectors.
[0065] In one possible implementation, the syntactic feature vector can be determined using the following formula: Among them, the SMS word segmentation sequence With rule mask The inputs are fed into the BERT-CRF model to perform end-to-end semantic role prediction, and the optimal label sequence for each word is output. The system performs a forward scan according to predefined semantic structure rules to identify high-risk combinations. Specifically, if an ACTION-type tag (B-ACTION or I-ACTION) exists and a REWARD-type tag (B-REWARD or I-REWARD) appears within a reasonable range (e.g., ≤5 words) after it, it is determined to be an "action / reward" inducement structure, and its existence is statistically analyzed. Number of matches Average distance between keywords and the mean confidence score of model predictions for related labels. Furthermore, if a URGENCY class tag exists, then set it to... If a SPOOF class tag exists, then set it to... The above indicators are combined to generate syntactic feature vectors.
[0066] Step S3023: Based on the SMS content carrying syntactic risk information in the SMS to be detected, a pre-trained language model is used to determine the deep semantic embedding vector.
[0067] Syntactic risk information can characterize information that poses a fraud risk. Specifically, syntactic risk information can characterize situations in the SMS message to be detected that include inducements, enticement of benefits, or impersonation of officials for coercion.
[0068] Deep semantic embedding vectors can indicate the numerical vectors obtained after the pre-trained language model encodes the content of the SMS message to be detected by combining syntactic risk information.
[0069] Specifically, after determining the SMS content carrying syntactic risk information in the SMS to be detected, the SMS content carrying syntactic risk information in the SMS to be detected can be input into a pre-trained language model to obtain a deep semantic embedding vector.
[0070] In one possible implementation, to capture the deep semantic intent of SMS text (such as clickbait, fake notifications, identity impersonation, financial fraud, etc.), a pre-trained language model is used to perform contextual modeling of the entire SMS text. First, the SMS to be detected is encoded into a sequence of terms in a standard format: ;in This indicates a splicing operation. For classification labels, This is the end-of-words character. Context encoding is performed on the word sequence to obtain the hidden state at each position: ; Extracting classification tags The corresponding hidden states serve as the deep semantic representation of the text message. Input a classification head and predict its value. Probability distribution of high-risk intentions: ;in, For the probability distribution C, predefined intent categories include: click fraud, fake notifications, identity impersonation, financial fraud, pornography inducement, and lottery fraud. The semantic vector is concatenated with the intent distribution to form a deep semantic embedding vector. .
[0071] Step S3024: Based on deep semantic embedding vectors and a dynamic spam SMS semantic database, determine the auxiliary features for morphing attacks.
[0072] The dynamic spam SMS semantic database can instruct a continuously updated sample database in the cloud to store the deep semantic embedding vectors and corresponding risk tags of historically intercepted spam SMS messages.
[0073] The auxiliary features of the morphing attack can indicate the set of quantitative indicators extracted after calculating the similarity between the deep semantic embedding vector of the current SMS to be detected and the sample vectors in the semantic library.
[0074] Specifically, after determining the deep semantic embedding vector, auxiliary features for morphing attacks can be determined based on the deep semantic embedding vector and the dynamic spam SMS semantic database.
[0075] As an example, the semantic similarity between the current vector and each sample vector in the library is compared one by one, and the similarity value of the sample is recorded. After all samples are compared, the maximum value of the similarity value is selected. At the same time, the total number of samples with similarity exceeding the preset judgment threshold is counted. The maximum similarity value and the number of highly similar samples are combined to form the auxiliary feature for deformable attack.
[0076] As an example, the latest samples added in the semantic database within a recent period (e.g., 30 days) are assigned a time reference weight. During the similarity calculation process, the time weight is superimposed to correct the similarity value. In addition to the maximum similarity value and the number of highly similar samples, the average similarity of the samples is added as a third indicator to generate auxiliary features for deformable attacks.
[0077] Step S3025: The surface structured feature vector, syntactic feature vector, deep semantic embedding vector, and aberration attack auxiliary features are fused to obtain a semantic feature vector.
[0078] Specifically, after determining the surface structured feature vector, syntactic feature vector, deep semantic embedding vector, and aberration attack auxiliary feature, the surface structured feature vector, syntactic feature vector, deep semantic embedding vector, and aberration attack auxiliary feature can be fused to obtain the semantic feature vector.
[0079] As an example, four types of vectors—surface structured feature vector, syntactic feature vector, deep semantic embedding vector, and aberration attack auxiliary feature—are directly integrated to obtain a high-dimensional concatenated vector. This high-dimensional concatenated vector is then input into a three-layer multilayer perceptron network. Nonlinear feature compression is performed on the network's multilayer fully connected layers to reduce the vector dimension layer by layer, filtering out redundant feature information. The fixed-dimensional vector output from the last layer of the multilayer perceptron network is then taken as the semantic feature vector.
[0080] In one possible implementation, a dynamically updated library of known spam SMS semantics is maintained: ;in, For the first Known spam text messages vector, Label it. Calculate the cosine similarity between the current SMS semantic vector and each record in the database: ; Then, two auxiliary features, the maximum similarity value and the number of highly similar samples, are extracted for the identification of morphing attacks: ; ;in, For the preset threshold, This represents the number of highly similar samples.
[0081] The feature vectors from each layer are concatenated, and a semantic feature vector is generated through nonlinear mapping. ; ;in It is a multilayer perceptron used for feature interaction and dimensionality reduction. This is a semantic feature vector.
[0082] The SMS interception method provided in this invention extracts the surface risk features of the SMS to be detected and constructs a surface structured feature vector. This allows for the capture of readily visible risk indicators in the SMS. Then, based on a preset risk sentence template and the surface structured feature vector, a neural network model is used to obtain a syntactic feature vector to locate inducing risk sentences within the SMS. Next, based on the SMS content carrying syntactic risk information, a pre-trained language model generates a deep semantic embedding vector, which can capture the underlying fraudulent intent after text tampering. Combining the deep semantic embedding vector with a dynamic spam SMS semantic database, a variant attack auxiliary feature is calculated, enabling the identification of disguised SMS messages that only rewrite text but retain the same risk intent. Finally, the surface structured feature vector, syntactic feature vector, deep semantic embedding vector, and variant attack auxiliary feature are fused to obtain a semantic feature vector. This semantic feature vector, which integrates multi-level risk information, can comprehensively characterize various disguised risks in the SMS to be detected. Compared to relying solely on single surface text matching, this method can effectively identify SMS messages tampered with by homophone substitution, word splitting, symbol insertion, etc., reducing the underreporting of variant spam SMS messages.
[0083] Based on the operator metadata of the sender corresponding to the SMS message to be detected in step S203, the structured behavioral feature vector is determined using, for example... Figure 4 The implementation of steps S4031 to S4033 is as follows: Step S4031: Collect the operator metadata corresponding to the SMS sending end to be tested from the operator's multi-source service platform.
[0084] The operator's multi-source business platform can instruct the operator to store multiple back-end systems for number data.
[0085] The sending end of the SMS to be tested can indicate the sending entity corresponding to the mobile phone number, virtual number, and channel number that sent the SMS to be tested.
[0086] Please refer to Table 1: Table 1 Specifically, based on the SMS sender number to be detected, a data retrieval request is initiated to the SMS gateway log platform, historical communication record platform, and number operation data platform; the original communication records in the preset statistical window of the sender are retrieved in batches, and original fields such as number activation duration, number of messages sent in different time periods, range of receiving users, sending channel number, historical complaints, and channel violation records are retained. The original fields are integrated to obtain operator metadata.
[0087] Step S4032: Quantify the operator's metadata to obtain multiple black market behavior characteristics; among which, the multiple black market behavior characteristics include at least two of the following: sending frequency characteristics, sending time distribution anomaly characteristics, receiving user coverage breadth characteristics, number lifecycle index characteristics, and channel dynamic reputation score characteristics.
[0088] Multiple types of black market behavior characteristics can indicate numerical indicators that are quantified based on operator metadata and can characterize the malicious mass sending behavior of the sending end. These multiple types of black market behavior characteristics include at least two of the following: sending frequency characteristics, sending time distribution anomaly characteristics, receiving user coverage breadth characteristics, number lifecycle index characteristics, and channel dynamic reputation scoring characteristics.
[0089] The sending frequency characteristic can indicate the normalized value of the total number of SMS messages sent per unit time within a statistical period.
[0090] The anomaly characteristic of the sending time distribution can indicate the degree of deviation from the standard time period sending distribution of normal users, and quantify the degree of deviation of the sending end's off-peak and early morning batch sending behavior.
[0091] The breadth of user coverage can indicate the normalized value of the number of unique and non-repeating users who receive SMS messages within a statistical period.
[0092] The number lifecycle indicator can indicate a value calculated based on the difference between the number's activation time and the time of the first batch of mass messages.
[0093] The channel's dynamic reputation score feature indicates a score between 0 and 1 based on the channel's historical violations and complaint ticket quantification. The lower the score, the higher the risk of black market infiltration.
[0094] Specifically, after determining the operator's metadata, the operator's metadata can be quantified to obtain various characteristics of black market behavior.
[0095] As an example, extract time, quantity, channel, and account opening related fields from the operator's metadata, and calculate the sending frequency characteristics, sending time distribution anomaly characteristics, receiving user coverage characteristics, number life cycle index characteristics, and channel dynamic reputation score characteristics respectively; select at least two types of indicators as multi-type black market behavior characteristics according to business scenario requirements.
[0096] Step S4033: Perform feature splicing and fusion processing on multiple types of black market behavior features to generate a structured behavior feature vector.
[0097] Specifically, the selected characteristics of various black market behaviors are arranged in a fixed order, and the ordered features are then spliced and integrated in one dimension to form a continuous digital vector with a fixed dimension.
[0098] In one possible implementation, based on the collected data, the following five categories of quantifiable structured behavioral features are extracted sequentially and concatenated to generate a unified behavioral feature vector. The transmission frequency is calculated as follows: ; To adapt to the input range of the model, logarithmic normalization is performed: ; Time distribution anomaly Detecting whether messages are sent in concentrated bursts during abnormal time periods (such as late at night or early morning) reflects an attempt to circumvent regulations. The probability model for the time distribution of legitimate text messages throughout the day is as follows: This was obtained by fitting long-term statistical data. Therefore, the current sending time... Anomaly is defined as: ; User coverage Based on the number of users received Based on this, normalization is as follows: ; Number lifecycle This determines whether a number is a short-lived number, meaning it sends frequent messages upon activation and is discarded after use. Specifically, it can be defined as: ;in, This is the time when the number first appeared in the system.
[0099] Assess the historical reputation of the SMS channel to prevent low-quality or compromised third-party channels from becoming a springboard for spam messages. For each channel... Maintain a dynamic reputation score, and new channels default to it. : ; After standardizing the above five features, they are concatenated to generate a behavioral feature vector: .
[0100] The SMS interception method provided in this invention collects operator metadata corresponding to the SMS sender to be detected from the operator's multi-source business platform, and then performs quantitative processing on the operator metadata to obtain multiple black market behavior features. These multiple black market behavior features include at least two of the following: sending frequency features, sending time distribution anomaly features, receiving user coverage breadth features, number lifecycle index features, and channel dynamic reputation score features. This can quantify black market-specific behaviors of the sender from multiple dimensions, such as abnormal mass sending, off-peak sending, massive diffusion, short-term abandonment, and illegal channel use. Finally, the multiple black market behavior features are spliced and fused to generate a structured behavior feature vector. The structured behavior feature vector integrates the multi-dimensional quantified risk information of the sender, and no longer relies solely on a single fixed sending frequency threshold to judge the risk of the sender. It can accurately identify newly added malicious senders that cannot be covered in a timely manner by manually maintained number blacklists and whitelists, making up for the shortcomings of relying solely on static lists to identify the sender.
[0101] Based on the user feedback data corresponding to the SMS message to be detected in step S204, the user's personalized interception preference vector is determined using the following method: Figure 5 The implementation of steps S5041 to S5044 in the above steps: Step S5041: Obtain user feedback data regarding the interception determination result; wherein, the user feedback data indicates information indicating an interception error.
[0102] The interception judgment result can indicate the processing conclusion output after the risk assessment of the SMS to be detected is completed, and it is divided into two categories: interception and release.
[0103] User feedback data can indicate incorrect information about blocking, meaning the blocking decision result is the actual blocking result.
[0104] Specifically, the user terminal displays the interception judgment result for each SMS to be detected, and provides a feedback submission portal. This feedback submission portal only supports users to submit feedback related to interception errors. Users can select the error type (false block / missed block) for the current SMS, and simultaneously attach the risk category identifier of the SMS and the feedback submission time to form user feedback data.
[0105] Step S5042: De-identify the user feedback data to generate anonymized feedback data.
[0106] Anonymized feedback data can indicate the feedback dataset generated without user identification after the anonymization process is completed.
[0107] Specifically, user privacy fields within user feedback data are identified. These fields may include the user's mobile phone number, unique identifier of the mobile device, and user's real-name registration number. Irreversible hash encryption is performed on these privacy fields to remove redundant fields that cannot be used to calculate blocking preferences. Only three types of valid business information are retained: feedback error type, SMS risk category, and feedback submission time. These are then integrated to obtain anonymized feedback data.
[0108] Step S5043: Based on the anonymized feedback data, determine the multi-dimensional interception preference indicators.
[0109] The multi-dimensional blocking preference index is a numerical indicator obtained through statistical analysis and quantification of long-term anonymized feedback data from a single user. This multi-dimensional blocking preference index can include indicators of user blocking strictness, tolerance for advertising SMS messages, and sensitivity to financial notifications.
[0110] Specifically, the anonymized feedback data was broken down, and the number of false blocking reports and missed blocking reports for various types of SMS messages, including advertising, financial, and government SMS messages, were counted separately. Three standardized values were then calculated for each type of SMS message: user blocking strictness index, advertising SMS tolerance index, and financial notification sensitivity index. The calculated three types of numerical indicators were then packaged into a multi-dimensional blocking preference index.
[0111] Step S5044: Combine and process the multi-dimensional interception preference indicators to generate a personalized interception preference vector for the user.
[0112] Specifically, after determining the multi-dimensional interception preference indicators, these indicators can be further combined to generate a personalized interception preference vector for the user.
[0113] As an example, the selected multi-dimensional interception preference indicators are arranged in a fixed order, and the values of the ordered indicators are integrated in one dimension to form a continuous numerical vector of a fixed dimension, thereby generating a personalized interception preference vector for the user.
[0114] In one possible implementation, a personalized interception preference vector is constructed. ;in, This indicates the overall strictness of user blocking, calculated based on the number of historical missed and false blocking reports. This indicates the user's tolerance for advertising text messages. This indicates a user's sensitivity to financial notifications. This preference vector is used to dynamically adjust the decision threshold during the final blocking decision stage, enabling personalized filtering based on user habits. ; ; The SMS blocking method provided by this invention acquires user feedback data indicating incorrect blocking information and the user's response to the blocking judgment result. This data accurately reflects the user's feedback on the SMS blocking judgment result. The user feedback data is then anonymized to generate anonymized feedback data, thus mitigating the risk of user privacy leakage while retaining valid information related to user blocking preferences. Next, multi-dimensional blocking preference indicators are determined based on the anonymized feedback data to quantify the differentiated acceptance standards of different users for various types of SMS blocking. Finally, the multi-dimensional blocking preference indicators are combined to generate a personalized blocking preference vector. This personalized blocking preference vector can reflect the unique blocking judgment tendencies of different users, eliminating the need for a uniform fixed judgment threshold to complete SMS blocking judgments. The blocking judgment standard can be dynamically adjusted according to different users' own preferences, solving the problems of false blocking of normal SMS and missed blocking of spam SMS caused by a uniform threshold.
[0115] Based on step S205, which uses semantic feature vectors, structured behavioral feature vectors, and user-personalized interception preference vectors, it is determined whether to intercept the SMS message to be detected, using the following method: Figure 6 The implementation of steps S6051 to S6053 is as follows: Step S6051: The SMS messages to be detected are filtered according to preset risk rules to obtain the interception results.
[0116] Preset risk rules can indicate a set of lightweight judgment rules that are pre-configured and can quickly match SMS risks. Among them, preset risk rules include high-risk short link domain name matching rules.
[0117] The interception result can indicate the traffic diversion identifier output after the filtering process. The interception result can include direct interception results and model-determined results. Direct interception results indicate that the SMS message to be detected has matched a high-risk rule. Model-determined results indicate that the SMS message to be detected has not matched a high-risk rule and needs to proceed to the subsequent model-based comprehensive judgment process.
[0118] Specifically, the system retrieves a set of preset risk rules stored locally, matches and verifies the full text of the SMS message to be detected against each preset risk rule, and searches for high-risk keywords or malicious redirection links recorded in the rule base within the SMS message. Based on the matching results, the corresponding blocking results are output: if the SMS message to be detected matches any preset risk rule, the direct blocking result is output; if the SMS message to be detected does not match any preset risk rule, the result of entering the model for judgment is output.
[0119] Step S6052: If the interception result indicates that the SMS to be detected meets the preset conditions, the comprehensive risk coefficient is determined based on the semantic feature vector and the structured behavioral feature vector using a discriminant model.
[0120] Preset conditions can indicate the model's discrimination results in the interception results.
[0121] The comprehensive risk coefficient can be understood as a standardized value in the range of 0 to 1 output by the discriminant model after integrating two types of risk information: semantic dimension and sending behavior dimension.
[0122] Specifically, it determines whether the current interception result meets the preset conditions, that is, whether the interception result is the result to be entered into the model for discrimination. If the interception result is a direct interception result, this step is skipped and the SMS interception operation is executed directly. If the interception result meets the preset conditions, the semantic feature vector and structured behavioral feature vector output from the upstream are read synchronously. The two sets of vectors are used as dual inputs to the discrimination model. The discrimination model integrates the text risk and sender behavior risk information contained in the two types of vectors and outputs a standardized comprehensive risk coefficient through multi-layer nonlinear operations.
[0123] Step S6053: Based on the comprehensive risk coefficient and the global judgment threshold, determine whether to block the SMS message to be detected.
[0124] The global decision threshold can indicate a pre-configured threshold.
[0125] Specifically, based on the global judgment threshold, a correction calculation is performed by combining the value of the user's personalized interception preference vector to obtain a judgment threshold adapted to the current receiving user. The comprehensive risk coefficient is compared with the value of the exclusive judgment threshold, and the judgment logic is executed. If the comprehensive risk coefficient is greater than or equal to the exclusive judgment threshold, the SMS to be detected is determined to be blocked; if the comprehensive risk coefficient is less than the exclusive judgment threshold, the SMS to be detected is determined to be allowed to pass.
[0126] In one possible example, lightweight rule matching is performed on all SMS messages to be detected to determine whether they match a spam keyword database and contain high-risk short URLs, etc. If any condition is met, the message is immediately blocked.
[0127] For SMS messages that fail to be detected, a deep joint discrimination model is activated. The semantic feature vectors are then processed. With behavioral feature vector Concatenate and input into the discriminant model (Preferably a multilayer perceptron), outputting a comprehensive risk coefficient: ;in This indicates an extremely high risk; it is highly likely to be a spam message.
[0128] In one possible example, to avoid false positives or false negatives caused by a one-size-fits-all approach, a personalized blocking threshold mechanism is introduced. This is based on individualized blocking preference vectors. Determine the current user The determination threshold, in one embodiment, is a global default threshold equal to 0.65: ;in, The global default threshold is used. The preset weighting coefficient is preferably 0.1. The final decision logic is as follows: .
[0129] The SMS interception method provided by this invention performs screening processing on SMS messages to be detected through preset risk rules and obtains interception results. It can quickly filter high-risk SMS messages to be detected. If the interception result indicates that the SMS message to be detected meets preset conditions, a comprehensive risk coefficient is determined based on semantic feature vectors and structured behavioral feature vectors using a discriminant model. The comprehensive risk coefficient integrates two dimensions of information: the text risk of the SMS message to be detected and the behavioral risk of the sender. Compared with a single dimension, the judgment basis is more comprehensive. Then, based on the comprehensive risk coefficient and a global judgment threshold, it is determined whether to intercept the SMS message to be detected. Standardized judgment is completed by comparing the quantified risk value with the threshold, avoiding the one-sidedness of judgment caused by relying on a single text rule or a single behavioral indicator, and improving the accuracy of the risk judgment of the SMS message to be detected.
[0130] In one possible implementation, the above method also includes the following steps: Step a1: In response to determining whether to block the SMS message to be detected, an interception decision log is obtained.
[0131] The interception decision log is a structured log file that records the entire process of judging a single SMS message to be detected. The interception decision log can include the original SMS message to be detected, semantic feature vector values, structured behavioral feature vector values, comprehensive risk coefficient, global judgment threshold, user-specific judgment threshold, interception processing result, and judgment timestamp, etc.
[0132] Specifically, the entire data chain of the SMS to be detected is captured, including the original SMS text, semantic feature vectors output from upstream, structured behavioral feature vectors, comprehensive risk coefficients, etc. The processing result (interception or release) and the decision timestamp of this judgment are recorded, and the collected fields are encapsulated in a unified fixed format; the encapsulated record is determined as the interception decision log.
[0133] Step a2: Construct an incremental sample set based on the interception decision logs and anonymized user feedback data.
[0134] The incremental sample set can indicate the new set of training samples for iteratively updating model parameters.
[0135] Specifically, the interception decision log is traversed, and initial risk labels are generated based on the interception processing results in the log. Intercepted SMS messages are marked as positive samples, and allowed SMS messages are marked as negative samples, forming a basic sample. Anonymous user feedback data is matched with the corresponding interception decision log. If the user marks the wrong interception, the label of the sample is corrected from positive to negative. If the user marks the missed interception, the label of the sample is corrected from negative to positive, completing the label correction. The samples that have completed label correction, carry SMS text, semantic feature vector, structured behavioral feature vector, and real risk label are summarized, deduplicated, and formed an incremental sample set.
[0136] Step a3: Update the first parameters of the pre-trained language model based on the incremental sample set.
[0137] The first parameter can indicate the network weights and bias parameters inside the pre-trained language model. Specifically, the first parameter can include embedding layer parameters, Transformer encoding layer parameters, and output layer parameters.
[0138] Specifically, the SMS text and corrected real risk labels of the samples in the incremental sample set are extracted, and the SMS text is converted into an encoded input that the model can read. The encoded text and labels are fed into the pre-trained language model, and incremental fine-tuning training is performed. The network weights and biases inside the model are corrected by backpropagation based on the real labels of the samples. After the training converges, the first updated parameters are obtained.
[0139] Step a4: Update the second parameter of the discriminant model based on the incremental sample set.
[0140] The second parameter can indicate the network weights and bias parameters within the discriminant model. Specifically, the second parameter can include the weights of fully connected layers, the biases of each layer, and the activation parameters of the output layer.
[0141] Specifically, the semantic feature vector, structured behavioral feature vector, and corrected real risk label of each sample in the incremental sample set are extracted, and the two sets of feature vectors are concatenated as the joint input of the model. The joint features and the real label are fed into the discriminative model for supervised training, and backpropagation is used to iteratively correct all network weights and biases of the discriminative model. After the training converges, the updated second parameter is obtained.
[0142] The SMS interception method provided by this invention obtains an interception decision log after determining whether to intercept the SMS to be detected. Then, it constructs an incremental sample set based on the interception decision log and anonymized user feedback data. This integrates automatically generated interception judgment data and real user feedback data, which can continuously supplement training materials containing new spam SMS spoofing samples. Then, it updates the first parameter of the pre-trained language model based on the incremental sample set, continuously optimizing the ability of the pre-trained language model to extract deep risk features of the SMS to be detected. At the same time, it updates the second parameter of the discrimination model based on the incremental sample set, continuously optimizing the discrimination accuracy of the discrimination model based on semantic feature vectors and structured behavioral feature vectors to output a comprehensive risk coefficient. By cyclically updating the parameters of the two types of models with the incremental sample set, it can continuously adapt to the ever-evolving spam SMS spoofing methods and avoid the degradation of the model's recognition ability with the emergence of new spam SMS.
[0143] In some embodiments, the SMS interception device of the present invention can be implemented in a combination of hardware and software. As an example, the SMS interception device of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the SMS interception method of the present invention. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0144] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of the modules are not, in some cases, limiting the scope of the module itself.
[0145] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned SMS interception methods. That is, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the SMS interception method shown in any embodiment of the present invention by calling the computer program.
[0146] In one alternative embodiment, an electronic device is provided, such as Figure 7 As shown, Figure 7The illustrated electronic device 7000 includes a processor 7001 and a memory 7003. The processor 7001 and the memory 7003 are connected, for example, via a bus 7002. Optionally, the electronic device 7000 may further include a transceiver 7004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 7004 is not limited to one type, and the structure of the electronic device 7000 does not constitute a limitation on the embodiments of the present invention.
[0147] Processor 7001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. Processor 7001 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0148] Bus 7002 may include a path for transmitting information between the aforementioned components. Bus 7002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 7002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus 7002 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.
[0149] The memory 7003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0150] The memory 7003 stores application code (computer program) for executing the present invention, and its execution is controlled by the processor 7001. The processor 7001 executes the application code stored in the memory 7003 to implement the content shown in the foregoing method embodiments.
[0151] Among them, electronic devices can also be terminal devices, which can be any device that can install applications, including at least one of smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, smart TVs, and smart in-vehicle devices.
[0152] It should be noted that, Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0153] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described SMS interception methods.
[0154] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.
[0155] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned SMS interception method.
[0156] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0157] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0158] The computer-readable storage medium provided in this invention can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EEPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium that includes or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0159] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.
[0160] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.
[0161] It should be noted that the terms "first," "second," etc., used in this invention are used to distinguish similar objects and represent a limitation on a specific order or sequence. Where appropriate, the order of use for similar objects can be interchanged so that the embodiments of the invention described herein can be implemented in an order other than that shown in the figures or description.
[0162] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this invention can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a circuit, module, or system. Furthermore, in some embodiments, this invention can also be implemented as a computer program product in one or more computer-readable media, the computer-readable media including computer-readable program code.
[0163] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for intercepting short messages, characterized in that, The method comprises: acquiring a to-be-detected short message; determining a semantic feature vector corresponding to the to-be-detected short message based on the to-be-detected short message; determining a structured behavior feature vector based on operator metadata of a sending end corresponding to the to-be-detected short message; determining a user personalized interception preference vector based on user feedback data corresponding to the to-be-detected short message; determining whether to intercept the to-be-detected short message based on the semantic feature vector, the structured behavior feature vector, and the user personalized interception preference vector.
2. The short message intercepting method of claim 1, wherein, The method comprises: extracting surface risk features of the to-be-detected short message, and constructing a surface structured feature vector based on the surface risk features; determining a syntax feature vector based on a preset risk sentence template and the surface structured feature vector; determining a deep semantic embedding vector by using a pre-trained language model based on short message content carrying syntax risk information in the to-be-detected short message; determining a metamorphic attack auxiliary feature based on the deep semantic embedding vector and a dynamic junk short message semantic library; fusing the surface structured feature vector, the syntax feature vector, the deep semantic embedding vector, and the metamorphic attack auxiliary feature to obtain the semantic feature vector.
3. The short message intercepting method of claim 1, wherein, The method comprises: collecting operator metadata corresponding to a sending end of the to-be-detected short message from an operator multi-source business platform; quantitatively processing the operator metadata to obtain multi-type black production behavior features; wherein the multi-type black production behavior features include at least two of a sending frequency feature, a sending time distribution abnormality feature, a receiving user coverage breadth feature, a number life cycle index feature, and a channel dynamic reputation score feature; performing feature splicing and fusion processing on the multi-type black production behavior features to generate the structured behavior feature vector.
4. The short message intercepting method of claim 1, wherein, The method comprises: obtaining user feedback data on interception judgment results; wherein the user feedback data indicates information of interception errors; performing desensitization processing on the user feedback data to generate anonymized feedback data; determining multi-dimensional interception preference indicators based on the anonymized feedback data; performing combination processing on the multi-dimensional interception preference indicators to generate the user personalized interception preference vector.
5. The short message intercepting method of claim 1, wherein, The method comprises: performing screening processing on the to-be-detected short message by a preset risk rule to obtain an interception result; if the interception result indicates that the to-be-detected short message meets a preset condition, determining a comprehensive risk coefficient by using a discriminant model based on the semantic feature vector and the structured behavior feature vector; determining whether to intercept the to-be-detected short message based on the comprehensive risk coefficient and a global judgment threshold.
6. The short message intercepting method of claim 5, wherein, The method further comprises: obtaining an interception decision log in response to determining whether to intercept the to-be-detected short message. Based on the interception decision logs and anonymized user feedback data, an incremental sample set is constructed; The first parameter of the pre-trained language model is updated based on the incremental sample set; The second parameter of the discrimination model is updated based on the incremental sample set.
7. A short message interception apparatus characterized by comprising: The device includes: The acquisition module is used to acquire the SMS messages to be detected; The first determining module is used to determine the semantic feature vector corresponding to the SMS message to be detected based on the SMS message to be detected; The second determining module is used to determine a structured behavioral feature vector based on the operator metadata of the sending end corresponding to the SMS message to be detected. The third determination module is used to determine the user's personalized interception preference vector based on the user feedback data corresponding to the SMS to be detected; The fourth determining module is used to determine whether to block the SMS message to be detected based on the semantic feature vector, the structured behavioral feature vector, and the user's personalized interception preference vector.
8. An electronic device, comprising: include: A processor and a memory connected to the processor; wherein the memory stores instructions executable by the processor, the instructions being executed by the processor to cause the processor to perform the SMS interception method as described in any one of claims 1-6.
9. A non-transitory computer-readable storage medium storing computer instructions, the computer instructions being configured to cause the computer to perform the SMS interception method according to any one of claims 1-6.
10. A computer program product comprising a computer program that, when executed by a processor, implements the SMS interception method as described in any one of claims 1-6.
