Disclosure of Invention
The embodiment of the invention discloses a method, a device, a system, electronic equipment and a medium for selecting an SIM card, which are used for solving the problems that privacy is revealed and user experience is poor because a user uses the SIM card which is contrary to will to communicate with an unknown number in the prior art.
In order to achieve the above object, an embodiment of the present invention discloses a method for selecting an SIM card, which is applied to a server, and the method includes:
receiving an inquiry request sent by a terminal, wherein the inquiry request carries a first number to be communicated with the terminal;
determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature;
determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance;
judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number;
and according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number which is matched with the type of the first number as a target number, and sending the target number to the terminal to enable the terminal to display the identification information of the SIM card corresponding to the target number, wherein the second number is the number which is respectively corresponding to at least two SIM cards installed on the terminal.
Further, the process of predetermining the type of each second number includes:
for each second number, identifying a first number of first communication records and a second number of second communication records according to each communication record saved for the second number, wherein the first communication records record communication information of the second number and a private number, and the second communication records record communication information of the second number and a public number;
and if the first number is larger than the second number, determining the type of the second number as a private number, and otherwise, determining the type of the second number as a public number.
Further, prior to determining the first parameter of the first number for each feature, the method further comprises:
judging whether a communication record for communicating the second number with the first number is stored or not aiming at each second number;
and if not, performing the subsequent steps.
Further, if at least one is yes, the method further comprises:
and if the communication record of the communication between the second number and the first number is stored, taking the second number as a first candidate number, determining a target number in at least one first candidate number, and sending the target number to the terminal so that the terminal displays the identification information of the SIM card corresponding to the target number.
Further, after determining that the communication record of each second number communicating with the first number is not saved, before determining the first parameter of the first number for each feature, the method further comprises:
and judging whether a corresponding relation between the second number and the first number is stored in a preset storage space or not for each second number, and if not, carrying out the subsequent steps.
Further, if at least one is yes, the method further comprises:
and if the corresponding relation between the second number and the first number is stored, taking the second number as a second candidate number, determining a target number in at least one second candidate number, and sending the target number to the terminal so that the terminal displays the identification information of the SIM card corresponding to the target number.
Further, the determining, according to each first weight value and each second weight value corresponding to a pre-stored common number, a correlation value between the common number and the first number includes:
determining a correlation value between the public number of each seed type and the first number according to each first weight value and each second weight value of the public number of each seed type stored in advance;
the judging whether the correlation value is greater than a preset threshold value, and if so, determining that the type of the first number is a public number includes:
judging whether each correlation value is larger than a preset threshold value, and if at least one correlation value is larger than the preset threshold value, determining that the type of the first number is a public number;
if the type of the first number is determined to be a public number, the method further comprises:
determining a target subtype to which the first number belongs according to the correlation value between the common number of each seed type and the first number;
the sending the target number to the terminal, so that the displaying of the identification information of the SIM card corresponding to the target number by the terminal comprises the following steps:
and sending the target sub-type to which the first number belongs and the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number and the target sub-type of the first number.
Further, according to each second weight value corresponding to a pre-stored public number and each first weight value, determining a correlation value between the public number and the first number includes:
according to the formula:
determining a correlation value between a common number and said first number, where n is the number of features, B (b)
iSecond weight value corresponding to ith feature representing public number, A (a)
iAnd the first weight value represents a first parameter corresponding to the ith characteristic of the first number.
Further, after determining that the correlation value is not greater than the preset threshold, before determining that the type of the first number is a private number, the method further includes:
and judging whether a sensitive audio segment exists in at least one audio segment according to at least one audio segment in the call records stored aiming at the first number and a pre-stored sensitive sample, and if not, carrying out the subsequent steps.
Further, the features include at least one of:
the method comprises the following steps of number attribution, number real-name system, average number of communication per day, average duration of each call, average communication time period per day, average communication time per week, probability of the same number as the number communicated with the number, whether the number communicated with the number is continuous, probability of being hung up in a preset time period, whether an arrearage record exists, monthly flow use condition, whether short message communication exists, whether multimedia message communication exists, whether a flash communication exists, whether telephone communication exists and whether the number is located in a contact list of the number communicated with the first number.
The embodiment of the invention discloses a selection device of an SIM card, which is applied to a server and comprises:
the terminal comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an inquiry request sent by the terminal, and the inquiry request carries a first number to be communicated with the terminal;
the determining module is used for determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature; determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance;
the judging module is used for judging whether the correlation value is larger than a preset threshold value or not;
the determining module is further configured to determine that the type of the first number is a public number when the determination result of the determining module is yes; when the judgment result of the judgment module is negative, determining that the type of the first number is a private number;
the determining module is further configured to take a second number matched with the type of the first number as a target number according to a predetermined type of each second number stored for the terminal;
and the sending module is used for sending the target number to the terminal so that the terminal displays the identification information of the SIM card corresponding to the target number, wherein the second number is a number corresponding to at least two SIM cards installed on the terminal respectively.
The embodiment of the invention discloses electronic equipment, which comprises: a memory and a processor and transceiver;
the transceiver is configured to receive, under the control of the processor, an inquiry request sent by a terminal, where the inquiry request carries a first number to be communicated with the terminal;
the processor is used for reading the program in the memory and executing the following processes: determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature; determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance; judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number; according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number matched with the type of the first number as a target number;
the transceiver is configured to send the destination number to the terminal under the control of the processor, so that the terminal displays identification information of an SIM card corresponding to the destination number, where the second number is a number corresponding to each of at least two SIM cards installed on the terminal.
The processor is further configured to identify, for each second number, a first number of first communication records and a second number of second communication records according to each communication record saved for the second number, where the first communication records record communication information of the second number and a private number, and the second communication records record communication information of the second number and a public number; and if the first number is larger than the second number, determining the type of the second number as a private number, and otherwise, determining the type of the second number as a public number.
Further, the processor is further configured to determine, for each second number, whether a communication record for communicating the second number with the first number is stored; and if not, performing the subsequent steps.
Further, if at least one of the numbers is yes, the processor is further configured to, if a communication record that the second number communicates with the first number is stored, use the second number as a first candidate number, determine a destination number in at least one of the first candidate numbers, and send the destination number to the terminal, so that the terminal displays identification information of the SIM card corresponding to the destination number.
Further, after determining that the communication record of each second number communicating with the first number is not saved, and before determining that the first number is a first parameter for each feature, the processor is further configured to determine, for each second number, whether a corresponding relationship between the second number and the first number is saved in a preset storage space, and if not, perform the subsequent steps.
Further, if at least one of the candidate numbers is yes, the processor is further configured to, if the correspondence between the second number and the first number is stored, use the second number as a second candidate number, determine a destination number in at least one of the second candidate numbers, and send the destination number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the destination number.
Further, the processor is specifically configured to determine, according to each first weight value and each second weight value of a public number of each seed type that is pre-stored, a correlation value between the public number of each seed type and the first number; judging whether each correlation value is larger than a preset threshold value, and if at least one correlation value is larger than the preset threshold value, determining that the type of the first number is a public number;
if the type of the first number is determined to be a public number, the processor is further used for determining a target subtype to which the first number belongs according to the size of a correlation value between the public number of each seed type and the first number;
the transceiver is further configured to send the target sub-type to which the first number belongs and the target number to the terminal under the control of the processor, so that the terminal displays the identification information of the SIM card corresponding to the target number and the target sub-type of the first number.
Further, the processor is specifically configured to, according to a formula:
determining a correlation value between a common number and said first number, where n is the number of features, B (b)
iSecond weight value corresponding to ith feature representing public number, A (a)
iAnd the first weight value represents a first parameter corresponding to the ith characteristic of the first number.
Further, after the relevance value is judged to be not greater than the preset threshold value, before the type of the first number is determined to be a private number, the processor is further configured to judge whether a sensitive audio segment exists in at least one audio segment according to at least one audio segment in a call record saved for the first number and a pre-saved sensitive sample, and if not, perform subsequent steps.
The embodiment of the invention discloses a system for selecting an SIM card, which comprises: a server and a terminal;
the terminal is used for sending a query request to a server, wherein the query request carries a first number to be communicated with the terminal;
the server is used for receiving the query request sent by the terminal, determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature; determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance; judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number; and according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number matched with the type of the first number as a target number, and sending the target number to the terminal.
And the terminal is also used for determining the identification information of the SIM card corresponding to the target number according to the corresponding relation between the identification information of each SIM card and the number stored by the terminal after receiving the target number sent by the server, and displaying the identification information of the SIM card corresponding to the target number.
The embodiment of the invention discloses an electronic device, which comprises: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of any of the above methods of selecting a SIM card.
The embodiment of the invention discloses a computer readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device is caused to execute the steps of any one of the above SIM card selection methods.
The embodiment of the invention discloses a method, a device, a system, electronic equipment and a medium for selecting an SIM card, wherein the method comprises the following steps: the method comprises the steps that a server receives an inquiry request sent by a terminal, wherein the inquiry request carries a first number to be communicated with the terminal; according to each feature which is saved in advance, determining a first parameter of the first number aiming at each feature, and according to a weight value corresponding to each parameter range which is saved in advance and each first parameter, determining each first weight value corresponding to the first number; determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance; judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number; and according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number which is matched with the type of the first number as a target number, and sending the target number to the terminal to enable the terminal to display the identification information of the SIM card corresponding to the target number, wherein the second number is the number which is respectively corresponding to at least two SIM cards installed on the terminal. In the embodiment of the invention, the server determines each first weight value of the first number according to each characteristic so as to determine the type of the first number, determines the target number matched with the type of the first number according to the type of each second number, and sends the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number, and a user can select a more suitable SIM card to communicate with the first number according to the identification information of the SIM card displayed by the terminal, thereby avoiding privacy disclosure, bringing convenience to life and improving user experience.
Detailed Description
In order to avoid a user from communicating with an unknown number by using a SIM card contrary to his/her own will, embodiments of the present invention provide a SIM card selection method, apparatus, system, electronic device, and medium.
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.
Example 1:
fig. 1 is a schematic diagram of a selection process of an SIM card according to embodiment 1 of the present invention, where the process includes the following steps:
s101: receiving an inquiry request sent by a terminal, wherein the inquiry request carries a first number to be communicated with the terminal.
The method for selecting the SIM card provided by the embodiment of the invention is applied to a server.
When the multi-card terminal communicates with a certain number, the number corresponding to which SIM card installed by the user is used can be displayed for the user to communicate with the number. The terminals in the present invention all refer to multi-card terminals, and are hereinafter referred to as terminals for short.
The terminal sends a query request to the server, wherein the query request carries a first number to be communicated with the terminal, and the terminal requests the server to push which SIM card is preferentially used by the terminal to communicate with the first number when the terminal communicates with the first number. The communication can be a call, and can also be a message such as a short message, a multimedia message and the like.
Wherein, the query request may be sent when the terminal recognizes that the user has input the complete first number.
Preferably, the query request is sent when the terminal identifies that the user has input a complete first number and determines that the second storage space preset by the terminal does not store the corresponding relationship between the first number and the identification information of the SIM card.
S102: according to each feature saved in advance, determining a first parameter of the first number for each feature, and according to a weight value corresponding to each parameter range of each feature saved in advance and the first parameter of each feature, determining each first weight value of the first number.
The server stores each feature and a weight value corresponding to each parameter range of each feature in advance.
After receiving a query request carrying a first number, a server determines, for each feature stored in advance, a first parameter of the first number for the feature. The characteristics may be, for example, a number attribution, a number owner, a number real name system, and the like. The first parameter of the first number for the feature of the number attribution can be Shanghai, Beijing, etc.; the parameter of the first number aiming at the characteristic of the person to which the number belongs can be an enterprise or an individual; the parameter of the first number for the real-name system feature of the number can be a real-name system or a non-real-name system.
Then, the server determines each first weight value of the first number according to a weight value corresponding to each parameter range of each feature stored in advance, specifically, for each first parameter of each feature, matching the first parameter of the feature with each parameter range of the feature stored in advance, taking the parameter range in which the first parameter of the feature is located as a target parameter range, and taking the weight value corresponding to the target parameter range as the first weight value of the first number for the feature.
The process of determining the number attribution belongs to the prior art, and is not described in detail in the embodiment of the invention. The process of determining the person to which the number belongs to the prior art, and details are not described in the embodiment of the invention. The process of determining whether a number is a real name belongs to the prior art, and is not described in detail in the embodiment of the present invention.
S103: and determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the prestored public number.
And after each first weight value corresponding to the first number is determined, a correlation value between the public number and the first number can be determined according to each first weight value and each second weight value.
Specifically, the correlation value between the common number and the first number may be determined according to each first weight value and each second weight value, and a euclidean distance algorithm.
S104: and judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number.
The server pre-stores a threshold value, namely a correlation threshold value, and after the correlation value between the public number and the first number is determined, the correlation value can be compared with the preset threshold value to judge whether the type of the first number is the public number or the private number. Specifically, if the correlation value is greater than the threshold, the type of the first number is determined to be a public number, and if the correlation value is not greater than the threshold, the type of the first number is determined to be a private number.
S105: and according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number which is matched with the type of the first number as a target number, and sending the target number to the terminal to enable the terminal to display the identification information of the SIM card corresponding to the target number, wherein the second number is the number which is respectively corresponding to at least two SIM cards installed on the terminal.
The server may store in advance a number corresponding to each SIM card installed in each terminal, and a type of each number determined in advance. After receiving a query request sent by a terminal, a server may determine, according to each number corresponding to each terminal stored by the server, each second number corresponding to the terminal, and determine the type of each second number, where the second number is a number corresponding to an SIM card installed on the terminal. The types of numbers include public numbers and private numbers.
After determining the type of the first number and the type of each second number, the server matches the type of each second number with the type of the first number, takes the second number matched with the type of the first number as a target number, and sends the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number.
A second number that matches the type of the first number, specifically, if the type of the first number is a private number, the type of the second number that matches the type of the first number is a private number; if the type of the first number is a public number, the type of the second number matching the type of the first number is a public number.
The terminal stores the corresponding relation between the identification information of each SIM card and each number, and after receiving the target number sent by the server, the terminal determines the identification information of the SIM card corresponding to the target number according to the target number and the stored corresponding relation between the identification information of each SIM card and each number, and displays the identification information of the SIM card corresponding to the target number. The identification information of the SIM card may be the SIM card 1 or the SIM card 2.
The correspondence between the terminal and the second number stored in the server may be that the terminal sends the second number corresponding to each SIM card installed in the terminal to the server, and the server receives and stores the second number.
The process of the server determining the type of each second number may specifically be: and the terminal sends each second number and the type of each second number set by the user to the server, and the server receives and stores the second numbers and the types of the second numbers set by the user.
In the embodiment of the invention, the server determines each first weight value of the first number according to each characteristic so as to determine the type of the first number, determines the target number matched with the type of the first number according to the type of each second number, and sends the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number, and a user can select a more suitable SIM card to communicate with the first number according to the identification information of the SIM card displayed by the terminal, thereby avoiding privacy disclosure, bringing convenience to life and improving user experience.
Example 2:
in order to determine the type of the number more intelligently and improve the user experience, on the basis of the above embodiment, in the embodiment of the present invention, the process of determining the type of each second number in advance includes:
for each second number, identifying a first number of first communication records and a second number of second communication records according to each communication record saved for the second number, wherein the first communication records record communication information of the second number and a private number, and the second communication records record communication information of the second number and a public number; and if the first number is larger than the second number, determining the type of the second number as a private number, and otherwise, determining the type of the second number as a public number.
In order to more accurately determine the type of the second number, in an embodiment of the present invention, the server stores each communication record of each number, and stores whether the type of the communication number recorded in each communication record is a public number or a private number, and when determining the type of each second number, the type of the second number may be determined according to the type of a number in each communication record stored for the second number, the number communicating with the second number.
Specifically, for each second number, the server identifies a first number of first communication records of the second number, which are communicated with private numbers, and a second number of second communication records of the second number, which are communicated with public numbers, according to each communication record saved for the second number, and determines the type of the second number according to the first number and the second number.
And determining the type of the second number according to the first number and the second number, specifically, judging whether the first number is larger than the second number, if so, determining that the type of the second number is a private number, and if not, determining that the type of the second number is a public number.
In order to reduce the workload of the server and save the storage space, when the terminal sends the query request to the server, each second number can be carried in the query request, and the server determines the type of each second number carried in the query request.
The type of the number is determined according to the communication record, so that the workload and data transmission of a user can be reduced, the type of the number is determined intelligently, and the user experience is improved.
Example 3:
in order to make the server recommend the SIM card to the user of the terminal more quickly, on the basis of the above embodiments, in an embodiment of the present invention, before determining the first parameter of the first number for each feature, the method further includes:
judging whether a communication record for communicating the second number with the first number is stored or not aiming at each second number;
and if not, performing the subsequent steps.
In the embodiment of the invention, the server stores the communication record when any two numbers are communicated, and after receiving the query request sent by the terminal, the server determines each second number corresponding to the terminal. After determining each second number, before determining the first parameter of the first number for each feature, the server may determine, for each second number, whether a communication record for communicating the second number with the first number is stored according to all communication records stored by the server, and if not, may perform the step of determining the first parameter of the first number for each feature.
In order to improve user experience, in addition to sending a destination number to a terminal, the type of a determined first number may also be sent to the terminal, and then the destination number is sent to the terminal, so that the displaying, by the terminal, the identification information of the SIM card corresponding to the destination number includes: and sending the type of the first number and the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number and the type of the first number.
If at least one communication record of communication between the second number and the first number is judged to be stored, the method further comprises the following steps:
if the communication record of the second number for communicating with the first number is stored, the second number is used as a first candidate number;
and determining a target number in at least one first candidate number, and sending the target number to the terminal to enable the terminal to display the identification information of the SIM card corresponding to the target number.
And for each second number, if the communication record of the communication between the second number and the first number is stored in the server, the second number is used as a first candidate number, if the first candidate number is at least one, a target number is determined in the at least one first candidate number, and the target number is sent to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number.
If the first candidate number is only one, the first candidate number is directly determined as the target number.
If there are at least two first candidate numbers, one of the at least two first candidate numbers may be arbitrarily selected as the target number, preferably, the target number may be determined from the at least two first candidate numbers according to the third number of the communication records of each first candidate number communicating with the first number, and specifically, the first candidate number with the largest third number of the communication records is determined as the target number.
Example 4:
in order to make the server recommend the SIM card to the user of the terminal more quickly, on the basis of the above embodiments, in an embodiment of the present invention, after determining that the communication record of each second number communicating with the first number is not saved, before determining the first parameter of the first number for each feature, the method further includes:
and judging whether a corresponding relation between the second number and the first number is stored in a preset first storage space or not for each second number, and if not, carrying out the subsequent steps.
In this embodiment of the present invention, a preset storage space may exist in the server, where the preset storage space may be referred to as a first storage space, and the preset first storage space may be configured to store a correspondence relationship between two numbers belonging to the same type, where one of the two numbers is a calling number and the other is a called number, after the server determines that a communication record of communication between each second number and the first number is not stored, before determining a first parameter of the first number for each feature, the server may determine, for each second number, whether the correspondence relationship between the second number and the first number is stored according to the correspondence relationship between the two numbers stored in the preset first storage space, and if the correspondence relationship is not stored, may perform the step of determining the first parameter of the first number for each feature.
And after determining the target number matched with the type of the first number, storing the corresponding relation between the first number and the target number in a preset first storage space.
If at least one is yes, the method further comprises:
and if the corresponding relation between the second number and the first number is stored, taking the second number as a second candidate number, determining a target number in at least one second candidate number, and sending the target number to the terminal so that the terminal displays the identification information of the SIM card corresponding to the target number.
If there is only one second candidate number, the second candidate number is directly determined as the target number.
If there are at least two second candidate numbers, one of the at least two second candidate numbers can be arbitrarily selected as the destination number.
Example 5:
in order to improve the user experience, the server may recommend the SIM card to be used to the user of the terminal, and may also be a subtype of the first number sent to the terminal. On the basis of the foregoing embodiments, in an embodiment of the present invention, the determining, according to each first weight value and each second weight value corresponding to a pre-stored common number, a correlation value between the common number and the first number includes:
determining a correlation value between the public number of each seed type and the first number according to each first weight value and each second weight value of the public number of each seed type stored in advance;
the judging whether the correlation value is greater than a preset threshold value, and if so, determining that the type of the first number is a public number includes:
judging whether each correlation value is larger than a preset threshold value, and if at least one correlation value is larger than the preset threshold value, determining that the type of the first number is a public number;
if the type of the first number is determined to be a public number, the method further comprises:
determining a target subtype to which the first number belongs according to the correlation value between the common number of each seed type and the first number;
the sending the target number to the terminal, so that the displaying of the identification information of the SIM card corresponding to the target number by the terminal comprises the following steps:
and sending the target sub-type to which the first number belongs and the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number and the target sub-type of the first number.
In the embodiment of the invention, the types of the numbers comprise public numbers and private numbers, and the public numbers can be further subdivided into public numbers of various sub-types.
Subtypes of public numbers include at least one of: advertising promotion, express meal delivery, phone fraud, house renting intermediary and education institution.
When determining the correlation value between the public number and the first number, the determined correlation value between the public number and the first number of each type may be determined, and when determining whether the type of the first number is the public number or the private number, the determination may be performed according to the correlation value between the public number of each type, specifically, for each correlation value, it is determined whether the correlation value is greater than a preset threshold value, if at least one of the correlation values is yes, the type of the first number is determined to be the public number, and if not, the type of the first number is determined to be the private number.
Because the correlation values of the first number and the common numbers of each seed type are determined, the common number of which sub-type the first number better conforms to can be determined according to the size of each correlation value, so as to determine the target sub-type to which the first number belongs, specifically, the sub-type corresponding to the maximum correlation value can be taken as the target sub-type, and the server can also send the target sub-type of the first number to the terminal, specifically, when the target number is sent to the terminal, the target sub-type to which the first number belongs is sent to the terminal together, so that the terminal displays the identification information of the SIM card corresponding to the target number and the target sub-type of the first number.
As shown in table 1, the correlation values of three unknown numbers (1, 2 and 3) with a common number for each seed type are: wherein the subtypes include: advertising promotion, express meal delivery, fraud calls, the unknown number can be understood as the first number.
| |
Advertising promotion
|
Express delivery
|
Fraud telephone
|
| Unknown number 1
|
0.79
|
0.85
|
0.97
|
| Unknown number 2
|
0.67
|
0.76
|
0.85
|
| Unknown number 3
|
0.1
|
0.2
|
0.3 |
If the preset threshold value is 0.5, as can be seen from table 1, the correlation values of the unknown number 1, the public number of the advertising promotion type, the public number of the express delivery type and the public number of the fraud phone type are respectively 0.79, 0.85 and 0.97, which are all greater than 0.5, the type of the unknown number 1 is determined to be the public number, and the target subtype is the fraud phone; similarly, according to the above table 1, the unknown number 2 is a public number, and the target sub-type is a fraud phone; the type of unknown number 3 is a private number.
Example 6:
in order to determine the correlation value between the common number and the first number more accurately, on the basis of the foregoing embodiments, in an embodiment of the present invention, determining the correlation value between the common number and the first number according to each second weight value corresponding to the pre-stored common number and each first weight value includes:
according to the formula:
Determining the correlation value of the public number and the first number, wherein Cos theta is the correlation value of the public number and the first number, n is the number of the features, B (b)
iSecond weight value corresponding to ith feature representing public number, A (a)
iAnd the first weight value represents a first parameter corresponding to the ith characteristic of the first number.
If it is determined that the common number of each seed type has a correlation value with the first number, wherein B (b)iAnd a second weight value corresponding to the ith characteristic of the public number with the subtype B.
The above formula is called Cosine algorithm Cosine, which evaluates the similarity of two vectors by calculating the Cosine value of the included angle between the two vectors, draws the two vectors into a vector space according to coordinate values, such as the most common two-dimensional space, obtains the included angle between the two vectors, and determines the Cosine value corresponding to the included angle, which can be used to represent the similarity of the two vectors. The smaller the angle, the closer the cosine value is to 1, and the more the directions of the two vectors coincide, the more similar. The two vectors are the first number and the second number of the invention, and the coordinate value is the weight value.
Subtypes of public numbers include at least one of: advertising promotion, express meal delivery, phone fraud, house renting intermediary and education institution.
Example 7:
in order to determine the type of the first number more accurately, on the basis of the foregoing embodiments, in an embodiment of the present invention, after determining that the correlation value is not greater than the preset threshold value, before determining that the type of the first number is a private number, the method further includes:
and judging whether a sensitive audio segment exists in at least one audio segment according to at least one audio segment in the call records stored aiming at the first number and a pre-stored sensitive sample, and if not, carrying out the subsequent steps.
In the embodiment of the present invention, a call record is pre-stored in the server, where the call record is a part of a communication record, and the communication record may include an information record and the like in addition to the call record.
The server can extract at least one audio clip in the call record saved for the first number, and a sensitive sample is also saved in the server and used for determining whether the at least one audio clip is a sensitive audio clip, so that the type of the first number is determined to be a public number or a private number more accurately.
Specifically, after determining that the correlation value between the first number and the public number is not greater than the preset threshold, according to at least one audio segment in the call record saved for the first number and a pre-saved sensitive sample, determining whether a sensitive audio segment exists in the at least one audio segment, if the sensitive audio segment exists, determining that the type of the first number is the public number, and if the sensitive audio segment does not exist, determining that the type of the first number is the private number.
The sensitive sample may be a sensitive audio sample or a sensitive phrase sample.
If the sensitive sample is a sensitive audio sample, when judging whether a sensitive audio segment exists in the at least one audio segment according to the at least one audio segment and the pre-stored sensitive sample, specifically, matching the at least one audio segment with each pre-stored sensitive audio sample, and judging whether a successfully matched audio segment exists in the at least one audio segment.
If the sensitive sample is a sensitive phrase sample, when whether the sensitive audio segment exists in the at least one audio segment is judged according to the at least one audio segment and the pre-stored sensitive sample, specifically, the at least one audio segment is converted into corresponding text information, the at least one text information is subjected to word segmentation processing, each segmented word after the word segmentation processing is matched with each pre-stored sensitive phrase sample, and whether the sensitive segmented word matched with the sensitive phrase sample exists in the at least one text information is judged.
Example 8:
features in the embodiments described above include at least one of:
the method comprises the following steps of number attribution, number real-name system, average number of communication per day, average duration of each call, average communication time period per day, average communication time per week, probability of the same number as the number communicated with the number, whether the number communicated with the number is continuous, probability of being hung up in a preset time period, whether an arrearage record exists, monthly flow use condition, whether short message communication exists, whether multimedia message communication exists, whether a flash communication exists, whether telephone communication exists and whether the number is located in a contact list of the number communicated with the first number.
The server determines each first weight value of the first number according to a weight value corresponding to each parameter range of each feature stored in advance, specifically, for each first parameter of each feature, matching the first parameter of the feature with each parameter range of the feature stored in advance, taking the parameter range in which the first parameter of the feature is located as a target parameter range, and taking the weight value corresponding to the target parameter range as the first weight value of the first number for the feature.
Wherein, each parameter range corresponding to each characteristic is as follows:
the parameter range corresponding to the number attribution feature comprises: mainland, non-Chinese;
the parameter range corresponding to the characteristic of the person to which the number belongs comprises: individuals, businesses;
the parameter range corresponding to the real-name system feature of the number comprises: real name system and non-real name system;
the parameter range corresponding to the average daily communication frequency characteristic comprises the following parameters: the first-order threshold value is smaller than the first-order threshold value, is larger than the second-order threshold value, is not smaller than the first-order threshold value and is not larger than the second-order threshold value, wherein the first-order threshold value is smaller than the second-order threshold value;
the parameter range corresponding to the average duration characteristic of each call comprises the following parameters: the time length is less than a first time length threshold value, greater than a second time length threshold value, not less than the first time length threshold value and not greater than the second time length threshold value, wherein the first time length threshold value is less than the second time length threshold value;
the parameter range corresponding to the communication time period characteristics of each day comprises: fixed time period, non-fixed time period;
the parameter range corresponding to the communication time characteristic of each week comprises: fixed-date communication per week, non-fixed-date communication per week;
the parameter ranges corresponding to the probability characteristics identical to the number communicated with the communication terminal comprise: the probability is greater than a preset first probability threshold and not greater than a preset first probability threshold;
the parameter range corresponding to the continuous characteristic of the number communicated with the communication device comprises the following parameters: yes, no;
the parameter range corresponding to the hung-up probability feature in the preset time period comprises: the first probability threshold is greater than a preset second probability threshold and is not greater than the preset second probability threshold;
whether parameter ranges corresponding to arrearage record characteristics exist or not comprises the following steps: yes, no;
the parameter ranges corresponding to the monthly flow use condition characteristics comprise: the actually used flow value does not exceed the set threshold value, the monthly call records exceed the number threshold value, and the actually used flow value exceeds the set threshold value; wherein the actually used flow value refers to the flow value used by at least one application of access WeChat, QQ and mobile phone Taobao.
Whether the parameter range corresponding to the short message communication characteristics exists or not comprises the following steps: yes, no;
whether the parameter range corresponding to the multimedia message communication characteristics exists or not comprises the following steps: yes, no;
whether the parameter range corresponding to the communication characteristic of the fly-information exists or not comprises the following steps: yes, no;
whether the parameter range corresponding to the telephone communication characteristic exists or not comprises the following steps: yes, no;
whether the parameter range corresponding to the characteristic in the address book of the number communicated with the first number comprises the following steps: yes, no.
Each parameter range corresponding to each feature, and the weight value corresponding to each parameter range, may be as shown in table 2:
TABLE 2
When the server determines, according to each feature saved in advance, a first parameter of the first number for each feature, specifically:
if the characteristic is the average number of communication per day, the average number of communication per day in a first preset time period is counted, and the first preset time period can be one month or one year;
if the characteristic is the average call duration of each call, the average call duration of each day in a second preset time period can be counted, and the second preset time period can be one month, or half year, or one year;
if the characteristic is the average daily communication time period, the communication time period of the first number per day in a third preset time period is identified, whether the daily communication time period is fixed or not is judged, whether the time period is fixed or not is taken as a first parameter, and the third preset time period can be one month, or half year, or one year;
if the characteristic is that the communication time of each week is average, the communication exists in the week of the week in a period with a first preset number, and for each day from Monday to Sunday, the proportion of the number of days in which the communication exists in the period with the first preset number to the first preset number is determined, whether the proportion exceeds a preset threshold value exists is judged, if yes, the first parameter is the communication with the fixed date of each week, and if not, the first parameter is the communication with the unfixed date of each week;
if the characteristic is the same probability as the number communicated with the first number, counting the number of times of communication between the first number and each number in a fourth preset time period, counting the ratio of the number of the numbers with the number of times greater than 2 to the number of all numbers, and taking the ratio as a first parameter; the fourth preset time period may be one month, or half year, or one year.
Fig. 2 is a schematic diagram of a selection process of a SIM card according to an embodiment of the present invention, where the process includes the following steps:
s201: receiving an inquiry request sent by a terminal, wherein the inquiry request carries a first number to be communicated with the terminal.
S202: and judging whether a communication record for communication between the second number and the first number is stored for each second number in the second numbers respectively corresponding to at least two SIM cards installed on the terminal, if at least one of the second numbers is yes, performing S203, and if not, performing S204.
S203: and if a communication record of communication between a second number and the first number is stored, taking the second number as a candidate number, determining a target number in at least one candidate number, and sending the target number to the terminal so that the terminal displays the identification information of the SIM card corresponding to the target number.
S204: determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature; and determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the prestored public number.
S205: and judging whether the correlation value is larger than a preset threshold value, if so, performing S208, and if not, performing S206.
S206: and judging whether a sensitive audio segment exists in at least one audio segment according to at least one audio segment in the call records stored aiming at the first number and a pre-stored sensitive sample, if not, performing S207, and if so, performing S208.
S207: it is determined that the type of the first number is a private number, and S209 is performed.
S208: it is determined that the type of the first number is a common number, and S209 is performed.
S209: and according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number matched with the type of the first number as a target number, and sending the target number to the terminal so that the terminal displays the identification information of the SIM card corresponding to the target number.
Example 9:
fig. 3A is a diagram of a system for selecting a SIM card according to embodiment 9 of the present invention, where the system includes: a terminal 31 and a server 32;
the terminal 31 is configured to send an inquiry request to the server 32, where the inquiry request carries a first number to be communicated with the terminal 31;
the server 32 is configured to receive the query request sent by the terminal 31, where the query request carries a first number to be communicated with the terminal 31; determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature; determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance; judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number; and according to the type of each second number which is predetermined and saved for the terminal 31, taking the second number which is matched with the type of the first number as a target number, and sending the target number to the terminal 31.
The terminal 31 is further configured to, after receiving the destination number sent by the server 32, determine, according to the correspondence between the identification information of each SIM card and the number stored by the terminal and the destination number, the identification information of the SIM card corresponding to the destination number, and display the identification information of the SIM card corresponding to the destination number. The identification information of the SIM card may be the SIM card 1 or the SIM card 2.
Wherein, the query request may be sent when the terminal recognizes that the user has input the complete first number.
Further, in order to more quickly display the identification information of the SIM card for the user, the terminal is further configured to determine whether a corresponding relationship between the first number and the identification information of the SIM card is stored in a second storage space preset by the terminal, and if so, display the identification information of the SIM card corresponding to the first number; if not, the inquiry request is sent to the server, and the target number sent by the server is received.
The second storage space preset in the terminal may be a storage space different from a storage space for storing the number of the address book.
And the terminal is also used for storing the corresponding relation between the identification information of the SIM card corresponding to the target number and the first number in a preset second storage space after receiving the target number sent by the server.
Further, the terminal is also used for sending a downloading request to the server;
the server is further configured to store a corresponding relationship between the first number and the target number in a preset first storage space for the terminal after determining the target number corresponding to the first number, and send the corresponding relationship between the first number and the target number stored for the terminal to the terminal after receiving a download request sent by the terminal;
and the terminal is also used for receiving and storing the corresponding relation between the identification information of the SIM card corresponding to the target number and the first number in a preset second storage space.
Fig. 3B is a schematic diagram of a selection process of an SIM card according to an embodiment of the present invention, where a terminal first determines whether a correspondence between a first number and identification information of the SIM card is stored locally, and if so, displays the identification information of the SIM card corresponding to the first number, and if not, sends an inquiry request carrying the first number to a server.
After receiving the query request, the server determines each second number corresponding to the terminal, judges whether a communication record for communication between the first number and each second number exists, determines the second number with the communication record as a target number if the communication record exists, sends the target number to the terminal, and displays the identification information of the SIM card of the target number by the terminal.
If not, determining each first weight value of the first number; and determining the type of the first number according to each first weight value, determining the type of each second number, taking the second number matched with the type of the first number as a target number, sending the target number to the terminal, and displaying the identification information of the SIM card of the target number by the terminal.
Fig. 3C is a diagram of a system for selecting an SIM card according to an embodiment of the present invention, where the system includes a terminal and a server, the terminal may store a correspondence between an SIM card and a number, query the correspondence between the SIM card and the number, show the correspondence for a user, and download the correspondence between the SIM card and the number from the server, and the server may store and query a communication record, query the stored correspondence between the number and the number when a result is not found, send the correspondence between the number and the number to the terminal, and send each correspondence stored for the terminal to the terminal when the terminal downloads the correspondence between the number and the number to the server.
The server in the present invention may be understood as a server including an operator communication database, and all data in the data stored in the server. The server is queried in the carrier communication database at the time of the query.
Example 10:
fig. 4 is a structural diagram of an apparatus for selecting a SIM card according to embodiment 10 of the present invention, which is applied to a server, and the apparatus includes:
a receiving module 41, configured to receive an inquiry request sent by a terminal, where the inquiry request carries a first number to be communicated with the terminal;
a determining module 42, configured to determine, according to each feature that is saved in advance, a first parameter of the first number for each feature, and determine, according to a weight value corresponding to each parameter range of each feature that is saved in advance and a first parameter of each feature, each first weight value corresponding to the first number; determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance;
a determining module 43, configured to determine whether the correlation value is greater than a preset threshold;
the determining module 42 is further configured to determine that the type of the first number is a public number when the determination result of the determining module 43 is yes; when the judgment result of the judgment module 43 is negative, determining that the type of the first number is a private number;
the determining module 42 is further configured to take the second number matched with the type of the first number as a target number according to a predetermined type of each second number stored for the terminal;
a sending module 44, configured to send the destination number to the terminal, so that the terminal displays identification information of an SIM card corresponding to the destination number, where the second number is a number corresponding to each of at least two SIM cards installed on the terminal.
The determining module 42 is further configured to identify, for each second number, a first number of first communication records and a second number of second communication records according to each communication record saved for the second number, where the first communication records record communication information of the second number and a private number, and the second communication records record communication information of the second number and a public number; and if the first number is larger than the second number, determining the type of the second number as a private number, and otherwise, determining the type of the second number as a public number.
The determining module 43 is further configured to determine, for each second number, whether a communication record for communicating the second number with the first number is stored;
if the judgment result of the judgment module 43 is no, the first determination module 42 is triggered.
The determining module 42 is further configured to, when at least one of the determination results of the determining module 43 is yes, if a communication record of communication between the second number and the first number is stored, use the second number as a first candidate number, and determine a target number in at least one of the first candidate numbers;
the sending module 44 is further configured to send the destination number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the destination number.
The determining module 43 is further configured to determine, for each second number, whether a corresponding relationship between the second number and the first number is stored in a preset storage space;
if the judgment result of the judgment module 43 is no, the first determination module 42 is triggered.
The determining module 42 is further configured to, when at least one of the determination results of the determining module 43 is yes, if the correspondence between the second number and the first number is stored, take the second number as a second candidate number, determine a target number in the at least one second candidate number, and send the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number.
The determining module 42 is specifically configured to determine, according to each first weight value and each second weight value of a pre-stored common number of each seed type, a correlation value between the common number of each seed type and the first number;
the determining module 43 is specifically configured to determine whether each correlation value is greater than a preset threshold;
the determining module 42 is further configured to determine that the type of the first number is a public number when at least one of the determination results of the determining module 43 is yes;
the determining module 42 is further configured to determine a target sub-type to which the first number belongs according to a magnitude of a correlation value between the common number of each sub-type and the first number;
the sending module 44 is specifically configured to send the target sub-type to which the first number belongs and the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number and the target sub-type of the first number.
The determining
module 42 is specifically configured to:
determining a correlation value between a common number and said first number, where n is the number of features, B (b)
iSecond weight value corresponding to ith feature representing public number, A (a)
iAnd the first weight value represents a first parameter corresponding to the ith characteristic of the first number.
The judging module 43 is further configured to judge whether a sensitive audio segment exists in at least one audio segment according to at least one audio segment in the call record stored for the first number and a pre-stored sensitive sample, and if the judgment result of the judging module 43 is no, trigger the determining module 42.
Example 11:
fig. 5 is an electronic device provided in embodiment 11 of the present invention, where the electronic device includes: a memory 52 and a processor 51 and transceiver 53;
in fig. 5, the bus architecture may include any number of interconnected buses and bridges, with one or more processors 51, represented by processor 51, and various circuits of memory 52, represented by memory 52, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The transceiver 53 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium. The processor 51 is responsible for managing the bus architecture and general processing, and the memory 52 may store data used by the processor 51 in performing operations.
Alternatively, the processor 51 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).
The transceiver 53 is configured to receive, under the control of the processor 51, an inquiry request sent by a terminal, where the inquiry request carries a first number to be communicated with the terminal;
the processor 51 is configured to read the program in the memory 52, and execute the following processes: determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature; determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance; judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number; according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number matched with the type of the first number as a target number;
the transceiver 53 is configured to send the destination number to the terminal under the control of the processor 51, so that the terminal displays identification information of an SIM card corresponding to the destination number, where the second number is a number corresponding to each of at least two SIM cards installed on the terminal.
The processor 51 is further configured to identify, for each second number, a first number of first communication records and a second number of second communication records according to each communication record saved for the second number, where the first communication records record communication information of the second number and a private number, and the second communication records record communication information of the second number and a public number; and if the first number is larger than the second number, determining the type of the second number as a private number, and otherwise, determining the type of the second number as a public number.
The processor 51 is further configured to determine, for each second number, whether a communication record for communicating the second number with the first number is stored; and if not, performing the subsequent steps.
If at least one of the candidate numbers is yes, the processor 51 is further configured to, if a communication record of communication between the second number and the first number is stored, use the second number as a first candidate number, determine a destination number in at least one of the first candidate numbers, and send the destination number to the terminal, so that the terminal displays identification information of the SIM card corresponding to the destination number.
After determining that the communication record of each second number communicating with the first number is not saved, and before determining that the first number is a first parameter for each feature, the processor 51 is further configured to determine, for each second number, whether a corresponding relationship between the second number and the first number is saved in a preset storage space, and if not, perform subsequent steps.
If at least one of the candidate numbers is yes, the processor 51 is further configured to, if the correspondence between the second number and the first number is stored, use the second number as a second candidate number, determine a destination number in the at least one second candidate number, and send the destination number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the destination number.
The processor 51 is specifically configured to determine, according to each first weight value and each second weight value of a pre-stored common number of each seed type, a correlation value between the common number of each seed type and the first number; judging whether each correlation value is larger than a preset threshold value, and if at least one correlation value is larger than the preset threshold value, determining that the type of the first number is a public number;
if the type of the first number is determined to be a public number, the processor 51 is further configured to determine a target sub-type to which the first number belongs according to a magnitude of a correlation value between the public number of each seed type and the first number;
the transceiver 53 is further configured to send, under the control of the processor 51, the target sub-type to which the first number belongs and the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number and the target sub-type of the first number.
The processor 51 is specifically configured to:
determining a correlation value between a common number and said first number, where n is the number of features, B (b)
iSecond weight value corresponding to ith feature representing public number, A (a)
iAnd the first weight value represents a first parameter corresponding to the ith characteristic of the first number.
After the relevance value is judged to be not greater than the preset threshold value, before the type of the first number is determined to be a private number, the processor 51 is further configured to judge whether a sensitive audio segment exists in at least one audio segment according to at least one audio segment in a call record saved for the first number and a pre-saved sensitive sample, and if not, perform subsequent steps.
Example 12:
fig. 6 is an electronic device provided in embodiment 12 of the present invention, and the electronic device includes: the system comprises a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62 and the memory 63 complete mutual communication through the communication bus 64;
the memory 63 has stored therein a computer program which, when executed by the processor 61, causes the processor 61 to perform the steps of:
receiving an inquiry request sent by a terminal, wherein the inquiry request carries a first number to be communicated with the terminal;
determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature;
determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance;
judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number;
and according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number which is matched with the type of the first number as a target number, and sending the target number to the terminal to enable the terminal to display the identification information of the SIM card corresponding to the target number, wherein the second number is the number which is respectively corresponding to at least two SIM cards installed on the terminal.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
A communication interface 62 for communication between the above-mentioned electronic device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 13:
an embodiment of the present invention provides a computer-readable storage medium storing a computer program executable by an electronic device, and when the program runs on the electronic device, the program causes the electronic device to execute the following steps:
receiving an inquiry request sent by a terminal, wherein the inquiry request carries a first number to be communicated with the terminal;
determining a first parameter of the first number for each feature according to each feature stored in advance, and determining each first weight value corresponding to the first number according to a weight value corresponding to each parameter range of each feature stored in advance and the first parameter of each feature;
determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance;
judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number;
and according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number which is matched with the type of the first number as a target number, and sending the target number to the terminal to enable the terminal to display the identification information of the SIM card corresponding to the target number, wherein the second number is the number which is respectively corresponding to at least two SIM cards installed on the terminal.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
The embodiment of the invention discloses a method, a device, a system, electronic equipment and a medium for selecting an SIM card, wherein the method comprises the following steps: the method comprises the steps that a server receives an inquiry request sent by a terminal, wherein the inquiry request carries a first number to be communicated with the terminal; according to each feature which is saved in advance, determining a first parameter of the first number aiming at each feature, and according to a weight value corresponding to each parameter range which is saved in advance and each first parameter, determining each first weight value corresponding to the first number; determining a correlation value of the public number and the first number according to each first weight value and each second weight value corresponding to the public number stored in advance; judging whether the correlation value is larger than a preset threshold value, if so, determining that the type of the first number is a public number, and otherwise, determining that the type of the first number is a private number; and according to the type of each second number which is predetermined and stored aiming at the terminal, taking the second number which is matched with the type of the first number as a target number, and sending the target number to the terminal to enable the terminal to display the identification information of the SIM card corresponding to the target number, wherein the second number is the number which is respectively corresponding to at least two SIM cards installed on the terminal. In the embodiment of the invention, the server determines each first weight value of the first number according to each characteristic so as to determine the type of the first number, determines the target number matched with the type of the first number according to the type of each second number, and sends the target number to the terminal, so that the terminal displays the identification information of the SIM card corresponding to the target number, and a user can select a more suitable SIM card to communicate with the first number according to the identification information of the SIM card displayed by the terminal, thereby avoiding privacy disclosure, bringing convenience to life and improving user experience.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is to be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining application and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.