CN111858564A - Data processing method, service processing method, device, terminal and storage medium - Google Patents

Data processing method, service processing method, device, terminal and storage medium Download PDF

Info

Publication number
CN111858564A
CN111858564A CN201910352490.4A CN201910352490A CN111858564A CN 111858564 A CN111858564 A CN 111858564A CN 201910352490 A CN201910352490 A CN 201910352490A CN 111858564 A CN111858564 A CN 111858564A
Authority
CN
China
Prior art keywords
index
data
user
user pair
normalized
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.)
Pending
Application number
CN201910352490.4A
Other languages
Chinese (zh)
Inventor
付荑曼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910352490.4A priority Critical patent/CN111858564A/en
Publication of CN111858564A publication Critical patent/CN111858564A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a service processing method, a device, a server and a medium, wherein the data processing method comprises the following steps: obtaining social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair; standardizing the social data of the first user pair under the target index to obtain standardized data, wherein the standardized data is obtained by adjusting the order of magnitude of the social data to a preset order of magnitude; normalizing the normalized data to obtain normalized data, wherein the normalizing is to adjust the value of the normalized data to be within a preset value range; and weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs. The embodiment of the invention can better determine the intimacy between the user pairs and improve the accuracy of the intimacy.

Description

Data processing method, service processing method, device, terminal and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to the field of data processing technologies, and in particular, to a data processing method, a service processing method, a data processing apparatus, a service processing apparatus, a server, and a computer storage medium.
Background
Intimacy is a measure of intimacy between two users; if the intimacy between the two users is higher, the interaction between the two users is more frequent, namely the relationship between the two users is more intimacy; if the intimacy between the two users is low, the interaction frequency between the two users is low, namely the relationship between the two users is unfamiliar. Currently, when determining the intimacy between pairs of users, it is common to: firstly, acquiring the interaction frequency between the user pairs, and then directly taking the interaction frequency as the intimacy between the user pairs. The inventor finds that the existing determination mode of the intimacy degree is simple and has low accuracy in practice.
Disclosure of Invention
Embodiments of the present invention provide a data processing method, a service processing method, an apparatus, a server, and a computer storage medium, which can better determine affinity between user pairs and improve accuracy of affinity.
In one aspect, an embodiment of the present invention provides a data processing method, where the data processing method includes:
obtaining social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair;
standardizing the social data of the first user pair under the target index to obtain standardized data, wherein the standardized data is obtained by adjusting the order of magnitude of the social data to a preset order of magnitude;
normalizing the normalized data to obtain normalized data, wherein the normalizing is to adjust the value of the normalized data to be within a preset value range;
and weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs.
In another aspect, an embodiment of the present invention provides a service processing method, where the service processing method includes:
acquiring a target service between a first user and a second user, wherein the first user and the second user form a first user pair;
acquiring the intimacy degree between the first user pairs, wherein the intimacy degree is obtained by calculation by adopting the data processing method;
And if the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service.
In another aspect, an embodiment of the present invention provides a data processing apparatus, where the data processing apparatus includes:
the acquisition unit is used for acquiring social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair;
the processing unit is used for carrying out standardization processing on the social data of the first user pair under the target index to obtain standardized data, wherein the standardization processing refers to the processing of adjusting the order of magnitude of the social data to a preset order of magnitude;
the processing unit is used for carrying out normalization processing on the standardized data to obtain normalized data, wherein the normalization processing refers to the processing of adjusting the value of the standardized data to be within a preset numerical range;
and the weighting unit is used for weighting the normalized data by adopting the weight value of the target index to obtain the intimacy degree between the first user pairs.
In another aspect, an embodiment of the present invention provides a service processing apparatus, where the service processing apparatus includes:
An obtaining unit, configured to obtain a target service between a first user and a second user, where the first user and the second user form a first user pair;
the obtaining unit is configured to obtain intimacy between the first user pair, where the intimacy is obtained by calculation using the data processing method;
and the processing unit is used for performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service if the intimacy between the first user pairs meets the triggering condition.
In another aspect, an embodiment of the present invention provides a server, where the server includes a communication interface, and the server further includes:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more first instructions adapted to be loaded by the processor and to perform the steps of:
obtaining social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair;
standardizing the social data of the first user pair under the target index to obtain standardized data, wherein the standardized data is obtained by adjusting the order of magnitude of the social data to a preset order of magnitude;
Normalizing the normalized data to obtain normalized data, wherein the normalizing is to adjust the value of the normalized data to be within a preset value range;
and weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs.
Alternatively, the computer storage medium stores one or more second instructions adapted to be loaded by the processor and to perform the steps of:
acquiring a target service between a first user and a second user, wherein the first user and the second user form a first user pair;
acquiring the intimacy degree between the first user pairs, wherein the intimacy degree is obtained by calculation by adopting the data processing method;
and if the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service.
In yet another aspect, an embodiment of the present invention provides a computer storage medium, where one or more first instructions are stored, and the one or more first instructions are adapted to be loaded by a processor and perform the following steps:
Obtaining social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair;
standardizing the social data of the first user pair under the target index to obtain standardized data, wherein the standardized data is obtained by adjusting the order of magnitude of the social data to a preset order of magnitude;
normalizing the normalized data to obtain normalized data, wherein the normalizing is to adjust the value of the normalized data to be within a preset value range;
and weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs.
Alternatively, the computer storage medium stores one or more second instructions adapted to be loaded by the processor and to perform the steps of:
acquiring a target service between a first user and a second user, wherein the first user and the second user form a first user pair;
acquiring the intimacy degree between the first user pairs, wherein the intimacy degree is obtained by calculation by adopting the data processing method;
And if the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service.
According to the embodiment of the invention, after the social data of the first user pair under the target index are obtained, the social data can be standardized firstly, wherein the standardized processing refers to the processing of adjusting the order of magnitude of the social data to the preset order of magnitude; therefore, the order of magnitude of the standardized data obtained by standardization processing can be equal to the preset order of magnitude, and the standardized data is restrained by the preset order of magnitude, so that the accuracy of the standardized data can be improved. Secondly, normalization processing is carried out on the standardized data, wherein the normalization processing refers to processing for adjusting the value of the standardized data to be within a preset numerical range; therefore, the value of the normalized data obtained by normalization processing is in a preset value range, and the accuracy of the normalized data is further improved. Then, weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs; this can improve the accuracy of the intimacy degree to some extent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic architecture diagram of a communication system according to an embodiment of the present invention;
fig. 1b is an application scenario diagram of a service processing scheme provided in an embodiment of the present invention;
fig. 1c is a diagram of another application scenario of a service processing scheme provided in an embodiment of the present invention;
fig. 1d is another application scenario diagram of a service processing scheme provided in an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a data processing method according to another embodiment of the present invention;
FIG. 4 is a diagram illustrating a normalization function provided by an embodiment of the present invention;
FIG. 5a is a data diagram of social data provided by an embodiment of the present invention;
FIG. 5b is a data diagram of normalized data provided by an embodiment of the present invention;
FIG. 5c is a data diagram of a normalized data provided by an embodiment of the present invention;
FIG. 5d is a data schematic of intimacy degree data provided by an embodiment of the present invention;
fig. 6 is a flowchart illustrating a service processing method according to an embodiment of the present invention;
fig. 7a is an application scenario diagram of a service processing method according to an embodiment of the present invention;
fig. 7b is another application scenario diagram of a service processing method according to an embodiment of the present invention;
fig. 8a is an application scenario diagram of a service processing method according to another embodiment of the present invention;
fig. 8b is an application scenario diagram of a service processing method according to another embodiment of the present invention;
fig. 8c is an application scenario diagram of a service processing method according to another embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides a data processing scheme to more accurately calculate the intimacy degree between user pairs; the data processing scheme may be applied to a server, where the server may include but is not limited to: data processing servers, web servers (e.g., web site servers), application servers, etc.; the server may be an independent service device, or may be a cluster device formed by a plurality of service devices, which is not limited in the implementation of the present invention. When the server calculates the intimacy degree between the first user pairs by using the data processing scheme, the server can firstly sequentially carry out standardization processing and normalization processing on the social data of the first user pairs under the target index, and then carry out weighting processing on the normalized data obtained by the normalization processing by using the weight value of the target index to obtain the intimacy degree between the first user pairs; the first user pair here may be any pair of users, which is composed of a first user and a second user. Based on the data processing scheme, the embodiment of the invention also provides a service processing scheme. After the server determines the intimacy between the first user pair by adopting the data processing scheme, the server can subsequently adopt the service processing scheme to perform product differentiation operation on the target service between the first user and the second user according to the intimacy between the first user pair; the target services herein may include, but are not limited to: voice services (e.g., VOIP (Voice over Internet Protocol) services, instant Voice intercom services, etc.), social session services (e.g., instant messaging session services, short message session services, etc.), and video services, among others.
The following explains the service processing scheme proposed in the embodiment of the present invention, taking the target service as the VOIP service and applying the VOIP service in the communication system shown in fig. 1a as an example; wherein, the communication system can comprise a first terminal 11, a second terminal 12 and a server 13; the first and second terminals may include, but are not limited to: smart phones, laptop computers, tablet computers, desktop computers, and the like. In particular, the first user may call the second user using an instant messaging application (e.g., WeChat application, Tencent QQ application, etc.) in the first terminal, as shown in FIG. 1 b. After detecting the call operation of the first user, the first terminal can send a voice call request to the server, wherein the voice call request carries the user identification of the second user. After receiving a voice call request sent by a first terminal, a server can send a voice call notification to a second terminal, wherein the voice call notification carries a user identifier of a first user; after receiving the voice call notification sent by the server, the second terminal may output a prompt message to prompt the second user to perform a voice call with the first user, as shown in fig. 1 c. The second terminal can feed back a confirmation message to the server after detecting that the second user confirms the operation of carrying out the voice call with the first user; the server may establish a voice connection between the first user and the second user in response to the confirmation message to enable voice communication between the first user and the second user. In the process of voice communication between a first user and a second user, a server can acquire the intimacy between a first user pair formed by the first user and the second user; if the intimacy between the first user pair is greater than the preset threshold, the server may perform voice clarity improvement processing on the VOIP service between the first user and the second user, as shown in fig. 1 d; therefore, voice communication can be better carried out between the first user and the second user, and user experience is improved. Optionally, the server may also obtain intimacy between the first user pair in the process of establishing the voice connection between the first user and the second user, and perform voice clarity improvement processing according to the intimacy.
Based on the above description, the embodiment of the present invention proposes a data processing method, which may be executed by a server. Referring to fig. 2, the data processing method may include the following steps S201 to S204:
s201, social data of the first user pair under the target index are obtained.
The server can respond to the detected intimacy assessment trigger event aiming at the first user pair, and social data of the first user pair under the target index is obtained; intimacy assessment triggering events herein may include, but are not limited to: acquiring an event related to an intimacy degree evaluation request of the first user pair, an event reaching an intimacy degree evaluation period for intimacy degree evaluation of the first user pair, and the like; the event that the intimacy assessment period arrives refers to: an event that the interval duration between the current time of the server and the time of last intimacy evaluation on the first user pair is equal to the cycle duration of the intimacy evaluation period, wherein the current time refers to the time recorded by a system of the server; the time recorded by the system, e.g., server, is 8:00, then the current time is 8: 00; the intimacy assessment period may be set according to empirical values or business requirements, for example to 1 month or 1 week.
The first user pair here may be any user pair, or may be a user pair designated by a service person, which is not limited herein; the first user pair may be comprised of a first user and a second user. When the server obtains the social data of the first user pair under the target index, the server can obtain the interaction data of the first user and the second user in a preset time period, and the social data of the first user pair is extracted from the interaction data according to the preset target index. The target index can be set according to an empirical value or a business requirement, and the target index can comprise at least one index for performing intimacy assessment on the first user pair; for example, the target metrics may include, but are not limited to: social frequency (e.g., voice dialing frequency, social session frequency, etc.), number of social days (e.g., voice dialing days, social session days, etc.), social duration (e.g., total voice call duration, total social session duration, etc.), number of last social days from current time (e.g., number of last voice call days from current time, number of last social session days from current time, etc.), and so forth. The preset time period can be set according to the business requirement, for example, the preset time period is set as a time period formed by calculating one week ahead based on the current time; the preset time period can also be a time period formed by the last intimacy degree evaluation and the current intimacy degree evaluation; the period of time may be the same as or different from the period of the intimacy degree assessment period, and is not limited thereto.
S202, carrying out standardization processing on the social data of the first user pair under the target index to obtain standardized data.
The normalization process herein refers to a process of adjusting the order of magnitude of the social data to a preset order of magnitude, that is, the order of magnitude of the normalized data obtained by the normalization process is equal to the preset order of magnitude. The data level refers to the scale of quantity or size, and can be expressed by a power of 10; for example, assuming that the social data is 100, the social data may be represented as 102I.e. the social data is of the order of 2; for another example, if the social data is 0.01, the social data can be represented as 10-2I.e. of the social dataOf the order of-2. The preset magnitude may be set according to actual traffic requirements, for example, the preset magnitude is set equal to 0.
In a specific implementation process, the server can obtain a preset standardized algorithm, and the standardized algorithm is adopted to carry out standardized processing on social data of the first user pair under a target index to obtain standardized data; normalization algorithms herein may include, but are not limited to: a Z-score normalization algorithm (normal normalization algorithm), a maximum-minimum normalization algorithm, a log-normalization algorithm, etc.
And S203, normalizing the normalized data to obtain normalized data.
The normalization processing refers to processing for adjusting the value of the normalized data to be within a preset numerical range, namely, the value of the normalized data obtained by the normalization processing is within the preset numerical range; the preset value range can be set according to the actual service requirement, for example, to [0, 1 ]. In a specific implementation process, the server can obtain a preset normalization function, and normalization processing is performed on the normalized data by adopting the normalization function to obtain normalized data; the normalization function herein may include, but is not limited to: a Sigmiod function (a threshold function), a normaize function (a normalization function). Optionally, in practical application, the normalization function may be optimized according to an actual service condition, and the normalized data is normalized by using the optimized normalization function, so as to obtain normalized data.
S204, weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs.
As can be seen from the foregoing, the target indicator may include at least one indicator that assesses intimacy of the first user pair. When the target index includes one index, the specific implementation of step S204 may be: and weighting the normalized data by adopting the weight value of the target index, and taking the weighted normalized data as the intimacy degree between the first user pairs. Since the weight value of the target index may be 1 when the target index includes one index, the intimacy degree between the first pair of users calculated by step S204 in this case is equal to the normalized data. When the target index includes at least two indexes, the specific implementation of step S204 may be: acquiring the weight value of each index, and weighting the normalized data of the first user pair under each index by adopting the weight value of each index; and summing the weighted normalized data under each index to obtain the intimacy degree between the first user pairs.
According to the embodiment of the invention, after the social data of the first user pair under the target index are obtained, the social data can be standardized firstly, wherein the standardized processing refers to the processing of adjusting the order of magnitude of the social data to the preset order of magnitude; therefore, the order of magnitude of the standardized data obtained by standardization processing can be equal to the preset order of magnitude, and the standardized data is restrained by the preset order of magnitude, so that the accuracy of the standardized data can be improved. Secondly, normalization processing is carried out on the standardized data, wherein the normalization processing refers to processing for adjusting the value of the standardized data to be within a preset numerical range; therefore, the value of the normalized data obtained by normalization processing is in a preset value range, and the accuracy of the normalized data is further improved. Then, weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs; this can improve the accuracy of the intimacy degree to some extent.
Fig. 3 is a schematic flow chart of another data processing method according to an embodiment of the present invention. The data processing method may be performed by a server. In the embodiment of the present invention, the target index includes two indexes as an example. Referring to fig. 3, the data processing method may include the following steps S301 to S310:
S301, social data of the first user pair under the target index are obtained.
The target index may include a first index and a second index, and the social data of the first user pair under the target index may include the social data of the first user pair under the first index and the social data of the first user pair under the second index; the first index may be any one of the following indexes: social frequency, number of social days, social duration, and number of days the last social contact was from the current time; the second index may be any of the following: social frequency, number of social days, social duration, and number of days the last social contact was from the current time; the first index and the second index are different.
S302, acquiring a standardized parameter of the first index and a standardized parameter of the second index.
In one embodiment, the normalization parameters may include two parameters of a normalized mean and a normalized standard deviation; correspondingly, when the standardized parameter of the first index is obtained, social data of the second user pair under the first index can be obtained firstly; the number of the second user pairs may be one or more, the second user pairs may be the user pairs related to the first user pair, or may be the user pairs unrelated to the first user pair, where the related means: the first pair of users and the second pair of users have the same user. For example, if the first user pair includes user a and user B, and the second user pair includes user B and user C, the first user pair is associated with the second user pair; for another example, if the first user pair includes user a and user B, and the second user pair includes user C and user D, then the first user pair and the second user pair are unrelated. Then, an average value of the social data of the first user pair and the social data of the second user pair under the first index is obtained, and the average value is used as a normalized average value of the first index. Then, the standard deviation of the first index is calculated according to the difference value between the social data of the first user pair and the standardized mean value under the first index and the difference value between the social data of the second user pair and the standardized mean value under the first index. Alternatively, the standard deviation S of the first index may be calculated using the following formula 1.1.
Figure BDA0002044101620000091
In the above formula 1.1, x represents a normalized mean value of the first index; x is the number of1Representing social data of a first pair of users under a first index, i.e. (x)1-x) represents the difference of the social data of the first pair of users under the first criterion from the normalized mean; x is the number of2iRepresenting social data of the ith second user pair under the first index, i.e. (x)2i-x) represents the difference of the social data of the ith second user pair under the first criterion from the normalized mean; n represents the number of second user pairs.
In yet another embodiment, the normalization parameters may include two parameters, a maximum value and a minimum value; correspondingly, when the standardized parameter of the first index is obtained, social data of the second user pair under the first index can be obtained firstly; the number of the second user pairs may be one or more. Secondly, selecting the maximum social data as the maximum value of the first index and selecting the minimum social data as the minimum value of the first index from the social data of the first user pair under the first index and the social data of the second user pair under the first index.
It should be noted that the obtaining manner of the normalized parameter of the second index may refer to the obtaining manner of the normalized parameter of the first index, and is not described herein again.
And S303, standardizing the social data of the first user pair under the first index by adopting the standardized parameters of the first index to obtain standardized data of the first user pair under the first index, wherein the order of magnitude of the standardized data of the first user pair under the first index is equal to a preset order of magnitude.
In one embodiment, when the normalized parameter of the first index includes two parameters, namely the normalized mean of the first index and the standard deviation of the first index, the following formula 1.2 can be invoked to calculate the normalized data z of the first user pair under the first index according to the normalized mean of the first index and the standard deviation of the first index.
z=(x1-x)/S formula 1.2
In another embodiment, when the normalized parameter of the first index includes two parameters, i.e., the maximum value of the first index and the minimum value of the first index, the following equation 1.3 may be invoked to calculate the normalized data z of the first user pair under the first index from the maximum value b of the first index and the minimum value a of the first index.
z=(x1-a)/(b-a) formula 1.3
S304, standardizing the social data of the first user pair under the second index by adopting the standardized parameters of the second index to obtain standardized data of the first user pair under the second index, wherein the order of magnitude of the standardized data of the first user pair under the second index is equal to the preset order of magnitude.
It should be noted that, for a specific implementation of step S304, reference may be made to the specific implementation of step S303, and details are not described herein again. In addition, the execution sequence of step S304 and step S303 is not limited in the embodiment of the present invention, that is, step S303 may be executed first and then step S304 is executed; or, step S304 is executed first, and then step S303 is executed; alternatively, step S303 and step S304 are executed simultaneously.
S305, normalizing the normalized data of the first user pair under the first index to obtain normalized data of the first user pair under the first index, wherein the value of the normalized data of the first user pair under the first index is within a preset numerical range.
In a specific implementation process, the normalized data of the second user pair under the first index may be obtained first. Specifically, the social data of the second user pair under the first index may be standardized by using the standardized parameter of the first index, so as to obtain standardized data of the second user pair under the first index; for a specific implementation manner of the step S303, reference may be made to the specific implementation manner of the step S303, which is not described herein again. Next, a normalized mean value of the first index is calculated from the normalized data of the first user pair under the first index and the normalized data of the second user pair under the first index. Then, normalization processing is carried out on the normalized data of the first user pair under the first index according to the normalized average value, and normalized data of the first user pair under the first index are obtained.
The specific implementation manner of obtaining the normalized data of the first user pair under the first index by normalizing the normalized data of the first user pair under the first index according to the normalized average value may be: if the normalized mean value meets the preset condition, normalization processing is carried out on the normalized data of the first user pair under the first index by adopting a normalization function, and normalized data of the first user pair under the first index is obtained; and if the normalized mean value does not meet the preset condition, optimizing the normalization function according to the normalized mean value, and normalizing the normalized data of the first user pair under the first index by adopting the optimized normalization function to obtain the normalized data of the first user pair under the first index.
The preset conditions can be set according to actual service requirements; for example, the preset conditions may include: the normalized mean is equal to 0. Taking the normalization function as a Sigmiod function as an example, a schematic diagram of the normalization function can be seen in fig. 4. If the normalized mean value of the first index is equal to 0, the normalized mean value meets a preset condition, and the distribution of the normalized function is relatively uniform at the moment; then, normalization processing may be performed on the normalized data of the first user pair under the first index by using the normalization function shown in equation 1.4, so as to obtain normalized data s of the first user pair under the first index.
Figure BDA0002044101620000111
If the normalized mean value of the first index is not equal to 0, the normalized mean value does not meet the preset condition, and the distribution of the normalized function can be indicated to be uneven; then, the normalization function can be optimized according to the normalization mean value z to obtain an optimized normalization function shown in formula 1.5, so that the distribution of the optimized normalization function is uniform; and then, carrying out normalization processing on the normalized data of the first user pair under the first index by adopting an equation 1.5 to obtain normalized data s of the first user pair under the first index.
Figure BDA0002044101620000112
And S306, normalizing the normalized data of the first user pair under the second index to obtain normalized data of the first user pair under the second index, wherein the value of the normalized data of the first user pair under the second index is within a preset numerical range.
It should be noted that, for a specific implementation of step S306, reference may be made to the specific implementation of step S305, which is not described herein again. In addition, the execution sequence of the steps S305 and S306 is not limited in the embodiment of the present invention, that is, the step S305 is executed first and then the step S306 is executed; alternatively, step S306 is executed first, and then step S305 is executed; still alternatively, step S305 and step S306 are executed simultaneously.
S307, acquiring the weight value of the first index and the weight value of the second index.
And S308, weighting the normalized data of the first user pair under the first index by adopting the weight value of the first index to obtain weighted normalized data under the first index.
S309, weighting the normalized data of the first user pair under the second index by adopting the weight value of the second index to obtain weighted normalized data under the second index.
And S310, summing the weighted normalized data under the first index and the weighted normalized data under the second index to obtain the intimacy degree between the first user pairs.
In steps S307 to S310, both the weight value of the first indicator and the weight value of the second indicator may be set in advance according to the service requirement or the experience value; the weighting process is a process of multiplying the normalized data by a weight value. It should be noted that, when the target index includes one index or at least three indexes, the specific implementation manner of the target index may refer to the specific implementation manner of the embodiment of the present invention, and details are not described herein again.
According to the embodiment of the invention, after the social data of the first user pair under the target index are obtained, the social data can be standardized firstly, wherein the standardized processing refers to the processing of adjusting the order of magnitude of the social data to the preset order of magnitude; therefore, the order of magnitude of the standardized data obtained by standardization processing can be equal to the preset order of magnitude, and the standardized data is restrained by the preset order of magnitude, so that the accuracy of the standardized data can be improved. Secondly, normalization processing is carried out on the standardized data, wherein the normalization processing refers to processing for adjusting the value of the standardized data to be within a preset numerical range; therefore, the value of the normalized data obtained by normalization processing is in a preset value range, and the accuracy of the normalized data is further improved. Then, weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs; this can improve the accuracy of the intimacy degree to some extent.
Based on the above description of the data processing method embodiments shown in fig. 2 to fig. 3, the server may use the data processing method to periodically (e.g., monthly, weekly, etc.) calculate and output the affinity between each user pair in the target service. Taking a target service as a VOIP service as an example, the server may obtain behavior matrix data of a user's VOIP voice one-to-one dialing, and extract social data of each user pair under multiple indexes from the behavior matrix data; the plurality of indices herein include: dialing frequency (Callnum), dialing days (Calldays), dialing duration (Calltime), last dialing days up to the present (Lastcall). The social data of the respective user pairs under the multiple indexes may be presented in the form of a matrix, as shown in fig. 5 a; optionally, the social data of each user pair under multiple indexes may be presented in the form of a list.
After the social data of each user pair under multiple indexes is obtained, the social data of each user pair under each index may be normalized based on the normalization processing method mentioned in the above embodiment, so as to obtain normalized data of each user pair under each index, as shown by the data in the gray frame in fig. 5 b; because the magnitude of the standardized data of each user pair under each index is equal to the preset magnitude, the magnitude of the standardized data of each user pair under each index after the standardization processing is the same, and the subsequent data processing can be facilitated. Secondly, based on the normalization processing method mentioned in the above embodiment, normalization processing may be performed on the normalized data of each user pair under each index to obtain normalized data of each user pair under each index, as shown by the data in the gray frame in fig. 5 c; because the value of the normalized data of each user pair under each index is in the preset numerical range, the normalized data of each user pair under each index after normalization processing all belong to the same quantity range, so that the subsequent weighted summation processing can be further facilitated, and the intimacy calculation is more accurate. Then obtaining the weight value of each index, and carrying out weighted summation according to the weight value of each index to obtain the intimacy of the user pair; specifically, the weighted value of the Callnum index is set to 0.3, the weighted value of the Calldays index is set to 0.3, the weighted value of the calllome index is set to 0.3, and the weighted value of the Lastcall index is set to 0.1 according to the empirical value, then the intimacy of each user pair can be respectively calculated by adopting the formula 1.6, and the calculation result can be shown as the data in the gray frame in fig. 5 d.
Ti=y1i*0.3+y2i*0.3+y3i*0.3+y4i0.1 formula 1.6
In the above formula 1.6, TiRepresenting the intimacy of the ith user pair; y is1iNormalized data representing the ith user pair under the 1 st index (Callnum index); y is2iNormalized data representing the ith user pair at the 2 nd index (caldalys index); y is3iNormalized data representing the ith user pair under the 3 rd metric (Calltime metric); y is4iIndicating the normalized data for the ith user pair at the 4 th index (Lastcall index).
Based on the above description, the embodiment of the present invention further provides a service processing method, where the service processing method may be executed by a server. Referring to fig. 6, the service processing method may include the following steps S601-S603:
s601, acquiring a target service between a first user and a second user, wherein the first user and the second user form a first user pair.
The target services may include, but are not limited to: voice services such as VOIP service, instant voice talkback service, social session services such as instant messaging session service, short message session service, and video service. The server can receive a service request which is sent by the first terminal and is about to a target service, wherein the service request carries a second user identifier; determining a second terminal according to the second user identification, and establishing communication connection between the first terminal and the second terminal according to the service request; executing a target service based on the communication connection; the first terminal is a terminal associated with a first user, and the second terminal is a terminal associated with a second user. Optionally, the service request may also be sent by the second terminal, and the specific implementation manner of the service request may refer to the embodiment of the present invention, which is not described herein again.
In an embodiment, the server may, upon receiving the service request, obtain the target service according to the service request and perform the subsequent steps S602-S603. In another embodiment, the server may also obtain the target service and perform the subsequent steps S602 to S603 when the communication connection is established between the first terminal and the second terminal. In another embodiment, the server may further acquire the target service and perform the subsequent steps S602 to S603 in the process of executing the target service.
S602, acquiring intimacy between the first user pairs.
The intimacy between the first user pair is calculated by adopting the data processing method shown in FIG. 2 or FIG. 3; specifically, social data of the first user pair under a target index may be obtained, where the target index includes at least one index for performing affinity assessment on the first user pair. Secondly, standardizing social data of the first user pair under the target index to obtain standardized data; and carrying out normalization processing on the normalized data to obtain normalized data. And then, weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs.
And S603, if the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service.
The trigger conditions may include: the intimacy degree is larger than a preset threshold value or the intimacy degree corresponding to the intimacy degree is larger than a preset level; the preset threshold and the preset level can be adjusted or set according to actual service requirements.
The target service comprises a voice service: in one embodiment, if the intimacy between the first user pair meets the triggering condition, the server may provide a service item for improving the speech definition for the first user pair; accordingly, the specific implementation of step S603 may be: if the intimacy between the first user pair meets the triggering condition, acquiring a target voice definition parameter corresponding to the intimacy between the first user pair in the process of executing the voice service; and carrying out voice definition improving processing according to the target voice definition parameters. In another embodiment, if the intimacy between the first user pair meets the triggering condition, the server may also provide a voice change service item for the first user pair; accordingly, the specific implementation of step S603 may also be: if the intimacy between the first user pair meets the triggering condition, acquiring a target audio parameter corresponding to the intimacy between the first user pair in the process of executing the voice service, wherein the target audio parameter comprises a tone parameter and/or a tone parameter; and performing sound changing processing on the audio of the first user and/or the audio of the second user by adopting the target audio parameters.
The target services include social session services: if the intimacy between the first user pair meets the triggering condition, the server can provide the service item recommended by the session element for the first user pair; accordingly, the specific implementation of step S603 may be: if the intimacy between the first user pair meets the triggering condition, acquiring a session element corresponding to the intimacy between the first user pair in the process of executing the social session service; the session element herein may include at least one of: a conversation interaction element, a conversation decoration element and an intimacy prompting element. The conversation interaction element refers to an item which can be given away by the first user and the second user in the social conversation of the first user pair; the conversation decoration element may include: an avatar pendant for decorating a user avatar of the first user and/or a user avatar of the second user, and an article for decorating a conversation interface of the first user and the second user, and so on; the intimacy degree prompting element refers to an element for prompting intimacy degree between the first user pair. After the session element corresponding to the intimacy between the first user pair is acquired, the session element can be sent to the first terminal and the second terminal to be displayed.
The process of service optimization processing of social session service is explained by using the application scenario diagrams shown in fig. 7 a-7 b: after detecting that the intimacy degree between the first user pairs meets the trigger condition, the server may obtain a session element corresponding to the intimacy degree between the first user pairs, where the session element includes: conversation interactive elements 21 such as virtual cakes, virtual flowers and ice creams and affinity prompt elements 22; the server may send the session element to the first terminal and the second terminal, respectively. After receiving the session element, the first terminal and the second terminal may respectively display the session element in the session interface of the first user pair, as shown in fig. 7 a. If the first user wants to present a virtual cake to the second user, the virtual cake can be selected in the session interface and a confirmation button 1 in the session interface is clicked; at this time, the first terminal may send an item presentation request to the server, the item presentation request carrying an item identification of the virtual cake. The server may send an item presentation notification to the second terminal after receiving the item presentation request; after the second terminal receives the item gifting notification, the item gifting notification may be output in a session interface to prompt the second user, as shown in FIG. 7 b.
The target service comprises a video service: if the intimacy between the first user pair meets the triggering condition, the server can provide a service item recommended by the face modification template for the first user pair; accordingly, the specific implementation of step S603 may be: if the intimacy between the first user pair meets the triggering condition, in the process of executing the video service, obtaining a face modification template corresponding to the intimacy between the first user pair, where the face modification template may include at least one of the following: a face pasting template, a face beautifying template and a filter template. Wherein, the face mapping template is a template which can adopt interesting pasters (such as dog nose pasters, rabbit ear pasters and the like) to modify the face image; the face beautifying template is a template capable of performing face-changing special effect processing (such as eye enlargement, face thinning and the like) on a face image. After the face modification template corresponding to the intimacy between the first user pair and the second user pair is obtained, the face modification template can be sent to the first terminal and the second terminal to be displayed. Optionally, if the intimacy between the first user pair meets the trigger condition, the server may also provide a service item recommended by the pendant element and/or a service item recommended by the intimacy prompt element for the first user pair.
The process of the service optimization processing of the video service is explained by using the application scene diagrams shown in fig. 8a to 8 c: after detecting that the intimacy degree between the first user pair meets the triggering condition, the server may obtain a face modification template (in the embodiment of the present invention, a face charting template is taken as an example) corresponding to the intimacy degree between the first user pair, and send the face modification template to the first terminal and the second terminal, respectively. After receiving the face retouching template, the first terminal and the second terminal may respectively display the face retouching template in a session interface of the first user pair, as shown in fig. 8 a. If the first user wants to modify the own face image (i.e. the first face image) in the video interface, a target face modification template (e.g. the selection template 33) may be selected and the confirmation button 1 of the video interface may be clicked; at this time, the first terminal may send a face modification request to the server to request the server to notify the second terminal to modify the face image of the first user in the video interface of the second terminal, where the face modification request carries the template identifier of the target face modification template. After receiving the face modification request, the server may send a face modification notification to the second terminal, where the face modification notification carries the template identifier of the target face modification template. After the second terminal receives the face modification notification, the face image of the first user in the video interface of the second terminal may be modified by using the target face modification template, as shown in fig. 8 b. Optionally, after the first terminal detects that the first user clicks the confirmation button 1 of the video interface, the first terminal also modifies the face image of the first user in the video interface of the first terminal by using the target face modification template, as shown in fig. 8 c. It should be noted that, in other application scenarios, the first user may also modify the face image of the second user in the video interface of the first terminal and/or the second terminal by selecting the target face modification template, and the specific implementation manner of this modification may refer to the foregoing description, which is not described herein again.
When the target service between the first user pairs is executed, the data processing method shown in fig. 2 to 3 may be adopted to calculate the intimacy between the first user pairs, so as to improve the accuracy of the intimacy between the first user pairs to a certain extent. If the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service; and the differentiated operation of the services is carried out according to the intimacy, so that the user experience can be improved.
Based on the description of the above data processing method embodiment, the embodiment of the present invention also discloses a data processing apparatus, which may be a computer program (including a program code) running in a server. The data processing apparatus may perform the methods illustrated in fig. 2-3. Referring to fig. 9, the data processing apparatus may operate the following units:
an obtaining unit 101, configured to obtain social data of a first user pair under a target index, where the target index includes at least one index for performing affinity assessment on the first user pair;
the processing unit 102 is configured to perform standardization processing on the social data of the first user pair under the target index to obtain standardized data, where the standardization processing is processing for adjusting the order of magnitude of the social data to a preset order of magnitude;
The processing unit 102 is configured to perform normalization processing on the normalized data to obtain normalized data, where the normalization processing is processing for adjusting a value of the normalized data to be within a preset value range;
a weighting unit 103, configured to perform weighting processing on the normalized data by using the weight of the target indicator, so as to obtain an affinity between the first user pairs.
In one embodiment, the target metrics include a first metric and a second metric; the normalized data comprises normalized data for the first pair of users under the first criterion and normalized data for the first pair of users under the second criterion; the normalized data includes normalized data for the first pair of users under the first index and normalized data for the first pair of users under the second index.
In another embodiment, when the weighting unit 103 is configured to perform weighting processing on the normalized data by using the weight value of the target index to obtain the intimacy between the first user pair, specifically, the weighting unit is configured to: acquiring a weight value of the first index and a weight value of the second index; weighting the normalized data of the first user pair under the first index by adopting the weight value of the first index to obtain weighted normalized data under the first index; weighting the normalized data of the first user pair under the second index by adopting the weight value of the second index to obtain weighted normalized data under the second index; and summing the weighted normalized data under the first index and the weighted normalized data under the second index to obtain the intimacy degree between the first user pairs.
In another embodiment, when the processing unit 103 is configured to perform a normalization process on the social data of the first user pair under the target index to obtain normalized data, specifically, to: acquiring a standardized parameter of the first index and a standardized parameter of the second index; standardizing social data of the first user pair under the first index by adopting the standardized parameters of the first index to obtain standardized data of the first user pair under the first index, wherein the order of magnitude of the standardized data of the first user pair under the first index is equal to the preset order of magnitude; and standardizing the social data of the first user pair under the second index by adopting the standardized parameters of the second index to obtain standardized data of the first user pair under the second index, wherein the order of magnitude of the standardized data of the first user pair under the second index is equal to the preset order of magnitude.
In yet another embodiment, the normalization parameters include a normalized mean and a normalized difference; correspondingly, when the processing unit 103 is configured to obtain the normalized parameter of the first index, specifically, to: obtaining social data of the second user pair under the first index; calculating an average value of the social data of the first user pair under the first index and the social data of the second user pair under the first index, and taking the average value as a standardized average value of the first index; and calculating the standard deviation of the first index according to the difference value of the social data of the first user pair and the standardized mean value under the first index and the difference value of the social data of the second user pair and the standardized mean value under the first index.
In another embodiment, when the processing unit 103 is configured to perform normalization processing on the normalized data to obtain normalized data, specifically, to: normalizing the normalized data of the first user pair under the first index to obtain normalized data of the first user pair under the first index, wherein the value of the normalized data of the first user pair under the first index is within the preset numerical range; and normalizing the normalized data of the first user pair under the second index to obtain normalized data of the first user pair under the second index, wherein the value of the normalized data of the first user pair under the second index is within the preset numerical range.
In another embodiment, when the processing unit 103 is configured to perform normalization processing on the normalized data of the first user pair under the first index to obtain normalized data of the first user pair under the first index, specifically, to: acquiring normalized data of the second user pair under the first index; calculating a normalized mean value of the first index according to the normalized data of the first user pair under the first index and the normalized data of the second user pair under the first index; and normalizing the normalized data of the first user pair under the first index according to the normalized average value to obtain the normalized data of the first user pair under the first index.
In another embodiment, when the processing unit 103 is configured to perform normalization processing on the normalized data of the first user pair under the first index according to the normalized mean value to obtain normalized data of the first user pair under the first index, specifically, the processing unit is configured to: if the normalized mean value meets the preset condition, normalization processing is carried out on the normalized data of the first user pair under the first index by adopting a normalization function, and the normalized data of the first user pair under the first index is obtained; and if the normalized mean value does not meet the preset condition, optimizing a normalization function according to the normalized mean value, and normalizing the normalized data of the first user pair under the first index by adopting the optimized normalization function to obtain the normalized data of the first user pair under the first index.
According to an embodiment of the present invention, each step involved in the methods shown in fig. 2 to 3 may be performed by each unit in the data processing apparatus shown in fig. 9. For example, step S201 shown in fig. 2 may be performed by the acquisition unit 101 shown in fig. 9, steps S202 and S203 may be performed by the processing unit 102 shown in fig. 9, and step S204 may be performed by the weighting unit 103 shown in fig. 9; as another example, step S301 shown in fig. 3 may be performed by the acquisition unit 101 shown in fig. 9, steps S302 to S306 may be performed by the processing unit 102 shown in fig. 9, and steps S307 to S310 may be performed by the weighting unit 103 shown in fig. 9.
According to another embodiment of the present invention, the units in the data processing apparatus shown in fig. 9 may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) therein may be further split into multiple units with smaller functions to form the same operation, without affecting the achievement of the technical effect of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the data processing apparatus may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present invention, the data processing apparatus device shown in fig. 9 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the respective methods shown in fig. 2 to 3 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and a storage element, and implementing the data processing method of the embodiment of the present invention. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
According to the embodiment of the invention, after the social data of the first user pair under the target index are obtained, the social data can be standardized firstly, wherein the standardized processing refers to the processing of adjusting the order of magnitude of the social data to the preset order of magnitude; therefore, the order of magnitude of the standardized data obtained by standardization processing can be equal to the preset order of magnitude, and the standardized data is restrained by the preset order of magnitude, so that the accuracy of the standardized data can be improved. Secondly, normalization processing is carried out on the standardized data, wherein the normalization processing refers to processing for adjusting the value of the standardized data to be within a preset numerical range; therefore, the value of the normalized data obtained by normalization processing is in a preset value range, and the accuracy of the normalized data is further improved. Then, weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs; this can improve the accuracy of the intimacy degree to some extent.
Based on the description of the foregoing service processing method embodiment, the embodiment of the present invention also discloses a service processing apparatus, which may be a computer program (including a program code) running in a server. The service processing device may perform the method shown in fig. 6. Referring to fig. 10, the service processing apparatus may operate the following units:
An obtaining unit 201, configured to obtain a target service between a first user and a second user, where the first user and the second user form a first user pair;
an obtaining unit 201, configured to obtain an affinity between the first user pair, where the affinity is calculated by using the data processing method shown in fig. 2-3;
a processing unit 202, configured to perform, if the affinity between the first user pairs meets the trigger condition, service optimization processing according to the affinity between the first user pairs in the process of executing the target service.
In one embodiment, the target traffic comprises voice traffic; correspondingly, the processing unit 201 is configured to, when performing service optimization processing according to the intimacy between the first user pair in the process of executing the target service if the intimacy between the first user pair meets the trigger condition, specifically: if the intimacy between the first user pair meets a trigger condition, acquiring a target voice definition parameter corresponding to the intimacy between the first user pair in the process of executing the voice service; and carrying out voice definition improving processing according to the target voice definition parameter.
In yet another embodiment, the target service includes a social session service; correspondingly, the processing unit 201 is configured to, when performing service optimization processing according to the intimacy between the first user pair in the process of executing the target service if the intimacy between the first user pair meets the trigger condition, specifically: if the affinity between the first user pair meets a trigger condition, acquiring a session element corresponding to the affinity between the first user pair in the process of executing the social session service, wherein the session element comprises at least one of the following items: a conversation interaction element, a conversation decoration element and an intimacy prompting element; and sending the session element to a first terminal and a second terminal for displaying, wherein the first terminal is a terminal associated with the first user, and the second terminal is a terminal associated with the second user.
According to an embodiment of the present invention, each step involved in the method shown in fig. 6 may be performed by each unit in the service processing apparatus shown in fig. 10. Specifically, steps S601 and S602 shown in fig. 6 may be performed by the acquisition unit 201 shown in fig. 10, and step S603 may be performed by the processing unit 202 shown in fig. 10. According to another embodiment of the present invention, the units in the service processing apparatus shown in fig. 10 may be respectively or entirely combined into one or several other units to form another unit, or some unit(s) therein may be further split into multiple units with smaller functions to form another unit, which may implement the same operation without affecting implementation of technical effects of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the apparatus may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present invention, the business processing apparatus device shown in fig. 10 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method shown in fig. 6 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and a storage element, and the business processing method of the embodiment of the present invention may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
When the target service between the first user pairs is executed, the data processing method shown in fig. 2 to 3 may be adopted to calculate the intimacy between the first user pairs, so as to improve the accuracy of the intimacy between the first user pairs to a certain extent. If the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service; and the differentiated operation of the services is carried out according to the intimacy, so that the user experience can be improved.
Based on the description of the method embodiment and the device embodiment, the embodiment of the invention also provides a server. Referring to fig. 11, the server includes at least a processor 301, a communication interface 302, and a computer storage medium 303. Wherein the processor 301, communication interface 302, and computer storage medium 303 may be connected by a bus or other means; the communication interface 302 may include a radio frequency transceiver for data transmission with other servers or terminals.
A computer storage medium 303 may be stored in the memory of the server, the computer storage medium 303 being used to store a computer program comprising program instructions, the processor 301 being used to execute the program instructions stored by the computer storage medium 303. The processor 301 (or CPU) is a computing core and a control core of the server, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; in one embodiment, the processor 301 according to the embodiment of the present invention may be configured to perform a series of data processing, including: obtaining social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair; standardizing the social data of the first user pair under the target index to obtain standardized data, wherein the standardized data is obtained by adjusting the order of magnitude of the social data to a preset order of magnitude; normalizing the normalized data to obtain normalized data, wherein the normalizing is to adjust the value of the normalized data to be within a preset value range; and weighting the normalized data by adopting the weight value of the target index to obtain the intimacy degree between the first user pairs, and the like. In another embodiment, the processor 301 according to the embodiment of the present invention may be further configured to perform a series of service processing, including: acquiring a target service between a first user and a second user, wherein the first user and the second user form a first user pair; acquiring the intimacy degree between the first user pair, wherein the intimacy degree is obtained by calculation through a data processing method shown in the figures 2-3; and if the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service, and the like.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the server and is used for storing programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the server, and may also include an extended storage medium supported by the server. The computer storage media provides storage space that stores the operating system of the server. Also stored in the memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by the processor. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more first instructions stored in a computer storage medium may be loaded and executed by a processor to perform the corresponding steps of the method described above in connection with the data processing embodiment; in a specific implementation, one or more first instructions in a computer storage medium are loaded by a processor and perform the following steps:
Obtaining social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair;
standardizing the social data of the first user pair under the target index to obtain standardized data, wherein the standardized data is obtained by adjusting the order of magnitude of the social data to a preset order of magnitude;
normalizing the normalized data to obtain normalized data, wherein the normalizing is to adjust the value of the normalized data to be within a preset value range;
and weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs.
In one embodiment, the target metrics include a first metric and a second metric; the normalized data comprises normalized data for the first pair of users under the first criterion and normalized data for the first pair of users under the second criterion; the normalized data includes normalized data for the first pair of users under the first index and normalized data for the first pair of users under the second index.
In another embodiment, when weighting the normalized data by using the weight value of the target indicator to obtain the intimacy degree between the first pair of users, the one or more first instructions are loaded and executed by the processor: acquiring a weight value of the first index and a weight value of the second index; weighting the normalized data of the first user pair under the first index by adopting the weight value of the first index to obtain weighted normalized data under the first index; weighting the normalized data of the first user pair under the second index by adopting the weight value of the second index to obtain weighted normalized data under the second index; and summing the weighted normalized data under the first index and the weighted normalized data under the second index to obtain the intimacy degree between the first user pairs.
In another embodiment, when the social data of the first user pair under the target index is normalized to obtain normalized data, the one or more first instructions are loaded and executed by the processor: acquiring a standardized parameter of the first index and a standardized parameter of the second index; standardizing social data of the first user pair under the first index by adopting the standardized parameters of the first index to obtain standardized data of the first user pair under the first index, wherein the order of magnitude of the standardized data of the first user pair under the first index is equal to the preset order of magnitude; and standardizing the social data of the first user pair under the second index by adopting the standardized parameters of the second index to obtain standardized data of the first user pair under the second index, wherein the order of magnitude of the standardized data of the first user pair under the second index is equal to the preset order of magnitude.
In yet another embodiment, the normalization parameters include a normalized mean and a normalized difference; accordingly, in obtaining the normalized parameter for the first indicator, the one or more first instructions are loaded and executed by a processor to: obtaining social data of the second user pair under the first index; calculating an average value of the social data of the first user pair under the first index and the social data of the second user pair under the first index, and taking the average value as a standardized average value of the first index; and calculating the standard deviation of the first index according to the difference value of the social data of the first user pair and the standardized mean value under the first index and the difference value of the social data of the second user pair and the standardized mean value under the first index.
In another embodiment, when normalization processing is performed on the normalized data to obtain normalized data, the one or more first instructions are loaded by the processor and execute: normalizing the normalized data of the first user pair under the first index to obtain normalized data of the first user pair under the first index, wherein the value of the normalized data of the first user pair under the first index is within the preset numerical range; and normalizing the normalized data of the first user pair under the second index to obtain normalized data of the first user pair under the second index, wherein the value of the normalized data of the first user pair under the second index is within the preset numerical range.
In another embodiment, when normalizing the normalized data of the first user pair under the first criterion to obtain the normalized data of the first user pair under the first criterion, the one or more first instructions are loaded and executed by the processor: acquiring normalized data of the second user pair under the first index; calculating a normalized mean value of the first index according to the normalized data of the first user pair under the first index and the normalized data of the second user pair under the first index; and normalizing the normalized data of the first user pair under the first index according to the normalized average value to obtain the normalized data of the first user pair under the first index.
In another embodiment, when the normalized data of the first user pair under the first index is obtained by normalizing the normalized average value to obtain normalized data of the first user pair under the first index, the one or more first instructions are loaded and executed by the processor: if the normalized mean value meets the preset condition, normalization processing is carried out on the normalized data of the first user pair under the first index by adopting a normalization function, and the normalized data of the first user pair under the first index is obtained; and if the normalized mean value does not meet the preset condition, optimizing a normalization function according to the normalized mean value, and normalizing the normalized data of the first user pair under the first index by adopting the optimized normalization function to obtain the normalized data of the first user pair under the first index.
In yet another embodiment, one or more second instructions stored in the computer storage medium may be loaded and executed by the processor to implement the corresponding steps of the method described above in relation to the business process embodiment; in a specific implementation, one or more second instructions in the computer storage medium are loaded by the processor and perform the following steps:
acquiring a target service between a first user and a second user, wherein the first user and the second user form a first user pair;
acquiring the intimacy degree between the first user pair, wherein the intimacy degree is obtained by calculation through a data processing method shown in the figures 2-3;
and if the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service.
In one embodiment, the target traffic comprises voice traffic; correspondingly, if the intimacy degree between the first user pairs meets the triggering condition, in the process of executing the target service, when the service optimization processing is performed according to the intimacy degree between the first user pairs, the one or more second instructions are loaded and executed by the processor: if the intimacy between the first user pair meets a trigger condition, acquiring a target voice definition parameter corresponding to the intimacy between the first user pair in the process of executing the voice service; and carrying out voice definition improving processing according to the target voice definition parameter.
In yet another embodiment, the target service includes a social session service; correspondingly, if the intimacy degree between the first user pairs meets the triggering condition, in the process of executing the target service, when the service optimization processing is performed according to the intimacy degree between the first user pairs, the one or more second instructions are loaded and executed by the processor: if the affinity between the first user pair meets a trigger condition, acquiring a session element corresponding to the affinity between the first user pair in the process of executing the social session service, wherein the session element comprises at least one of the following items: a conversation interaction element, a conversation decoration element and an intimacy prompting element; and sending the session element to a first terminal and a second terminal for displaying, wherein the first terminal is a terminal associated with the first user, and the second terminal is a terminal associated with the second user.
According to the embodiment of the invention, after the social data of the first user pair under the target index are obtained, the social data can be standardized firstly, wherein the standardized processing refers to the processing of adjusting the order of magnitude of the social data to the preset order of magnitude; therefore, the order of magnitude of the standardized data obtained by standardization processing can be equal to the preset order of magnitude, and the standardized data is restrained by the preset order of magnitude, so that the accuracy of the standardized data can be improved. Secondly, normalization processing is carried out on the standardized data, wherein the normalization processing refers to processing for adjusting the value of the standardized data to be within a preset numerical range; therefore, the value of the normalized data obtained by normalization processing is in a preset value range, and the accuracy of the normalized data is further improved. Then, weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs; this can improve the accuracy of the intimacy degree to some extent.
It should be noted that the above-mentioned embodiments illustrate only the preferred embodiments of the present invention, and are therefore not to be considered limiting of the scope of the invention, for the invention is also intended to be covered by the appended claims.

Claims (15)

1. A method of data processing, the method comprising:
obtaining social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair;
standardizing the social data of the first user pair under the target index to obtain standardized data, wherein the standardized data is obtained by adjusting the order of magnitude of the social data to a preset order of magnitude;
normalizing the normalized data to obtain normalized data, wherein the normalizing is to adjust the value of the normalized data to be within a preset value range;
and weighting the normalized data by adopting the weight value of the target index to obtain the intimacy between the first user pairs.
2. The method of claim 1, wherein the target metrics include a first metric and a second metric;
The normalized data comprises normalized data for the first pair of users under the first criterion and normalized data for the first pair of users under the second criterion;
the normalized data includes normalized data for the first pair of users under the first index and normalized data for the first pair of users under the second index.
3. The method of claim 2, wherein weighting the normalized data with the weight of the target metric to obtain the affinity between the first pair of users comprises:
acquiring a weight value of the first index and a weight value of the second index;
weighting the normalized data of the first user pair under the first index by adopting the weight value of the first index to obtain weighted normalized data under the first index;
weighting the normalized data of the first user pair under the second index by adopting the weight value of the second index to obtain weighted normalized data under the second index;
and summing the weighted normalized data under the first index and the weighted normalized data under the second index to obtain the intimacy degree between the first user pairs.
4. The method of claim 2, wherein the normalizing the social data of the first pair of users under the target metric to obtain normalized data comprises:
acquiring a standardized parameter of the first index and a standardized parameter of the second index;
standardizing social data of the first user pair under the first index by adopting the standardized parameters of the first index to obtain standardized data of the first user pair under the first index, wherein the order of magnitude of the standardized data of the first user pair under the first index is equal to the preset order of magnitude;
and standardizing the social data of the first user pair under the second index by adopting the standardized parameters of the second index to obtain standardized data of the first user pair under the second index, wherein the order of magnitude of the standardized data of the first user pair under the second index is equal to the preset order of magnitude.
5. The method of claim 4, wherein the normalization parameters include a normalized mean and a standard deviation; the acquiring of the normalized parameter of the first index includes:
Acquiring social data of a second user pair under the first index;
calculating an average value of the social data of the first user pair under the first index and the social data of the second user pair under the first index, and taking the average value as a standardized average value of the first index;
and calculating the standard deviation of the first index according to the difference value of the social data of the first user pair and the standardized mean value under the first index and the difference value of the social data of the second user pair and the standardized mean value under the first index.
6. The method of claim 2, wherein said normalizing said normalized data to obtain normalized data comprises:
normalizing the normalized data of the first user pair under the first index to obtain normalized data of the first user pair under the first index, wherein the value of the normalized data of the first user pair under the first index is within the preset numerical range;
and normalizing the normalized data of the first user pair under the second index to obtain normalized data of the first user pair under the second index, wherein the value of the normalized data of the first user pair under the second index is within the preset numerical range.
7. The method of claim 6, wherein the normalizing the normalized data of the first user pair at the first index to obtain the normalized data of the first user pair at the first index comprises:
acquiring standardized data of a second user pair under the first index;
calculating a normalized mean value of the first index according to the normalized data of the first user pair under the first index and the normalized data of the second user pair under the first index;
and normalizing the normalized data of the first user pair under the first index according to the normalized average value to obtain the normalized data of the first user pair under the first index.
8. The method of claim 7, wherein the normalizing the normalized data of the first user pair under the first index according to the normalized mean value to obtain the normalized data of the first user pair under the first index comprises:
if the normalized mean value meets the preset condition, normalization processing is carried out on the normalized data of the first user pair under the first index by adopting a normalization function, and the normalized data of the first user pair under the first index is obtained;
And if the normalized mean value does not meet the preset condition, optimizing a normalization function according to the normalized mean value, and normalizing the normalized data of the first user pair under the first index by adopting the optimized normalization function to obtain the normalized data of the first user pair under the first index.
9. A method for processing a service, comprising:
acquiring a target service between a first user and a second user, wherein the first user and the second user form a first user pair;
obtaining an affinity between the first pair of users, the affinity being calculated using the data processing method of any one of claims 1-8;
and if the intimacy between the first user pairs meets the triggering condition, performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service.
10. The method of claim 9, wherein the target service includes a voice service, and performing service optimization processing according to the affinity between the first user pair during the execution of the target service if the affinity between the first user pair satisfies a trigger condition includes:
If the intimacy between the first user pair meets a trigger condition, acquiring a target voice definition parameter corresponding to the intimacy between the first user pair in the process of executing the voice service;
and carrying out voice definition improving processing according to the target voice definition parameter.
11. The method of claim 9, wherein the target service comprises a social conversation service, and performing service optimization processing according to the affinity between the first user pair during the execution of the target service if the affinity between the first user pair meets a trigger condition includes:
if the affinity between the first user pair meets a trigger condition, acquiring a session element corresponding to the affinity between the first user pair in the process of executing the social session service, wherein the session element comprises at least one of the following items: a conversation interaction element, a conversation decoration element and an intimacy prompting element;
and sending the session element to a first terminal and a second terminal for displaying, wherein the first terminal is a terminal associated with the first user, and the second terminal is a terminal associated with the second user.
12. A data processing apparatus, comprising:
the acquisition unit is used for acquiring social data of a first user pair under a target index, wherein the target index comprises at least one index for carrying out intimacy assessment on the first user pair;
the processing unit is used for carrying out standardization processing on the social data of the first user pair under the target index to obtain standardized data, wherein the standardization processing refers to the processing of adjusting the order of magnitude of the social data to a preset order of magnitude;
the processing unit is used for carrying out normalization processing on the standardized data to obtain normalized data, wherein the normalization processing refers to the processing of adjusting the value of the standardized data to be within a preset numerical range;
and the weighting unit is used for weighting the normalized data by adopting the weight value of the target index to obtain the intimacy degree between the first user pairs.
13. A traffic processing apparatus, comprising:
an obtaining unit, configured to obtain a target service between a first user and a second user, where the first user and the second user form a first user pair;
the acquiring unit is used for acquiring intimacy degree between the first user pair, wherein the intimacy degree is calculated by adopting the data processing method according to any one of claims 1-8;
And the processing unit is used for performing service optimization processing according to the intimacy between the first user pairs in the process of executing the target service if the intimacy between the first user pairs meets a trigger condition.
14. A server comprising a communication interface, further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more first instructions adapted to be loaded by the processor and to perform the data processing method of any of claims 1-8; alternatively, the computer storage medium stores one or more second instructions adapted to be loaded by the processor and to perform the business process method of any of claims 9-11.
15. A computer storage medium having stored thereon one or more first instructions adapted to be loaded by a processor and to perform the data processing method of any one of claims 1 to 8; alternatively, the computer storage medium stores one or more second instructions adapted to be loaded by the processor and to perform the business process method of any of claims 9-11.
CN201910352490.4A 2019-04-28 2019-04-28 Data processing method, service processing method, device, terminal and storage medium Pending CN111858564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910352490.4A CN111858564A (en) 2019-04-28 2019-04-28 Data processing method, service processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910352490.4A CN111858564A (en) 2019-04-28 2019-04-28 Data processing method, service processing method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111858564A true CN111858564A (en) 2020-10-30

Family

ID=72965292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910352490.4A Pending CN111858564A (en) 2019-04-28 2019-04-28 Data processing method, service processing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111858564A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337847A (en) * 2015-11-17 2016-02-17 小米科技有限责任公司 Instant messaging information processing method, device and equipment
CN105893397A (en) * 2015-06-30 2016-08-24 北京爱奇艺科技有限公司 Video recommendation method and apparatus
CN107222315A (en) * 2013-12-31 2017-09-29 腾讯科技(深圳)有限公司 User information revealing method and system based on voice communication platform
CN108629677A (en) * 2017-03-23 2018-10-09 上海仟才金融信息服务有限公司 A kind of credit estimation method based on the social big data of communication
CN109561350A (en) * 2017-09-27 2019-04-02 北京国双科技有限公司 The evaluation method and system of user interest degree

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222315A (en) * 2013-12-31 2017-09-29 腾讯科技(深圳)有限公司 User information revealing method and system based on voice communication platform
CN105893397A (en) * 2015-06-30 2016-08-24 北京爱奇艺科技有限公司 Video recommendation method and apparatus
CN105337847A (en) * 2015-11-17 2016-02-17 小米科技有限责任公司 Instant messaging information processing method, device and equipment
CN108629677A (en) * 2017-03-23 2018-10-09 上海仟才金融信息服务有限公司 A kind of credit estimation method based on the social big data of communication
CN109561350A (en) * 2017-09-27 2019-04-02 北京国双科技有限公司 The evaluation method and system of user interest degree

Similar Documents

Publication Publication Date Title
CN109347722B (en) Interaction system, method, client and background server
AU2013305922B2 (en) Hierarchical based sequencing machine learning model
WO2018086489A1 (en) Method and device for processing incoming call, and terminal
CN109933429A (en) Data processing method, device, electronic equipment and storage medium
CN104081339A (en) Managing data transfers over network connections based on priority and data usage plan
CN107343030B (en) Information pushing method, device and system
CN110971757B (en) Method, device, equipment and medium for adding WeChat friends from telephone application
CN107748690A (en) Using jump method, device and computer-readable storage medium
US20170195206A1 (en) Method and electronic device for controlling networking state of terminal
CN108600399A (en) Information-pushing method and Related product
CN111914149A (en) Request processing method and device, storage medium and electronic equipment
CN115202599A (en) Screen projection display method and related device
CN108494851B (en) Application program recommended method, device and server
CN112187624B (en) Message reply method and device and electronic equipment
CN106909481B (en) Interface test method, interface test device and electronic equipment
CN108763243A (en) Application program recommends method, apparatus, mobile terminal and server
CN111191143A (en) Application recommendation method and device
CN111858564A (en) Data processing method, service processing method, device, terminal and storage medium
CN110400043A (en) Order allocation method, device, equipment and storage medium
CN104767880A (en) Communication number management method
CN111062709B (en) Resource transfer mode recommendation method and device, electronic equipment and storage medium
CN111818509B (en) Resource conversion method, device and equipment
CN113852723A (en) Number scheduling method, device, storage medium and computer program product
CN104699628B (en) The pre-stored method and device of caching
CN111770510A (en) Network experience state determination method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40030057

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination