CN106817472B - A communication account determination method, terminal device and server - Google Patents
A communication account determination method, terminal device and server Download PDFInfo
- Publication number
- CN106817472B CN106817472B CN201510872215.7A CN201510872215A CN106817472B CN 106817472 B CN106817472 B CN 106817472B CN 201510872215 A CN201510872215 A CN 201510872215A CN 106817472 B CN106817472 B CN 106817472B
- Authority
- CN
- China
- Prior art keywords
- communication
- communication account
- contact
- account
- feature vector
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
- H04M1/2745—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
- H04M1/27453—Directories allowing storage of additional subscriber data, e.g. metadata
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/66—Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
- H04M1/663—Preventing unauthorised calls to a telephone set
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Library & Information Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种通讯账号确定方法、终端设备及服务器,用以解决现有技术人工设置黑名单或白名单,设置规则的尺度无法掌控,对通讯控制不理想的问题。终端设备根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。
The invention discloses a communication account determination method, a terminal device and a server, which are used to solve the problems of manually setting a blacklist or a whitelist in the prior art, the scale of setting rules cannot be controlled, and the communication control is not ideal. According to the second communication account in the control list, the terminal device adaptively filters out the similarity with the second communication account in the control list from the communication accounts of other contacts in the address book except all the second communication accounts. A higher communication account is recommended to the user as the communication account to be added to the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种通讯账号确定方法、终端设备及服务器。The present invention relates to the field of communication technologies, and in particular, to a method for determining a communication account, a terminal device and a server.
背景技术Background technique
随着通信技术的发展,用户不仅可以采用传统的通信方式(例如通过手机呼叫)与其他联系人进行通讯,还可以通过各类通信应用(例如微信、飞信以及腾讯聊天应用QQ等)与其他联系人进行通讯。With the development of communication technology, users can not only communicate with other contacts through traditional communication methods (such as calling through mobile phones), but also communicate with other contacts through various communication applications (such as WeChat, Fetion, Tencent chat application QQ, etc.) people communicate.
然而,用户在实际应用中,可能会出现以下状况,因此,需要对终端设备的通讯进行控制:用户在某段时间内不愿受到打扰,又担心错漏重要通讯联系人的呼叫;或者,用户不愿受到指定通讯联系人的打扰等。However, in practical applications, the user may encounter the following situations. Therefore, it is necessary to control the communication of the terminal device: the user does not want to be disturbed for a certain period of time, and is worried about missing calls from important communication contacts; or, the user does not Willing to be disturbed by the designated communication contact, etc.
为了实现用户对通讯进行控制,该用户可以在各类终端设备或通信应用中,设置黑名单或者白名单,其中,设置黑名单,可以使该终端设备或通信应用永久或在指定时间内,禁止该黑名单中的通讯联系人与该用户通讯;而设置白名单,可以使该终端设备或通信应用永久或在指定时间内,仅允许该白名单中的通讯联系人与该用户通讯。In order to realize the user's control of communication, the user can set a blacklist or whitelist in various terminal devices or communication applications, wherein setting a blacklist can make the terminal device or communication application permanently or within a specified period of time to prohibit The communication contacts in the blacklist communicate with the user; and by setting a whitelist, the terminal device or communication application can be made to allow only the communication contacts in the whitelist to communicate with the user permanently or within a specified period of time.
例如,在智能手机中设置勿扰模式,在勿扰模式下,用户可以手动设置勿扰时间,并添加白名单,所述白名单中的通讯联系人可以为用户的父母、重要领导、指定通讯账号对应的通讯联系人等。又例如,在智能手机中设置黑名单,所述黑名单中的通讯联系人的账户标识为指定地区,或者指定群组。For example, a do not disturb mode is set on a smartphone. In the do not disturb mode, the user can manually set the do not disturb time and add a whitelist. The communication contacts in the whitelist can be the user's parents, important leaders, designated communication Communication contacts corresponding to the account, etc. For another example, a blacklist is set in the smart phone, and the accounts of the communication contacts in the blacklist are identified as a designated region or a designated group.
然而,由于黑名单或者白名单是人工设置的,设置规则的尺度无法掌控,这样,导致黑名单或白名单中会出现遗漏或错加部分通讯联系人,对通讯控制不理想。However, since the blacklist or whitelist is manually set, the scale of setting rules cannot be controlled, so that some communication contacts may be omitted or wrongly added in the blacklist or whitelist, which is not ideal for communication control.
发明内容SUMMARY OF THE INVENTION
本发明提供一种通讯账号确定方法、终端设备及服务器,用以解决现有技术中人工设置黑名单或白名单,设置规则的尺度无法掌控,对通讯控制不理想的问题。The present invention provides a communication account determination method, terminal equipment and server, which are used to solve the problems in the prior art that a blacklist or a whitelist is manually set, the scale of the setting rules cannot be controlled, and the communication control is not ideal.
本发明提供的具体技术方案如下:The specific technical scheme provided by the present invention is as follows:
第一方面,提供了一种通讯账号确定方法,包括:In a first aspect, a method for determining a communication account is provided, including:
终端设备获取设置的控制名单,所述控制名单为针对所述终端设备对应的第一通讯账号设置的,包括至少一个第二通讯账号,所述控制名单为黑名单或白名单,每个第二通讯账号为所述终端设备保存的所述第一通讯账号的通讯录中联系人的通讯账号;The terminal device obtains a set control list, the control list is set for the first communication account corresponding to the terminal device, and includes at least one second communication account, and the control list is a blacklist or a whitelist, and each second The communication account is the communication account of the contact person in the address book of the first communication account saved by the terminal device;
所述终端设备获取所述第一通讯账号的历史通讯记录;obtaining, by the terminal device, a historical communication record of the first communication account;
所述终端设备根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,其中,所述特征向量中的特征包括以下任意一项或组合:所述第一通讯账号呼叫该联系人的通讯账号的次数、该联系人的通讯账号呼叫所述第一通讯账号的次数和所述第一通讯账号与该联系人的通讯账号之间的总通讯次数;并将生成的所有特征向量进行组合,生成第一特征集;The terminal device generates a feature vector for the communication account of each contact person in the address book according to the acquired historical communication record, wherein the feature in the feature vector includes any one or combination of the following: The number of times the first communication account calls the contact's communication account, the number of times the contact's communication account calls the first communication account, and the total communication between the first communication account and the contact's communication account times; and combine all the generated feature vectors to generate the first feature set;
所述终端设备对所述第一特征集中每个所述特征进行归一化处理,生成第二特征集;The terminal device performs normalization processing on each of the features in the first feature set to generate a second feature set;
所述终端设备确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度;The terminal device determines, in the second feature set, the similarity between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
所述终端设备根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,并将选择出的通讯账号作为待添加至所述控制名单的通讯账号。According to the determined similarity, the terminal device selects a preset first number of communication accounts among the communication accounts of the contacts in the address book, and uses the selected communication accounts as the communication accounts to be added to the control list. communication account.
这样,所述终端设备可以根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。In this way, according to the second communication account in the control list, the terminal device can adaptively filter out the communication accounts of other contacts in the address book except all the second communication accounts, which are related to the second communication account in the control list. A communication account with a higher similarity of the communication accounts is recommended to the user as the communication account to be added to the control list, which meets the user's needs and improves the efficiency of the user's communication control.
结合第一方面,在第一方面的第一种可能的实现方式中,在所述终端设备针对所述通讯录中的每个联系人的通讯账号,生成特征向量之前,还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, before the terminal device generates a feature vector for the communication account of each contact in the address book, the method further includes:
所述终端设备获取设置的勿扰时间;The terminal device obtains the set Do Not Disturb time;
所述终端设备根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,包括:The terminal device generates a feature vector for the communication account of each contact person in the address book according to the acquired historical communication record, including:
所述终端设备根据获取到的所述历史通讯记录、所述勿扰时间,针对所述通讯录中的每个联系人的通讯账号,生成特征向量;The terminal device generates a feature vector for the communication account of each contact in the address book according to the acquired historical communication record and the do not disturb time;
所述特征向量中的特征还包括以下任意一项或组合:在所述勿扰时间内所述第一通讯账号呼叫该联系人的通讯账号的次数、在所述勿扰时间以外所述第一通讯账号呼叫该联系人的通讯账号的次数、在所述勿扰时间内该联系人的通讯账号呼叫所述第一通讯账号的次数、在所述勿扰时间以外该联系人的通讯账号呼叫所述第一通讯账号的次数、在所述勿扰时间内所述第一通讯账号与该联系人的通讯账号之间的总通讯次数,以及在所述勿扰时间以外所述第一通讯账号与该联系人的通讯账号之间的总通讯次数。The features in the feature vector also include any one or a combination of the following: the number of times the first communication account calls the contact's communication account during the do not disturb time, the first communication account outside the do not disturb time. The number of times the communication account calls the communication account of the contact, the number of times the communication account of the contact calls the first communication account within the do not disturb time, the number of times the communication account of the contact calls the first communication account outside the do not disturb time. The number of times of the first communication account, the total number of communication between the first communication account and the contact's communication account during the do not disturb time, and the first communication account and the contact outside the do not disturb time. The total number of communications between the contact's communications accounts.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,在所述终端设备针对所述通讯录中的每个联系人的通讯账号,生成特征向量之前,还包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the terminal device is directed to the communication account of each contact in the address book , before generating the feature vector, also includes:
所述终端设备获取所述通讯录中每个联系人的通讯账号的对应的账号信息,所述账号信息包括以下任意一项或组合:联系人标识、联系人所属工作单位标识、联系人所属群组标识;The terminal device obtains the corresponding account information of the communication account of each contact in the address book, and the account information includes any one or a combination of the following: a contact identifier, an identifier of the work unit to which the contact belongs, and a group to which the contact belongs. group ID;
所述终端设备根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,包括:The terminal device generates a feature vector for the communication account of each contact person in the address book according to the acquired historical communication record, including:
所述终端设备转换每个所述账号信息,包括:所述终端设备按照预设的联系人标识与数字编号的对应关系,将每个所述账号信息中的联系人标识转换为数字编号;并按照预设的联系人所属工作单位标识与数字编号的对应关系,将每个所述账号信息中的联系人所属工作单位标识转换为数字编号;以及按照预设的联系人所属群组标识与数字编号的对应关系,将每个所述账号信息中的联系人所属群组标识转换为数字编号;Converting each of the account information by the terminal device includes: converting, by the terminal device, the contact identifier in each of the account information into a digital number according to a preset correspondence between the contact identifier and the digital number; and According to the preset correspondence between the identification of the work unit to which the contact belongs and the numerical number, the identification of the work unit to which the contact belongs in each of the account information is converted into a numerical number; and according to the preset identification of the group to which the contact belongs and the number The corresponding relationship of the numbers, converting the group identification to which the contact person belongs in each described account information into a digital number;
所述终端设备根据获取到的所述历史通讯记录、所述转换后的每个账号信息,针对所述通讯录中的每个联系人通讯账号,生成特征向量;The terminal device generates a feature vector for each contact communication account in the address book according to the obtained historical communication record and the converted information of each account;
所述特征向量中的特征还包括:联系人标识转换后的数字编号、联系人所属工作单位标识转换后的数字编号,以及联系人所属群组标识转换后的数字编号。The features in the feature vector further include: the digital number converted from the contact identifier, the converted digital number from the work unit identifier to which the contact belongs, and the converted digital number from the group identifier to which the contact belongs.
结合第一方面、第一方面的第一种、第二种可能的实现方式中的任一项,在第一方面的第三种可能的实现方式中,所述终端设备确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度,包括:With reference to any one of the first aspect, the first possible implementation manner of the first aspect, and the second possible implementation manner, in a third possible implementation manner of the first aspect, the terminal device determines that the second In the feature set, the similarity between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts includes:
所述终端设备计算在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离;The terminal device calculates, in the second feature set, the distance between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
所述终端设备根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,确定每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度。The terminal device determines the feature vector corresponding to the communication account of each contact according to the distance between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each of the second communication accounts Similarity of feature vectors corresponding to each of the second communication accounts.
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述终端设备根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,确定每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度,包括:In combination with the third possible implementation manner of the first aspect, in the fourth possible implementation manner of the first aspect, the terminal device is associated with each of the The distance between the feature vectors corresponding to the second communication accounts, and determining the similarity between the feature vectors corresponding to the communication accounts of each of the contacts and the feature vectors corresponding to each of the second communication accounts, including:
所述终端设备针对每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号的对应的特征向量之间的距离,执行以下步骤:The terminal device performs the following steps for the distance between the feature vector corresponding to the communication account of each of the contacts and the corresponding feature vector of each of the second communication accounts:
将所述距离与该联系人的通讯账号对应的特征向量中特征的数目的商,作为相似度参数;Taking the quotient of the number of features in the feature vector corresponding to the distance and the communication account of the contact as a similarity parameter;
将1和所述相似度参数之间的差,作为该联系人的通讯账号对应的特征向量与该第二通讯账号对应的特征向量的相似度。The difference between 1 and the similarity parameter is taken as the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to the second communication account.
结合第一方面、第一方面的第一种至第四种可能的实现方式中的任一项,在第一方面的第五种可能的实现方式中,所述终端设备根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,包括:With reference to the first aspect and any one of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, the terminal device is based on the determined similarity degree, in the communication account of the contact person of the said address book, select the communication account of preset first number, including:
所述终端设备针对所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号,执行以下步骤:The terminal device performs the following steps for the communication account of each contact except all the second communication accounts in the address book:
将该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第二数目的相似度;并Sorting the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account, and filtering out the similarity of the preset second number with the highest value; and
将筛选出的所述第二数目的相似度的平均值,作为该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened out second number as the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to all the second communication accounts in the control list;
所述终端设备将所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最高的所述第一数目的相似度平均值;The terminal device compares the average value of the similarity between the feature vector corresponding to the communication account of each contact except all the second communication accounts in the address book and the feature vector corresponding to all the second communication accounts in the control list. Sorting, filtering out the average similarity of the first number with the highest value;
所述终端设备确定筛选出的每个相似度平均值对应的联系人的通讯账号。The terminal device determines the communication account of the contact corresponding to each of the filtered average similarity degrees.
结合第一方面、第一方面的第一种至第五种可能的实现方式中的任一项,在第一方面的第六种可能的实现方式中,当所述第二通讯账号的数目为至少两个时,在所述终端设备确定在所述第二特征集中,每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度之后,还包括:With reference to the first aspect and any one of the first to fifth possible implementations of the first aspect, in the sixth possible implementation of the first aspect, when the number of the second communication accounts is When there are at least two, after the terminal device determines the similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account in the second feature set, the method further includes:
所述终端设备针对每个第二通讯账号,执行以下步骤:The terminal device performs the following steps for each second communication account:
将该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第三数目的相似度;并Sorting the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and filtering out the similarity of the highest preset third number; and
将筛选出的所述第三数目的相似度的平均值,作为该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened out third number as the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts;
所述终端设备将每个所述第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最低的所述第四数目的相似度平均值;The terminal device sorts the average value of the similarity between the feature vector corresponding to each of the second communication accounts and the feature vectors corresponding to all other second communication accounts, and filters out the similarity of the fourth number with the lowest value. average value;
所述终端设备确定筛选出的每个相似度平均值对应的第二通讯账号,并将确定的第二通讯账号作为所述控制名单中待删除的通讯账号。The terminal device determines the second communication account corresponding to each of the filtered average similarity degrees, and uses the determined second communication account as the communication account to be deleted in the control list.
这样,所述终端还可以在所述控制名单中,自适应筛选出与其他第二通讯账号的相似度较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。In this way, the terminal can also adaptively screen out a communication account with a low similarity to other second communication accounts in the control list, and recommend it to the user as the communication account to be deleted in the control list, so that , which can remind the user whether there is a communication account added to the control list by mistake in the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
结合第一方面、第一方面的第一种至第四种可能的实现方式中的任一项,在第一方面的第七种可能的实现方式中,在所述终端设备选择所述第一数目的通讯账号之前,还包括:With reference to the first aspect and any one of the first to fourth possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the terminal device selects the first Before the number of communication accounts, it also includes:
所述终端设备接收服务器发送的每个所述联系人的通讯账号对所述第一通讯账号的重要性指数;receiving, by the terminal device, the importance index of the communication account of each contact to the first communication account sent by the server;
所述终端设备根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,包括:According to the determined similarity, the terminal device selects a preset first number of communication accounts among the communication accounts of the contacts in the address book, including:
所述终端设备根据每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度,以及每个联系人的通讯账号对所述第一通讯账号的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号。The terminal device is based on the similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account, and the importance index of the communication account of each contact to the first communication account. , in the communication accounts of the contacts in the address book, select a preset first number of communication accounts.
结合第一方面的第七种可能的实现方式,在第一方面的第八种可能的实现方式中,当所述控制名单为白名单时,所述终端设备根据所述确定的相似度,以及每个所述联系人的通讯账号对所述第一通讯账号的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,包括:With reference to the seventh possible implementation manner of the first aspect, in the eighth possible implementation manner of the first aspect, when the control list is a white list, the terminal device, according to the determined similarity, and The importance index of the communication account of each contact to the first communication account, among the communication accounts of the contacts in the address book, selecting a preset first number of communication accounts, including:
所述终端设备针对所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号,执行以下步骤:The terminal device performs the following steps for the communication account of each contact except all the second communication accounts in the address book:
将该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第五数目的相似度;并Sort the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account, and filter out the similarity of the highest preset fifth number; and
将筛选出的所述第五数目的相似度的平均值,作为该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the fifth number screened out as the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to all the second communication accounts in the control list;
所述终端设备将该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值、该联系人的通讯账号对所述第一通讯账号的重要性指数的乘积,作为该联系人的推荐权重;The average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vectors corresponding to all the second communication accounts in the control list, and the difference between the communication account of the contact and the first communication account. The product of the importance index is used as the recommendation weight of the contact;
所述终端设备将所述通讯录中除所有第二通讯账号以外的每个联系人的推荐权重进行排序,筛选出取值最高的所述第一数目的推荐权重;The terminal device sorts the recommendation weights of each contact except all the second communication accounts in the address book, and filters out the first number of recommendation weights with the highest value;
所述终端设备确定筛选出的每个推荐权重对应的联系人的通讯账号。The terminal device determines the communication account of the contact corresponding to each of the selected recommendation weights.
这样,所述终端设备可以在所述控制名单为白名单时,根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,综合考虑与第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高,且对所述第一通讯账号的重要性较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。In this way, when the control list is a white list, the terminal device may, according to the second communication account in the control list, among the communication accounts of other contacts except all the second communication accounts in the address book, comprehensively consider the The similarity of the second communication account and the importance to the first communication account are adaptively screened out to have a high similarity with the second communication account in the control list, and the importance of the first communication account to the first communication account. The communication account with high reliability is recommended to the user as the communication account to be added to the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
结合一方面的第七种或第八种可能的实现方式,在第一方面的第九种可能的实现方式中,当所述控制名单为白名单,且所述第二通讯账号的数目为至少两个时,在所述终端设备接收所述服务器发送的每个联系人的通讯账号对所述第一通讯账号的重要性指数之后,还包括:In combination with the seventh or eighth possible implementation manner of the first aspect, in the ninth possible implementation manner of the first aspect, when the control list is a white list, and the number of the second communication accounts is at least When there are two, after the terminal device receives the importance index of each contact's communication account to the first communication account sent by the server, it further includes:
所述终端设备针对每个第二通讯账号,执行以下步骤:The terminal device performs the following steps for each second communication account:
将该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第六数目的相似度;并Sorting the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and filtering out the similarity of the preset sixth number with the highest value; and
将筛选出的所述第六数目的相似度的平均值,作为该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened sixth number as the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts;
所述终端设备将该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值、该第二通讯账号对所述第一通讯账号的重要性指数的乘积,作为该第二通讯账号的删除权重;The terminal device is the product of the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts, and the importance index of the second communication account to the first communication account, as the deletion weight of the second communication account;
所述终端设备将每个第二通讯账号的删除权重进行排序,筛选出取值最低的所述第七数目的删除权重;The terminal device sorts the deletion weights of each second communication account, and filters out the seventh number of deletion weights with the lowest value;
所述终端设备确定筛选出的每个删除权重对应的第二通讯账号,并将确定的第二通讯账号作为所述控制名单中待删除的通讯账号。The terminal device determines the second communication account corresponding to each of the selected deletion weights, and uses the determined second communication account as the communication account to be deleted in the control list.
这样,在所述控制控制名单为白名单时,所述终端设备可以在所述控制名单中,综合考虑与其他第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与其他第二通讯账号的相似度较低,且对所述第一通讯账号的重要性较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。In this way, when the control control list is a white list, the terminal device can comprehensively consider the similarity with other second communication accounts and the importance to the first communication account in the control list, and adapt to the Screening out a communication account with a low degree of similarity with other second communication accounts and a relatively low importance to the first communication account, and recommending it to the user as the communication account to be deleted in the control list. In this way, it is possible to The user is reminded whether there is a communication account wrongly added to the control list in the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
第二方面,提供了一种通讯账号确定方法,包括:In a second aspect, a method for determining a communication account is provided, including:
服务器确定在通讯录中每两个联系人的通讯账号之间的通讯信息,所述通讯录为一终端设备对应的第一通讯账号的,所述通讯信息包括以下任意一项:该两个联系人的通讯账号之间的总通讯次数、该两个联系人的通讯账号中第三通讯账号呼叫第四通讯账号的次数、该两个联系人的通讯账号中所述第四通讯账号呼叫所述第三通讯账号的次数;The server determines the communication information between the communication accounts of every two contacts in the address book, where the address book is the first communication account corresponding to a terminal device, and the communication information includes any one of the following: The total number of communication between the communication accounts of the two contacts, the number of times that the third communication account in the communication accounts of the two contacts calls the fourth communication account, the communication account of the two contacts calls the fourth communication account The number of third communication accounts;
所述服务器针对所述通讯录中的每个联系人的通讯账号,根据该联系人的通讯账号与包含所有联系人的通讯账号之间的通讯信息,生成重要性向量;并将生成的所有重要性向量进行组合,生成第三特征集;For the communication account of each contact person in the address book, the server generates an importance vector according to the communication information between the communication account of the contact person and the communication account including all contacts; The sex vectors are combined to generate a third feature set;
所述服务器对所述第三特征集中每个联系人的通讯账号对应的重要性向量进行归一化处理,生成第四特征集;The server normalizes the importance vector corresponding to the communication account of each contact in the third feature set to generate a fourth feature set;
所述服务器根据所述第四特征集,以及预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;The server calculates, according to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account, the relationship between the communication account of each contact and the first communication account. Account importance index;
所述服务器将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备。The server sends the importance index of each contact's communication account to the first communication account to the terminal device.
这样,所述服务器在将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备后,所述终端设备才可以在所述控制名单为白名单时,根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,综合考虑与第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高,且对所述第一通讯账号的重要性较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。In this way, after the server sends the importance index of each contact's communication account to the first communication account to the terminal device, the terminal device can, when the control list is a white list, The second communication account in the control list, among the communication accounts of other contacts except all the second communication accounts in the address book, comprehensively consider the similarity with the second communication account and the importance to the first communication account , and adaptively screen out a communication account with a higher similarity to the second communication account in the control list and a higher importance to the first communication account, and use it as a communication account to be added to the control list The account is recommended to the user, which meets the user's needs and improves the efficiency of the user's communication control.
结合第二方面,在第二方面的第一种可能的实现方式中,所述服务器根据所述第四特征集,以及预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数,包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the server determines, according to the fourth feature set, and the preset importance of the communication account of each contact to the first communication account The initial value of the sex index is used to calculate the importance index of each contact's communication account to the first communication account, including:
所述服务器根据所述第四特征集、预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,初次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;According to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account, the server initially calculates the relationship between the communication account of each contact and the first communication account. Account importance index;
在初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,与预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值不同时,所述服务器根据所述第四特征集,以及初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,继续下一次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数,如此重复,直至计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数不再变化;When the initial value of the importance index of each contact's communication account to the first communication account obtained by initial calculation is different from the preset initial value of the importance index of each contact's communication account to the first communication account , the server, according to the fourth feature set, and the importance index of each contact's communication account to the first communication account obtained by the initial calculation, continues to calculate the next time the communication account of each contact is to the described first communication account. The importance index of the first communication account is repeated until the calculated importance index of each contact's communication account to the first communication account no longer changes;
所述服务器将计算得到的不再变化的每个联系人的通讯账号对所述第一通讯账号的重要性指数,作为最终的每个联系人的通讯账号对所述第一通讯账号的重要性指数。The server will calculate the importance index of the communication account of each contact that does not change to the first communication account as the final importance of the communication account of each contact to the first communication account index.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述服务器初次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数时,所述初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,满足以下公式:In combination with the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the server initially calculates the importance index of the communication account of each contact to the first communication account , the importance index of each contact's communication account to the first communication account obtained by the initial calculation satisfies the following formula:
Rnew=IE*(1-d)/N+d*TR*Rold R new =IE*(1-d)/N+d*TR*R old
其中,Rnew为所述初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,d为扰动因子,N为所述通讯录中联系人的通讯账号的数目,TR为所述第四特征集,Rold为预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值。Wherein, R new is the importance index of the communication account of each contact obtained by the initial calculation to the first communication account, d is the disturbance factor, and N is the number of communication accounts of the contact in the address book, TR is the fourth feature set, and R old is a preset initial value of the importance index of each contact's communication account to the first communication account.
第三方面,提供了一种终端设备,所述终端设备具有实现上述通讯账号确定方法中的终端设备行为的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现,所述硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, a terminal device is provided. The terminal device has a function of implementing the behavior of the terminal device in the above communication account determination method. The hardware or software includes one or more modules corresponding to the above functions.
一种可能的实现方式中,所述终端设备包括收发器、处理器、总线以及存储器,收发器、处理器以及存储器通过总线相互连接,其中:In a possible implementation manner, the terminal device includes a transceiver, a processor, a bus, and a memory, and the transceiver, the processor, and the memory are connected to each other through a bus, wherein:
所述收发器,用于与服务器进行数据通信;the transceiver, used for data communication with the server;
所述处理器,用于获取设置的控制名单,所述控制名单为针对所述终端设备对应的第一通讯账号设置的,包括至少一个第二通讯账号,所述控制名单为黑名单或白名单,每个第二通讯账号为所述终端设备保存的所述第一通讯账号的通讯录中联系人的通讯账号;The processor is configured to obtain a set control list, where the control list is set for the first communication account corresponding to the terminal device, including at least one second communication account, and the control list is a blacklist or a whitelist , each second communication account is the communication account of the contact person in the address book of the first communication account saved by the terminal device;
获取所述第一通讯账号的历史通讯记录;obtaining the historical communication record of the first communication account;
根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,其中,所述特征向量中的特征包括以下任意一项或组合:所述第一通讯账号呼叫该联系人的通讯账号的次数、该联系人的通讯账号呼叫所述第一通讯账号的次数和所述第一通讯账号与该联系人的通讯账号之间的总通讯次数;并将生成的所有特征向量进行组合,生成第一特征集;According to the acquired historical communication records, a feature vector is generated for the communication account of each contact in the address book, wherein the features in the feature vector include any one or a combination of the following: the first The number of times the communication account calls the communication account of the contact, the number of times the communication account of the contact calls the first communication account, and the total number of communication between the first communication account and the communication account of the contact; and All the generated feature vectors are combined to generate the first feature set;
对所述第一特征集中每个所述特征进行归一化处理,生成第二特征集;normalizing each of the features in the first feature set to generate a second feature set;
确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度;Determine, in the second feature set, the similarity between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,并将选择出的通讯账号作为待添加至所述控制名单的通讯账号;According to the determined similarity, among the communication accounts of the contacts in the address book, a preset first number of communication accounts are selected, and the selected communication account is used as the communication account to be added to the control list;
所述存储器,用于存放程序。The memory is used to store programs.
另一种可能的实现方式中,所述终端设备包括:In another possible implementation manner, the terminal device includes:
获取单元,用于获取设置的控制名单,所述控制名单为针对所述终端设备对应的第一通讯账号设置的,包括至少一个第二通讯账号,所述控制名单为黑名单或白名单,每个第二通讯账号为所述终端设备保存的所述第一通讯账号的通讯录中联系人的通讯账号;以及The obtaining unit is configured to obtain a set control list, the control list is set for the first communication account corresponding to the terminal device, and includes at least one second communication account, and the control list is a blacklist or a whitelist, and each control list is a blacklist or a whitelist. A second communication account is the communication account of the contact person in the address book of the first communication account saved by the terminal device; and
获取所述第一通讯账号的历史通讯记录;obtaining the historical communication record of the first communication account;
处理单元,用于根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,其中,所述特征向量中的特征包括以下任意一项或组合:所述第一通讯账号呼叫该联系人的通讯账号的次数、该联系人的通讯账号呼叫所述第一通讯账号的次数和所述第一通讯账号与该联系人的通讯账号之间的总通讯次数;并将生成的所有特征向量进行组合,生成第一特征集;并A processing unit, configured to generate a feature vector for the communication account of each contact person in the address book according to the obtained historical communication record, wherein the feature in the feature vector includes any one or combination of the following : the number of times the first communication account calls the contact’s communication account, the number of times the contact’s communication account calls the first communication account, and the total number of times between the first communication account and the contact’s communication account the number of communications; and combine all the generated feature vectors to generate the first feature set; and
对所述第一特征集中每个所述特征进行归一化处理,生成第二特征集;以及normalizing each of the features in the first feature set to generate a second feature set; and
确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度;Determine, in the second feature set, the similarity between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
选择单元,用于根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,并将选择出的通讯账号作为待添加至所述控制名单的通讯账号。A selection unit, configured to select a preset first number of communication accounts from among the communication accounts of the contacts in the address book according to the determined similarity, and use the selected communication account as a communication account to be added to the control List of communication accounts.
第四方面,提供了一种服务器,所述服务器具有实现上述通讯账号确定方法中的服务器行为的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现,所述硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, a server is provided, the server has a function of implementing the server behavior in the above communication account determination method, the function can be implemented by hardware, or can be implemented by executing corresponding software through hardware, the hardware or software can be implemented. It includes one or more modules corresponding to the above functions.
一种可能的实现方式中,所述服务器包括收发器、处理器、总线以及存储器,收发器、处理器以及存储器通过总线相互连接,其中:In a possible implementation manner, the server includes a transceiver, a processor, a bus, and a memory, and the transceiver, the processor, and the memory are connected to each other through a bus, wherein:
所述收发器,用于与终端设备进行数据通信;the transceiver, used for data communication with the terminal device;
所述处理器,用于确定在通讯录中每两个联系人的通讯账号之间的通讯信息,所述通讯录为一终端设备对应的第一通讯账号的,所述通讯信息包括以下任意一项:该两个联系人的通讯账号之间的总通讯次数、该两个联系人的通讯账号中第三通讯账号呼叫第四通讯账号的次数、该两个联系人的通讯账号中所述第四通讯账号呼叫所述第三通讯账号的次数;The processor is configured to determine the communication information between the communication accounts of every two contacts in the address book, where the address book is the first communication account corresponding to a terminal device, and the communication information includes any one of the following: Item: the total number of communication between the communication accounts of the two contacts, the number of times the third communication account calls the fourth communication account in the communication accounts of the two contacts, the number of times described in the communication accounts of the two contacts 4. The number of times the communication account calls the third communication account;
针对所述通讯录中的每个联系人的通讯账号,根据该联系人的通讯账号与包含所有联系人的通讯账号之间的通讯信息,生成重要性向量;并将生成的所有重要性向量进行组合,生成第三特征集;For the communication account of each contact in the address book, an importance vector is generated according to the communication information between the communication account of the contact and the communication account including all contacts; and all the generated importance vectors are combined to generate a third feature set;
对所述第三特征集中每个联系人的通讯账号对应的重要性向量进行归一化处理,生成第四特征集;Normalizing the importance vector corresponding to the communication account of each contact in the third feature set to generate a fourth feature set;
根据所述第四特征集,以及预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;Calculate the importance of each contact's communication account to the first communication account according to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account Sex index;
将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备;sending the importance index of each contact's communication account to the first communication account to the terminal device;
所述存储器,用于存放程序。The memory is used to store programs.
另一种可能的实现方式中,所述服务器包括:In another possible implementation manner, the server includes:
确定单元,用于确定在通讯录中每两个联系人的通讯账号之间的通讯信息,所述通讯录为一终端设备对应的第一通讯账号的,所述通讯信息包括以下任意一项:该两个联系人的通讯账号之间的总通讯次数、该两个联系人的通讯账号中第三通讯账号呼叫第四通讯账号的次数、该两个联系人的通讯账号中所述第四通讯账号呼叫所述第三通讯账号的次数;A determining unit, configured to determine the communication information between the communication accounts of every two contacts in the address book, where the address book is a first communication account corresponding to a terminal device, and the communication information includes any of the following: The total number of communications between the communication accounts of the two contacts, the number of times the third communication account in the communication accounts of the two contacts calls the fourth communication account, the fourth communication in the communication accounts of the two contacts The number of times the account calls the third communication account;
处理单元,用于针对所述通讯录中的每个联系人的通讯账号,根据该联系人的通讯账号与包含所有联系人的通讯账号之间的通讯信息,生成重要性向量;并将生成的所有重要性向量进行组合,生成第三特征集;并The processing unit is used to generate an importance vector for the communication account of each contact person in the address book according to the communication information between the communication account of the contact person and the communication account including all contacts; all importance vectors are combined to generate a third feature set; and
对所述第三特征集中每个联系人的通讯账号对应的重要性向量进行归一化处理,生成第四特征集;以及Normalizing the importance vector corresponding to the communication account of each contact in the third feature set to generate a fourth feature set; and
根据所述第四特征集,以及预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;Calculate the importance of each contact's communication account to the first communication account according to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account Sex index;
发送单元,用于将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备。A sending unit, configured to send the importance index of each contact's communication account to the first communication account to the terminal device.
采用本发明提供的通讯账号确定方法,所述终端设备可以根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。With the method for determining a communication account provided by the present invention, the terminal device can adaptively filter out the communication accounts of other contacts except all the second communication accounts in the address book according to the second communication account in the control list. A communication account with a higher similarity in the second communication account in the control list is recommended to the user as the communication account to be added to the control list, which meets the user's needs and improves the efficiency of the user's communication control.
附图说明Description of drawings
图1为本发明实施例提供的一种实现通讯账号确定方法的网络架构图;1 is a network architecture diagram for realizing a method for determining a communication account according to an embodiment of the present invention;
图2为本发明实施例提供的一种终端设备的结构示意图;FIG. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
图3为本发明实施例提供的一种服务器的结构示意图;3 is a schematic structural diagram of a server according to an embodiment of the present invention;
图4为本发明实施例提供的一种通讯账号确定方法的流程图;4 is a flowchart of a method for determining a communication account provided by an embodiment of the present invention;
图5为本发明实施例提供的一种通讯账号确定方法的流程图;5 is a flowchart of a method for determining a communication account provided by an embodiment of the present invention;
图6为本发明实施例提供的一种终端设备的示意图;FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present invention;
图7为本发明实施例提供的一种终端设备的结构示意图;FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
图8为本发明实施例提供的一种服务器的结构示意图。FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例提供一种通讯账号确定方法及终端设备,用以解决现有技术中人工设置黑名单或白名单,设置规则的尺度无法掌控,对通讯控制不理想的问题。其中,本发明所述方法和控制器基于同一发明构思,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。Embodiments of the present invention provide a communication account determination method and terminal device, which are used to solve the problems in the prior art that a blacklist or a whitelist is manually set, the scale of setting rules cannot be controlled, and communication control is not ideal. Wherein, the method and the controller of the present invention are based on the same inventive concept. Since the principles of the method and the device for solving problems are similar, the implementation of the device and the method can be referred to each other, and repeated descriptions will not be repeated here.
本发明实施例中,与第一通讯账号对应的终端设备获取控制名单,其中,该控制名单中包括至少一个第二通讯账号,且每个第二通讯账号为所述第一通讯账号的通讯录中联系人的通讯账号;所述终端设备根据所述第一通讯账号的历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,并将生成的所有特征向量进行组合,生成第一特征集;对所述第一特征集中每个特征进行归一化处理后,生成第二特征集,所述终端设备确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度;并根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,并将选择出的通讯账号作为待添加至所述控制名单的通讯账号。这样,所述终端设备可以根据历史通讯记录中的特征,生成第一特征集,对所述第一特征集中每个特征进行归一化处理后,生成第二特征集;根据在所述第二特征集中,所述通讯录中每个联系人对应的特征向量与控制名单中每个第二通讯账号对应的特征向量相似度,筛选出所述第一数目的通讯账号,作为所述终端自适应计算推荐待添加至所述控制名单的通讯账号,推荐的通讯账号与所述控制名单中的第二通讯账号的相似度较高,符合用户的需求,可以更好地对通讯控制。In this embodiment of the present invention, the terminal device corresponding to the first communication account acquires a control list, wherein the control list includes at least one second communication account, and each second communication account is an address book of the first communication account The communication account of the contact person in the contact list; the terminal device generates a feature vector for the communication account of each contact person in the address book according to the historical communication record of the first communication account, and performs all the generated feature vectors for combined to generate a first feature set; after normalizing each feature in the first feature set, a second feature set is generated, and the terminal device determines that in the second feature set, each contact The similarity between the feature vector corresponding to the communication account and the feature vector corresponding to each of the second communication accounts; and according to the determined similarity, in the communication account of the contact person in the address book, select the preset No. A number of communication accounts, and the selected communication account is used as the communication account to be added to the control list. In this way, the terminal device can generate a first feature set according to the features in the historical communication records, and after normalizing each feature in the first feature set, generate a second feature set; In the feature set, the feature vector corresponding to each contact in the address book is similar to the feature vector corresponding to each second communication account in the control list, and the first number of communication accounts are screened out as the terminal adaptive The communication account to be added to the control list is calculated and recommended, and the recommended communication account has a high similarity with the second communication account in the control list, which meets the needs of the user and can better control communication.
本发明实施例提供的通讯账号确定方法,适用于图1所示的通讯网络架构中,该网络架构中包括:服务器101,以及多个终端设备,如图中的计算机102、移动通讯设备103和平板电脑104等,其中,The method for determining a communication account provided by the embodiment of the present invention is applicable to the communication network architecture shown in FIG. 1 . The network architecture includes: a
所述服务器101,用于对终端设备发起的呼叫进行处理,以及保存在两个终端设备建立连接后之间的通讯信息,例如该两个终端的通讯账号之间的通讯时长,通讯次数等;The
所述终端设备可以为如图中所示的计算机102,移动通讯设备103,还可以为其他设备,如平板电脑104,固定电话等。其中,当所述终端设备为手持可移动设备(例如移动通讯设备103、平板电脑104等)时,所述终端设备与所述服务器101之间通过无线链路建立连接,而当所述终端设备为计算机102 或其他需要物理连接的网络设备时,所述终端设备与所述服务器101之间通过物理链路连接。The terminal device may be a
其中,当所述终端设备通过移动通讯业务呼叫其他终端设备时,所述终端设备为移动通讯设备103、固定电话等,所述服务器101为移动通信中的网络设备;当与一个通讯账号对应的所述终端设备,通过各类应用呼叫与另一个通讯账号对应的其他终端设备,则所述终端设备为计算机102或各类智能终端设备,所述服务器为所述各类应用的服务器。Wherein, when the terminal device calls other terminal devices through the mobile communication service, the terminal device is a
参阅图2所示,本发明实施例提供了一种终端设备,该终端设备200包括:收发器201、处理器202、总线203以及存储器204,其中:Referring to FIG. 2, an embodiment of the present invention provides a terminal device. The
收发器201、处理器202以及存储器204通过总线203相互连接;总线203 可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图2中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
收发器201用于与其它设备如其他的终端设备,以及服务器进行数据通信。The
处理器202用于实现通讯账号确定方法,包括:The
获取设置的控制名单,所述控制名单为针对所述终端设备200对应的第一通讯账号设置的,包括至少一个第二通讯账号,所述控制名单为黑名单或白名单,每个第二通讯账号为所述终端设备200保存的所述第一通讯账号的通讯录中联系人的通讯账号;Obtain a set control list, the control list is set for the first communication account corresponding to the
获取所述第一通讯账号的历史通讯记录;obtaining the historical communication record of the first communication account;
根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,其中,所述特征向量中的特征包括以下任意一项或组合:所述第一通讯账号呼叫该联系人的通讯账号的次数、该联系人的通讯账号呼叫所述第一通讯账号的次数和所述第一通讯账号与该联系人的通讯账号之间的总通讯次数;并将生成的所有特征向量进行组合,生成第一特征集;According to the acquired historical communication records, a feature vector is generated for the communication account of each contact in the address book, wherein the features in the feature vector include any one or a combination of the following: the first The number of times the communication account calls the communication account of the contact, the number of times the communication account of the contact calls the first communication account, and the total number of communication between the first communication account and the communication account of the contact; and All the generated feature vectors are combined to generate the first feature set;
对所述第一特征集中每个所述特征进行归一化处理,生成第二特征集;normalizing each of the features in the first feature set to generate a second feature set;
确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度;Determine, in the second feature set, the similarity between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,并将选择出的通讯账号作为待添加至所述控制名单的通讯账号。According to the determined similarity, among the communication accounts of the contacts in the address book, a preset first number of communication accounts are selected, and the selected communication accounts are used as the communication accounts to be added to the control list.
可选的,在针对所述通讯录中的每个联系人的通讯账号,生成特征向量之前,还包括:Optionally, before generating a feature vector for the communication account of each contact person in the address book, the method further includes:
获取设置的勿扰时间;Get the set Do Not Disturb time;
根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,包括:According to the obtained historical communication records, a feature vector is generated for the communication account of each contact in the address book, including:
根据获取到的所述历史通讯记录、所述勿扰时间,针对所述通讯录中的每个联系人的通讯账号,生成特征向量;According to the obtained historical communication record and the Do Not Disturb time, a feature vector is generated for the communication account of each contact in the address book;
所述特征向量中的特征还包括以下任意一项或组合:在所述勿扰时间内所述第一通讯账号呼叫该联系人的通讯账号的次数、在所述勿扰时间以外所述第一通讯账号呼叫该联系人的通讯账号的次数、在所述勿扰时间内该联系人的通讯账号呼叫所述第一通讯账号的次数、在所述勿扰时间以外该联系人的通讯账号呼叫所述第一通讯账号的次数、在所述勿扰时间内所述第一通讯账号与该联系人的通讯账号之间的总通讯次数,以及在所述勿扰时间以外所述第一通讯账号与该联系人的通讯账号之间的总通讯次数。The features in the feature vector also include any one or a combination of the following: the number of times the first communication account calls the contact's communication account during the do not disturb time, the first communication account outside the do not disturb time. The number of times the communication account calls the communication account of the contact, the number of times the communication account of the contact calls the first communication account within the do not disturb time, the number of times the communication account of the contact calls the first communication account outside the do not disturb time. The number of times of the first communication account, the total number of communication between the first communication account and the contact's communication account during the do not disturb time, and the first communication account and the contact outside the do not disturb time. The total number of communications between the contact's communications accounts.
可选的,在针对所述通讯录中的每个联系人的通讯账号,生成特征向量之前,还包括:Optionally, before generating a feature vector for the communication account of each contact person in the address book, the method further includes:
获取所述通讯录中每个联系人的通讯账号的对应的账号信息,所述账号信息包括以下任意一项或组合:联系人标识、联系人所属工作单位标识、联系人所属群组标识;Obtain the corresponding account information of the communication account of each contact in the address book, where the account information includes any one or a combination of the following: a contact identifier, an identifier of a work unit to which the contact belongs, and an identifier of a group to which the contact belongs;
根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,包括:According to the obtained historical communication records, a feature vector is generated for the communication account of each contact in the address book, including:
所述终端设备转换每个所述账号信息,包括:按照预设的联系人标识与数字编号的对应关系,将每个所述账号信息中的联系人标识转换为数字编号;并按照预设的联系人所属工作单位标识与数字编号的对应关系,将每个所述账号信息中的联系人所属工作单位标识转换为数字编号;以及按照预设的联系人所属群组标识与数字编号的对应关系,将每个所述账号信息中的联系人所属群组标识转换为数字编号;Converting each of the account information by the terminal device includes: converting the contact identifier in each of the account information into a digital number according to the preset correspondence between the contact identifier and the digital number; The corresponding relationship between the identification of the work unit to which the contact belongs and the numerical number, converting the identification of the work unit to which the contact belongs in each of the account information into a numerical number; and according to the preset corresponding relationship between the identification of the group to which the contact belongs and the numerical number , convert the group identification to which the contact person belongs in each described account information into a digital number;
根据获取到的所述历史通讯记录、所述转换后的每个账号信息,针对所述通讯录中的每个联系人通讯账号,生成特征向量;According to the obtained historical communication records and the converted account information, a feature vector is generated for each contact communication account in the address book;
所述特征向量中的特征还包括:联系人标识转换后的数字编号、联系人所属工作单位标识转换后的数字编号,以及联系人所属群组标识转换后的数字编号。The features in the feature vector further include: the digital number converted from the contact identifier, the converted digital number from the work unit identifier to which the contact belongs, and the converted digital number from the group identifier to which the contact belongs.
可选的,确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度,包括:Optionally, determine the similarity between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts in the second feature set, including:
计算在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离;Calculate, in the second feature set, the distance between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,确定每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度。According to the distance between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account, determine the feature vector corresponding to the communication account of each contact and each The similarity of the feature vector corresponding to the second communication account.
可选的,根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,确定每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度,包括:Optionally, according to the distance between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts, determine the feature vector corresponding to the communication account of each of the contacts The similarity of the feature vector corresponding to each of the second communication accounts, including:
所述终端设备针对每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号的对应的特征向量之间的距离,执行以下步骤:The terminal device performs the following steps for the distance between the feature vector corresponding to the communication account of each of the contacts and the corresponding feature vector of each of the second communication accounts:
将所述距离与该联系人的通讯账号对应的特征向量中特征的数目的商,作为相似度参数;Taking the quotient of the number of features in the feature vector corresponding to the distance and the communication account of the contact as a similarity parameter;
将1和所述相似度参数之间的差,作为该联系人的通讯账号对应的特征向量与该第二通讯账号对应的特征向量的相似度。The difference between 1 and the similarity parameter is taken as the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to the second communication account.
可选的,根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,包括:Optionally, according to the determined similarity, among the communication accounts of the contacts in the address book, a preset first number of communication accounts are selected, including:
针对所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号,执行以下步骤:For the communication accounts of each contact in the address book except all the second communication accounts, perform the following steps:
将该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第二数目的相似度;并Sorting the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account, and filtering out the similarity of the preset second number with the highest value; and
将筛选出的所述第二数目的相似度的平均值,作为该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened out second number as the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to all the second communication accounts in the control list;
将所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最高的所述第一数目的相似度平均值;Sort the feature vectors corresponding to the communication accounts of each contact person except all second communication accounts in the address book and the average similarity of the feature vectors corresponding to all the second communication accounts in the control list, and filter out take the average value of the similarity of the first number with the highest value;
确定筛选出的每个相似度平均值对应的联系人的通讯账号。Determine the communication account of the contact corresponding to each of the filtered average similarity degrees.
可选的,当所述第二通讯账号的数目为至少两个时,在确定在所述第二特征集中,每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度之后,还包括:Optionally, when the number of the second communication accounts is at least two, it is determined that in the second feature set, the feature vector corresponding to the communication account of each contact and the feature corresponding to each second communication account After the similarity of the vectors, it also includes:
针对每个第二通讯账号,执行以下步骤:For each secondary communication account, perform the following steps:
将该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第三数目的相似度;并Sorting the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and filtering out the similarity of the highest preset third number; and
将筛选出的所述第三数目的相似度的平均值,作为该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened out third number as the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts;
将每个第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最低的所述第四数目的相似度平均值;Sort the feature vector corresponding to each second communication account with the average similarity of the feature vectors corresponding to all other second communication accounts, and filter out the average similarity of the fourth number with the lowest value;
确定筛选出的每个相似度平均值对应的第二通讯账号,并将确定的第二通讯账号作为所述控制名单中待删除的通讯账号。Determining the second communication account corresponding to each of the filtered average similarity degrees, and using the determined second communication account as the communication account to be deleted in the control list.
可选的,在选择所述第一数目的通讯账号之前,还包括:Optionally, before selecting the first number of communication accounts, the method further includes:
接收服务器发送的每个所述联系人的通讯账号对所述第一通讯账号的重要性指数;receiving the importance index of each contact's communication account to the first communication account sent by the server;
根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,包括:According to the determined similarity, among the communication accounts of the contacts in the address book, a preset first number of communication accounts are selected, including:
根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度,以及每个所述联系人的通讯账号对所述第一通讯账号的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号。According to the similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account, and the importance of the communication account of each contact to the first communication account Sex index, select a preset first number of communication accounts among the communication accounts of the contacts in the address book.
可选的,当所述控制名单为白名单时,根据所述确定的相似度,以及每个所述联系人的通讯账号对所述第一通讯账号的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,包括:Optionally, when the control list is a white list, according to the determined similarity and the importance index of the communication account of each contact to the first communication account, in the address book In the communication accounts of the contact, select the preset first number of communication accounts, including:
针对所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号,执行以下步骤:For the communication accounts of each contact in the address book except all the second communication accounts, perform the following steps:
将该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第五数目的相似度;并Sort the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account, and filter out the similarity of the highest preset fifth number; and
将筛选出的所述第五数目的相似度的平均值,作为该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the fifth number screened out as the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to all the second communication accounts in the control list;
将该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值、该联系人的通讯账号对所述第一通讯账号的重要性指数的乘积,作为该联系人的推荐权重;The average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vectors corresponding to all the second communication accounts in the control list, and the value of the importance index of the communication account of the contact to the first communication account. The product is used as the recommendation weight of the contact;
将所述通讯录中除所有第二通讯账号以外的每个联系人的推荐权重进行排序,筛选出取值最高的所述第一数目的推荐权重;Sorting the recommendation weights of each contact except all the second communication accounts in the address book, and filtering out the first number of recommendation weights with the highest value;
确定筛选出的每个推荐权重对应的联系人的通讯账号。The communication account of the contact corresponding to each of the selected recommendation weights is determined.
可选的,当所述控制名单为白名单,且所述第二通讯账号的数目为至少两个时,在接收所述服务器发送的每个联系人的通讯账号对所述第一通讯账号的重要性指数之后,还包括:Optionally, when the control list is a white list and the number of the second communication accounts is at least two, after receiving the communication account of each contact sent by the server to the first communication account. After the importance index, it also includes:
针对每个第二通讯账号,执行以下步骤:For each secondary communication account, perform the following steps:
将该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第六数目的相似度;并Sorting the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and filtering out the similarity of the preset sixth number with the highest value; and
将筛选出的所述第六数目的相似度的平均值,作为该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened sixth number as the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts;
将该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值、该第二通讯账号对所述第一通讯账号的重要性指数的乘积,作为该第二通讯账号的删除权重;The average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts, and the product of the importance index of the second communication account to the first communication account, as the second communication account. The deletion weight of the communication account;
将每个第二通讯账号的删除权重进行排序,筛选出取值最低的所述第七数目的删除权重;Sort the deletion weights of each second communication account, and filter out the seventh number of deletion weights with the lowest value;
确定筛选出的每个删除权重对应的第二通讯账号,并将确定的第二通讯账号作为所述控制名单中待删除的通讯账号。A second communication account corresponding to each of the selected deletion weights is determined, and the determined second communication account is used as the communication account to be deleted in the control list.
该终端设备200还包括存储器204,用于存放程序等。具体地,程序可以包括程序代码,该程序代码包括计算机操作指令。存储器204可能包含随机存取存储器(random accessmemory,RAM),也可能还包括非易失性存储器 (non-volatile memory),例如至少一个磁盘存储器。处理器202执行存储器 204所存放的应用程序,实现通讯账号确定方法。The
参阅图3所示,本发明实施例提供了一种服务器,该服务器300包括:收发器301、处理器302、总线303以及存储器304,其中:Referring to FIG. 3, an embodiment of the present invention provides a server. The
收发器301、处理器302以及存储器304通过总线303相互连接;总线303 可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
收发器301用于与终端设备进行数据通信,如将一终端设备对应的第一通讯账号的通讯录中的每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备。The
处理器302用于实现通讯账号确定方法,包括:The
确定在通讯录中每两个联系人的通讯账号之间的通讯信息,所述通讯录为一终端设备对应的第一通讯账号的,所述通讯信息包括以下任意一项:该两个联系人的通讯账号之间的总通讯次数、该两个联系人的通讯账号中第三通讯账号呼叫第四通讯账号的次数、该两个联系人的通讯账号中所述第四通讯账号呼叫所述第三通讯账号的次数;Determine the communication information between the communication accounts of every two contacts in the address book, where the address book is a first communication account corresponding to a terminal device, and the communication information includes any one of the following: the two contacts The total number of communication between the communication accounts of the two contacts, the number of times that the third communication account in the communication accounts of the two contacts calls the fourth communication account, the communication account of the two contacts The fourth communication account calls the fourth communication account. 3. The number of communication accounts;
针对所述通讯录中的每个联系人的通讯账号,根据该联系人的通讯账号与包含所有联系人的通讯账号之间的通讯信息,生成重要性向量;并将生成的所有重要性向量进行组合,生成第三特征集;For the communication account of each contact in the address book, an importance vector is generated according to the communication information between the communication account of the contact and the communication account including all contacts; and all the generated importance vectors are combined to generate a third feature set;
对所述第三特征集中每个联系人的通讯账号对应的重要性向量进行归一化处理,生成第四特征集;Normalizing the importance vector corresponding to the communication account of each contact in the third feature set to generate a fourth feature set;
根据所述第四特征集,以及预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;Calculate the importance of each contact's communication account to the first communication account according to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account Sex index;
将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备。The importance index of each contact's communication account to the first communication account is sent to the terminal device.
可选的,根据所述第四特征集,以及预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数,包括:Optionally, according to the fourth feature set and the preset initial value of the importance index of the communication account of each contact to the first communication account, calculate the value of the communication account of each contact to the first communication account. The importance index of the communication account, including:
根据所述第四特征集、预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,初次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;According to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account, the importance of each contact's communication account to the first communication account is initially calculated. Sex index;
在初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,与预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值不同时,根据所述第四特征集,以及初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,继续下一次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数,如此重复,直至计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数不再变化;When the initial value of the importance index of each contact's communication account to the first communication account obtained by initial calculation is different from the preset initial value of the importance index of each contact's communication account to the first communication account , according to the fourth feature set, and the importance index of the communication account of each contact person to the first communication account obtained by the initial calculation, continue to calculate the communication account of each contact person to the first communication account next time The importance index of the account is repeated until the calculated importance index of each contact's communication account to the first communication account no longer changes;
将计算得到的不再变化的每个联系人的通讯账号对所述第一通讯账号的重要性指数,作为最终的每个联系人的通讯账号对所述第一通讯账号的重要性指数。The calculated importance index of each contact's communication account to the first communication account that does not change is used as the final importance index of each contact's communication account to the first communication account.
可选的,初次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数时,所述初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,满足以下公式:Optionally, when calculating the importance index of the communication account of each contact to the first communication account for the first time, the importance index of the communication account of each contact obtained by the initial calculation to the first communication account , which satisfies the following formula:
Rnew=IE*(1-d)/N+d*TR*Rold R new =IE*(1-d)/N+d*TR*R old
其中,Rnew为所述初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,d为扰动因子,N为所述通讯录中联系人的通讯账号的数目,TR为所述第四特征集,Rold为预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值。Wherein, R new is the importance index of the communication account of each contact obtained by the initial calculation to the first communication account, d is the disturbance factor, and N is the number of communication accounts of the contact in the address book, TR is the fourth feature set, and R old is a preset initial value of the importance index of each contact's communication account to the first communication account.
该服务器300还包括存储器304,用于存放程序等。具体地,程序可以包括程序代码,该程序代码包括计算机操作指令。存储器304可能包含RAM,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器302执行存储器304所存放的应用程序,实现通讯账号确定方法。The
参阅图4所示,本发明实施例提供的一种通讯账号确定方法,应用于如图 1所示的通讯网络架构中,该方法适用于该网络架构中的终端设备,该方法的处理流程包括:Referring to FIG. 4 , a method for determining a communication account provided by an embodiment of the present invention is applied to the communication network architecture shown in FIG. 1 , and the method is applicable to terminal devices in the network architecture. The processing flow of the method includes: :
步骤401:终端设备获取设置的控制名单,所述控制名单为针对所述终端设备对应的第一通讯账号设置的,包括至少一个第二通讯账号,所述控制名单为黑名单或白名单,每个第二通讯账号为所述终端设备保存的所述第一通讯账号的通讯录中联系人的通讯账号。Step 401: The terminal device obtains a set control list, the control list is set for the first communication account corresponding to the terminal device, and includes at least one second communication account, the control list is a blacklist or a whitelist, and each control list is a blacklist or a whitelist. The second communication account is the communication account of the contact person in the address book of the first communication account saved by the terminal device.
通常,用户在对所述终端设备的通讯进行控制时,用户会向该终端设备设置控制名单,该控制名单可以为黑名单或白名单,其中,设置黑名单,可以使该终端设备或通信应用永久或在指定时间内,禁止该黑名单中的第二通讯账号与该第一通讯账号通讯;而设置白名单,可以使该终端设备或通信应用永久或在指定时间内,仅允许该白名单中的第二通讯账号与该第一通讯账号通讯。Usually, when the user controls the communication of the terminal device, the user sets a control list to the terminal device, and the control list can be a blacklist or a whitelist. Permanently or within a specified period of time, prohibit the second communication account in the blacklist from communicating with the first communication account; and setting a whitelist can make the terminal device or communication application permanently or within a specified period of time, only allow the whitelist The second communication account in communicates with the first communication account.
步骤402:所述终端设备获取所述第一通讯账号的历史通讯记录。Step 402: The terminal device acquires the historical communication record of the first communication account.
传统的,所述第一通讯账号与任意一个其他通讯账号在进行通信后,在与所述第一通讯账号对应的所述终端设备均会将所述第一通讯账号的历史通讯记录进行更新,增加一条新的通讯记录,例如该新的通讯记录中包括:所述第一通讯账号呼叫所述其他通讯账号,通讯时间,以及通讯时长等。Traditionally, after the first communication account communicates with any other communication account, the terminal device corresponding to the first communication account will update the historical communication record of the first communication account, A new communication record is added, for example, the new communication record includes: the first communication account calls the other communication accounts, the communication time, and the communication duration.
步骤403:所述终端设备根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,其中,所述特征向量中的特征包括以下任意一项或组合:所述第一通讯账号呼叫该联系人的通讯账号的次数、该联系人的通讯账号呼叫所述第一通讯账号的次数和所述第一通讯账号与该联系人的通讯账号之间的总通讯次数;并将生成的所有特征向量进行组合,生成第一特征集。Step 403: According to the acquired historical communication records, the terminal device generates a feature vector for the communication account of each contact in the address book, wherein the features in the feature vector include any of the following: Or a combination of: the number of times the first communication account calls the contact’s communication account, the number of times the contact’s communication account calls the first communication account, and the difference between the first communication account and the contact’s communication account The total number of communications; and all the generated feature vectors are combined to generate the first feature set.
可选的,在所述终端设备针对所述通讯录中的每个联系人的通讯账号,生成特征向量之前,还包括:Optionally, before the terminal device generates a feature vector for the communication account of each contact in the address book, the method further includes:
所述终端设备获取设置的勿扰时间;The terminal device obtains the set Do Not Disturb time;
所述终端设备根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,包括:The terminal device generates a feature vector for the communication account of each contact person in the address book according to the acquired historical communication record, including:
所述终端设备根据获取到的所述历史通讯记录、所述勿扰时间,针对所述通讯录中的每个联系人的通讯账号,生成特征向量;The terminal device generates a feature vector for the communication account of each contact in the address book according to the acquired historical communication record and the do not disturb time;
所述特征向量中的特征还包括以下任意一项或组合:在所述勿扰时间内所述第一通讯账号呼叫该联系人的通讯账号的次数、在所述勿扰时间以外所述第一通讯账号呼叫该联系人的通讯账号的次数、在所述勿扰时间内该联系人的通讯账号呼叫所述第一通讯账号的次数、在所述勿扰时间以外该联系人的通讯账号呼叫所述第一通讯账号的次数、在所述勿扰时间内所述第一通讯账号与该联系人的通讯账号之间的总通讯次数,以及在所述勿扰时间以外所述第一通讯账号与该联系人的通讯账号之间的总通讯次数。The features in the feature vector also include any one or a combination of the following: the number of times the first communication account calls the contact's communication account during the do not disturb time, the first communication account outside the do not disturb time. The number of times the communication account calls the communication account of the contact, the number of times the communication account of the contact calls the first communication account within the do not disturb time, the number of times the communication account of the contact calls the first communication account outside the do not disturb time. The number of times of the first communication account, the total number of communication between the first communication account and the contact's communication account during the do not disturb time, and the first communication account and the contact outside the do not disturb time. The total number of communications between the contact's communications accounts.
可选的,所述终端设备还可以获取勿扰地点等其他勿扰设置信息,这样,在所述历史通讯记录中保存了关于勿扰地点等信息的记录后,所述终端设备可以根据获取到的所述历史通讯记录、勿扰地点等其他勿扰设置信息,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,本发明对此不做限定。Optionally, the terminal device can also obtain other do not disturb setting information such as the do not disturb location, so that after the record about the do not disturb location and other information is saved in the historical communication record, the terminal device can The historical communication records, Do Not Disturb locations and other Do Not Disturb setting information, such as the historical communication records, do not disturb, generate a feature vector for the communication account of each contact person in the address book, which is not limited in the present invention.
可选的,在所述终端设备针对所述通讯录中的每个联系人的通讯账号,生成特征向量之前,还包括:Optionally, before the terminal device generates a feature vector for the communication account of each contact in the address book, the method further includes:
所述终端设备获取所述通讯录中每个联系人的通讯账号的对应的账号信息,所述账号信息包括以下任意一项或组合:联系人标识、联系人所属工作单位标识、联系人所属群组标识;其中,所述联系人标识可以为通讯账号的数字编号,如手机号,qq号等号码,或者为联系人名称等。The terminal device obtains the corresponding account information of the communication account of each contact in the address book, and the account information includes any one or a combination of the following: a contact identifier, an identifier of the work unit to which the contact belongs, and a group to which the contact belongs. Group identification; wherein, the contact identification may be a digital number of a communication account, such as a mobile phone number, a qq number and other numbers, or a contact name and the like.
所述终端设备根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,包括:The terminal device generates a feature vector for the communication account of each contact person in the address book according to the acquired historical communication record, including:
所述终端设备转换每个所述账号信息,包括:所述终端设备按照预设的联系人标识与数字编号的对应关系,将每个所述账号信息中的联系人标识转换为数字编号;并按照预设的联系人所属工作单位标识与数字编号的对应关系,将每个所述账号信息中的联系人所属工作单位标识转换为数字编号;以及按照预设的联系人所属群组标识与数字编号的对应关系,将每个所述账号信息中的联系人所属群组标识转换为数字编号;Converting each of the account information by the terminal device includes: converting, by the terminal device, the contact identifier in each of the account information into a digital number according to a preset correspondence between the contact identifier and the digital number; and According to the preset correspondence between the identification of the work unit to which the contact belongs and the numerical number, the identification of the work unit to which the contact belongs in each of the account information is converted into a numerical number; and according to the preset identification of the group to which the contact belongs and the number The corresponding relationship of the numbers, converting the group identification to which the contact person belongs in each described account information into a digital number;
所述终端设备根据获取到的所述历史通讯记录、所述转换后的每个账号信息,针对所述通讯录中的每个联系人通讯账号,生成特征向量;The terminal device generates a feature vector for each contact communication account in the address book according to the obtained historical communication record and the converted information of each account;
所述特征向量中的特征还包括:联系人标识转换后的数字编号、联系人所属工作单位标识转换后的数字编号,以及联系人所属群组标识转换后的数字编号。The features in the feature vector further include: the digital number converted from the contact identifier, the converted digital number from the work unit identifier to which the contact belongs, and the converted digital number from the group identifier to which the contact belongs.
其中,所述终端设备在将联系人标识、联系人所属工作单位标识、联系人所属群组标识转换为数字编号时,是通过预设的联系人标识与数字编号的对应关系、联系人所属工作单位标识与数字编号的对应关系,以及联系人所述群组标识与数字编号的对应关系转换的。在任意一项账号信息与数字编号的对应关系中,一个数字编号对应该账号信息取值中的唯一一个取值。Wherein, when the terminal device converts the contact identifier, the work unit identifier to which the contact belongs, and the group identifier to which the contact belongs to a digital number, it uses the preset correspondence between the contact identifier and the digital number, and the work to which the contact belongs. The correspondence between the unit identifier and the numerical number, and the correspondence between the group identifier and the numerical number of the contact person are converted. In the correspondence between any item of account information and a digital number, a digital number corresponds to a unique value among the values of the account information.
步骤404:所述终端设备对所述第一特征集中每个所述特征进行归一化处理,生成第二特征集。Step 404: The terminal device normalizes each of the features in the first feature set to generate a second feature set.
可选的,所述终端设备可以采用传统的各种归一化方法对所述第一特征集中的每个所述特征进行归一化处理,例如线性函数转换方法、对数函数转换方法、反余切函数转换方法、减去均值再乘以方差,除以最大值……对此本发明不做限定,所述终端设备可以采用以上任一种方法,对所述第一特征集中每个所述特征进行归一化处理,使生成的所述第二特征集中每个联系人的通讯账号对应的特征向量中每个特征的取值均为属于区间[0,1]内。Optionally, the terminal device may use various traditional normalization methods to normalize each of the features in the first feature set, such as a linear function conversion method, a logarithmic function conversion method, an inverse Cotangent function conversion method, subtracting the mean value, multiplying by the variance, dividing by the maximum value... This is not limited in the present invention, and the terminal device can use any of the above methods to perform the first feature set. The features are normalized, so that the value of each feature in the feature vector corresponding to the communication account of each contact in the generated second feature set belongs to the interval [0,1].
步骤405:所述终端设备确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度。Step 405: The terminal device determines the similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account in the second feature set.
可选的,计算两个向量的相似度,传统的,可以通过计算该两个向量的多种指标体现,例如,计算两个向量之间的距离(包括欧氏距离、曼哈顿距离、切比雪夫距离、闵可夫斯基距离、标准化欧氏距离、马氏距离、汉明距离、杰卡德距离等),计算两个向量之间的夹角余弦等方法,本发明对此不做限定。Optionally, calculate the similarity of two vectors. Traditionally, it can be reflected by calculating various indicators of the two vectors, for example, calculating the distance between the two vectors (including Euclidean distance, Manhattan distance, Chebyshev distance) distance, Minkowski distance, normalized Euclidean distance, Mahalanobis distance, Hamming distance, Jaccard distance, etc.), methods such as calculating the cosine of the angle between two vectors, which are not limited in the present invention.
可选的,当采用通过两个向量之间的距离来体现两个向量的相似度时,所述终端设备在执行步骤405时,包括以下步骤:Optionally, when the similarity between the two vectors is represented by the distance between the two vectors, when the terminal device performs
所述终端设备计算在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离;The terminal device calculates, in the second feature set, the distance between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
所述终端设备根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,确定每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度。The terminal device determines the feature vector corresponding to the communication account of each contact according to the distance between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each of the second communication accounts Similarity of feature vectors corresponding to each of the second communication accounts.
所述终端设备根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,确定每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度,包括:The terminal device determines the feature vector corresponding to the communication account of each contact according to the distance between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each of the second communication accounts The similarity of the feature vector corresponding to each of the second communication accounts, including:
所述终端设备针对每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号的对应的特征向量之间的距离,执行以下步骤:The terminal device performs the following steps for the distance between the feature vector corresponding to the communication account of each of the contacts and the corresponding feature vector of each of the second communication accounts:
将所述距离与该联系人的通讯账号对应的特征向量中特征的数目的商,作为相似度参数;Taking the quotient of the number of features in the feature vector corresponding to the distance and the communication account of the contact as a similarity parameter;
将1和所述相似度参数之间的差,作为该联系人的通讯账号对应的特征向量与该第二通讯账号对应的特征向量的相似度。The difference between 1 and the similarity parameter is taken as the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to the second communication account.
可选的,任意一个联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,可以为上述距离指标中的任一种,此处以欧氏距离为例:Optionally, the distance between the feature vector corresponding to the communication account of any contact and the feature vector corresponding to each of the second communication accounts can be any one of the above distance indicators, where the Euclidean distance is example:
所述终端设备采用公式一,计算在所述第二特征集中,任意一个联系人的通讯账号对应的特征向量与任意一个第二通讯账号对应的特征向量之间的距离:The terminal device uses formula 1 to calculate the distance between the feature vector corresponding to the communication account of any contact and the feature vector corresponding to any second communication account in the second feature set:
公式一 Formula one
L为该两个特征向量之间的欧氏距离,xi为所述联系人的通讯账号对应的特征向量中的第i个元素,yi为所述第二通讯账号对应的特征向量中的第i个元素,n为所述联系人的通讯账号对应的特征向量中元素的个数。L is the Euclidean distance between the two feature vectors, x i is the i-th element in the feature vector corresponding to the communication account of the contact, y i is the eigenvector corresponding to the second communication account The i-th element, n is the number of elements in the feature vector corresponding to the communication account of the contact.
所述终端设备采用公式二,计算所述联系人的通讯账号对应的特征向量与所述第二通讯账号对应的特征向量的相似度:The terminal device uses formula 2 to calculate the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to the second communication account:
公式二 Formula two
其中,S即为所述联系人的通讯账号对应的特征向量与所述第二通讯账号对应的特征向量的相似度。Wherein, S is the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to the second communication account.
可选的,当采用通过两个向量之间的距离来体现两个向量的相似度时,所述终端设备在执行步骤405时,包括以下步骤:Optionally, when the similarity between the two vectors is represented by the distance between the two vectors, when the terminal device performs
所述终端设备计算在所述第二特征集中,每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量之间的夹角余弦;The terminal device calculates, in the second feature set, the cosine of the included angle between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account;
所述终端设备将每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量之间的夹角余弦,作为每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度。The terminal device uses the cosine of the included angle between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account as the feature vector corresponding to the communication account of each contact and each second communication account. The similarity of the feature vectors corresponding to the two communication accounts.
可选,所述终端设备可以采用公式三,计算任意一个联系人的通讯账号对应的特征向量与任意一个第二通讯账号对应的特征向量之间的夹角余弦:Optionally, the terminal device can use formula 3 to calculate the cosine of the included angle between the feature vector corresponding to the communication account of any contact and the feature vector corresponding to any second communication account:
公式三 Formula three
其中,cosθ为所述联系人的通讯账号对应的特征向量与所述第二通讯账号对应的特征向量之间的夹角余弦,xi为所述联系人的通讯账号对应的特征向量中的第i个元素,yi为所述第二通讯账号对应的特征向量中的第i个元素,n为所述联系人的通讯账号对应的特征向量中元素的个数。Wherein, cosθ is the cosine of the included angle between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to the second communication account, and x i is the first eigenvector in the feature vector corresponding to the communication account of the contact i elements, y i is the ith element in the feature vector corresponding to the second communication account, and n is the number of elements in the feature vector corresponding to the communication account of the contact.
步骤406:所述终端设备根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,并将选择出的通讯账号作为待添加至所述控制名单的通讯账号。Step 406: According to the determined similarity, the terminal device selects a preset first number of communication accounts from the communication accounts of the contacts in the address book, and uses the selected communication account as the communication account to be added to all the communication accounts. The communication account of the control list mentioned above.
可选的,所述终端设备在执行步骤406时,包括:Optionally, when the terminal device performs
所述终端设备针对所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号,执行以下步骤:The terminal device performs the following steps for the communication account of each contact except all the second communication accounts in the address book:
将该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第二数目的相似度;并Sorting the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account, and filtering out the similarity of the preset second number with the highest value; and
将筛选出的所述第二数目的相似度的平均值,作为该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened out second number as the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to all the second communication accounts in the control list;
所述终端设备将所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最高的所述第一数目的相似度平均值;The terminal device compares the average value of the similarity between the feature vector corresponding to the communication account of each contact except all the second communication accounts in the address book and the feature vector corresponding to all the second communication accounts in the control list. Sort, and filter out the similarity average value of the first number with the highest value;
所述终端设备确定筛选出的每个相似度平均值对应的联系人的通讯账号。The terminal device determines the communication account of the contact corresponding to each of the filtered average similarity degrees.
通过上述步骤,所述终端设备可以根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。Through the above steps, the terminal device can, according to the second communication account in the control list, adaptively filter out the communication accounts of other contacts in the address book except all the second communication accounts, which are related to the control list. A communication account with a higher similarity of the second communication account is recommended to the user as the communication account to be added to the control list, which meets the user's needs and improves the efficiency of the user's communication control.
可选的,在本发明实施例提供的通讯账号确定方法中,当所述第二通讯账号的数目为至少两个时,在步骤405所述终端设备确定在所述第二特征集中,每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度之后,还可以包括:Optionally, in the method for determining a communication account provided by the embodiment of the present invention, when the number of the second communication accounts is at least two, in
所述终端设备针对每个第二通讯账号,执行以下步骤:The terminal device performs the following steps for each second communication account:
将该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第三数目的相似度;并Sorting the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and filtering out the similarity of the highest preset third number; and
将筛选出的所述第三数目的相似度的平均值,作为该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened out third number as the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts;
所述终端设备将每个所述第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最低的所述第四数目的相似度平均值;The terminal device sorts the average value of the similarity between the feature vector corresponding to each of the second communication accounts and the feature vectors corresponding to all other second communication accounts, and filters out the similarity of the fourth number with the lowest value. average value;
所述终端设备确定筛选出的每个相似度平均值对应的第二通讯账号,并将确定的第二通讯账号作为所述控制名单中待删除的通讯账号。The terminal device determines the second communication account corresponding to each of the filtered average similarity degrees, and uses the determined second communication account as the communication account to be deleted in the control list.
通过上述步骤,所述终端设备可以在所述控制名单中,自适应筛选出与其他第二通讯账号的相似度较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。Through the above steps, the terminal device can adaptively screen out a communication account with a low similarity to other second communication accounts in the control list, and recommend it to the user as the communication account to be deleted in the control list , in this way, the user can be reminded whether there is a communication account wrongly added to the control list in the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
可选的,当所述终端设备与服务器联网时,且所述服务器通过所述第一通讯账号的通讯录中每两个联系人的通讯账号之间的通讯信息,确定所述通讯录中每个所述联系人的通讯账号对所述第一通讯账号的重要性指数时,那么,本发明实施例提供的通讯账号确定方法中,在步骤406所述终端设备选择所述第一数目的通讯账号之前,还包括:Optionally, when the terminal device is connected to the server, and the server determines, by using the communication information between the communication accounts of every two contacts in the address book of the first communication account, When the importance index of each of the contact's communication accounts to the first communication account, then, in the communication account determination method provided by the embodiment of the present invention, in
所述终端设备接收服务器发送的每个所述联系人的通讯账号对所述第一通讯账号的重要性指数;receiving, by the terminal device, the importance index of the communication account of each contact to the first communication account sent by the server;
所述终端设备执行步骤406时,包括以下步骤:When the terminal device performs
所述终端设备根据所述确定的相似度,以及每个所述联系人的通讯账号对所述第一通讯账号的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号。According to the determined similarity and the importance index of the communication account of each contact to the first communication account, the terminal device selects a preset among the communication accounts of the contacts in the address book. The first number of communication accounts.
可选的,当所述控制名单为白名单时,所述终端设备根据所述确定的相似度,以及每个所述联系人的通讯账号对所述第一通讯账号的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,包括:Optionally, when the control list is a white list, the terminal device, according to the determined similarity, and the importance index of the communication account of each contact to the first communication account, in the From the communication accounts of the contacts in the address book, select a preset first number of communication accounts, including:
所述终端设备针对所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号,执行以下步骤:The terminal device performs the following steps for the communication account of each contact except all the second communication accounts in the address book:
将该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第五数目的相似度;并Sort the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account, and filter out the similarity of the highest preset fifth number; and
将筛选出的所述第五数目的相似度的平均值,作为该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the fifth number screened out as the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to all the second communication accounts in the control list;
所述终端设备将该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值、该联系人的通讯账号对所述第一通讯账号的重要性指数的乘积,作为该联系人的推荐权重;The average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vectors corresponding to all the second communication accounts in the control list, and the difference between the communication account of the contact and the first communication account. The product of the importance index is used as the recommendation weight of the contact;
所述终端设备将所述通讯录中除所有第二通讯账号以外的每个联系人的推荐权重进行排序,筛选出取值最高的所述第一数目的推荐权重;The terminal device sorts the recommendation weights of each contact except all the second communication accounts in the address book, and filters out the first number of recommendation weights with the highest value;
所述终端设备确定筛选出的每个推荐权重对应的联系人的通讯账号。The terminal device determines the communication account of the contact corresponding to each of the selected recommendation weights.
通过上述步骤,所述终端设备可以在所述控制名单为白名单时,根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,综合考虑与第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高,且对所述第一通讯账号的重要性较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。Through the above steps, when the control list is a white list, according to the second communication account in the control list, in the communication accounts of other contacts except all the second communication accounts in the address book, comprehensively Considering the similarity with the second communication account and the importance to the first communication account, adaptively filter out the similarity with the second communication account in the control list is higher, and the first communication account The communication account with high importance is recommended to the user as the communication account to be added to the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
当所述控制名单为黑名单时,所述终端设备也可以综合考虑与第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高,且对所述第一通讯账号的重要性较低的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。When the control list is a blacklist, the terminal device may also comprehensively consider the similarity with the second communication account and the importance to the first communication account, and adaptively filter out the first communication account in the control list. The two communication accounts with high similarity and low importance to the first communication account are recommended to the user as the communication account to be added to the control list, which meets the needs of the user and improves the Efficiency of user control over communication.
可选的,当所述控制名单为白名单,且所述第二通讯账号的数目为至少两个时,在所述终端设备接收所述服务器发送的每个联系人的通讯账号对所述第一通讯账号的重要性指数之后,还包括:Optionally, when the control list is a white list and the number of the second communication accounts is at least two, the terminal device receives the communication account of each contact sent by the server to the second communication account. After the importance index of a newsletter account, it also includes:
所述终端设备针对每个第二通讯账号,执行以下步骤:The terminal device performs the following steps for each second communication account:
将该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第六数目的相似度;并Sorting the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and filtering out the similarity of the preset sixth number with the highest value; and
将筛选出的所述第六数目的相似度的平均值,作为该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened sixth number as the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts;
所述终端设备将该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值、该第二通讯账号对所述第一通讯账号的重要性指数的乘积,作为该第二通讯账号的删除权重;The terminal device is the product of the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts, and the importance index of the second communication account to the first communication account, as the deletion weight of the second communication account;
所述终端设备将每个第二通讯账号的删除权重进行排序,筛选出取值最低的所述第七数目的删除权重;The terminal device sorts the deletion weights of each second communication account, and filters out the seventh number of deletion weights with the lowest value;
所述终端设备确定筛选出的每个删除权重对应的第二通讯账号,并将确定的第二通讯账号作为所述控制名单中待删除的通讯账号。The terminal device determines the second communication account corresponding to each of the selected deletion weights, and uses the determined second communication account as the communication account to be deleted in the control list.
通过上述步骤,在所述控制控制名单为白名单时,所述终端设备可以在所述控制名单中,综合考虑与其他第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与其他第二通讯账号的相似度较低,且对所述第一通讯账号的重要性较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。Through the above steps, when the control control list is a white list, the terminal device can comprehensively consider the similarity with other second communication accounts and the importance to the first communication account in the control list, Self-adaptively screen out a communication account with a low degree of similarity with other second communication accounts and a low importance to the first communication account, and recommend it to the user as the communication account to be deleted in the control list, so that , which can remind the user whether there is a communication account added to the control list by mistake in the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
当所述控制名单为黑名单时,所述终端设备也可以综合考虑与其他第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与其他第二通讯账号的相似度较低,且对所述第一通讯账号的重要性较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。When the control list is a blacklist, the terminal device may also comprehensively consider the similarity with other second communication accounts and the importance to the first communication account, and adaptively filter out the similarity with other second communication accounts. A communication account with a low degree of similarity and low importance to the first communication account is recommended to the user as the communication account to be deleted in the control list, so that the user can be reminded whether the control list is The wrong communication account added to the control list meets the user's needs and improves the efficiency of the user's communication control.
采用本发明上述实施例中的通讯账号确定方法,所述终端设备可以根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率;所述终端还可以在所述控制名单中,自适应筛选出与其他第二通讯账号的相似度较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。With the method for determining a communication account in the above-mentioned embodiment of the present invention, the terminal device can, according to the second communication account in the control list, self-adaptive among the communication accounts of other contacts in the address book except all the second communication accounts Screening out a communication account with a higher degree of similarity with the second communication account in the control list, and recommending it to the user as the communication account to be added to the control list, which meets the user's needs and improves the user's control over communication The terminal can also adaptively screen out a communication account with a lower similarity with other second communication accounts in the control list, and recommend it to the user as the communication account to be deleted in the control list, In this way, the user can be reminded whether there is a communication account wrongly added to the control list in the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
参阅图5所示,本发明实施例提供的一种通讯账号确定方法,应用于如图 1所示的通讯网络架构中,该方法适用于该网络架构中的服务器,该方法的处理流程包括:Referring to FIG. 5 , a method for determining a communication account provided by an embodiment of the present invention is applied to the communication network architecture shown in FIG. 1 , and the method is applicable to a server in the network architecture. The processing flow of the method includes:
步骤501:服务器确定在通讯录中每两个联系人的通讯账号之间的通讯信息,所述通讯录为一终端设备对应的第一通讯账号的,所述通讯信息包括以下任意一项:该两个联系人的通讯账号之间的总通讯次数、该两个联系人的通讯账号中第三通讯账号呼叫第四通讯账号的次数、该两个联系人的通讯账号中所述第四通讯账号呼叫所述第三通讯账号的次数;Step 501: The server determines the communication information between the communication accounts of every two contacts in the address book, where the address book is the first communication account corresponding to a terminal device, and the communication information includes any one of the following: the The total number of communications between the communication accounts of the two contacts, the number of times the third communication account calls the fourth communication account in the communication accounts of the two contacts, the fourth communication account in the communication accounts of the two contacts the number of calls to the third communication account;
步骤502:所述服务器针对所述通讯录中的每个联系人的通讯账号,根据该联系人的通讯账号与包含所有联系人的通讯账号之间的通讯信息,生成重要性向量;并将生成的所有重要性向量进行组合,生成第三特征集;Step 502: the server generates an importance vector for the communication account of each contact in the address book according to the communication information between the communication account of the contact and the communication account including all contacts; and will generate an importance vector. All importance vectors of are combined to generate the third feature set;
步骤503:所述服务器对所述第三特征集中每个联系人的通讯账号对应的重要性向量进行归一化处理,生成第四特征集;Step 503: The server normalizes the importance vector corresponding to the communication account of each contact in the third feature set to generate a fourth feature set;
步骤504:所述服务器根据所述第四特征集,以及预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;Step 504: According to the fourth feature set and the preset initial value of the importance index of the communication account of each contact to the first communication account, the server calculates the value of the communication account of each contact to the first communication account. The importance index of the first communication account;
在计算每个联系人的通讯账号对所述第一通讯账号的重要性指数时,传统的,可以采用网页排名(PageRank)方法、专家排名(ExpertRank)等方法。When calculating the importance index of each contact's communication account to the first communication account, traditionally, methods such as a page ranking (PageRank) method, an expert ranking (ExpertRank) method, etc. may be used.
可选的,所述服务器在执行步骤504时,包括以下步骤:Optionally, when the server performs
所述服务器根据所述第四特征集、预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,初次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;According to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account, the server initially calculates the relationship between the communication account of each contact and the first communication account. Account importance index;
在初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,与预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值不同时,所述服务器根据所述第四特征集,以及初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,继续下一次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数,如此重复,直至计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数不再变化;When the initial value of the importance index of each contact's communication account to the first communication account obtained by initial calculation is different from the preset initial value of the importance index of each contact's communication account to the first communication account , the server, according to the fourth feature set, and the importance index of each contact's communication account to the first communication account obtained by the initial calculation, continues to calculate the next time the communication account of each contact is to the described first communication account. The importance index of the first communication account is repeated until the calculated importance index of each contact's communication account to the first communication account no longer changes;
所述服务器将计算得到的不再变化的每个联系人的通讯账号对所述第一通讯账号的重要性指数,作为最终的每个联系人的通讯账号对所述第一通讯账号的重要性指数。The server will calculate the importance index of the communication account of each contact that does not change to the first communication account as the final importance of the communication account of each contact to the first communication account index.
可选的,所述服务器在采用PageRank方法,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数时,所述服务器初次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数时,所述初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,满足以下公式四:Optionally, when the server uses the PageRank method to calculate the importance index of the communication account of each contact to the first communication account, the server first calculates the value of the communication account of each contact to the first communication account. In the case of the importance index of the communication account, the importance index of the communication account of each contact obtained by the initial calculation to the first communication account satisfies the following formula 4:
Rnew=IE*(1-d)/N+d*TR*Rold 公式四R new =IE*(1-d)/N+d*TR*R old Formula 4
其中,Rnew为所述初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,d为扰动因子,N为所述通讯录中联系人的通讯账号的数目,TR为所述第四特征集,Rold为预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值。Wherein, R new is the importance index of the communication account of each contact obtained by the initial calculation to the first communication account, d is the disturbance factor, and N is the number of communication accounts of the contact in the address book, TR is the fourth feature set, and R old is a preset initial value of the importance index of each contact's communication account to the first communication account.
所述服务器在后续对每个联系人的通讯账号对所述第一通讯账号的重要性指数进行迭代计算时,依然采用公式四,其中,Rold为上一次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数;Rnew为所述本次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数。When the server subsequently iteratively calculates the importance index of each contact's communication account to the first communication account, formula 4 is still used, where R old is the communication of each contact obtained by the previous calculation. The importance index of the account to the first communication account; R new is the importance index of the communication account of each contact obtained by the current calculation to the first communication account.
步骤505:所述服务器将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备。Step 505: The server sends the importance index of each contact's communication account to the first communication account to the terminal device.
在执行步骤505时,所述服务器与所述终端设备联网时,所述服务器才可以将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备。When
采用本发明实施例提供的方法,所述服务器在将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备后,所述终端设备才可以在所述控制名单为白名单时,根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,综合考虑与第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高,且对所述第一通讯账号的重要性较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。With the method provided by the embodiment of the present invention, after the server sends the importance index of each contact's communication account to the first communication account to the terminal device, the terminal device can control the When the list is a white list, according to the second communication account in the control list, in the communication accounts of other contacts except all the second communication accounts in the address book, comprehensively consider the similarity with the second communication account and the The importance of the first communication account, adaptively screen out a communication account with a higher similarity to the second communication account in the control list and a higher importance to the first communication account, and use it as a to-be-added communication account The communication accounts in the control list are recommended to the user, which meets the needs of the user and improves the efficiency of the user's communication control.
基于以上实施例,本发明提供了一种通讯账号确定实例,当前用户自身的第一通讯账号为U,在与U对应的终端设备中,保存的U的通讯录的联系人的通讯账号包括:A、B、C、D、E、F、G、H和I。当前用户在所述终端设备中开启勿扰模式后,设置所述通讯录中的第二通讯账号C、D和F作为白名单,并设置勿扰时间为9:00~17:00;Based on the above embodiment, the present invention provides an example of determining a communication account. The current user's own first communication account is U, and in the terminal device corresponding to U, the saved communication account of the contact person in U's address book includes: A, B, C, D, E, F, G, H and I. After the current user enables the do not disturb mode in the terminal device, set the second communication accounts C, D and F in the address book as a whitelist, and set the do not disturb time to 9:00-17:00;
所述终端设备获取U的历史通讯记录,如下所示,:The terminal device obtains the historical communication record of U, as shown below:
2015.6.1星期一8:30am A呼叫U2015.6.1 Monday 8:30am A call U
2015.6.1星期一9:24am B呼叫U2015.6.1 Monday 9:24am B call U
2015.6.1星期一10:04am B呼叫U2015.6.1 Monday 10:04am B call U
……
2016.6.5星期五14:20pm U呼叫H2016.6.5 Friday 14:20pm U call H
2015.6.6星期六12:45pm U呼叫F2015.6.6 Sat 12:45pm U call F
2015.6.6星期六19:14pm H呼叫U2015.6.6 Saturday 19:14pm H call U
2015.6.6星期六20:08pm U呼叫F2015.6.6 Saturday 20:08pm U call F
2015.6.7星期天10:22am U呼叫H2015.6.7 Sunday 10:22am U call H
为了节省篇幅,本发明实施例对上述历史通讯记录中部分通讯记录条目进行了省略,但不代表仅有上述显示的8条通讯记录,显示的8条通讯记录为历史通讯记录中部分条目。In order to save space, the embodiment of the present invention omits some communication record entries in the above-mentioned historical communication records, but it does not mean that there are only 8 communication records displayed above, and the displayed 8 communication records are part of the entries in the historical communication records.
所述终端设备根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,其中,所述特征向量中的特征包括:在 9:00~17:00内U与该联系人的通讯账号之间的总通讯次数、在9:00~17:00以外 U与该联系人的通讯账号之间的总通讯次数、U呼叫该联系人的通讯账号的次数、该联系人的通讯账号呼叫U的次数,例如,针对A,生成特征向量[5,0,4,1],需要说明的是,该特征向量是基于整个历史通讯记录生成的,而非只通过上述显示的8条通讯记录。The terminal device generates a feature vector for the communication account of each contact in the address book according to the acquired historical communication records, wherein the features in the feature vector include: between 9:00 and 17:00 : The total number of communications between U and the contact's communication account within 00, the total number of communications between U and the contact's communication account outside 9:00 to 17:00, and the call to the contact's communication account by U The number of times the contact’s communication account calls U. For example, for A, a feature vector [5, 0, 4, 1] is generated. It should be noted that the feature vector is generated based on the entire historical communication record, while Not only through the 8 communication records shown above.
A、所述终端设备将生成的所有特征向量进行组合,生成第一特征集,如表1所示:A. The terminal device combines all the generated feature vectors to generate a first feature set, as shown in Table 1:
表1 第一特征集Table 1 The first feature set
其中,表1中的一列为一个特征,一行为一个联系人的特征向量。Among them, one column in Table 1 is a feature, and the other is a feature vector of a contact.
B、所述终端设备对所述第一特征集中每个特征进行归一化处理,生成第二特征集。在本发明实施例中,以采用线性函数转换方法为例,在本步骤中,所述终端设备通过公式五,对所述第一特征集中任意一个特征进行归一化处理:B. The terminal device normalizes each feature in the first feature set to generate a second feature set. In the embodiment of the present invention, taking the linear function conversion method as an example, in this step, the terminal device performs normalization processing on any feature in the first feature set by formula 5:
公式五 Formula five
其中,x为在所述第一特征集中,所述特征中任意一个取值,X为归一化后的结果,xmin为在所述第一特征集中,所述特征中的最小值,xmax为在所述第一特征集中,所述特征中的最大值。Among them, x is the value of any one of the features in the first feature set, X is the normalized result, x min is the minimum value of the features in the first feature set, x max is the maximum value among the features in the first feature set.
最终,生成的所述第二特征集,如表2所示:Finally, the generated second feature set is shown in Table 2:
表2 第二特征集Table 2 Second feature set
C、所述终端设备确定在所述第二特征集中,每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度。在本发明实施例中,以计算两个向量之间的欧氏距离为例,在本步骤中,所述终端设备通过公式一 ,计算在所述第二特征集中,每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量之间的距离,如表3所示;并通过公式二,计算每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度,如表4所示:C. The terminal device determines the similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account in the second feature set. In the embodiment of the present invention, taking the calculation of the Euclidean distance between two vectors as an example, in this step, the terminal device calculates the communication account number of each contact in the second feature set by formula 1 The distance between the corresponding feature vector and the feature vector corresponding to each second communication account, as shown in Table 3; and by formula 2, calculate the feature vector corresponding to the communication account of each contact and each second communication account The similarity of the corresponding feature vectors is shown in Table 4:
表3 每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量之间的距离Table 3 The distance between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account
表4 每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度Table 4 Similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account
D1、在所述终端设备未与服务器联网时,所述终端设备根据每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,并将选择出的通讯账号作为待添加至所述白名单的通讯账号。D1. When the terminal device is not connected to the server, according to the similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account, the terminal device is in the address book Among the communication accounts of the contact, a preset first number of communication accounts are selected, and the selected communication account is used as the communication account to be added to the white list.
具体的,所述终端设备针对除C、D和F以外的每个联系人的通讯账号,执行:在该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选取值最高的第二数目的相似度,得到的结果如表 5所示,本发明实施例仅以第二数目为1为例,由于该第二数目为1,所以不必计算相似度平均值,即相似度平均值等于筛选出的相似度:Specifically, for the communication account of each contact except C, D and F, the terminal device executes: the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account Sort the similarity of the second number with the highest value, and the obtained results are shown in Table 5. In the embodiment of the present invention, only the second number is 1 as an example. Since the second number is 1, it is not necessary to calculate The similarity average, that is, the similarity average is equal to the filtered similarity:
表5table 5
所述终端设备对筛选出的相似度进行排序,筛选出取值最高的第一数目的相似度平均值,并确定筛选出的每个相似度平均值对应的联系人的通讯账号,将选择出的通讯账号作为待添加至所述白名单的通讯账号。本发明实施例中设置所述第一数目为3,筛选出每个相似度平均值,及对应的联系人的通讯账号,如表6所示:The terminal device sorts the filtered similarity, filters out the first number of similarity averages with the highest value, and determines the communication account of the contact corresponding to each of the filtered similarity averages, and selects the The communication account is used as the communication account to be added to the whitelist. In the embodiment of the present invention, the first number is set to 3, and the average value of each similarity and the communication account of the corresponding contact are screened out, as shown in Table 6:
表6Table 6
通讯账号A、H和I可以作为待添加至所述白名单的通讯账号推荐给用户,提醒用户对所述白名单进行增加。Communication accounts A, H and I may be recommended to the user as communication accounts to be added to the white list, and the user is reminded to add to the white list.
E1、所述终端设备针对每个第二通讯账号,对该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第三数目的相似度,并求出相似度平均值,如表7所示。本发明实施例仅以第三数目为1为例,由于该第三数目为1,所以不必计算相似度平均值,即相似度平均值等于筛选出的相似度:E1. For each second communication account, the terminal device sorts the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and selects the preset value with the highest value. The similarity of the third number, and the average value of the similarity is obtained, as shown in Table 7. The embodiment of the present invention only takes the third number as 1 as an example. Since the third number is 1, it is not necessary to calculate the average similarity, that is, the average similarity is equal to the filtered similarity:
表7Table 7
F1、所述终端设备将每个第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最低的所述第四数目的相似度平均值;所述终端设备确定筛选出的每个相似度平均值对应的第二通讯账号,并将确定的第二通讯账号作为所述白名单中待删除的通讯账号。在本发明实施例中,所述第四数目设置为2,那么筛选出每个相似度平均值,及对应的第二通讯账号,如表8所示:F1. The terminal device sorts the average value of the similarity between the feature vector corresponding to each second communication account and the feature vectors corresponding to all other second communication accounts, and selects the similarity of the fourth number with the lowest value. the average value; the terminal device determines the second communication account corresponding to each of the filtered average similarity degrees, and uses the determined second communication account as the communication account to be deleted in the white list. In the embodiment of the present invention, the fourth number is set to 2, then the average value of each similarity and the corresponding second communication account are screened out, as shown in Table 8:
表8Table 8
通讯账号F、D可以作为所述白名单中待删除的通讯账号推荐给用户,提醒用户对所述白名单进行删减。The communication accounts F and D may be recommended to the user as the communication accounts to be deleted in the white list, and the user is reminded to delete the white list.
D2、在所述终端设备与所述服务器联网时,所述终端设备会接收所述服务器发送的所述通讯录中每个联系人的通讯账号对U的重要性指数;所述终端设备根据每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度,以及每个联系人的通讯账号对U的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号。D2. When the terminal device is connected to the server, the terminal device will receive the importance index to U of the communication account of each contact in the address book sent by the server; The similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account, and the importance index of the communication account of each contact to U, the communication of the contacts in the address book In Accounts, select the preset first number of communication accounts.
其中,所述服务器在确定所述通讯录中每个联系人的通讯账号对U的重要性指数时,包括:Wherein, when the server determines the importance index to U of the communication account of each contact in the address book, it includes:
所述服务器确定在所述通讯录中每两个联系人的通讯账号之间的通讯信息,所述通讯信息包括以下任意一项:该两个联系人的通讯账号之间的总通讯次数、该两个联系人的通讯账号中第三通讯账号呼叫第四通讯账号的次数、该两个联系人的通讯账号中所述第四通讯账号呼叫所述第三通讯账号的次数;The server determines the communication information between the communication accounts of every two contacts in the address book, and the communication information includes any one of the following: the total number of communication between the communication accounts of the two contacts, the The number of times that the third communication account in the communication accounts of the two contacts calls the fourth communication account, and the number of times that the fourth communication account in the communication accounts of the two contacts calls the third communication account;
所述服务器针对所述通讯录中的每个联系人的通讯账号,根据该联系人的通讯账号与包含所有联系人的通讯账号之间的通讯信息,生成重要性向量;并将生成的所有重要性向量进行组合,生成第三特征集;For the communication account of each contact person in the address book, the server generates an importance vector according to the communication information between the communication account of the contact person and the communication account including all contacts; The sex vectors are combined to generate a third feature set;
例如,若所述服务器中的保存的所述通讯信息,其中,A呼叫B、C、D、 E、F、G、H、I的次数分别为4、4、6、1、0、2、0、1,且A呼叫A的次数为0,因此,所述服务器针对A生成的重要性向量为[0,4,4,6,1,0,2,0,1],最终生成的第三特征集,如表9所示:For example, if the communication information stored in the server, the number of times A calls B, C, D, E, F, G, H, and I are 4, 4, 6, 1, 0, 2, 0, 1, and the number of times A calls A is 0. Therefore, the importance vector generated by the server for A is [0, 4, 4, 6, 1, 0, 2, 0, 1]. Three feature sets, as shown in Table 9:
表9 第三特征集Table 9 The third feature set
其中,表9中的每一列为针对联系人的通讯账号生成的重要性向量。Wherein, each column in Table 9 is an importance vector generated for the communication account of the contact.
所述服务器对所述第三特征集中每个联系人的通讯账号对应的重要性向量进行归一化处理,生成第四特征集。The server normalizes the importance vector corresponding to the communication account of each contact in the third feature set to generate a fourth feature set.
此步骤中,所述服务器对所述第三特征集中的每个重要性向量进行归一化处理,也可以采用多种方法,在本发明实施例中,以如下方法为例:计算在每个重要性向量中,主叫的联系人的通讯账号呼叫每个被叫的联系人的通讯账号的比例;仍以针对A生成的重要性向量为例,A呼叫其他联系人的通讯账号的总次数M=0+4+4+6+1+0+2+0+1=18,其中,A呼叫B的次数为4,那么A呼叫B的比例为X=4/18=2/9。最终生成的第四特征集如表10所示:In this step, the server normalizes each importance vector in the third feature set, and various methods may also be used. In this embodiment of the present invention, the following method is used as an example: In the importance vector, the ratio of the communication account of the calling contact to the communication account of each called contact; still taking the importance vector generated for A as an example, the total number of times A calls the communication accounts of other contacts M=0+4+4+6+1+0+2+0+1=18, wherein, the number of times A calls B is 4, then the ratio of A calling B is X=4/18=2/9. The final generated fourth feature set is shown in Table 10:
表10 第四特征集Table 10 Fourth feature set
所述服务器根据所述第四特征集,以及预设的每个联系人的通讯账号对U 的重要性指数初始值,计算每个联系人的通讯账号对U的重要性指数。The server calculates the importance index of each contact's communication account to U according to the fourth feature set and a preset initial value of the importance index of each contact's communication account to U.
由于传统的计算重要性指数的方法有很多,在本发明实施例中,仅以 PageRank方法为例。假设预设的每个联系人的通讯账号对U的重要性指数初始值均为1/9,则每个联系人的通讯账号对U的重要性指数初始值组成的列向量为Rini=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9]T,那么根据所述第四特征集、以及Rini,根据公式四初次计算每个联系人的通讯账号对U的重要性指数, Rnew=IE*(1-d)/N+d*TR*Rini,其中,d为扰动因子,且d的取值根据具体的应用场景具体设定,在本发明实施例,仅以0.85为例,N为所述通讯录中联系人的通讯账号的数目,显然N=9,TR为所述第四特征集,单位向量 IE=[1,1,1,1,1,1,1,1,1]T,那么Since there are many traditional methods for calculating the importance index, in the embodiment of the present invention, only the PageRank method is used as an example. Assuming that the preset initial value of the importance index of each contact's communication account to U is 1/9, the column vector composed of the initial value of the importance index of each contact's communication account to U is R ini =[ 1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9] T , then according to the fourth feature set, and R ini , calculate the importance index of each contact’s communication account to U for the first time according to formula 4, R new =IE*(1-d)/N+d*TR*R ini , where d is the disturbance factor, and the The value is specifically set according to the specific application scenario. In the embodiment of the present invention, only 0.85 is taken as an example, N is the number of communication accounts of the contacts in the address book, obviously N=9, and TR is the fourth feature Set, unit vector IE=[1,1,1,1,1,1,1,1,1] T , then
可以得到初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数组成的列向量为:It can be obtained that the column vector composed of the importance index of each contact's communication account to the first communication account obtained by the initial calculation is:
Rnew=[0.094,0.079,0.189,0.206,0.037,0.111,0.062,0.111,0.111]T R new = [0.094, 0.079, 0.189, 0.206, 0.037, 0.111, 0.062, 0.111, 0.111] T
由于Rnew与预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值组成的列向量不同,所述服务器根据所述第四特征集,以及本次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,继续下一次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数,如此重复,直至计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数不再变化。迭代的过程中,每次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数如表11所示:Because R new is different from the preset column vector composed of the initial value of the importance index of each contact's communication account to the first communication account, the server calculates according to the fourth feature set and the The importance index of the communication account of each contact to the first communication account, continue to calculate the importance index of the communication account of each contact to the first communication account next time, and repeat this until every calculated The importance index of each contact's communication account to the first communication account does not change. In the iterative process, the importance index of each contact's communication account to the first communication account calculated each time is shown in Table 11:
表11Table 11
由上表可知,在第六次迭代计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数与第七次迭代计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数相同,不再变化,因此,迭代停止,可以将第六次或第七次计算得到的结果即为最终的每个联系人的通讯账号对U的重要性指数,如表12所示:As can be seen from the above table, the importance index of the communication account of each contact obtained in the sixth iteration to the first communication account and the communication account of each contact calculated in the seventh iteration are the same as the first communication account. The importance index of a communication account is the same and will not change. Therefore, when the iteration is stopped, the result obtained by the sixth or seventh calculation can be the final importance index of the communication account of each contact to U, such as Table 12 shows:
表12Table 12
所述服务器将每个联系人的通讯账号对U的重要性指数发送至所述终端设备。The server sends the importance index of each contact's communication account to U to the terminal device.
所述终端设备根据每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度,以及每个联系人的通讯账号对U的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,包括:According to the similarity between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account, and the importance index of the communication account of each contact to U, the terminal device is used in the communication From the communication accounts of the contacts in the list, select the preset first number of communication accounts, including:
具体的,所述终端设备针对除C、D和F以外的每个联系人的通讯账号,执行:在该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选取值最高的第五数目的相似度,得到的结果如表 13所示,本发明实施例仅以第五数目为1为例,由于该第五数目为1,所以不必计算相似度平均值,即相似度平均值等于筛选出的相似度:Specifically, the terminal device performs for the communication account of each contact except C, D and F: the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account Sort the similarity of the fifth number with the highest value, and the obtained results are shown in Table 13. In the embodiment of the present invention, only the fifth number is 1 as an example. Since the fifth number is 1, it is not necessary to calculate The similarity average, that is, the similarity average is equal to the filtered similarity:
表13Table 13
所述终端设备将该联系人的通讯账号对应的特征向量与所述白名单中所有第二通讯账号对应的特征向量的相似度平均值、该联系人的通讯账号对U的重要性指数的乘积,作为该联系人的推荐权重,如表14所示:The terminal device is the product of the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vectors corresponding to all the second communication accounts in the whitelist, and the importance index of the communication account of the contact to U , as the recommendation weight of the contact, as shown in Table 14:
表14Table 14
所述终端设备将所述通讯录中除所有第二通讯账号以外的每个联系人的推荐权重进行排序,筛选出取值最高的所述第一数目的推荐权重;并确定筛选出的每个推荐权重对应的联系人的通讯账号。筛选出的推荐权重,以及对应的联系人的通讯账号如表15所示:The terminal device sorts the recommendation weights of each contact except all the second communication accounts in the address book, and filters out the first number of recommendation weights with the highest value; The communication account of the contact corresponding to the recommendation weight. The screened recommendation weights and the corresponding communication accounts of the contacts are shown in Table 15:
表15Table 15
通讯账号I、H和A可以作为待添加至所述白名单的通讯账号推荐给用户,提醒用户对所述白名单进行增加。The communication accounts I, H and A can be recommended to the user as the communication accounts to be added to the white list, and the user is reminded to add to the white list.
E2、所述终端设备针对每个第二通讯账号,在该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第六数目的相似度;并求相似度平均值,如表16所示。在本实施例中,所述第六数目为1,因此,不必计算相似度平均值,即相似度平均值等于筛选出的相似度。E2. For each second communication account, the terminal device sorts the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and selects the preset with the highest value. The similarity of the sixth number; and the average of the similarity is calculated, as shown in Table 16. In this embodiment, the sixth number is 1, so it is not necessary to calculate the average value of the similarity, that is, the average value of the similarity is equal to the selected similarity.
表16Table 16
F2、所述终端设备将该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值、该第二通讯账号对U的重要性指数的乘积,作为该第二通讯账号的删除权重,如表17所示:F2. The terminal device is the product of the average similarity of the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts, and the importance index of the second communication account to U, as the first communication account. The deletion weight of the second communication account is shown in Table 17:
表17Table 17
G2、所述终端设备将每个第二通讯账号的删除权重进行排序,筛选出取值最低的所述第七数目的删除权重;所述终端设备确定筛选出的每个删除权重对应的第二通讯账号,并将确定的第二通讯账号作为所述白名单中待删除的通讯账号。在本发明实施例中,所述第七数目为2,那么筛选出的删除权重,以及对应的第二通讯账号,如表18所示:G2. The terminal device sorts the deletion weights of each second communication account, and filters out the seventh number of deletion weights with the lowest value; the terminal device determines the second deletion weight corresponding to each selected deletion weight. communication account, and use the determined second communication account as the communication account to be deleted in the white list. In the embodiment of the present invention, the seventh number is 2, then the filtered deletion weight, and the corresponding second communication account number, are as shown in Table 18:
表18Table 18
通讯账号F、D可以作为所述白名单中待删除的通讯账号推荐给用户,提醒用户对所述白名单进行删减。The communication accounts F and D may be recommended to the user as the communication accounts to be deleted in the white list, and the user is reminded to delete the white list.
采用本发明实施例提供的通讯账号确定方法,与第一通讯账号对应的终端设备可以根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率;所述终端还可以在所述控制名单中,自适应筛选出与其他第二通讯账号的相似度较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。在所述控制名单为白名单,且所述终端设备可以获得通讯录中每个联系人的通讯账号对第一通讯账号的重要性指标时,所述终端设备综合考虑与第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高,且对所述第一通讯账号的重要性较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,并综合考虑与其他第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与其他第二通讯账号的相似度较低,且对所述第一通讯账号的重要性较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。By using the communication account determination method provided by the embodiment of the present invention, the terminal device corresponding to the first communication account can, according to the second communication account in the control list, store the communication accounts of other contacts in the address book except for all the second communication accounts , adaptively screen out a communication account with a higher degree of similarity with the second communication account in the control list, and recommend it to the user as the communication account to be added to the control list, which meets the needs of the user and improves the performance. Efficiency of communication control by the user; the terminal can also adaptively screen out a communication account with a lower similarity to other second communication accounts in the control list, and use it as the communication account to be deleted in the control list Recommended to the user, in this way, the user can be reminded whether there is a communication account wrongly added to the control list in the control list, which meets the needs of the user and improves the efficiency of the user's communication control. When the control list is a white list, and the terminal device can obtain the importance index of the communication account of each contact in the address book to the first communication account, the terminal device comprehensively considers the similarity with the second communication account. degree and importance to the first communication account, adaptively screen out the communication account that has a higher similarity with the second communication account in the control list and is more important to the first communication account , and recommend it to the user as the communication account to be added to the control list, and comprehensively consider the similarity with other second communication accounts and the importance to the first communication account, and adaptively filter out other second communication accounts. A communication account with a low degree of similarity of accounts and low importance to the first communication account is recommended to the user as the communication account to be deleted in the control list, so that the user can be reminded of the control list Whether there is a communication account added to the control list by mistake, it meets the needs of the user and improves the efficiency of the user's communication control.
基于以上实施例,本发明还提供了一种终端设备,该终端设备用于如图4 所示的通讯账号确定方法,如图6所示,该终端设备600包括:位于所述终端设备600的前台的勿扰管理模块601、控制名单存储模块602、通讯过滤模块 603智能名单推荐模块,以及位于所述终端设备600后台的勿扰设置信息接收模块605、处理模块606、智能名单生成模块607,其中,Based on the above embodiments, the present invention also provides a terminal device, which is used for the communication account determination method shown in FIG. 4 . As shown in FIG. 6 , the
勿扰管理模块601用于使用户对所述终端设备600进行勿扰设置,用户通过用户界面(User Interface,UI))与所述勿扰管理模块601进行交互,所述勿勿扰管理模块601具体包括以下几个子模块:The Do Not Disturb
勿扰控制模块6011,用于开启所述终端设备600的勿扰功能;Do not disturb
勿扰设置模块6012,用于在用户通过勿扰控制模块6011开启勿扰功能后,设置勿扰时间、勿扰地点等勿扰设置信息;The Do Not Disturb
控制名单维护模块6014,用于使用户添加通讯账号到控制名单,并对所述控制名单进行管理;The control
智能控制名单触发模块6013,用于在用户开启勿扰功能、设置了勿扰设置信息后,控制名单中包含至少一个通讯账号时,使用户启动所述终端设备600 的智能控制名单推荐功能,向用户推荐待添加至所述控制名单的通讯账号以及所述控制名单中待删除的通讯账号。The intelligent control
控制名单存储模块602,用于存储用户设置的控制名单。The control
通讯过滤模块603,当所述控制名单为黑名单时,用于在所述勿扰时间内,禁止该黑名单中的通讯账号与所述终端设备600通讯;当所述控制名单为白名单时,用于在所述勿扰时间内,仅允许该白名单中的通讯账号与所述终端设备 600通讯。The communication filtering module 603, when the control list is a blacklist, is used to prohibit the communication accounts in the blacklist from communicating with the
勿扰设置信息接收模块605,用于接收所述终端设备600中的勿扰管理模块601发送的勿扰设置信息,如勿扰时间、勿扰地点等。The Do Not Disturb setting information receiving module 605 is configured to receive Do Not Disturb setting information, such as Do Not Disturb time, Do Not Disturb location, etc., sent by the Do Not Disturb
处理模块606,用于在所述终端设备600与服务器联网时,获取所述终端设备600对应的第一通讯账号的历史通讯记录,以及通讯录中每个联系人的通讯账号的对应的账号信息等,生成每个联系人的通讯账号与所述控制名单中的每个通讯账号的相似度。The
智能名单生成模块607,用于根据每个联系人的通讯账号与所述控制名单中的每个通讯账号的相似度,在所述通讯录的联系人的通讯账号中,选择待添加至所述控制名单的通讯账号,以及在所述控制名单中选择所述控制名单中待删除的通讯账号。The intelligent
在所述终端设备600与服务器联网时,所述服务器接收所述终端设备600 的勿扰设置信息,以及确定在所述通讯录中每两个联系人的通讯账号之间的通讯信息,最终生成每个联系人的通讯账号对所述第一通讯账号的重要性指数,并将生成的每个联系人的通讯账号对所述第一通讯账号的重要性指数发送给所述终端设备600中的处理模块606。When the
所述处理模块606还用于,接收所述服务器发送的每个联系人的通讯账号对所述第一通讯账号的重要性指数,并根据每个联系人的通讯账号与所述控制名单中的每个通讯账号的相似度、每个联系人的通讯账号对所述第一通讯账号的重要性指数,计算通讯录中除控制名单以外的每个联系人的通讯账号的推荐权重,以及所述控制名单中的每个通讯账号的删除权重。The
智能名单生成模块607,还用于根据通讯录中除控制名单以外的每个联系人的通讯账号的推荐权重,在所述通讯录的联系人的通讯账号中,选择待添加至所述控制名单的通讯账号,以及根据所述控制名单中的每个通讯账号的删除权重,在所述控制名单中选择所述控制名单中待删除的通讯账号。The intelligent
智能名单推荐模块604,用于将智能名单生成模块607,生成的待添加至所述控制名单的通讯账号,以及所述控制名单中待删除的通讯账号,推荐给所述控制名单维护模块6014,提醒进行对控制名单的增加或删减。The intelligent
基于以上实施例,本发明还提供了一种终端设备,如图7所示,所述终端设备700中包括:获取单元701、处理单元702,以及选择单元703,其中,Based on the above embodiment, the present invention also provides a terminal device. As shown in FIG. 7 , the
获取单元701,用于获取设置的控制名单,所述控制名单为针对所述终端设备700对应的第一通讯账号设置的,包括至少一个第二通讯账号,所述控制名单为黑名单或白名单,每个第二通讯账号为所述终端设备700保存的所述第一通讯账号的通讯录中联系人的通讯账号;以及The obtaining
获取所述第一通讯账号的历史通讯记录;obtaining the historical communication record of the first communication account;
处理单元702,用于根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量,其中,所述特征向量中的特征包括以下任意一项或组合:所述第一通讯账号呼叫该联系人的通讯账号的次数、该联系人的通讯账号呼叫所述第一通讯账号的次数和所述第一通讯账号与该联系人的通讯账号之间的总通讯次数;并将生成的所有特征向量进行组合,生成第一特征集;并The
对所述第一特征集中每个所述特征进行归一化处理,生成第二特征集;以及normalizing each of the features in the first feature set to generate a second feature set; and
确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度;Determine, in the second feature set, the similarity between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
选择单元703,用于根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号,并将选择出的通讯账号作为待添加至所述控制名单的通讯账号。The
可选的,所述获取单元701,还用于:在针对所述通讯录中的每个联系人的通讯账号,生成特征向量之前,获取设置的勿扰时间;Optionally, the obtaining
所述处理单元702,在根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量时,具体用于:The
根据获取到的所述历史通讯记录、所述勿扰时间,针对所述通讯录中的每个联系人的通讯账号,生成特征向量;According to the obtained historical communication record and the Do Not Disturb time, a feature vector is generated for the communication account of each contact in the address book;
所述特征向量中的特征还包括以下任意一项或组合:在所述勿扰时间内所述第一通讯账号呼叫该联系人的通讯账号的次数、在所述勿扰时间以外所述第一通讯账号呼叫该联系人的通讯账号的次数、在所述勿扰时间内该联系人的通讯账号呼叫所述第一通讯账号的次数、在所述勿扰时间以外该联系人的通讯账号呼叫所述第一通讯账号的次数、在所述勿扰时间内所述第一通讯账号与该联系人的通讯账号之间的总通讯次数,以及在所述勿扰时间以外所述第一通讯账号与该联系人的通讯账号之间的总通讯次数。The features in the feature vector also include any one or a combination of the following: the number of times the first communication account calls the contact's communication account during the do not disturb time, the first communication account outside the do not disturb time. The number of times the communication account calls the communication account of the contact, the number of times the communication account of the contact calls the first communication account within the do not disturb time, the number of times the communication account of the contact calls the first communication account outside the do not disturb time. The number of times of the first communication account, the total number of communication between the first communication account and the contact's communication account during the do not disturb time, and the first communication account and the contact outside the do not disturb time. The total number of communications between the contact's communications accounts.
可选的,所述获取单元701,还用于:在针对所述通讯录中的每个联系人的通讯账号,生成特征向量之前,获取所述通讯录中每个联系人的通讯账号的对应的账号信息,所述账号信息包括以下任意一项或组合:联系人标识、联系人所属工作单位标识、联系人所属群组标识;Optionally, the obtaining
所述处理单元702,在根据获取到的所述历史通讯记录,针对所述通讯录中的每个联系人的通讯账号,生成特征向量时,具体用于:The
转换每个所述账号信息,包括:按照预设的联系人标识与数字编号的对应关系,将每个所述账号信息中的联系人标识转换为数字编号;并按照预设的联系人所属工作单位标识与数字编号的对应关系,将每个所述账号信息中的联系人所属工作单位标识转换为数字编号;以及按照预设的联系人所属群组标识与数字编号的对应关系,将每个所述账号信息中的联系人所属群组标识转换为数字编号;Converting each of the account information includes: converting the contact identifier in each of the account information into a digital number according to the preset correspondence between the contact identifier and the digital number; and according to the preset work of the contact person The corresponding relationship between the unit identification and the numerical number, converting the work unit identification of the contact person in each of the account information into a numerical number; and according to the preset correspondence between the group identification to which the contact person belongs and the numerical number, each The group identification to which the contact person belongs in the account information is converted into a numerical number;
根据获取到的所述历史通讯记录、所述转换后的每个账号信息,针对所述通讯录中的每个联系人通讯账号,生成特征向量;According to the obtained historical communication records and the converted account information, a feature vector is generated for each contact communication account in the address book;
所述特征向量中的特征还包括:联系人标识转换后的数字编号、联系人所属工作单位标识转换后的数字编号,以及联系人所属群组标识转换后的数字编号。The features in the feature vector further include: the digital number converted from the contact identifier, the converted digital number from the work unit identifier to which the contact belongs, and the converted digital number from the group identifier to which the contact belongs.
可选的,所述处理单元702,在确定在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度时,具体用于:Optionally, the
计算在所述第二特征集中,每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离;Calculate, in the second feature set, the distance between the feature vector corresponding to the communication account of each of the contacts and the feature vector corresponding to each of the second communication accounts;
根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,确定每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度。According to the distance between the feature vector corresponding to the communication account of each contact and the feature vector corresponding to each second communication account, determine the feature vector corresponding to the communication account of each contact and each The similarity of the feature vector corresponding to the second communication account.
可选的,所述处理单元702,在根据每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量之间的距离,确定每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号对应的特征向量的相似度时,具体用于:Optionally, the
针对每个所述联系人的通讯账号对应的特征向量与每个所述第二通讯账号的对应的特征向量之间的距离,执行以下步骤:For the distance between the feature vector corresponding to the communication account of each of the contacts and the corresponding feature vector of each of the second communication accounts, the following steps are performed:
将所述距离与该联系人的通讯账号对应的特征向量中特征的数目的商,作为相似度参数;Taking the quotient of the number of features in the feature vector corresponding to the distance and the communication account of the contact as a similarity parameter;
将1和所述相似度参数之间的差,作为该联系人的通讯账号对应的特征向量与该第二通讯账号对应的特征向量的相似度。The difference between 1 and the similarity parameter is taken as the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to the second communication account.
可选的,所述选择单元703,具体用于:Optionally, the
针对所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号,执行以下步骤:For the communication accounts of each contact in the address book except all the second communication accounts, perform the following steps:
将该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第二数目的相似度;并Sorting the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account, and filtering out the similarity of the preset second number with the highest value; and
将筛选出的所述第二数目的相似度的平均值,作为该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened out second number as the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to all the second communication accounts in the control list;
将所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最高的所述第一数目的相似度平均值;并Sort the feature vectors corresponding to the communication accounts of each contact person except all second communication accounts in the address book and the average similarity of the feature vectors corresponding to all the second communication accounts in the control list, and filter out taking the mean value of the similarity of the first number with the highest value; and
确定筛选出的每个相似度平均值对应的联系人的通讯账号。Determine the communication account of the contact corresponding to each of the filtered average similarity degrees.
可选的,当所述第二通讯账号的数目为至少两个时,所述选择单元703,还用于:Optionally, when the number of the second communication accounts is at least two, the
在所述处理单元702确定在所述第二特征集中,每个联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度之后,针对每个第二通讯账号,执行以下步骤:After the
将该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第三数目的相似度;并Sorting the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and filtering out the similarity of the highest preset third number; and
将筛选出的所述第三数目的相似度的平均值,作为该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened out third number as the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts;
将每个所述第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值进行排序,筛选出取值最低的所述第四数目的相似度平均值;并Sorting the average value of the similarity between the feature vector corresponding to each of the second communication accounts and the feature vectors corresponding to all other second communication accounts, and filtering out the average value of the similarity of the fourth number with the lowest value; and
确定筛选出的每个相似度平均值对应的第二通讯账号,并将确定的第二通讯账号作为所述控制名单中待删除的通讯账号。Determining the second communication account corresponding to each of the filtered average similarity degrees, and using the determined second communication account as the communication account to be deleted in the control list.
可选的,所述获取单元701,还用于:Optionally, the obtaining
在所述选择单元703选择所述第一数目的通讯账号之前,接收服务器发送的每个所述联系人的通讯账号对所述第一通讯账号的重要性指数;Before the
所述选择单元703,在根据所述确定的相似度,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号时,具体用于:The selecting
根据所述确定的相似度,以及每个所述联系人的通讯账号对所述第一通讯账号的重要性指数,在所述通讯录的联系人的通讯账号中,选择预设第一数目的通讯账号。According to the determined similarity and the importance index of the communication account of each contact to the first communication account, among the communication accounts of the contacts in the address book, a preset first number of communication accounts are selected. communication account.
可选的,当所述控制名单为白名单时,所述选择单元703,具体用于:Optionally, when the control list is a white list, the
针对所述通讯录中除所有第二通讯账号以外的每个联系人的通讯账号,执行以下步骤:For the communication accounts of each contact in the address book except all the second communication accounts, perform the following steps:
将该联系人的通讯账号对应的特征向量与每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第五数目的相似度;并Sort the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to each second communication account, and filter out the similarity of the highest preset fifth number; and
将筛选出的所述第五数目的相似度的平均值,作为该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the fifth number screened out as the average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vector corresponding to all the second communication accounts in the control list;
将该联系人的通讯账号对应的特征向量与所述控制名单中所有第二通讯账号对应的特征向量的相似度平均值、该联系人的通讯账号对所述第一通讯账号的重要性指数的乘积,作为该联系人的推荐权重;The average value of the similarity between the feature vector corresponding to the communication account of the contact and the feature vectors corresponding to all the second communication accounts in the control list, and the value of the importance index of the communication account of the contact to the first communication account. The product is used as the recommendation weight of the contact;
将所述通讯录中除所有第二通讯账号以外的每个联系人的推荐权重进行排序,筛选出取值最高的所述第一数目的推荐权重;并Sorting the recommendation weights of each contact except all the second communication accounts in the address book, and filtering out the first number of recommendation weights with the highest value; and
确定筛选出的每个推荐权重对应的联系人的通讯账号。The communication account of the contact corresponding to each of the selected recommendation weights is determined.
可选的,当所述控制名单为白名单,且所述第二通讯账号的数目为至少两个时,所述选择单元703,还用于:Optionally, when the control list is a white list and the number of the second communication accounts is at least two, the
在所述获取单元701接收所述服务器发送的每个联系人的通讯账号对所述第一通讯账号的重要性指数之后,针对每个第二通讯账号,执行以下步骤:After the obtaining
将该第二通讯账号对应的特征向量与其它每个第二通讯账号对应的特征向量的相似度进行排序,筛选出取值最高的预设第六数目的相似度;并Sorting the similarity between the feature vector corresponding to the second communication account and the feature vector corresponding to each other second communication account, and filtering out the similarity of the preset sixth number with the highest value; and
将筛选出的所述第六数目的相似度的平均值,作为该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值;Taking the average value of the similarity of the screened sixth number as the average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts;
将该第二通讯账号对应的特征向量与其它所有第二通讯账号对应的特征向量的相似度平均值、该第二通讯账号对所述第一通讯账号的重要性指数的乘积,作为该第二通讯账号的删除权重;The average value of the similarity between the feature vector corresponding to the second communication account and the feature vectors corresponding to all other second communication accounts, and the product of the importance index of the second communication account to the first communication account, as the second communication account. The deletion weight of the communication account;
将每个第二通讯账号的删除权重进行排序,筛选出取值最低的所述第七数目的删除权重;并Sort the deletion weights of each second communication account, and filter out the seventh number of deletion weights with the lowest value; and
确定筛选出的每个删除权重对应的第二通讯账号,并将确定的第二通讯账号作为所述控制名单中待删除的通讯账号。A second communication account corresponding to each of the selected deletion weights is determined, and the determined second communication account is used as the communication account to be deleted in the control list.
采用本发明实施例提供的终端设备,所述终端设备可以根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率;所述终端还可以在所述控制名单中,自适应筛选出与其他第二通讯账号的相似度较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率。Using the terminal device provided in the embodiment of the present invention, the terminal device can adaptively filter out the communication accounts of other contacts except all the second communication accounts in the address book according to the second communication account in the control list. A communication account with a higher similarity of the second communication account in the control list is recommended to the user as the communication account to be added to the control list, which meets the user's needs and improves the efficiency of the user's communication control; The terminal may also adaptively screen out a communication account with a lower similarity with other second communication accounts in the control list, and recommend it to the user as the communication account to be deleted in the control list, so that it can be The user is reminded whether there is a communication account wrongly added to the control list in the control list, which meets the needs of the user and improves the efficiency of the user's communication control.
基于以上实施例,本发明实施例还提供了一种服务器,如图8所示,所述服务器800中包括:确定单元801、处理单元802以及发送单元803,其中,Based on the above embodiment, an embodiment of the present invention further provides a server. As shown in FIG. 8 , the
确定单元801,用于确定在通讯录中每两个联系人的通讯账号之间的通讯信息,所述通讯录为一终端设备对应的第一通讯账号的,所述通讯信息包括以下任意一项:该两个联系人的通讯账号之间的总通讯次数、该两个联系人的通讯账号中第三通讯账号呼叫第四通讯账号的次数、该两个联系人的通讯账号中所述第四通讯账号呼叫所述第三通讯账号的次数;The determining
处理单元802,用于针对所述通讯录中的每个联系人的通讯账号,根据该联系人的通讯账号与包含所有联系人的通讯账号之间的通讯信息,生成重要性向量;并将生成的所有重要性向量进行组合,生成第三特征集;并The
对所述第三特征集中每个联系人的通讯账号对应的重要性向量进行归一化处理,生成第四特征集;以及Normalizing the importance vector corresponding to the communication account of each contact in the third feature set to generate a fourth feature set; and
根据所述第四特征集,以及预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;Calculate the importance of each contact's communication account to the first communication account according to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account Sex index;
发送单元803,用于将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备。The sending
可选的,所述处理单元802,在计算每个联系人的通讯账号对所述第一通讯账号的重要性指数时,具体用于:Optionally, when calculating the importance index of the communication account of each contact to the first communication account, the
根据所述第四特征集、预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值,初次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数;According to the fourth feature set and the preset initial value of the importance index of each contact's communication account to the first communication account, the importance of each contact's communication account to the first communication account is initially calculated. Sex index;
在初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,与预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值不同时,根据所述第四特征集,以及初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,继续下一次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数,如此重复,直至计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数不再变化;When the initial value of the importance index of each contact's communication account to the first communication account obtained by initial calculation is different from the preset initial value of the importance index of each contact's communication account to the first communication account , according to the fourth feature set, and the importance index of the communication account of each contact person to the first communication account obtained by the initial calculation, continue to calculate the communication account of each contact person to the first communication account next time The importance index of the account is repeated until the calculated importance index of each contact's communication account to the first communication account no longer changes;
将计算得到的不再变化的每个联系人的通讯账号对所述第一通讯账号的重要性指数,作为最终的每个联系人的通讯账号对所述第一通讯账号的重要性指数。The calculated importance index of each contact's communication account to the first communication account that does not change is used as the final importance index of each contact's communication account to the first communication account.
可选的,所述处理单元802初次计算每个联系人的通讯账号对所述第一通讯账号的重要性指数时,所述初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,满足以下公式:Optionally, when the
Rnew=IE*(1-d)/N+d*TR*Rold R new =IE*(1-d)/N+d*TR*R old
其中,Rnew为所述初次计算得到的每个联系人的通讯账号对所述第一通讯账号的重要性指数,d为扰动因子,N为所述通讯录中联系人的通讯账号的数目,TR为所述第四特征集,Rold为预设的每个联系人的通讯账号对所述第一通讯账号的重要性指数初始值。Wherein, R new is the importance index of the communication account of each contact obtained by the initial calculation to the first communication account, d is the disturbance factor, and N is the number of communication accounts of the contact in the address book, TR is the fourth feature set, and R old is a preset initial value of the importance index of each contact's communication account to the first communication account.
采用本发明实施例提供的服务器,所述服务器在将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备后,所述终端设备才可以在所述控制名单为白名单时,根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,综合考虑与第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高,且对所述第一通讯账号的重要性较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。With the server provided in the embodiment of the present invention, after the server sends the importance index of each contact's communication account to the first communication account to the terminal device, the terminal device can control the When the list is a white list, according to the second communication account in the control list, in the communication accounts of other contacts except all the second communication accounts in the address book, comprehensively consider the similarity with the second communication account and the The importance of the first communication account, adaptively screen out a communication account with a higher similarity to the second communication account in the control list and a higher importance to the first communication account, and use it as a to-be-added communication account The communication accounts in the control list are recommended to the user, which meets the needs of the user and improves the efficiency of the user's communication control.
需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。在本申请的实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。It should be noted that, the division of units in the embodiment of the present invention is schematic, and is only a logical function division, and there may be other division manners in actual implementation. Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM, Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
综上所述,本发明实施例提供的通讯账号确定方法、终端设备及服务器,所述终端设备可以根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率;所述终端还可以在所述控制名单中,自适应筛选出与其他第二通讯账号的相似度较低的通讯账号,并作为所述控制名单中待删除的通讯账号推荐给用户,这样,可以使提醒用户所述控制名单中是否有错加至所述控制名单的通讯账号,符合用户的需求,且提高了用户对通讯控制的效率;进一步地,所述服务器在将每个联系人的通讯账号对所述第一通讯账号的重要性指数发送至所述终端设备后,所述终端设备才可以在所述控制名单为白名单时,根据控制名单中的第二通讯账号,在通讯录中除所有第二通讯账号以外的其他联系人的通讯账号中,综合考虑与第二通讯账号的相似度以及对所述第一通讯账号的重要性,自适应筛选出与所述控制名单中的第二通讯账号的相似度较高,且对所述第一通讯账号的重要性较高的通讯账号,并作为待添加至所述控制名单的通讯账号推荐给用户,符合用户的需求,且提高了用户对通讯控制的效率。To sum up, with the method, terminal device, and server for determining a communication account provided by the embodiments of the present invention, the terminal device may, according to the second communication account in the control list, contact other contacts in the address book except for all the second communication accounts. Among the personal communication accounts, adaptively screen out a communication account with a higher degree of similarity with the second communication account in the control list, and recommend it to the user as the communication account to be added to the control list, which meets the needs of the user , and improve the efficiency of the user's communication control; the terminal can also adaptively screen out the communication accounts with low similarity with other second communication accounts in the control list, and use them as the waiting list in the control list. The deleted communication account is recommended to the user, so that the user can be reminded whether there is a communication account added to the control list by mistake in the control list, which meets the needs of the user and improves the efficiency of the user's communication control; further, After the server sends the importance index of each contact's communication account to the first communication account to the terminal device, the terminal device can, when the control list is a white list, The second communication account in the address book, among the communication accounts of other contacts except all the second communication accounts in the address book, comprehensively consider the similarity with the second communication account and the importance to the first communication account, automatically Adaptively screen out a communication account with a higher similarity to the second communication account in the control list and a higher importance to the first communication account, and recommend it as a communication account to be added to the control list For users, it meets the needs of users, and improves the efficiency of users' control of communication.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, provided that these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510872215.7A CN106817472B (en) | 2015-12-02 | 2015-12-02 | A communication account determination method, terminal device and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510872215.7A CN106817472B (en) | 2015-12-02 | 2015-12-02 | A communication account determination method, terminal device and server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106817472A CN106817472A (en) | 2017-06-09 |
| CN106817472B true CN106817472B (en) | 2020-03-10 |
Family
ID=59108615
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510872215.7A Active CN106817472B (en) | 2015-12-02 | 2015-12-02 | A communication account determination method, terminal device and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106817472B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112261654B (en) * | 2020-09-23 | 2021-08-03 | 中国地质大学(武汉) | A method and system for generating a mobile phone number whitelist in telecommunication anti-fraud |
| CN112559822B (en) * | 2020-12-23 | 2024-05-03 | 深圳市彬讯科技有限公司 | Method, device, computer equipment and storage medium for obtaining project contact persons |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102364471A (en) * | 2011-09-30 | 2012-02-29 | 苏州佳世达电通有限公司 | Method for displaying contact person list |
| CN103458411A (en) * | 2012-05-30 | 2013-12-18 | 走着瞧股份有限公司 | Communication account analysis device and method |
| CN105072238A (en) * | 2015-09-10 | 2015-11-18 | 陈包容 | Method and apparatus for creating contact list according to note information of newly-added number |
| CN105100353A (en) * | 2015-09-08 | 2015-11-25 | 陈包容 | Method for performing address book grouping on newly-added contact of mobile terminal |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7450740B2 (en) * | 2005-09-28 | 2008-11-11 | Facedouble, Inc. | Image classification and information retrieval over wireless digital networks and the internet |
| CN101600178B (en) * | 2009-06-26 | 2012-04-04 | 成都市华为赛门铁克科技有限公司 | Method for confirming junk information as well as device and terminal therefor |
| JP5607513B2 (en) * | 2010-11-25 | 2014-10-15 | Kddi株式会社 | Detection device, detection method, and detection program |
| CN103853744B (en) * | 2012-11-29 | 2017-02-22 | 中国科学院计算机网络信息中心 | Deceptive junk comment detection method oriented to user generated contents |
| CN105516940A (en) * | 2014-09-22 | 2016-04-20 | 中兴通讯股份有限公司 | Short message processing method and short message processing device |
| CN105045781B (en) * | 2015-08-27 | 2020-06-23 | 广州神马移动信息科技有限公司 | Query term similarity calculation method and device and query term search method and device |
| CN105574538B (en) * | 2015-12-10 | 2020-03-17 | 小米科技有限责任公司 | Classification model training method and device |
-
2015
- 2015-12-02 CN CN201510872215.7A patent/CN106817472B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102364471A (en) * | 2011-09-30 | 2012-02-29 | 苏州佳世达电通有限公司 | Method for displaying contact person list |
| CN103458411A (en) * | 2012-05-30 | 2013-12-18 | 走着瞧股份有限公司 | Communication account analysis device and method |
| CN105100353A (en) * | 2015-09-08 | 2015-11-25 | 陈包容 | Method for performing address book grouping on newly-added contact of mobile terminal |
| CN105072238A (en) * | 2015-09-10 | 2015-11-18 | 陈包容 | Method and apparatus for creating contact list according to note information of newly-added number |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106817472A (en) | 2017-06-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110535777B (en) | Access request control method and device, electronic equipment and readable storage medium | |
| US10812432B1 (en) | Techniques to promote filtered messages based on historical reply rate | |
| US9015597B2 (en) | Generation and implementation of a social utility grid | |
| CN104793938B (en) | Notification bar message display method and system | |
| EP3270619B1 (en) | Network connection control method and system for mobile terminal | |
| CN105719104B (en) | Intelligent approval method and device | |
| CN106789565B (en) | Social content sharing method and device | |
| CN113364853A (en) | Business service system, business request method and gateway equipment | |
| WO2015165253A1 (en) | Method and system for account recommendation | |
| US20200286144A1 (en) | Managing service provider service options | |
| KR20140009074A (en) | Smart scheduled sync method for sync applications and mobile device | |
| CN106559555A (en) | A kind of construction method of address list, device | |
| CN104503668A (en) | Method, system and terminal for generating menu shortcut | |
| EP3518166A1 (en) | Mobile terminal-based payment method and mobile terminal | |
| CN105278951B (en) | A kind of dialog box sort method and terminal | |
| CN110020025A (en) | A kind of data processing method and device | |
| CN106817472B (en) | A communication account determination method, terminal device and server | |
| EP3678067A1 (en) | Recommending method and apparatus, storage medium, and terminal device | |
| CN109375961A (en) | Application startup optimization method, device, computer device and storage medium | |
| US20190018868A1 (en) | Method of inputting document information, device, server, and storage medium | |
| WO2019047345A1 (en) | Method of generating one-time password sending policy, and one-time password sending method | |
| CN106559556A (en) | A kind of communication processing method, device | |
| CN114006981B (en) | Outbound service processing method and device and electronic equipment | |
| CN114691944A (en) | Data query method, apparatus, electronic device and readable medium | |
| CN110995856B (en) | Method, device and equipment for server expansion and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |