CN112929489B - Communication method and device - Google Patents
Communication method and device Download PDFInfo
- Publication number
- CN112929489B CN112929489B CN202110077787.1A CN202110077787A CN112929489B CN 112929489 B CN112929489 B CN 112929489B CN 202110077787 A CN202110077787 A CN 202110077787A CN 112929489 B CN112929489 B CN 112929489B
- Authority
- CN
- China
- Prior art keywords
- sim card
- communication
- target
- contact
- sim
- 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
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application discloses a communication method and device, and belongs to the technical field of communication. The communication method comprises the following steps: receiving a communication request for communicating with a target contact; determining a target SIM card in the N SIM cards according to a target association relationship between the target contact and N user identity identification SIM cards, wherein N is an integer greater than or equal to 2, and the target association relationship comprises a relationship coefficient between the target contact and each SIM card and a historical communication probability between the target contact and each SIM card; and communicating with the target contact through the target SIM card. According to the method and the device, the accuracy of recommending the SIM card can be improved, and meanwhile, the problem that a user uses a wrong SIM card for communication can be avoided.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus.
Background
With the advance of technology, the multi-card multi-standby function gradually becomes the standard configuration of mobile electronic devices, and a user can simultaneously use a Subscriber Identity Module (SIM) card to meet different requirements, such as separating life from work, facilitating work and life of the user, or executing different services through different SIM cards.
The multi-card multi-standby function brings great convenience to users, and simultaneously, the original simple operation becomes complicated, and sometimes even brings unnecessary troubles. When the multi-card multi-standby function is used, a user needs to set operations such as a default calling card and a traffic card, but because obvious distinction is not made among each SIM card, the SIM cards are easily confused when the user uses a plurality of SIM cards for business communication, and then the user easily uses a wrong SIM card for business communication. For example, the SIM card used by the user when making a call is not a common card for communicating with the current contact, and the current contact cannot accurately determine the caller, which is likely to cause unnecessary trouble.
Therefore, when a user uses a plurality of SIM cards to communicate, the problem that the communication is carried out by using wrong SIM cards because the user easily confuses different SIM cards exists in the prior art is solved.
Disclosure of Invention
An object of the embodiments of the present application is to provide a communication method and apparatus, which can solve the problem in the prior art that communication is performed using a wrong SIM card due to confusion of different SIM cards.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a communication method, including:
receiving a communication request for communicating with a target contact;
determining a target SIM card in the N SIM cards according to a target association relationship between the target contact and N user identity identification SIM cards, wherein N is an integer greater than or equal to 2, and the target association relationship comprises a relationship coefficient between the target contact and each SIM card and a historical communication probability between the target contact and each SIM card;
and communicating with the target contact through the target SIM card.
In a second aspect, an embodiment of the present application provides a communication apparatus, including:
the receiving module is used for receiving a communication request for communicating with the target contact person;
an obtaining module, configured to determine a target SIM card among N SIM cards according to a target association relationship between the target contact and N user identity identification SIM cards, where N is an integer greater than or equal to 2, and the target association relationship includes a relationship coefficient between the target contact and each SIM card and a historical communication probability between the target contact and each SIM card;
and the communication module is used for communicating with the target contact person through the target SIM card.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps in the communication method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the communication method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the communication method according to the first aspect.
In the embodiment of the application, when a communication request for communicating with a target contact person through an SIM card is received, the target SIM card is determined in N SIM cards according to the relation coefficient between the target contact person and each SIM card and the historical communication probability respectively corresponding to the communication between the target contact person and each SIM card, so that the used target SIM card can be determined based on the relation between the target contact person and the SIM card and the historical communication behavior of the target contact person, the SIM card recommendation accuracy is improved, and the problem that a user uses an error SIM card for communication is avoided.
Drawings
Fig. 1 is a schematic flowchart of a communication method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of determining a three-dimensional memo attribute space according to a memo information set according to an embodiment of the present application;
FIG. 3 is a partial schematic view of a predetermined relationship map provided by an embodiment of the present application;
fig. 4 is a flowchart of a specific example of a communication method according to an embodiment of the present application;
fig. 5 is a block diagram of a communication device provided in an embodiment of the present application;
FIG. 6 is a block diagram of an electronic device provided by an embodiment of the application;
fig. 7 is a second schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in other sequences than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of objects, e.g., a first object can be one or more. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes the communication method provided in the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a communication method provided in an embodiment of the present application, where the method is applied to an electronic device. As shown in fig. 1, the communication method may include:
In this step, the communication request received by the electronic device is a communication request initiated inside the electronic device and communicated through the SIM card, for example, a communication request initiated by an application of the electronic device may be received. The communication request may be an outgoing call request or a short message sending request, so that a call (phone call) or a short message sending may be performed with a target contact based on the SIM card, or a communication request may be a request for communication (such as a session, file transfer, and the like) through a social application (such as WeChat), where the SIM card is used to provide data traffic so as to implement communication with the target contact.
In this embodiment, after receiving a communication request for communicating with a target contact through an SIM card, a target SIM card may be selected from N SIM cards based on the communication request, and when the target SIM card is selected, a target association relationship between the target contact and the N SIM cards needs to be obtained, where the target association relationship includes a relationship coefficient between the target contact and each SIM card, and a historical communication probability corresponding to the communication between the target contact and each SIM card. The process of determining the target SIM card according to the target incidence relation comprises the following steps: and selecting a target SIM card from the N SIM cards according to the relation coefficient between the target contact and each SIM card and the historical communication probability respectively corresponding to the communication between the target contact and each SIM card.
The value of the relationship coefficient may be less than or equal to 1, and in general, the value of the relationship coefficient is less than 1. The relationship coefficient between the target contact and each SIM card may be a preset coefficient, that is, for the target contact, a preset coefficient may be set between the target contact and each SIM card, where the preset coefficient may be set by a user according to a requirement, and may also be used to represent the association degree between the target contact and the SIM card. For example, the current electronic device includes a SIM card 1 and a SIM card 2, and the user sets the relationship coefficient with the SIM card 1 to 0.6 and sets the relationship coefficient with the SIM card 2 to 0.4 for the contact a according to his own needs. Or the number of times of communication between the contact a and the SIM card 1 is less than the number of times of communication between the contact a and the SIM card 2, which indicates that the degree of association between the contact a and the SIM card 1 is less than the degree of association between the contact a and the SIM card 2, the relationship coefficient with the SIM card 1 may be set to 0.3, and the relationship coefficient with the SIM card 2 may be set to 0.7 according to the degree of association between the contact a and the SIM card.
The relation coefficient between the target contact and the SIM card may also be a coefficient determined based on the degree of association between the contact group corresponding to the target contact and the SIM card, that is, for the target contact, the contact group corresponding to the target contact may be determined, where the contact group may be a group corresponding to a grouping of the electronic device itself, or a group determined by grouping the electronic device according to remark information of the contact (the grouping at this time is an internal grouping, and is not reflected in the display of the contact). After the contact group corresponding to the target contact is determined, the relationship coefficient between the target contact and each SIM card can be determined according to the degree of association between the contact group and each SIM card.
For example, the phone book of the electronic device includes a family group, a friend group, and a colleague group, and the target contact is a sister, it may be determined that the target contact corresponds to the family group, and after the family group is determined, the association degree between the family group and the SIM cards 1 and 2 is obtained, and further the association degree between the target contact and the SIM cards 1 and 2 is obtained, where the association degree between the family group and the SIM cards 1 and 2 may be determined by the number of communications (which may include the number of short message sending and receiving times and the number of calls) between all contacts in the family group and the SIM cards 1 and 2. Or, a certain social application of the electronic device does not group the contacts, the electronic device may perform internal grouping according to the remark information of the contacts for the social application, then determine a friend group corresponding to the target contact, and after determining the friend group corresponding to the target contact, obtain the association degrees between the friend group and the SIM cards 1 and 2, where the association degree between the friend group and the SIM card 1 may be the number of times (for example, the number of sessions and the number of file transmission times) and/or the duration (for a session scenario) of communication performed by all the contacts in the friend group based on the data traffic of the SIM card 1, and the association degree between the friend group and the SIM card 2 may be the number of times and/or the duration of communication performed by all the contacts in the friend group based on the data traffic of the SIM card 2. The relation coefficient is determined based on the association degree between the contact group corresponding to the target contact and each SIM card, so that the target SIM card can be selected according to the communication condition of other contacts related to the target contact.
In this embodiment, the historical communication probabilities respectively corresponding to the target contact communicating with each SIM card may be determined based on the communication record of each SIM card, where the communication record corresponds to the communication request. For the condition that the communication request is an outgoing call request or a short message sending request, the communication record can include a call record and a short message sending and receiving record based on the SIM card, at the moment, when the historical communication probability corresponding to the communication between the target contact and each SIM card is calculated, the total communication times corresponding to the communication between the target contact and each SIM card can be obtained, and then, for each SIM card, the ratio of the communication times corresponding to the current SIM card to the total communication times is calculated. For example, when the communication is performed with the target contact, if the number of calls made through the SIM card 1 is 10, and the number of calls made through the SIM card 2 is 20, the historical communication probability corresponding to the SIM card 1 is 1/3, and the historical communication probability corresponding to the SIM card 2 is 2/3.
For the case that the communication request is a request for communication through a social application, the communication record may include a record corresponding to the corresponding social application when communicating (such as a session and file transfer) based on data traffic of the SIM card. At this time, when the historical communication probabilities respectively corresponding to the communication between the target contact and each SIM card are calculated, the total communication times or the total communication duration (for the session scenario) corresponding to each SIM card when the target contact communicates may be obtained, and then, for each SIM card, the ratio of the communication times corresponding to the current SIM card to the total communication times or the ratio of the communication duration corresponding to the current SIM card to the total communication duration may be calculated. For example, when communicating with a target contact, if the number of data traffic chats through the SIM card 1 is 10 and the number of data traffic chats through the SIM card 2 is 5, the historical communication probability corresponding to the SIM card 1 is 2/3 and the historical communication probability corresponding to the SIM card 2 is 1/3. Or when the communication is carried out with the target contact, the data traffic chat time through the SIM card 1 is 200 minutes, the data traffic chat time through the SIM card 2 is 300 minutes, the historical communication probability corresponding to the SIM card 1 is 2/5, and the historical communication probability corresponding to the SIM card 2 is 3/5.
After selecting a target SIM card among the N SIM cards based on the relationship coefficient between the target contact and each SIM card and the historical communication probability corresponding to the communication between the target contact and each SIM card, step 103 may be performed.
And 103, communicating with the target contact person through the target SIM card.
In this embodiment, after the target SIM card is obtained, communication corresponding to the communication request may be performed with the target contact through the target SIM card. Specifically, for the case of making a call or sending a short message to the target contact through the target SIM card, only the target SIM card may be recommended, that is, the target SIM card is popped up, and the user selects the popped-up target SIM card to communicate with the target contact. For the situation that the data traffic based on the target SIM card is communicated with the target contact, the switching of the data traffic card may be directly performed after the target SIM card is determined, that is, the current SIM card is switched to the target SIM card, so as to use the data traffic of the target SIM card for communication.
Therefore, the communication corresponding to the communication request is carried out by utilizing the acquired target SIM card, the correctness of the SIM card used when the SIM card is communicated with the target contact person is ensured, and the convenience is provided for the user to use multiple cards for communication.
According to the implementation process, when a communication request for communicating with a target contact person through the SIM card is received, the target SIM card is obtained from N SIM cards according to the relation coefficient between the target contact person and each SIM card and the historical communication probability respectively corresponding to the communication between the target contact person and each SIM card, the used target SIM card can be determined based on the relation between the target contact person and the SIM card and the historical communication behavior of the target contact person, the SIM card recommendation accuracy is improved, and meanwhile the problem that a user uses an error SIM card for communication is avoided.
In an optional embodiment of the present application, the determining, according to a target association relationship between the target contact and N SIM cards, a target SIM card in the N SIM cards includes:
for each SIM card, acquiring a first communication probability according to a first relation coefficient between the target contact person and the current SIM card and a first historical communication probability corresponding to the communication between the target contact person and the current SIM card;
and acquiring and determining a target SIM card from the N SIM cards according to the N first communication probabilities.
When the target SIM card is obtained according to the target association relationship between the target contact and the N SIM cards, firstly, for each SIM card, a first communication probability corresponding to the current SIM card is obtained by calculating according to a first relationship coefficient between the target contact and the current SIM card and a first historical communication probability corresponding to the communication between the target contact and the current SIM card.
After the first communication probabilities are obtained for each of the N SIM cards, a target SIM card may be obtained from the N SIM cards according to the N first communication probabilities. When the target SIM card is obtained according to the N first communication probabilities, the N first communication probabilities can be sequenced from large to small, the SIM card corresponding to the first communication probability arranged at the head is determined to be the target SIM card, and at the moment, the most suitable SIM card can be recommended, so that a user can communicate with the target contact person through the most suitable SIM card. The SIM card corresponding to the first communication probability arranged at the last position can be determined as the target SIM card, and because the relation coefficient between the SIM card arranged at the last position and the target contact is smaller and/or the historical communication probability of the target contact based on the SIM card is lower, the SIM card with the lower recommended relation coefficient and/or the historical communication frequency can be realized at the moment, so that the association between the SIM card and the target contact is enhanced. The SIM card corresponding to the first communication probability arranged at a certain middle position can also be determined as the target SIM card, so that the association between the card and the target contact person is enhanced.
In the embodiment of the application, the N first communication probabilities can be determined based on the relation coefficient between the target contact and the SIM card and the historical communication behavior of the target contact, and the target SIM card is screened out from the N SIM cards according to the N first communication probabilities, so that the most suitable SIM card is screened out to communicate with the target contact, or the association between the recommended SIM card and the target contact is improved by recommending the SIM card.
In an optional embodiment of the present application, the obtaining, according to the first relation coefficient between the target contact and the current SIM card and the first historical communication probability corresponding to the communication between the target contact and the current SIM card, a first communication probability includes:
calculating the product of the first relation coefficient and a first weight and the sum of the product of the first historical communication probability and a second weight to obtain the first communication probability;
the first weight is a parameter representing the degree of importance of the relationship coefficient, the second weight is a parameter representing the degree of importance of the historical communication probability, and the sum of the first weight and the second weight is 1.
When the first communication probability is obtained for the current SIM card, the calculation may be performed based on a first relation coefficient of the target contact and the current SIM card, a first weight, a first historical communication probability corresponding to the target contact and the current SIM card communicating, and a second weight, wherein a sum of the first weight and the second weight is equal to 1, and the first weight corresponds to the first relation coefficient, and the second weight corresponds to the first historical communication probability. The first weight is a parameter indicating the degree of importance of the relationship coefficient, and correspondingly, the second weight is a parameter indicating the degree of importance of the history communication probability. When the importance degree of the relation coefficient is greater than the importance degree of the historical communication probability, the first weight is greater than the second weight, and correspondingly, when the importance degree of the relation coefficient is less than the importance degree of the historical communication probability, the first weight is less than the second weight. Since the relationship coefficient may be a coefficient determined based on a degree of association between the contact group and the SIM card, the first weight at this time may be a parameter representing importance of the relevant contact.
When calculating based on the first relationship coefficient of the target contact and the current SIM card, the first weight, the first historical communication probability corresponding to the communication between the target contact and the current SIM card, and the second weight, the product of the first relationship coefficient and the first weight, and the product of the first historical communication probability and the second weight may be calculated, and then the sum of the two products is accumulated to obtain the first communication probability. Therefore, the communication probability can be predicted based on the relation between the contact and the SIM card, the importance degree of the relation between the contact and the SIM card, the historical communication behavior of the contact and the importance degree of the historical communication behavior, and the prediction reliability of the communication probability is ensured.
The process is described below with a specific example, when a user needs to communicate with the contact a through the SIM card, the historical communication probability hx corresponding to the communication between the contact a and the SIM card 1 and the historical communication probability hy corresponding to the communication between the contact a and the SIM card 2 may be obtained. The communication frequency of the contact A and the SIM card 1 is X, the communication frequency of the contact A and the SIM card 2 is Y, the historical communication probability hx corresponding to the communication of the contact A and the SIM card 1 is X/(X + Y), and the historical communication probability hy corresponding to the communication of the contact A and the SIM card 2 is Y/(X + Y). And simultaneously acquiring a relation coefficient R1 of the contact A and the SIM card 1 and a relation coefficient R2 of the contact A and the SIM card 2, wherein for the SIM card 1, the first communication probability is as follows: r1 + first weight + (X/(X + Y)) second weight, and for the SIM card 2, the first communication probability is: r2 + first weight (Y/(X + Y)) + second weight.
After the first weight and the second weight are determined, the first weight may be adjusted upward when the relationship coefficient is regarded, that is, the degree of importance of the relationship coefficient is greater than the degree of importance of the historical communication probability, the second weight may be adjusted upward when the historical communication probability is regarded, that is, the degree of importance of the relationship coefficient is less than the degree of importance of the historical communication probability, and the first weight and the second weight may be set to constant values for the calculation of the first communication probability of the same batch after the adjustment.
In the embodiment of the application, the first communication probability corresponding to the SIM card is calculated based on the product of the relationship coefficient and the first weight and the product of the historical communication probability and the second weight, so that the communication probability can be predicted based on the relationship between the contact and the SIM card, the importance degree of the relationship between the contact and the SIM card, the historical communication behavior of the contact and the importance degree of the historical communication behavior, and the prediction reliability of the communication probability is ensured.
In an optional embodiment of the present application, the determining, according to the N first communication probabilities, the target SIM card in the N SIM cards includes:
for each SIM card, acquiring an adjustment amount corresponding to the communication frequency of the current SIM card based on a preset algorithm, and acquiring a second communication probability according to the sum of the first communication probability and the adjustment amount, wherein the adjustment amount is negatively related to the communication frequency;
and determining the target SIM card in the N SIM cards according to the N second communication probabilities.
When the first communication probability is determined for each SIM card and the target SIM card is determined among the N SIM cards according to the N first communication probabilities, the common SIM card and the non-common SIM card may be balanced by using a preset algorithm. The method specifically comprises the following steps: for each SIM card, acquiring an adjustment amount corresponding to the communication frequency of the current SIM card based on a preset algorithm, and then adding the acquired adjustment amount and the first communication probability to acquire a second communication probability, wherein the more the communication frequency of the current SIM card is, the smaller the corresponding adjustment amount is, at this time, the less adjustment amount can be added to the common SIM card (the SIM card with relatively more communication frequency), the more the adjustment amount is added to the non-common SIM card (the SIM card with relatively less communication frequency), the communication probability corresponding to the non-common card is improved, the communication probability of the common card is prevented from being higher and higher, and the common SIM card and the non-common SIM card are balanced.
The preset algorithm is briefly described below, and can be referred to as the following formula one:
wherein c is an adjustment parameter less than 1, sum all The total number of communication times corresponding to the N SIM cards is shown, and Sumi shows the number of communication times corresponding to the current SIM card. This formula is part of the Upper Confidence interval algorithm (UCT). Because the total communication times corresponding to the N SIM cards are a determined value, the adjustment quantity T is smaller when the communication times corresponding to the current SIM cards are larger, and therefore the SIM cards with the smaller communication times can correspond to a larger adjustment quantity.
The preset algorithm can also be referred to the following formula two:
wherein, sum i And D represents a constant, and the adjustment quantity T is smaller as the communication times corresponding to the current SIM card are larger.
It should be noted that the preset algorithm is not limited to the two listed forms, and a person skilled in the art may set a corresponding formula according to the principle that the adjustment amount T is smaller as the number of communications is larger, and the preset algorithm is not further limited herein.
The following describes a process for balancing a common SIM card with an uncommon SIM card by using a specific example, assuming that the electronic device corresponds to two SIM cards, the total number of communications for SIM card 1 and SIM card 2 is 100, the number of communications for SIM card 1 is 70, the number of communications for SIM card 2 is 30, the first probability of communications for SIM card 1 is 0.695, and the first probability of communications for SIM card 2 is 0.608, if c in the first formula is 0.5, the second probability of communications for SIM card 1 is 0.88052, and the second probability of communications for SIM card 2 is 0.8. In this embodiment, when the first communication probability corresponding to the SIM card 1 is greater than the first communication probability corresponding to the SIM card 2, the second communication probability corresponding to the SIM card 2 is greater than the second communication probability corresponding to the SIM card 1 through adjustment.
For each SIM card, the second communication probability can be obtained according to the adjustment amount and the sum of the first communication probabilities, and then the target SIM card is determined in the N SIM cards according to the obtained N second communication probabilities. When determining the target SIM card, the following steps may be specifically performed: and sequencing the N second communication probabilities in a descending order, and determining that the SIM card corresponding to the first second communication probability is the target SIM card, wherein the most suitable SIM card can be recommended at the moment so that a user can conveniently communicate with the target contact through the most suitable SIM card, and if the first communication probability corresponding to the target SIM card is not the maximum value of the N first communication probabilities, the SIM card after balance adjustment can be determined as the target SIM card. The SIM card corresponding to the second communication probability ranked at the last may also be determined as the target SIM card, and since the adjustment amount corresponding to the SIM card with the largest number of communication times is smaller when performing the balance adjustment, the SIM card corresponding to the second communication probability ranked at the last may have the largest number of communication times, and thus the SIM card is selected. The SIM card corresponding to the second communication probability arranged at a certain middle position can also be determined as the target SIM card, so that the SIM card with moderate communication times and moderate second communication probability can be selected.
In the embodiment of the application, the adjustment amount is determined based on the preset algorithm, so that the N second communication probabilities are determined, the target SIM card is screened according to the N second communication probabilities, the common cards and the non-common cards can be balanced, the target SIM card is determined in different modes, and the selection modes of the target SIM card can be enriched.
In an optional embodiment of the present application, before the receiving a communication request for communicating with a target contact, the method further includes:
establishing a preset relationship map, wherein the preset relationship map comprises association relations between contacts and the N SIM cards, and each contact corresponds to one association relation;
before the determining the target SIM card, the method further includes:
extracting the target association relationship between the target contact and the N SIM cards from the preset relationship map, wherein the relationship coefficient between the target contact and each SIM card is a coefficient determined based on the association degree between the contact group corresponding to the target contact and each SIM card.
Before receiving a communication request for communicating with a target contact through an SIM card, the electronic device may establish a preset relationship map including an association relationship between each contact and N SIM cards, after establishing the preset relationship map, may extract a target association relationship between the target contact and the N SIM cards from the preset relationship map, and then obtain, from the N SIM cards, a target SIM card in communication with the target contact based on the extracted target association relationship.
And the relation coefficient of the target contact person and each SIM card included in the target association relation is determined according to the association degree of the contact person group corresponding to the target contact person and each SIM card. Namely, the N relation coefficients are determined based on the association degree between the contact group corresponding to the target contact and each SIM card, so that the relation coefficients can be obtained according to the communication conditions of other contacts related to the target contact, for example, the relation coefficients with the SIM card are determined according to the total communication times between each contact in the contact group corresponding to the target contact and the SIM card. The contact group here may be a group corresponding to the electronic device itself, or a group determined by the electronic device performing internal grouping according to the contact remark information, where the internal grouping is not embodied on the display of the electronic device.
In the embodiment of the application, the preset relation map is established in advance, after a communication request for communicating with the target contact person through the SIM card is received, the target association relation between the target contact person and the N SIM cards is searched in the preset relation map, and the target SIM card is obtained from the N SIM cards based on the target association relation, so that the communication with the target contact person based on the target SIM card can be ensured.
In an optional embodiment of the present application, the establishing a preset relationship map includes:
acquiring a communication record corresponding to each SIM card and remark information corresponding to each contact;
grouping the contacts according to the remark information corresponding to each contact, acquiring M groups and establishing an M-dimensional remark attribute space, wherein M is an integer greater than or equal to 2;
for each SIM card, acquiring a first remark attribute vector in the M-dimensional remark attribute space according to the communication times corresponding to each group, wherein the communication times corresponding to each group are acquired based on the communication record corresponding to the current SIM card;
for each contact, according to corresponding remark information, obtaining a second remark attribute vector in the M-dimensional remark attribute space, according to a point multiplication of the second remark attribute vector and each first remark attribute vector, obtaining a relation coefficient between the current contact and each SIM card, wherein the relation coefficient is used for representing the association degree between a contact group corresponding to the current contact and the SIM card, and according to a communication record corresponding to each SIM card, obtaining the communication times and the historical communication probability respectively corresponding to the communication between the current contact and each SIM card, and the first remark attribute vector and the second remark attribute vector are probability vectors;
and establishing the preset relationship map according to the communication times and the historical communication probability respectively corresponding to the communication between each contact and each SIM card, the remark information corresponding to each contact, the first remark attribute vector corresponding to each SIM card, the second remark attribute vector corresponding to each contact and the N relationship coefficients corresponding to each contact.
When the preset relationship graph is established, a communication record corresponding to each SIM card and remark information corresponding to each contact need to be acquired, where the communication record corresponds to a communication request, and the communication record may include a call record (call) and a short message record, or the communication record may include a record corresponding to communication performed through a social application based on data traffic of the SIM card. The contact corresponds to the communication record, and may be a contact in a call record (call) and a short message record, or a contact in a certain social application, where the contact corresponds to the N SIM cards.
After the communication record corresponding to each SIM card and the remark information corresponding to each contact are obtained, grouping the contacts according to the remark information corresponding to each contact, obtaining M groups, and then establishing an M-dimensional remark attribute space for the obtained M groups, where M is an integer greater than or equal to 2, that is, the established remark attribute space is at least a two-dimensional space.
When grouping is performed according to the remark information, the group to which each contact belongs can be determined according to the remark information, and then the contacts are grouped, and the grouping can be performed according to the call record, the short message record and the remark information of the contacts corresponding to each SIM card, or the grouping can be performed according to the remark information of the contacts in the communication list. For example, according to the call record, the short message record and the remark information of the contact corresponding to each SIM card, the contacts are divided into 3 groups, which are a family group, a common contact group and a remark-free group, respectively, wherein the contacts without remark information and only number information are divided into the remark-free group, the contacts which are family can be identified according to the remark information and are divided into the family group, the contacts which are other than family are divided into the common contact group according to other contacts, and then a three-dimensional remark attribute space is established according to the 3 groups. Referring to fig. 2, a schematic diagram of determining a three-dimensional remark attribute space according to a remark information set is shown, where three coordinate axes of the three-dimensional remark attribute space are a relative, a frequently-used contact, and no remark, respectively.
After the M-dimensional remark attribute space is established, for each SIM card, the communication times corresponding to each group are obtained according to the communication record corresponding to the current SIM card, and an M-dimensional first remark attribute vector is determined in the remark attribute space according to the communication times corresponding to each group, and the first remark attribute vector is a probability vector, that is, each element in the first remark attribute vector is non-negative, and the sum of each element is 1. The process of determining the first remark attribute vector for the current SIM card is as follows: and acquiring the communication times corresponding to each group, calculating the ratio of the communication times corresponding to the current group to the sum of the communication times of each group aiming at each group, acquiring the corresponding probability, and determining the acquired probability as the corresponding element in the first remark attribute vector. For example, for the SIM card 1, the number of communications corresponding to the frequent contacts group is 30, the number of communications corresponding to the relatives group is 65, the number of communications corresponding to the no-remarks group is 5, the elements in the first remark attribute vector are 0.3 (30/100), 0.65 (65/100), and 0.05 (5/100), and the first remark attribute vector is (0.3, 0.65, 0.05) when the X axis corresponds to the frequent contacts group, the Y axis corresponds to the relatives group, and the Z axis corresponds to the no-remarks group.
It should be noted that, for the case that the communication record includes a record corresponding to the communication performed through the social application based on the data traffic of the SIM card, for the session scenario, when the first remark attribute vector is calculated, the communication duration corresponding to each group may also be obtained, and for each group, the corresponding element is determined according to the ratio of the corresponding communication duration to the total communication duration corresponding to each group.
For each contact, a second remark attribute vector can be obtained in the M-dimensional remark attribute space according to the remark information, where the second remark attribute vector also belongs to a probability vector, and if the remark information of the contact is a miss, the value of the second remark attribute vector is 1 on the relative coordinate axis, and when the X coordinate axis corresponds to the group of frequently-used contacts, the Y coordinate axis corresponds to the group of the relative, and the Z coordinate axis corresponds to the group without remark, the second remark attribute vector is (0, 1, 0).
After a second remark attribute vector is determined for each contact and a first remark attribute vector is determined for each SIM card, a relationship coefficient between the current contact and each SIM card is obtained according to the dot product of the second remark attribute vector and each first remark attribute vector for each contact, and the relationship coefficient at this time is used to represent the degree of association between the contact group corresponding to the current contact and the SIM card. For the contacts in the same group, the corresponding relationship coefficients of the contacts are the same for the same SIM card.
For the relationship coefficient between the current contact and the SIM card, the relationship coefficient is not only related to the current contact, but also related to other contacts in the group to which the current contact belongs. By obtaining the relation coefficient based on the point multiplication of the second remark attribute vector and the first remark attribute vector, the SIM card can be selected based on the historical communication conditions of other contacts related to the current contact.
And aiming at each contact person, the communication times and the historical communication probability which respectively correspond to the communication between the current contact person and each SIM card can be obtained according to the communication record corresponding to each SIM card. When the communication request is a request for communication through the social application, aiming at a conversation scene, the communication time length corresponding to each SIM card when the communication request is communicated with the target contact person can be obtained, and the historical communication probability is calculated according to the communication time length. For the case of calculating the historical communication probability according to the number of communications corresponding to each SIM card, and the case of calculating the historical communication probability according to the communication duration corresponding to each SIM card, reference may be made to the description related to step 102, which is not described herein again.
After the communication times and the historical communication probability corresponding to the communication with each SIM card are obtained, the second remark attribute vector is obtained, and the corresponding N relation coefficients are obtained, a preset relation map may be established according to the communication times and the historical communication probability corresponding to the communication between each contact and each SIM card, the remark information corresponding to each contact, the first remark attribute vector corresponding to each SIM card, the second remark attribute vector corresponding to each contact, and the N relation coefficients corresponding to each contact. Specifically, the relationship (the communication times, the historical communication probability and the relationship coefficient) is formed between the remark information of the contact and the SIM card, the relationship is formed between the second remark attribute vector of the contact and the first remark attribute vector of the SIM card, and the relationship coefficient is determined based on the second remark attribute vector and the first remark attribute vector. Referring to fig. 3, note information corresponding to the contact is a list miss, the mobile phone number of the contact is 139XXXXXXXX, the number of communications between the list miss and the SIM card 1 (177 XXXXXXXX) through the list miss is 30 times, and the corresponding historical communications probability is 0.6, that is, the number of communications between the list miss and the SIM card 2 is 20 times, the first note attribute vector corresponding to the SIM card 1 is (0.3, 0.65, 0.05), the second note attribute vector corresponding to the list miss is (0, 1, 0), and the relationship coefficient between the list miss and the SIM card 1 is 0.65. Fig. 3 only illustrates the association between the sister and the SIM card 1, and the structure of the association between the sister and the SIM card 2 is the same, the parameters are different, and the description is omitted here.
After the preset relationship map is generated, when the target association relationship is extracted from the preset relationship map, the relationship coefficient between the target contact and each SIM card and the historical communication probability respectively corresponding to the communication between the target contact and each SIM card may be extracted.
It should be noted that after the establishment of the preset relationship map is completed, the preset relationship map may be updated after a communication is completed, where the update includes updating of the number of communications, updating of the historical communications probability, updating of the first remark attribute vector corresponding to the SIM card, and updating of the relationship coefficient. By updating the preset relationship map, the target SIM card can be selected based on accurate parameters.
In the embodiment of the application, the preset relation map is established based on the communication times and the historical communication probability corresponding to the communication between each contact and each SIM card, the remark information corresponding to each contact, the first remark attribute vector corresponding to each SIM card, the second remark attribute vector corresponding to each contact and the N relation coefficients corresponding to each contact, the integrity of information contained in the preset relation map can be guaranteed, the preset relation map is updated every time one pass is completed, and the target SIM card can be selected based on accurate parameters.
In an optional embodiment of the present application, the communication request is an outgoing call request or a short message sending request, and after receiving the communication request for communicating with the target contact, the method further includes:
under the condition that both the number information corresponding to the target contact and the number information corresponding to the first SIM card are associated with the target social application, communicating with the target contact through the first SIM card;
wherein the first SIM card is one of the N SIM cards.
Aiming at the condition that the communication request is an outgoing call request or a short message sending request, after the communication request is received, whether number information corresponding to a target contact and number information corresponding to N SIM cards of the electronic equipment are related or not can be detected, if the number information corresponding to the target contact and the number information corresponding to the first SIM card are both related to a target social application, the association between the number information corresponding to the target contact and the number information corresponding to the first SIM card is formed through the target social application, at the moment, the first SIM card can be directly used for communicating with the target contact, namely, the target contact is communicated with the target contact through the first SIM card or short messages are sent to the target contact, so that the target contact can establish communication with a familiar number, the communication experience of the target contact and an electronic equipment user is improved, and the use accuracy of the SIM card can be improved.
For example, the user of the electronic device is in the same company as the contact a, and the number of the contact a and the number of the electronic device SIM card 1 are both applied to a target social application inside the company, that is, the number of the contact a and the number of the SIM card 1 are associated through the target social application inside the company, when the user of the electronic device needs to dial the number of the contact a, the SIM card 1 can be used, so that the contact a knows the source of the communication request more quickly, and the importance degree of the communication can be estimated.
In the implementation process, the target SIM card is directly selected, and information extraction is not carried out in the preset relationship map, so that the preset relationship map is not updated after communication is completed.
In the embodiment of the application, the SIM card with the association with the number information corresponding to the target contact person is used, so that the target contact person can establish communication with the familiar number conveniently, the communication experience between the target contact person and an electronic equipment user is improved, and the use accuracy of the SIM card can be improved.
In an optional embodiment of the present application, the communication request is an outgoing call request or a short message sending request, and further includes, in a case where the target contact only actively establishes communication with the second SIM card:
enhancing the first communication probability corresponding to the second SIM card or the second communication probability corresponding to the second SIM card based on a recommended parameter;
wherein the second SIM card is one of the N SIM cards.
Aiming at the condition that the communication request is an outgoing call request or a short message sending request, when the target contact person only actively establishes communication with the second SIM card, the first communication probability or the second communication probability corresponding to the second SIM card can be enhanced, and as the target contact person only actively establishes communication with the second SIM card, the target contact person only knows the second SIM card or more expects to communicate with the second SIM card, the first communication probability or the second communication probability corresponding to the second SIM card can be enhanced, so that the communication with the target contact person is established through the SIM card familiar to the target contact person.
The process of enhancing the first communication probability or the second communication probability corresponding to the second SIM card based on the recommended parameter may be: calculating the product of the recommended parameter and the first communication probability (or the second communication probability), obtaining the difference between 1 and the recommended parameter, calculating the product of the difference and a preset parameter, then accumulating the sum of the two products to obtain a target communication probability, wherein the recommended parameter is a parameter with the value between 0 and 1, when the SIM card is the second SIM card, the value of the preset parameter is 1, otherwise, the value of the preset parameter is zero, and the calculation mode is adopted for the N SIM cards to obtain the target communication probability. For example, the recommended parameter is 0.4, the first communication probability corresponding to the SIM card 1 is 0.7, the first communication probability corresponding to the SIM card 2 is 0.6, and if the target contact only actively communicates with the SIM card 2 (the SIM card 2 is the second SIM card), the target communication probability corresponding to the SIM card 1 is: 0.7 x 0.4+0.6 x 0=0.28, and the target communication probability corresponding to the sim card 2 is: 0.6 + 0.4+0.6 + 1=0.84, from which it can be seen that the recommended enhancement of the second SIM card can be achieved.
The process of enhancing the first communication probability or the second communication probability corresponding to the second SIM card based on the recommended parameter may further be: and calculating the product of the recommended parameter (more than 1) and the first communication probability (or the second communication probability) for the second SIM card to obtain a target communication probability, and determining the first communication probability (or the second communication probability) as the target communication probability for other SIM cards. For example, the recommended parameter is 1.2, the first communication probability corresponding to the SIM card 1 is 0.7, the first communication probability corresponding to the SIM card 2 is 0.6, if the target contact only actively communicates with the SIM card 2 (the SIM card 2 is the second SIM card), the target communication probability corresponding to the SIM card 1 is 0.7, and the target communication probability corresponding to the SIM card 2 is: 0.6 x 1.2=0.72, from which it can be seen that the recommended enhancement of the second SIM card can be achieved.
The method for enhancing the first communication probability or the second communication probability corresponding to the second SIM card based on the recommended parameter is not limited to the above two methods, and those skilled in the art may also implement the enhancement of the first communication probability or the second communication probability corresponding to the second SIM card by using other means.
In the embodiment of the application, the first communication probability or the second communication probability corresponding to the second SIM card is enhanced based on the recommendation parameter, so that the communication with the target contact person can be established through the SIM card familiar to the target contact person, and the accuracy of SIM card recommendation is ensured.
The communication method of the present application is described below by way of a specific example, and with reference to fig. 4, the method includes:
And step 403, acquiring a target association relationship between the target contact and the N SIM cards in the preset relationship map, and acquiring N first communication probabilities according to the target association relationship.
And step 405, communicating with the target contact person through the target SIM card.
And step 406, communicating with the target contact through the first SIM card.
According to the implementation process, the SIM card for communication can be selected by adopting corresponding measures according to different conditions, the use accuracy of the SIM card is improved, and the communication experience between the target contact and the electronic equipment user is ensured.
In the embodiment of the application, aiming at the condition that the relation coefficient is determined based on the association degree of the contact group corresponding to the contact and each SIM card, the group management can be performed on the contacts according to the relation coefficient, so that the user can conveniently send short messages in groups. According to the method and the device, when the mobile phone number is displayed in a certain application or message and is stopped, the mobile phone number can be automatically matched and replaced with a new number in use, the user is prompted to modify related information after each application is matched, and the user is timely prompted to update the number after synchronous update to the contact person.
According to the overall implementation process of the communication method provided by the embodiment of the application, when a communication request for communicating with a target contact person through a SIM card is received, the target SIM card is determined in the N SIM cards according to the relation coefficient between the target contact person and each SIM card and the historical communication probability respectively corresponding to the communication between the target contact person and each SIM card, so that the target SIM card used can be determined based on the relation between the target contact person and the SIM card and the historical communication behavior of the target contact person, the recommendation accuracy of the SIM card is improved, and the problems of card selection operation during communication through the SIM card and communication by a user using a wrong SIM card are avoided.
Furthermore, the common cards and the non-common cards can be balanced, and the use times of the non-common cards are increased; corresponding measures can be adopted to select the target SIM card according to different scenes, and the use accuracy of the SIM card is improved.
In the communication method provided in the embodiment of the present application, the execution main body may be a communication device or a control module in the communication device for executing the communication method. In the embodiment of the present application, a communication apparatus executing a communication method is taken as an example, and the communication apparatus provided in the embodiment of the present application is described.
Fig. 5 is a schematic block diagram of a communication apparatus provided in an embodiment of the present application, where the communication apparatus is applied to an electronic device.
As shown in fig. 5, the communication apparatus includes:
a receiving module 501, configured to receive a communication request for communicating with a target contact;
a determining module 502, configured to determine a target SIM card in N SIM cards according to a target association relationship between the target contact and N SIM cards, where N is an integer greater than or equal to 2, where the target association relationship includes a relationship coefficient between the target contact and each SIM card, and a historical communication probability between the target contact and each SIM card;
a communication module 503, configured to communicate with the target contact through the target SIM card.
Optionally, the determining module includes:
the first obtaining sub-module is used for obtaining a first communication probability according to a first relation coefficient between the target contact and the current SIM card and a first historical communication probability corresponding to communication between the target contact and the current SIM card aiming at each SIM card;
and the determining submodule is used for determining the target SIM card in the N SIM cards according to the N first communication probabilities.
Optionally, the determining sub-module is further configured to:
aiming at each SIM card, acquiring an adjustment quantity corresponding to the communication times of the current SIM card based on a preset algorithm, and acquiring a second communication probability according to the sum of the first communication probability and the adjustment quantity, wherein the adjustment quantity is negatively related to the communication times;
and determining the target SIM card in the N SIM cards according to the N second communication probabilities.
Optionally, the first obtaining sub-module is further configured to:
calculating the product of the first relation coefficient and a first weight and the sum of the product of the first historical communication probability and a second weight to obtain the first communication probability;
the first weight is a parameter representing the degree of importance of the relationship coefficient, the second weight is a parameter representing the degree of importance of the historical communication probability, and the sum of the first weight and the second weight is 1.
Optionally, the apparatus further comprises:
the establishing module is used for establishing a preset relationship map before the receiving module receives a communication request for communicating with a target contact person, wherein the preset relationship map comprises association relations between the contact persons and the N SIM cards, and each contact person corresponds to one association relation;
the device also includes:
an extracting module, configured to extract the target association relationship between the target contact and the N SIM cards in the preset relationship map before the determining module determines a target SIM card, where a relationship coefficient between the target contact and each SIM card is a coefficient determined based on a degree of association between a contact group corresponding to the target contact and each SIM card.
Optionally, the establishing module includes:
the second obtaining submodule is used for obtaining the communication record corresponding to each SIM card and the remark information corresponding to each contact person;
the acquisition and establishment submodule is used for grouping the contacts according to the remark information corresponding to each contact, acquiring M groups and establishing an M-dimensional remark attribute space, wherein M is an integer greater than or equal to 2;
a third obtaining sub-module, configured to obtain, for each SIM card, a first memo attribute vector in the M-dimensional memo attribute space according to the number of communications corresponding to each group, where the number of communications corresponding to each group is obtained based on a communication record corresponding to a current SIM card;
the processing submodule is used for acquiring a second remark attribute vector in the M-dimensional remark attribute space according to corresponding remark information for each contact, acquiring a relation coefficient between the current contact and each SIM card according to the dot product of the second remark attribute vector and each first remark attribute vector, wherein the relation coefficient is used for representing the association degree between a contact group corresponding to the current contact and the SIM card, and acquiring the communication times and the historical communication probability respectively corresponding to the communication between the current contact and each SIM card according to the communication record corresponding to each SIM card, and the first remark attribute vector and the second remark attribute vector are probability vectors;
and the establishing submodule is used for establishing the preset relationship map according to the communication times and the historical communication probability respectively corresponding to the communication between each contact person and each SIM card, the remark information corresponding to each contact person, the first remark attribute vector corresponding to each SIM card, the second remark attribute vector corresponding to each contact person and the N relationship coefficients corresponding to each contact person.
Optionally, the communication request is an outgoing call request or a short message sending request, and the apparatus further includes:
the processing module is used for communicating with a target contact person through a first SIM card under the condition that the number information corresponding to the target contact person and the number information corresponding to the first SIM card are both associated with a target social application after the receiving module receives a communication request for communicating with the target contact person;
wherein the first SIM card is one of the N SIM cards.
Optionally, the communication request is an outgoing call request or a short message sending request, and the apparatus further includes, in a case that the target contact only actively establishes communication with the second SIM card:
the enhancing module is used for enhancing the first communication probability corresponding to the second SIM card or the second communication probability corresponding to the second SIM card based on recommended parameters;
wherein the second SIM card is one of the N SIM cards.
The communication device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The communication device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The communication device provided in the embodiment of the present application can implement each process implemented in the embodiment of the communication method shown in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the communication method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 710 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein the user input unit 707 is configured to: receiving a communication request for communicating with a target contact; the processor 710 is configured to: determining a target SIM card in the N SIM cards according to a target association relationship between the target contact and N user identity identification SIM cards, wherein N is an integer greater than or equal to 2, and the target association relationship comprises a relationship coefficient between the target contact and each SIM card and a historical communication probability between the target contact and each SIM card; the radio frequency unit 701 is configured to: and communicating with the target contact through the target SIM card.
Optionally, when the target SIM card is determined in the N SIM cards according to the target association relationship between the target contact and the N SIM cards, the processor 710 is further configured to: for each SIM card, acquiring a first communication probability according to a first relation coefficient between the target contact and the current SIM card and a first historical communication probability corresponding to the communication between the target contact and the current SIM card; and determining the target SIM card in the N SIM cards according to the N first communication probabilities.
Optionally, when the target SIM card is determined among the N SIM cards according to the N first communication probabilities, the processor 710 is further configured to: for each SIM card, acquiring an adjustment amount corresponding to the communication frequency of the current SIM card based on a preset algorithm, and acquiring a second communication probability according to the sum of the first communication probability and the adjustment amount, wherein the adjustment amount is negatively related to the communication frequency; and determining the target SIM card in the N SIM cards according to the N second communication probabilities.
Optionally, when obtaining the first communication probability according to the first relation coefficient between the target contact and the current SIM card and the first historical communication probability corresponding to the communication between the target contact and the current SIM card, the processor 710 is further configured to: calculating the product of the first relation coefficient and a first weight and the sum of the product of the first historical communication probability and a second weight to obtain the first communication probability; the first weight is a parameter representing the degree of importance of the relationship coefficient, the second weight is a parameter representing the degree of importance of the historical communication probability, and the sum of the first weight and the second weight is 1.
Optionally, before receiving the communication request for communication with the target contact, the processor 710 is further configured to: establishing a preset relationship map, wherein the preset relationship map comprises association relations between contacts and the N SIM cards, and each contact corresponds to one association relation; before determining the target SIM card, the processor 710 is further configured to: extracting the target association relationship between the target contact and the N SIM cards from the preset relationship map, wherein the relationship coefficient between the target contact and each SIM card is a coefficient determined based on the association degree between the contact group corresponding to the target contact and each SIM card.
Optionally, when the preset relationship map is established, the processor 710 is further configured to: acquiring a communication record corresponding to each SIM card and remark information corresponding to each contact; grouping the contacts according to the remark information corresponding to each contact, acquiring M groups and establishing an M-dimensional remark attribute space, wherein M is an integer greater than or equal to 2; for each SIM card, acquiring a first remark attribute vector in the M-dimensional remark attribute space according to the communication times corresponding to each group, wherein the communication times corresponding to each group are acquired based on the communication record corresponding to the current SIM card; for each contact, according to corresponding remark information, obtaining a second remark attribute vector in the M-dimensional remark attribute space, according to a point multiplication of the second remark attribute vector and each first remark attribute vector, obtaining a relation coefficient between the current contact and each SIM card, wherein the relation coefficient is used for representing the association degree between a contact group corresponding to the current contact and the SIM card, and according to a communication record corresponding to each SIM card, obtaining the communication times and the historical communication probability respectively corresponding to the communication between the current contact and each SIM card, and the first remark attribute vector and the second remark attribute vector are probability vectors; and establishing the preset relation map according to the communication times and the historical communication probability respectively corresponding to the communication between each contact and each SIM card, the remark information corresponding to each contact, the first remark attribute vector corresponding to each SIM card, the second remark attribute vector corresponding to each contact and the N relation coefficients corresponding to each contact.
Optionally, the communication request is an outgoing call request or a short message sending request, and after the communication request for communicating with the target contact is received, under the condition that both the number information corresponding to the target contact and the number information corresponding to the first SIM card are associated with the target social application, the radio frequency unit 701 is further configured to: communicating with the target contact through the first SIM card; wherein the first SIM card is one of the N SIM cards.
Optionally, the communication request is an outgoing call request or a short message sending request, and in a case that the target contact only actively establishes communication with the second SIM card, the processor 710 is further configured to: enhancing the first communication probability corresponding to the second SIM card or the second communication probability corresponding to the second SIM card based on a recommended parameter; wherein the second SIM card is one of the N SIM cards.
In this way, when a communication request for communicating with a target contact person through the SIM card is received, the target SIM card is determined in the N SIM cards according to the relation coefficient between the target contact person and each SIM card and the historical communication probability respectively corresponding to the communication between the target contact person and each SIM card, so that the used target SIM card can be determined based on the relation between the target contact person and the SIM card and the historical communication behavior of the target contact person, the SIM card recommendation accuracy is improved, and the problems of card selection operation during communication through the SIM card and communication by a user using an error SIM card are avoided.
Furthermore, the common cards and the non-common cards can be balanced, and the use times of the non-common cards are increased; and corresponding measures can be adopted to select the target SIM card aiming at different scenes, so that the use accuracy of the SIM card is improved.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in further detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the communication method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing communication method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (9)
1. A method of communication, comprising:
receiving a communication request for communicating with a target contact;
determining a target SIM card in the N SIM cards according to a target association relationship between the target contact and N user identity identification SIM cards, wherein N is an integer greater than or equal to 2, and the target association relationship comprises a relationship coefficient between the target contact and each SIM card and a historical communication probability between the target contact and each SIM card; the relation coefficient comprises a coefficient determined based on the association degree of each SIM card and the contact group corresponding to the target contact;
communicating with the target contact through the target SIM card;
before the receiving the communication request for communicating with the target contact, the method further comprises:
establishing a preset relationship map, wherein the preset relationship map comprises association relations between contacts and the N SIM cards, and each contact corresponds to one association relation;
before the determining the target SIM card, the method further includes:
extracting the target association relationship between the target contact and the N SIM cards from the preset relationship map, wherein the relationship coefficient between the target contact and each SIM card is a coefficient determined based on the association degree between the contact group corresponding to the target contact and each SIM card.
2. The communication method according to claim 1, wherein the determining a target SIM card among N SIM cards according to a target association relationship between the target contact and the N SIM cards comprises:
for each SIM card, acquiring a first communication probability according to a first relation coefficient between the target contact person and the current SIM card and a first historical communication probability corresponding to the communication between the target contact person and the current SIM card;
and determining the target SIM card in the N SIM cards according to the N first communication probabilities.
3. The communication method according to claim 2, wherein the determining the target SIM card among the N SIM cards according to the N first communication probabilities includes:
for each SIM card, acquiring an adjustment amount corresponding to the communication frequency of the current SIM card based on a preset algorithm, and acquiring a second communication probability according to the sum of the first communication probability and the adjustment amount, wherein the adjustment amount is negatively related to the communication frequency;
and determining the target SIM card in the N SIM cards according to the N second communication probabilities.
4. The communication method according to claim 2, wherein the obtaining a first communication probability according to the first relation coefficient between the target contact and the current SIM card and a first historical communication probability corresponding to the communication between the target contact and the current SIM card comprises:
calculating the product of the first relation coefficient and a first weight and the sum of the product of the first historical communication probability and a second weight to obtain the first communication probability;
the first weight is a parameter representing the degree of importance of the relationship coefficient, the second weight is a parameter representing the degree of importance of the historical communication probability, and the sum of the first weight and the second weight is 1.
5. The communication method according to claim 1, wherein the establishing the preset relationship map comprises:
acquiring a communication record corresponding to each SIM card and remark information corresponding to each contact;
grouping the contacts according to the remark information corresponding to each contact, acquiring M groups and establishing an M-dimensional remark attribute space, wherein M is an integer greater than or equal to 2;
for each SIM card, acquiring a first remark attribute vector in the M-dimensional remark attribute space according to the communication times corresponding to each group, wherein the communication times corresponding to each group are acquired based on the communication record corresponding to the current SIM card;
for each contact, according to corresponding remark information, obtaining a second remark attribute vector in the M-dimensional remark attribute space, according to the dot product of the second remark attribute vector and each first remark attribute vector, obtaining a relation coefficient between the current contact and each SIM card, wherein the relation coefficient is used for representing the association degree between a contact group corresponding to the current contact and the SIM card, and according to a communication record corresponding to each SIM card, obtaining the communication times and the historical communication probability respectively corresponding to the communication between the current contact and each SIM card, and the first remark attribute vector and the second remark attribute vector are probability vectors;
and establishing the preset relationship map according to the communication times and the historical communication probability respectively corresponding to the communication between each contact and each SIM card, the remark information corresponding to each contact, the first remark attribute vector corresponding to each SIM card, the second remark attribute vector corresponding to each contact and the N relationship coefficients corresponding to each contact.
6. The communication method according to claim 1, wherein the communication request is an outgoing call request or a short message sending request, and after receiving the communication request for communicating with the target contact, the method further comprises:
under the condition that the number information corresponding to the target contact and the number information corresponding to the first SIM card are both associated with the target social application, communicating with the target contact through the first SIM card;
wherein the first SIM card is one of the N SIM cards.
7. The communication method according to claim 3, wherein the communication request is an outgoing call request or a short message sending request, and in the case that the target contact only actively establishes communication with the second SIM card, the method further comprises:
enhancing the first communication probability corresponding to the second SIM card or the second communication probability corresponding to the second SIM card based on a recommended parameter;
wherein the second SIM card is one of the N SIM cards.
8. A communications apparatus, comprising:
the receiving module is used for receiving a communication request for communicating with a target contact person;
the determining module is used for determining a target SIM card in the N SIM cards according to a target association relationship between the target contact and N user identity identification SIM cards, wherein N is an integer greater than or equal to 2, and the target association relationship comprises a relationship coefficient between the target contact and each SIM card and historical communication probability between the target contact and each SIM card; the relation coefficient comprises a coefficient determined based on the association degree of each SIM card and the contact group corresponding to the target contact;
the communication module is used for communicating with the target contact person through the target SIM card;
the establishing module is used for establishing a preset relationship map before the receiving module receives a communication request for communicating with a target contact person, wherein the preset relationship map comprises association relations between the contact persons and the N SIM cards, and each contact person corresponds to one association relation;
an extracting module, configured to extract the target association relationship between the target contact and the N SIM cards in the preset relationship map before the determining module determines a target SIM card, where a relationship coefficient between the target contact and each SIM card is a coefficient determined based on a degree of association between a contact group corresponding to the target contact and each SIM card.
9. The communications apparatus of claim 8, wherein the means for determining comprises:
the first obtaining sub-module is used for obtaining a first communication probability according to a first relation coefficient between the target contact and the current SIM card and a first historical communication probability corresponding to communication between the target contact and the current SIM card aiming at each SIM card;
and the determining submodule is used for determining the target SIM card in the N SIM cards according to the N first communication probabilities.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110077787.1A CN112929489B (en) | 2021-01-20 | 2021-01-20 | Communication method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110077787.1A CN112929489B (en) | 2021-01-20 | 2021-01-20 | Communication method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112929489A CN112929489A (en) | 2021-06-08 |
CN112929489B true CN112929489B (en) | 2022-10-14 |
Family
ID=76165268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110077787.1A Active CN112929489B (en) | 2021-01-20 | 2021-01-20 | Communication method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112929489B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115484563B (en) * | 2021-06-16 | 2024-06-25 | 中国移动通信有限公司研究院 | Session processing method, device, equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104994232A (en) * | 2015-07-03 | 2015-10-21 | 努比亚技术有限公司 | Method and device for realizing communication application processing |
CN105554215A (en) * | 2015-12-09 | 2016-05-04 | 小米科技有限责任公司 | Automatic selection dialing method and device, and mobile terminal |
CN106161793A (en) * | 2016-06-30 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | Originating method based on contact person's packet and device |
CN109561406A (en) * | 2017-09-25 | 2019-04-02 | 中国移动通信有限公司研究院 | A kind of selection method of SIM card, device, system, electronic equipment and medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8275768B2 (en) * | 2008-02-04 | 2012-09-25 | International Business Machines Corporation | Method and system for selecting a communication means |
-
2021
- 2021-01-20 CN CN202110077787.1A patent/CN112929489B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104994232A (en) * | 2015-07-03 | 2015-10-21 | 努比亚技术有限公司 | Method and device for realizing communication application processing |
CN105554215A (en) * | 2015-12-09 | 2016-05-04 | 小米科技有限责任公司 | Automatic selection dialing method and device, and mobile terminal |
CN106161793A (en) * | 2016-06-30 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | Originating method based on contact person's packet and device |
CN109561406A (en) * | 2017-09-25 | 2019-04-02 | 中国移动通信有限公司研究院 | A kind of selection method of SIM card, device, system, electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN112929489A (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111857500B (en) | Message display method and device, electronic equipment and storage medium | |
EP3958110B1 (en) | Speech control method and apparatus, terminal device, and storage medium | |
US10567533B2 (en) | System and method to determine the presence status of a registered user on a network | |
CN106572255B (en) | Intelligent information sorting device and method and mobile terminal | |
EP3644177B1 (en) | Input method, device, apparatus, and storage medium | |
CN112083854A (en) | Application program running method and device | |
US20240281595A1 (en) | Message Correction Method, Electronic Device, and Non-transitory Readable Storage Medium | |
CN115687303A (en) | Data information migration method, device, equipment and storage medium | |
CN112929489B (en) | Communication method and device | |
CN113268179B (en) | Session message processing method, device, equipment and storage medium | |
CN113993092A (en) | Emergency call method, device, mobile terminal and network side equipment | |
CN111968639B (en) | Voice control method, voice control device, electronic equipment and storage medium | |
CN115460180A (en) | Video call processing method and device and electronic equipment | |
CN113138702A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN113992784B (en) | Audio and video call method, device, computer equipment and storage medium | |
CN113114559B (en) | Information display method, device and equipment | |
CA2807781C (en) | Method and apparatus pertaining to presenting incoming-call identifiers | |
CN111273786B (en) | Intelligent input method and device | |
CN109639878B (en) | Mobile terminal contact searching method, mobile terminal and storage medium | |
CN113885713A (en) | Method and device for generating handwriting formula | |
CN113672152A (en) | Display method and device | |
CN113807540A (en) | Data processing method and device | |
CN111694999A (en) | Information processing method and device and electronic equipment | |
CN113691443B (en) | Image sharing method and device and electronic equipment | |
CN117278710B (en) | Call interaction function determining method, device, equipment and 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 |