CN109587353B - Method, device and storage medium for identifying short message number attribution information - Google Patents
Method, device and storage medium for identifying short message number attribution information Download PDFInfo
- Publication number
- CN109587353B CN109587353B CN201811540027.4A CN201811540027A CN109587353B CN 109587353 B CN109587353 B CN 109587353B CN 201811540027 A CN201811540027 A CN 201811540027A CN 109587353 B CN109587353 B CN 109587353B
- Authority
- CN
- China
- Prior art keywords
- numbers
- number set
- initial
- substitute
- attribution information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/42—Systems providing special services or facilities to subscribers
- H04M3/42025—Calling or Called party identification service
- H04M3/42034—Calling party identification service
- H04M3/42042—Notifying the called party of information on the calling party
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/42—Systems providing special services or facilities to subscribers
- H04M3/42025—Calling or Called party identification service
- H04M3/42034—Calling party identification service
- H04M3/42059—Making use of the calling party identifier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for identifying short message number attribution information, which comprises the following steps: extracting a plurality of initial numbers to form an initial number set; replacing the last un-replaced character of the initial number with a replacement variable to obtain a replacement number; placing the initial number corresponding to the substitute number with the contact ratio smaller than the preset contact ratio into the middle number set; merging the alternative numbers with the contact ratio not less than the preset contact ratio, and putting the merged numbers into an intermediate number set; all numbers in the middle number set are used as updated initial numbers; iterating until the number of times that all numbers in the intermediate number set are replaced by the substitute variable is N, and selecting prefix numbers of all numbers in the intermediate number set obtained after iteration as an output number set; and identifying attribution information corresponding to each prefix number in the output number set. The method for identifying the attribution information of the short message number can judge the attribution information of a large number of short message numbers and improve the information acquisition efficiency and accuracy of users.
Description
Technical Field
The present invention relates to the field of short message number identification technologies, and in particular, to a method and an apparatus for identifying short message number attribution information, and a storage medium.
Background
With the development of big data technology, the number of pushed short messages received by users from various enterprises is increasing. In the prior art, the short message is sent by a short generation or an operator, and when a user receives the short message, the source of the short message displayed by the mobile terminal is a specific number, so that the user cannot confirm the source of the short message and cannot judge whether the source of the short message conforms to the content of the short message.
Disclosure of Invention
The embodiment of the invention provides a method for identifying attribution information of a short message number, which can judge the attribution information of a large number of short message numbers and improve the information acquisition efficiency and accuracy of a user.
The embodiment of the invention provides a method for identifying short message number attribution information, which comprises the following steps:
s1: extracting a plurality of initial numbers to form an initial number set;
s2: replacing the last un-replaced character of the initial number with a replacement variable to obtain a replacement number; placing the substitute number into a set of substitute numbers; placing the initial numbers corresponding to the substitute numbers with the contact ratio smaller than the preset contact ratio in the substitute number set into an intermediate number set; merging the substitution numbers with the coincidence degree not less than the preset coincidence degree in the substitution number set, and putting the merged numbers into an intermediate number set; all numbers in the intermediate number set are used as updated initial numbers;
s3: iterating step S2 until the number of times that all numbers in the intermediate number set are replaced by the substitute variable is N, and selecting prefix numbers of all numbers in the intermediate number set obtained after iteration as an output number set; wherein, N is an integer not less than zero, and the prefix number is a number segment arranged before the substitute variable;
s4: and identifying attribution information corresponding to each prefix number in the output number set.
As an improvement of the above scheme, the contact ratio specifically is:
the number of occurrences of the same substitute number in the substitute number set for the number segment not replaced by the substitute variable.
As a modification of the above, step S1 further includes: splitting the initial number set into a plurality of sub-initial number sets, respectively allocating the plurality of sub-initial number sets to a plurality of processing modules, and updating the numbers in each sub-initial number set into the initial numbers of each processing module.
The embodiment of the invention correspondingly provides a device for identifying short message number attribution information, which comprises the following steps: the short signal code attribution information identification method comprises a processor, a memory and a computer program which is stored in the memory and is configured to be executed by the processor, wherein the processor executes the computer program to realize the short signal code attribution information identification method according to the first embodiment of the invention.
Correspondingly, the third embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for identifying short signal code attribution information according to the first embodiment of the present invention.
Compared with the prior art, the identification method, the identification device and the storage medium of the short message number attribution information provided by the embodiment of the invention have the following beneficial effects:
the method has the advantages that a large number of numbers are selectively combined through an iterative method based on the judgment of the contact ratio, the attribution information of a large number of short message codes can be judged, and the information acquisition efficiency and accuracy of a user are improved, so that the time for the user to confirm the source of the short message is shortened, whether the attribution information of the short message codes conforms to the content of the short message can be judged while the short message is received, and the loss of the user caused by the fact that fraud short messages and spam short messages cannot be judged due to the fact that the attribution of the short message cannot be judged is avoided.
Drawings
Fig. 1 is a schematic flowchart of a method for identifying sms code attribution information according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, it is a schematic flow chart of a method for identifying short message code attribution information according to an embodiment of the present invention, including the following steps:
s1: extracting a plurality of initial numbers to form an initial number set;
s2: replacing the last un-replaced character of the initial number with a replacement variable to obtain a replacement number; placing the substitute number into a set of substitute numbers; placing the initial numbers corresponding to the substitute numbers with the contact ratio smaller than the preset contact ratio in the substitute number set into the intermediate number set; merging the substitution numbers with the coincidence degree not less than the preset coincidence degree in the substitution number set, and putting the merged numbers into the middle number set; all numbers in the middle number set are used as updated initial numbers;
s3: iterating step S2 until the number of times that all numbers in the intermediate number set are replaced by the substitute variable is N, and selecting prefix numbers of all numbers in the intermediate number set obtained after iteration as an output number set; wherein, N is an integer not less than zero, and the prefix number is a number segment arranged before the substitute variable;
s4: and identifying attribution information corresponding to each prefix number in the output number set.
Further, the contact ratio is specifically: in the substitute number set, the number segments not replaced by the substitute variable appear with the same frequency of substitute numbers.
Further, step S1 further includes: splitting the initial number set into a plurality of sub-initial number sets, respectively allocating the sub-initial number sets to a plurality of processing modules, and updating the numbers in each sub-initial number set into the initial numbers of each processing module.
In a specific embodiment, the enterprise sends the short message by using a special number segment + several random numbers, and the initial number set is: {100085126, 100085215, 100085428, 100085691, 100085688, 1069111243, 1069111293, 1069111241, 1069111249, 1069111783, 1069111747, 1069111764, 1022158197}, where the substitute variable is X, the predetermined contact ratio is 4, and N is 3.
Step S2 is executed, and the alternative number set {1008512X, 10008521X, 10008542X, 10008569X, 10008568X, 106911124X, 106911129X, 106911124X, 106911124X, 106911178X, 106911174X, 106911176X, 102215819X } is available, and at this time, there is no alternative number in the alternative number set with a coincidence degree not less than 4, the alternative number is put into the intermediate number set, and all numbers in the intermediate number set are used as the updated initial numbers.
Executing step S3, performing a first iteration on step S2 to obtain {1000851X6, 1000852X5, 1000854X8, 1000856X1, 1000856X8, 10691112X3, 10691112X3, 10691112X1, 10691112X9, 10691117X3, 10691117X7, 10691117X4, and 10221581X7}, at this time, merging the alternative numbers with the coincidence degree greater than the preset coincidence degree in the alternative number set, and obtaining a merged number 10691112XX, which further may obtain an intermediate number set {10691112, 100085126, 100085215, 100085428, 100085691, 100085688, 1061179111783, 9111747, 10611764, 1022158197 }.
And updating the numbers in the last intermediate number set to initial numbers, and performing second iteration to obtain {1069111XXX, 100085X26, 100085X15, 100085X28, 100085X91, 100085X88, 1069111X83, 1069111X47, 1069111X64 and 1022158X97}, merging the alternative numbers in the alternative number set, wherein the coincidence degree is greater than the preset coincidence degree, and the merged numbers are 1069111XXX and 100085XXX after merging, so that the intermediate number set {1069111XXX, 100085XXX and 1022158197} can be further obtained.
At this point, the number of times all numbers in the intermediate number set have been replaced by the substitute variable has reached 3 times.
And selecting prefix numbers of all numbers in the intermediate number set {1069111XXX, 100085XXX, 1022158197} to obtain an output number set {1069111, 100085, 1022158197 }.
The identification numbers 1069111, 100085, 1022158197 correspond to attribution information, which may be a business, such as xx communication group limited, xx bank, xx game company, etc.
It should be noted that the foregoing specific embodiments are merely exemplary, and in an actual implementation process, the initial number set may include tens of thousands or hundreds of millions of initial numbers, so that the initial number set is split into a plurality of sub-initial number sets, the plurality of sub-initial number sets are respectively allocated to the plurality of processing modules, and numbers in each sub-initial number set are updated to initial numbers of each processing module, so that merging and attribution information identification are performed in each processing module at the same time, and number merging efficiency and attribution information identification efficiency can be effectively improved.
After the attribution information is identified, the original short message number is replaced by the attribution information on the mobile terminal of the user, so that the user can directly obtain the attribution of the short message number of the sender.
Correspondingly, the embodiment of the invention provides an apparatus for identifying short message code attribution information, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements a method for identifying short message code attribution information according to the first embodiment of the invention when executing the computer program. The identification device of the attribution information of the short-message number can be computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The identification device of the short message number attribution information can include, but is not limited to, a processor and a memory.
The third embodiment of the present invention correspondingly provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, a device in which the computer-readable storage medium is located is controlled to execute the method for identifying short message code attribution information according to the first embodiment of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc., and the processor is a control center of the identification device of the information to which the short message code belongs, and various interfaces and lines are used to connect the respective parts of the identification device of the entire information to which the short message code belongs.
The memory can be used for storing computer programs and/or modules, and the processor can realize various functions of the identification device of the short-signal code attribution information by operating or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The module/unit integrated with the identification device of the short message number attribution information can be stored in a computer readable storage medium if the module/unit is realized in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like.
Compared with the prior art, the identification method, the identification device and the storage medium of the short message number attribution information provided by the embodiment of the invention have the following beneficial effects:
the method has the advantages that a large number of numbers are selectively combined through an iterative method based on the judgment of the contact ratio, the attribution information of a large number of short message codes can be judged, and the information acquisition efficiency and accuracy of a user are improved, so that the time for the user to confirm the source of the short message is shortened, whether the attribution information of the short message codes conforms to the content of the short message can be judged while the short message is received, and the loss of the user caused by the fact that fraud short messages and spam short messages cannot be judged due to the fact that the attribution of the short message cannot be judged is avoided.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (4)
1. A method for identifying short message code attribution information is characterized by comprising the following steps:
s1: extracting a plurality of initial numbers to form an initial number set;
s2: replacing the last un-replaced character of the initial number with a replacement variable to obtain a replacement number; placing the substitute number into a set of substitute numbers; placing the initial numbers corresponding to the substitute numbers with the contact ratio smaller than the preset contact ratio in the substitute number set into an intermediate number set; merging the substitution numbers with the coincidence degree not less than the preset coincidence degree in the substitution number set, and putting the merged numbers into an intermediate number set; all numbers in the intermediate number set are used as updated initial numbers;
s3: iterating step S2 until the number of times that all numbers in the intermediate number set are replaced by the substitute variable is N, and selecting prefix numbers of all numbers in the intermediate number set obtained after iteration as an output number set; wherein, N is an integer not less than zero, and the prefix number is a number segment arranged before the substitute variable;
s4: identifying attribution information corresponding to each prefix number in the output number set;
wherein the contact ratio specifically is:
the number of occurrences of the same substitute number in the substitute number set for the number segment not replaced by the substitute variable.
2. The method for identifying sms code attribution information according to claim 1, wherein the step S1 further comprises: splitting the initial number set into a plurality of sub-initial number sets, respectively allocating the plurality of sub-initial number sets to a plurality of processing modules, and updating the numbers in each sub-initial number set into the initial numbers of each processing module.
3. An apparatus for identifying short message code attribution information, comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method for identifying short message code attribution information according to any one of claims 1 to 2 when executing the computer program.
4. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the computer-readable storage medium controls an apparatus to execute the method for identifying short signal code attribution information according to any one of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811540027.4A CN109587353B (en) | 2018-12-17 | 2018-12-17 | Method, device and storage medium for identifying short message number attribution information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811540027.4A CN109587353B (en) | 2018-12-17 | 2018-12-17 | Method, device and storage medium for identifying short message number attribution information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109587353A CN109587353A (en) | 2019-04-05 |
CN109587353B true CN109587353B (en) | 2020-12-04 |
Family
ID=65930387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811540027.4A Active CN109587353B (en) | 2018-12-17 | 2018-12-17 | Method, device and storage medium for identifying short message number attribution information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109587353B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110300222B (en) * | 2019-05-29 | 2021-05-14 | 深圳市梦网科技发展有限公司 | Short message display method, system, terminal equipment and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674371A (en) * | 2009-09-29 | 2010-03-17 | 中兴通讯股份有限公司 | Method and device for processing phone numbers in short messages |
CN104202473A (en) * | 2014-08-25 | 2014-12-10 | 华为技术有限公司 | Conversion merging method and mobile terminal |
CN105282344A (en) * | 2013-10-25 | 2016-01-27 | 华为终端有限公司 | An information management method and a terminal |
CN105554268A (en) * | 2015-12-14 | 2016-05-04 | 珠海市小源科技有限公司 | Enterprise information recognition method and device based on service short message |
CN105847555A (en) * | 2016-03-24 | 2016-08-10 | 珠海市小源科技有限公司 | short message conversation combining method and system thereof |
CN109089227A (en) * | 2018-06-05 | 2018-12-25 | 中兴通讯股份有限公司 | A kind of short message group technology and device, computer readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110317684A1 (en) * | 2010-06-24 | 2011-12-29 | Lazzaro Nicholas P | Systems and methods for terminating communication requests |
-
2018
- 2018-12-17 CN CN201811540027.4A patent/CN109587353B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674371A (en) * | 2009-09-29 | 2010-03-17 | 中兴通讯股份有限公司 | Method and device for processing phone numbers in short messages |
CN105282344A (en) * | 2013-10-25 | 2016-01-27 | 华为终端有限公司 | An information management method and a terminal |
CN104202473A (en) * | 2014-08-25 | 2014-12-10 | 华为技术有限公司 | Conversion merging method and mobile terminal |
CN105554268A (en) * | 2015-12-14 | 2016-05-04 | 珠海市小源科技有限公司 | Enterprise information recognition method and device based on service short message |
CN105847555A (en) * | 2016-03-24 | 2016-08-10 | 珠海市小源科技有限公司 | short message conversation combining method and system thereof |
CN109089227A (en) * | 2018-06-05 | 2018-12-25 | 中兴通讯股份有限公司 | A kind of short message group technology and device, computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109587353A (en) | 2019-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108460115B (en) | Message pushing method and device, computer equipment and storage medium | |
CN108834179B (en) | Method, server and client for adjusting heartbeat cycle | |
CN109542878B (en) | List creation method and device | |
CN104253869A (en) | Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device | |
CN103747436A (en) | Application program downloading method and device | |
CN107864044B (en) | Information processing method and device, terminal and readable storage medium | |
CN109041064B (en) | Pseudo base station identification method and device and mobile terminal | |
CN108536544B (en) | Consumption method, device, server and medium based on database message queue | |
CN109933595B (en) | Internet of things equipment information sharing system and device and terminal equipment | |
CN109587353B (en) | Method, device and storage medium for identifying short message number attribution information | |
WO2024094107A1 (en) | Mobile number home operator querying method and apparatus, storage medium, and device | |
CN110300222B (en) | Short message display method, system, terminal equipment and computer readable storage medium | |
CN106411718B (en) | Data synchronization method and device based on instant messaging application | |
CN108924840B (en) | Blacklist management method and device and terminal | |
CN115793559A (en) | Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium | |
CN115543936A (en) | Method, device and equipment for constructing model files in batches and storage medium | |
CN107844549A (en) | Information saving method, device, computer installation and computer-readable recording medium | |
CN109379704B (en) | Method, device and equipment for correcting regional information of short message and storage medium | |
CN112148470B (en) | Parameter synchronization method, computer device and readable storage medium | |
CN107135258A (en) | Method and server that message is pushed | |
CN111274203B (en) | System and method for storing telephone bill | |
CN109451016B (en) | Data download management method, system and related equipment | |
CN115292341B (en) | Method, device and system for real-time sequencing of equipment list and storage medium | |
CN103607703A (en) | A method and an apparatus for reporting handset fraud short messages | |
CN108513269B (en) | Advertisement short message identification method, electronic device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |