RECOMMENDATION METHOD, DEVICE, STORAGE MEDIUM, AND TERMINAL APPARATUS

Information

  • Patent Application
  • 20210365776
  • Publication Number
    20210365776
  • Date Filed
    July 11, 2019
    5 years ago
  • Date Published
    November 25, 2021
    3 years ago
Abstract
A recommendation method and device, as well as a storage medium and a terminal apparatus are provided. The method includes: determining a weight and a variation of an influence factor for a candidate object; acquiring an expected value and an actual value of the influence factor; calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor; and calculating a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor. An accuracy and an efficiency of the recommendation can be improved by using the present application.
Description

This application claims the priority of Chinese patent application No. 201810988166.7, filed with the Chinese Patent Office on Aug. 28, 2018, entitled “Recommendation Method, Device, Storage Medium, and Terminal Apparatus”, which is incorporated by reference herein in its entirety.


TECHNICAL FIELD

The present application relates to a field of computer technology, and in particular, to a recommendation method, and device, as well as a storage medium, and a terminal apparatus.


BACKGROUND

With the deep development of Artificial Intelligence (AI) technology, the AI technology is frequently applied to actual life scenarios. For example, AI technology is used to reserve a conference room for a user in a conference room reservation system. However, due to the large demand for conference rooms from enterprise users, there is likely be no conference room desired by the users or this conference room has likely be been reserved. At this time, providing a similar conference room can also meet user expectations to a certain extent.


At present, there are implementation solutions as follows to filter the conference rooms.


1. A candidate object is filtered out by logical judgment. For example, a conference room is filtered out from a conference room result according to user requirements. In a case that the user wishes to reserve a conference room at 3 pm available today, enters a filtering condition of “3 pm available today” into the system and finds no filtering result. Then, the user enters a filtering condition of “this afternoon” into the system again. At this time, the system performs a search and obtains conference rooms available on this afternoon, including the conference rooms available at 3:30, 4 and 4:30. This result will be recommended to the user for selection by the system.


2. The candidate object is selected by a neural network algorithm. For example, the desired conference room of the user and the conference room filtered out by the system are combined to be sample data, and a matching degree between the two is labeled. A neural network model is constructed by using the labeled sample data. When using this model to filter conference rooms, the matching degree between the filtered conference room and the desired conference room of the user may be automatically determined.


However, there are still defects as follows in the above solutions.


1. In the logical judgment of the solution 1, a condition is used for the logical judgment, which takes a large workload. In addition, the user may be required to make a further judgments based on the filtering result provided by the system, and user experience is poor.


2. A large amount of sample data needs to be collected and trained in the solution 2, so that a preliminary work cost is too high. In addition, a large uncertainty and poor adaptability exists in the neural network algorithm. Even after training with a large amount of sample data, the recommendation result acquired by using the model may not be accurate. Therefore, a recommendation accuracy is not high by using the neural network algorithm.


SUMMARY

A recommendation method, and device, as well as a storage medium and a terminal apparatus are provided according to embodiments of the present application, so as to at least solve the above technical problems in the existing technology


According to a first aspect, a recommendation method includes: determining a weight and a variation of an influence factor for a candidate object; acquiring an expected value and an actual value of the influence factor; calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor; and calculating a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor.


In conjunction with the first aspect, in a first implementation of the first aspect, a type of the influence factor is a numerical type, and the variation includes an upper limit variation and a lower limit variation, and the calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor comprises: calculating a difference between the expected value and the lower limit variation of the influence factor to acquire a lower limit value of the influence factor; calculating a difference between the expected value and the upper limit variation of the influence factor, to acquire an upper limit value of the influence factor; determining that the actual value of the influence factor falls within a range between the lower limit value and the upper limit value; and calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor.


In conjunction with the first implementation of the first aspect, in a second implementation of the first aspect, the calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor comprises:


calculating the influence degree of the influence factor on the candidate object by using Equation 1 and Equation 2,











if





t

>
s

,

sI
=



up
-
div

up

*
q


,




(

Equation





1

)








if





t

<
s

,

sI
=



down
-
div

down

*
q


,




(

Equation





2

)







where t is the actual value of the influence factor, s is the expected value of the influence factor, sl is the influence degree of the influence factor on the candidate object, and div is an absolute value of a difference between the actual value and the expected value of the influence factor; up is the upper limit variation of the influence factor; down is the lower limit variation of the influence factor, and q is the weight of the influence factor.


In conjunction with the first implementation of the first aspect, in a third implementation of the first aspect, the method further includes: determining that the actual value of the influence factor falls beyond the range between the lower limit value and the upper limit value, and determining that the influence degree of the influence factor on the candidate object is zero.


In conjunction with the first aspect, in a fourth implementation of the first aspect, the calculating a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor comprises: calculating a ratio of a sum of the influence degrees of influence factors to a sum of the weights of the influence factors, to acquire the recommendation degree of the candidate object.


In conjunction with the first aspect, in a fifth implementation of the first aspect, a type of the influence factor is a non-numeric type, and the calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor comprises: determining the expected value and the actual value of the influence factor as an expected condition and an actual condition of the influence factor, respectively; and determining whether the expected condition and the actual condition of the influence factor are identical; determining that the influence degree of the influence factor on the candidate object is 100%, in the case that it is determined that the expected condition and the actual condition of the influence factor are identical; and determining that the influence degree of the influence factor on the candidate object is zero, in the case that it is determined that the expected condition of the influence factor is different from the actual condition.


In conjunction with the first aspect or any one of its implementation, in a sixth implementation of the first aspect, the method further includes: acquiring multiple candidate objects, ranking the multiple candidate objects according to the recommendation degrees of the multiple candidate objects, to acquire a ranking result; and sending the ranking result to the user terminal.


According to a second aspect, a recommendation device includes: a determining module configured to determine a weight and a variation of an influence factor for a candidate object; an acquiring module configured to acquire an expected value and an actual value of the influence factor; a first calculating module configured to calculate an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor; and a second calculating module configured to calculate a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor.


In conjunction with the second aspect, in a first implementation of the second aspect, a type of the influence factor is a numerical type, and the variation includes an upper limit variation and a lower limit variation, and the first calculating module includes: a lower limit calculating unit configured to calculate a difference between the expected value and the lower limit variation of the influence factor to acquire a lower limit value of the influence factor; an upper limit calculating unit configured to calculate a difference between the expected value and the upper limit variation of the influence factor, to acquire an upper limit value of the influence factor; a first determining unit configured to determine that an actual value of the influence factor falls within a range between the lower limit value and the upper limit value; and a first calculating unit configured to calculate an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor.


In conjunction with the first implementation of the second aspect, in a second implementation of the second aspect, the first calculating unit is further configured to: calculate the influence degree of the influence factor on the candidate object by using Equation 1 and Equation 2,











if





t

>
s

,

sI
=



up
-
div

up

*
q


,




(

Equation





1

)








if





t

<
s

,

sI
=



down
-
div

down

*
q


,




(

Equation





2

)







where t is the actual value of the influence factor, s is the expected value of the influence factor, sl is the influence degree of the influence factor on the candidate object, and div is an absolute value of a difference between the actual value and the expected value of the influence factor; up is the upper limit variation of the influence factor; down is the lower limit variation of the influence factor, and q is the weight of the influence factor.


In conjunction with the first implementation of the second aspect, in a third implementation of the second aspect, the first calculating module further includes: a second calculating unit configured to determine that the actual value of the influence factor falls beyond the range between the lower limit value and the upper limit value, and determine that the influence degree of the influence factor on the candidate object is zero.


In conjunction with the second aspect, in a fourth implementation of the second aspect, the second calculating module is further configured to: calculate a ratio of a sum of the influence degrees of influence factors to a sum of the weights of the influence factors to acquire the recommendation degree of the candidate object.


In conjunction with the second aspect, in a fifth implementation of the second aspect, a type of the influence factor is a non-numeric type, and the first calculating module includes: an acquiring unit configured to determine the expected value and the actual value of the influence factor as an expected condition and an actual condition of the influence factor, respectively; and determine whether the expected condition and the actual condition of the influence factor are identical; a second determining unit configured to determine that the influence degree of the influence factor on the candidate object is 100%, in the case that it is determined that the expected condition and the actual condition of the influence factor are identical; and a third determining unit configured to determine that the influence degree of the influence factor on the candidate object is zero, in the case that it is determined that the expected condition of the influence factor is different from the actual condition.


In conjunction with the second aspect or any one of its implementation, in a sixth implementation of the second aspect, the device further includes: a ranking module configured to acquire multiple candidate objects, rank the multiple candidate objects according to the recommendation degree of the multiple candidate objects, to acquire a ranking result; and a sending module configured to send the ranking result to a user terminal.


The functions of the device may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.


In a possible implementation, the recommendation device includes a processor and a storage device, the storage device is configured supporting the recommendation device to execute the above recommendation process, and the processor is configured to execute the program stored in the storage device. The recommendation device further includes a communication interface configured for communication between the recommendation device and another apparatus or communication network.


In a third aspect, a computer-readable storage medium is provided for storing computer software instructions used by the recommendation device, the computer software instructions include programs involved in execution of the above recommendation method.


One of the above technical solutions has the following advantages or beneficial effects.


According to the embodiment of the present application, the influence factor and the weight and the variation of the influence factor can be determined during a recommendation process of the candidate object, so that a dynamic configuration of the influence factor and a personalized recommendation of the candidate object can be realized with a strong universality. During the calculation of the recommendation degree of the candidate object, the candidate object is not selected by logical judgment with expected conditions, so that the workload is small and the efficiency is high.


The above summary is for the purpose of the specification only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present application will be readily understood by reference to the drawings and the following detailed description.





BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings, unless otherwise specified, identical reference numerals will be used throughout the drawings to refer to identical or similar parts or elements. The drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments disclosed in accordance with the present application and are not to be considered as limiting the scope of the present application.



FIG. 1 is a schematic flowchart of an embodiment of a recommendation method provided in the present application;



FIG. 2 is a schematic diagram of an embodiment of an influence factor provided in the present application;



FIG. 3 is a schematic flowchart of an embodiment of a calculation process of an influence degree of an influence factor on a candidate object provided in the present application;



FIG. 4 is a schematic flowchart of an embodiment of a similarity model provided in the present application;



FIG. 5 is a schematic diagram of an embodiment of a calculation parameter relation of an influence degree in the case of a numerical type influence factor provided in the present application;



FIG. 6 is a schematic flowchart of an embodiment of a calculation process of an influence degree in the case of a non-numeric type influence factor provided in the present application;



FIG. 7 is a schematic structural diagram of an embodiment of a recommendation device provided in the present application; and



FIG. 8 is a schematic structural diagram of an embodiment of a terminal apparatus provided in the present application.





DETAILED DESCRIPTION

In the following, only certain exemplary embodiments are briefly described. As those skilled in the art would realize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present application. Accordingly, the drawings and description are to be regarded as illustrative in nature and not restrictive.


Referring to FIG. 1, a recommendation method is provided in an embodiment of the present application, which can be applied to a terminal apparatus. The terminal apparatus may include a computer, a microcomputer, a mobile phone, a tablet, and the like. A recommendation system may be operated in the terminal apparatus to implement the method in the embodiment. The method in the embodiment includes steps from S100 to S400, as follows.


S100, determining a weight and a variation of an influence factor for a candidate object.


In the embodiment, the influence factor is a factor that determines a recommendation degree of the candidate object, and influences a similarity degree between the candidate object and user expectation. Taking conference room reservation as an example, the influence factor may include a starting time or a reserving time of the conference, a conference room capacity, the number of projectors (or whether there is a projector), and the like. If the starting time of the conference is important, it can be determined that the starting time of the conference has a weight of 60. If the desired starting time of conference of the user is allowed to change by 15 minutes, the variation of the influence factor includes an upper limit variation and a lower limit variation, both of which are 15 minutes.


In general, referring to FIG. 2, the influence factor can include:


(1) a name, which is an identification of the influence factor, for example, a time influence factor, a capacity influence factor;


(2) a type, which is a type of the influence factor, for example, a difference (numeric) influence factor (a type of an interval between two time, a difference between two lengths, etc.), a matching influence factor (a type of a matching degree of two strings, a similarity of elements in two sets, etc.);


(3) a weight, which indicates an influence degree of the influence factor on the recommendation degree of the candidate object. The greater the weight, the greater the influence degree of the influence factor on the recommendation degree of the candidate object;


(4) a lower limit variation, which is a minimum variation of the influence factor below a reference (a standard value or an expected value);


(5) an upper limit variation, which is a maximum variation of the influence factor above the reference.


As an example, in a scene of reserving a conference room, if a user wishes to reserve a 6-person conference room, the capacity influence factor may be determined as the influence factor for recommending a conference room in S100. If the upper limit variation and the lower limit variation are 2 and 1 respectively, a conference room capacity between 5 people (reference−lower limit variation) and 7 people (reference+upper limit variation) in a conference system can be determined as a candidate object for recommending the conference room.


S200, acquiring an expected value and an actual value of the influence factor.


In the embodiment, during the recommendation, the expected values of an identical influence factor for different candidate objects are generally identical. The user can input the expected value of the influence factor through a user terminal. However, the actual values of an identical influence factor for different candidates may be identical or different. For example, taking the influence factor of the starting time as an example, it is assumed that the user withes the starting time of the conference to be 10 am. In the recommendation system, the starting time (free time of the conference room) of the conference in a conference room A is 9 am; the starting time of the conference in a conference room B is 11 am; the starting time of the conference in a conference room C is 10:30 am. During the recommendation, for the influence factor of the starting time, the expected value is 10 am, the actual value of the conference room A is 9 am, the actual value of the conference room B is 11 am, and the actual value of the conference room C is 10:30 am.


S300, calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor. In the embodiment, a product of a similarity between the expected value and the actual value of the influence factor and the weight value may be used as the influence degree of the influence factor on the candidate object. For example, if the expected value of the starting time of the conference is 10 am, and the actual value of the starting time of the conference in the conference room A is 9 am, the similarity between the two values is acquired. If the weight is 10, the influence degree of the starting time of the conference on the conference room A is a product of 10 and a.


S400, calculating a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor.


According to the embodiment of the present application, the influence factor as well as the weight and the variation of the influence factor can be adjusted during the execution of the recommendation method of the candidate object, so that a dynamic configuration of the influence factor can be realized and a personalized recommendation of the candidate object with a strong universality. During the recommendation of the candidate object, the candidate object is not selected by the logical judgment with expected conditions, so that the workload is small and the efficiency is high.


In a possible implementation, as shown in FIG. 3, if the influence factor is of a numerical type, a calculation process of the influence degree of the influence factor on the candidate object in S300 may include steps from S310 to S340 as follows.


S310, calculating a difference between the expected value and the lower limit variation of the influence factor, to acquire a lower limit value of the influence factor;


S320, calculating a difference between the expected value and the upper limit variation of the influence factor, to acquire an upper limit value of the influence factor;


S330, determining that the actual value of the influence factor falls within a range between the lower limit value and the upper limit value; and


S340, calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor.


In a possible implementation, as shown in FIG. 3, S350 is further included. In a case that the actual value of the influence factor falls beyond the range between the lower limit and the upper limit, it is determined that the influence degree of the influence factor on the candidate object is zero.


As an example, taking the influence factor of the starting time of the conference as an example, if the desired starting time of the conference of the user is 15:00, the lower limit variation is 15 minutes and the upper limit variation is 30 minutes, then the lower limit value is 14:45, and the upper limit value is 15:30. If the actual value of the starting time of the conference in the conference room A is 15:15, the influence degree of the conference starting time on the conference room A is calculated in S340. If the actual value of the starting time of the conference in the conference room A is 16:00, which exceeds a range between the upper limit value and the lower limit value of the starting time, the influence degree of the starting time on conference room A is zero, significantly reduced, or negative and so on.


In the embodiment, if the influence factor is a numerical value, the similarity between the expected value and the actual value of the influence factor may be calculated firstly, and then multiplied by the weight to acquire the influence degree of the influence factor on the candidate object.


A similarity model is shown in FIG. 4. In a case of an expected object A (representing an expectation object for the influence factor) and a candidate object B (representing the actual value of the influence factor of the candidate object B), data of the both can be input into a similarity interface to calculate a similarity therebetween. Finally, the recommendation degree of the candidate object B can be calculated. The calculation of the similarity interface may include the calculation of a numerical object similarity, a character object similarity, a set object similarity, and a general object similarity, and so on.


In addition, the influence factors may include a numerical influence factor and a matching influence factor. The matching influence factor is also called a non-numeric influence factor. Therefore, an algorithm for calculating the influence degree of the influence factor on the candidate object may include a numerical similarity algorithm and a matching similarity algorithm. The numerical similarity algorithm is used to calculate the similarity between the expected value and the actual value of the numerical influence factor The matching similarity algorithm is used to calculate a consistency between the expected condition and the actual condition of the influence factor, for example, the aforementioned character object similarity, the set object similarity, and the general object similarity.


Referring to FIG. 5, t is the actual value of the influence factor, s is the expected value of the influence factor, div is an absolute value of a difference between the actual value and the expected value of the influence factor, up is the upper limit variation of the influence factor; down is the lower limit variation of the influence factor. If the actual value of the influence factor is within the range between the upper limit value and the lower limit value, Equation a and Equation b are used to calculate the similarity similar between the expected value and the actual value of the influence factor:











if





t

>
s

,


simila
=


up
-
div

up


;





Equation





a








if





t

<
s

,

simila
=



down
-
div

down

.






Equation





b







Further, if the actual value of the influence factor is not within the range between the upper limit value and the lower limit value, the similarity similar between the expected value and the actual value of the influence factor is zero.


As an example, taking the influence factor of the starting time of the conference as an example, the desired starting time of the conference of the user is 3 pm, the starting time (free time in the conference room) of the conference in the conference room A is obtained as 3:05 pm after searching, and the time can be regarded as a numerical value. According to Equation a, the similarity between 3 pm and 3:05 pm is: 1-5/15=66.67%. If a weight of the starting time of the conference is 60, the influence degree of the starting time of the conference on the candidate object (the conference room A) is: 60*66.67%=40.


In the embodiment, by multiplying the above-mentioned Equations a and b with the weight, respectively, the following Equations 1 and 2 can be acquired, that is, the influence degree of the influence factor on the candidate object. Then, the above S340 may include:


calculating the influence degree of the influence factor on the candidate object by using Equation 1 and Equation 2,











if





t

>
s

,


sI
=



up
-
div

up

*
q


;





Equation





1








if





t

<
s

,


sI
=



down
-
div

down

*
q


;





Equation





2







where si is the influence degree of the influence factor on the candidate object, and q is the weight of the influence factor.


In a possible implementation, if there is more than one influence factor, the above S400 may include: calculating a ratio of a sum of influence degrees of influence factors to a sum of weights of the influence factors, to acquire the recommendation degree of the candidate object.


As an example, if the influence factor of conference room A includes the starting time of the conference, the conference room capacity, and whether there is a projector, and the influence degrees of each influence factor on conference room A are 40, 15, and 20, respectively, and the weight of each influence factor is 60, 20, and 20, respectively, the recommendation degree of the conference room A is (40+15+20)/(60+20+20)=75%.


In a possible implementation, if the type of the influence factor is a non-numeric type, a process of calculating the influence degree of the influence factor on the candidate object may include the following steps from S510 to S530, as shown in FIG. 6.


S510, determining the expected value and the actual value of the influence factor as an expected condition and an actual condition of the influence factor, respectively, and determining whether the expected condition and the actual condition of the influence factor are identical;


S520, determining that the influence degree of the influence factor on the candidate object is 100%, in the case that it is determined that the expected condition and the actual condition of the influence factor are identical; and


S530, determining that the influence degree of the influence factor on the candidate object is zero, in the case that it is determined that the expected condition of the influence factor is different from the actual condition.


As an example, the influence factor is whether there is a projector in the conference room. The user wishes that there is a projector in the conference room. However, a projector is not included in the conference room A. At this time, the expected condition of the influence factor is not identical with the actual condition in the conference room A, then the influence degree of the influence factor (whether there is a projector in the conference room) on the conference room A is zero. If there is a projector in the conference room A, at this time, the expected condition of the influence factor is identical with the actual condition, the influence degree of the influence factor on the candidate object is 100%.


In a possible implementation, if there are multiple candidate objects, after respective recommendation degrees of the multiple candidate objects are calculated through the foregoing embodiment, an acquired recommendation result may be provided to the user terminal. For example, the multiple candidate objects are ranked according to the respective recommendation degrees of the multiple candidate objects; then, a ranking result is sent to the user terminal. For another example, a candidate object of which the recommendation degree reaches a recommendation threshold is determined as the recommendation result.


The advantages of this embodiment include as follows.


1. A Strong universality. After the influence factor being determined, a personalized recommendation model can be defined.


2. A good extensibility. In the process of determining the influence factor, an influence factor can be added or deleted, and the value of the influence factor can be dynamically adjusted.


3. A multi-level recommendation. The recommendation model can be accumulated to acquire a similarity between a complex candidate object and an expected object.


The method of this embodiment can be applied to practical scenarios such as reserving a conference room, a hotel room, or an airplane flight and the like. For example, a user inputs an expected conference room into a user terminal by voice or text entering, and the conference room recommendation system (software) in the user terminal may be used to recommend a conference room recommendation result that meets the expectations according to the method of this embodiment. An accuracy and an efficiency of the conference room recommendation can be effectively improved. Taking a practical scenario, such as reserving a conference room, as an example, a recommendation process of a conference room is descripted in detail as follows, combined with Table 1 to Table 5:


1. The influence factor and related attributes of the conference room for recommending by the conference room recommendation system are determined.


The defined influence factors are shown in Table 1:













TABLE 1








Lower limit
Upper limit


Name
Type
Weight
variation
variation



















Starting time of
Numerical
60
15
15


the conference
influence factor


Conference room
Numerical
20
2
4


capacity
influence factor


Whether there is
Matching
20
N/A
N/A


a projector
influence factor









Here, a projector influence factor is a matching influence factor. If there is a projector in the conference room, the similarity is 100%. If there is no projector in the conference room, the similarity is zero. Therefore, there is no lower limit variation and upper limit variation for the influence factor of the projector.


2. An expected condition of the user is acquired and is converted into a standard value (the expected value).


If the user expects a conference room that is free at 3 pm, in which 6 persons can be accommodated and there is a projector, the expected values of respective influence factors can be converted as follows.


The expected value of the starting time of the conference is 15:00.


The expected value of the conference room capacity is 6.


The expected value of whether there is an expectation for the projector is Yes.


3. The actual value of each influence factor in the conference room to be recommended is acquired, the similarity of each influence factor is calculated, respectively, and finally a similarity of the conference room to be recommended and the expected conference room of the user is calculated.


Assuming that there are three conference rooms to be recommended, the conditions thereof are shown in Table 2:












TABLE 2






Starting

Whether


Name of a
time of the
Conference room
there is a


conference room
conference
capacity
projector







A
15:00
5
NO


B
14:55
7
YES


C
15:10
6
NO









According to the above-mentioned recommendation method, the influence degrees of the three influence factors of the conference rooms to be recommended are calculated respectively, and then a similarity percentage (recommendation degree) of the three conference rooms and the expected conference room of the user is calculated.


Here, the conditions of conference room A are shown in Table 3.















TABLE 3






Expected
Actual
Lower
Upper

Influence


Attribute
value
value
limit value
limit value
Weight
degree





















Starting time
15:00
15:00
14:45
15:15
60
60


of the


conference


Conference
6
5
4
10
20
10


room capacity


Whether there
YES
NO


20
0


is a projector









Here, the lower limit value in Table 3 is a difference between the expected value and the lower limit variation, and the upper limit value is a difference between the expected value and the upper limit variation.


According to data in Table 3, the similarity percentage between the conference room A and the expected conference room is: (60+10+0)/(60+20+20)=70%.


The conditions of the conference room B and C are shown in Table 4 and Table 5, respectively.















TABLE 4






Expected
Actual
Minimum
Maximal

Influence


Attribute
value
value
value
value
Weight
degree







Starting time
15:00
14:55
14:45
15:15
60
40


of the


conference


Conference
6
7
4
10
20
15


room capacity


Whether there
YES
YES


20
20


is a projector






















TABLE 5






Expected
Actual
Minimum
Maximal

Influence


Attribute
value
value
value
value
Weight
degree





















Starting time
15:00
15:10
14:45
15:15
60
20


of the


conference


Conference
6
6
4
10
20
20


room capacity


Whether there
YES
NO


20
0


is a projector









According to an above calculation principle of calculating the similarity percentage for the conference room A, the similarity percentages between the conference room B, the conference room C and the expected conference room are calculated, respectively to obtain 75% and 40%, according to data in Table 4 and Table 5.


Therefore, according to the similarity percentages, the conference rooms to be recommended is ranked to obtain a ranking result of B>A>C. This ranking result can be fed back to the user terminal, and the user can select a conference room from it.


According to this embodiment, user requirements can be better satisfied, and a size of the influence factors and their influence values can be adjusted, so as to provide comprehensive recommendations.


Referring to FIG. 7, a recommendation device is provided in an embodiment of the present application, including:


a determining module 100 configured to determine a weight and a variation of an influence factor for a candidate object; an acquiring module 200 configured to acquire an expected value and an actual value of the influence factor; a first calculating module 300 configured to calculate an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor; and a second calculating module 400 configured to calculate a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor.


In a possible implementation, a type of the influence factor is a numerical type, and the variation includes an upper limit variation and a lower limit variation, and the first calculating module 300 includes: a lower limit calculating unit configured to calculate a difference between the expected value and the lower limit variation of the influence factor, to acquire a lower limit value of the influence factor; an upper limit calculating unit configured to calculate a difference between the expected value and the upper limit variation of the influence factor, to acquire an upper limit value of the influence factor; a first determining unit configured to determine that an actual value of the influence factor falls within a range between the lower limit value and the upper limit value; and a first calculating unit configured to calculate an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor.


In a possible implementation, the first calculating unit is further configured to: calculate the influence degree of the influence factor on the candidate object by using Equation 1 and Equation 2,











if





t

>
s

,

sI
=



up
-
div

up

*
q


,




(

Equation





1

)








if





t

<
s

,

sI
=



down
-
div

down

*
q


,




(

Equation





2

)







where t is the actual value of the influence factor, s is the expected value of the influence factor, sl is the influence degree of the influence factor on the candidate object, and div is an absolute value of a difference between the actual value and the expected value of the influence factor; up is the upper limit variation of the influence factor; down is the lower limit variation of the influence factor, and q is the weight of the influence factor.


In a possible implementation, the first calculating module 300 further includes: a second calculating unit configured to determine that the actual value of the influence factor falls beyond the range between the lower limit value and the upper limit value, and determine that the influence degree of the influence factor on the candidate object is zero.


In a possible implementation, the second calculating module is further configured to: calculate a ratio of a sum of the influence degrees of influence factors to a sum of the weights of the influence factors, to acquire the recommendation degree of the candidate object.


In a possible implementation, a type of the influence factor is a non-numeric type, and the first calculating module includes: an acquiring unit configured to determine the expected value and the actual value of the influence factor as an expected condition and an actual condition of the influence factor, respectively; and determine whether the expected condition and the actual condition of the influence factor are identical; a second determining unit configured to determine that the influence degree of the influence factor on the candidate object is 100%, in the case that it is determined that the expected condition and the actual condition of the influence factor are identical; and a third determining unit configured to determine that the influence degree of the influence factor on the candidate object is zero, in the case that it is determined that the expected condition of the influence factor is different from the actual condition.


In a possible implementation, the device further includes: a ranking module configured to acquire multiple candidate objects, rank the multiple candidate objects according to the recommendation degrees of the multiple candidate objects, to acquire a ranking result; and a sending module configured to send the ranking result to a user terminal.


The functions of the device may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.


In a possible implementation, a recommendation structure includes a processor and a storage device, the storage is configured supporting the recommendation device to execute the above recommendation process, and the processor is configured to execute the program stored in the storage device. The recommendation device further includes a communication interface configured for communication between the recommendation device and another apparatus or communication network.


A terminal apparatus for recommendation is provided in the embodiment of the present application, as shown in FIG. 8, the apparatus includes: a memory 21 and a processor 22. The memory 21 stores a computer program executable on the processor 22. When the processor 22 executes the computer program, the service data promotion method in the foregoing embodiment is implemented. The number of the memory 21 and the processor 22 may be one or more.


The apparatus further includes:


a communication interface 23 configured to communicate with an external device and exchange data.


The memory 21 may include a high-speed RAM memory and may also include a non-volatile memory, such as at least one magnetic disk memory.


If the memory 21, the processor 22, and the communication interface 23 are implemented independently, the memory 21, the processor 22, and the communication interface 23 may be connected to each other through a bus and communicate with one another. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, an Extended Industry Standard Component (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one bold line is shown in FIG. 8, but it does not mean that there is only one bus or one type of bus.


Optionally, in a specific implementation, if the memory 21, the processor 22, and the communication interface 23 are integrated on one chip, the memory 21, the processor 22, and the communication interface 23 may implement mutual communication through an internal interface.


According to an embodiment of the present application, a computer-readable storage medium is provided for storing computer software instructions, which include programs involved in execution of the above recommendation method.


In the description of the specification, the description of the terms “one embodiment,” “some embodiments,” “an example,” “a specific example,” or “some examples” and the like means the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more of the embodiments or examples. In addition, different embodiments or examples described in this specification and features of different embodiments or examples may be incorporated and combined by those skilled in the art without mutual contradiction.


In addition, the terms “first” and “second” are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defining “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present application, “multiple” means two or more, unless expressly limited otherwise.


Any process or method descriptions described in flowcharts or otherwise herein may be understood as representing modules, segments or portions of code that include one or more executable instructions for implementing the steps of a particular logic function or process. The scope of the preferred embodiments of the present application includes additional implementations where the functions may not be performed in the order shown or discussed, including according to the functions involved, in substantially simultaneous or in reverse order, which should be understood by those skilled in the art to which the embodiment of the present application belongs.


Logic and/or steps, which are represented in the flowcharts or otherwise described herein, for example, may be thought of as a sequencing listing of executable instructions for implementing logic functions, which may be embodied in any computer-readable medium, for use by or in connection with an instruction execution system, device, or apparatus (such as a computer-based system, a processor-included system, or other system that fetch instructions from an instruction execution system, device, or apparatus and execute the instructions). For the purposes of this specification, a “computer-readable medium” may be any device that may contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, device, or apparatus. More specific examples (not a non-exhaustive list) of the computer-readable media include the following: electrical connections (electronic devices) having one or more wires, a portable computer disk cartridge (magnetic device), random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber devices, and portable read only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium upon which the program may be printed, as it may be read, for example, by optical scanning of the paper or other medium, followed by editing, interpretation or, where appropriate, process otherwise to electronically acquire the program, which is then stored in a computer memory.


It should be understood that various portions of the present application may be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, they may be implemented using any one or a combination of the following techniques well known in the art: discrete logic circuits having a logic gate circuit for implementing logic functions on data signals, application specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGAs), and the like.


Those skilled in the art may understand that all or some of the steps carried in the methods in the foregoing embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer-readable storage medium, and when executed, one of the steps of the method embodiment or a combination thereof is included.


In addition, each of the functional units in the embodiments of the present application may be integrated in one processing module, or each of the units may exist alone physically, or two or more units may be integrated in one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional module. When the integrated module is implemented in the form of a software functional module and is sold or used as an independent product, the integrated module may also be stored in a computer-readable storage medium. The storage medium may be a read only memory, a magnetic disk, an optical disk, or the like.


The foregoing descriptions are merely specific embodiments of the present application, but not intended to limit the protection scope of the present application. Those skilled in the art may easily conceive of various changes or modifications within the technical scope disclosed herein, all these should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.


While the embodiments of the present disclosure contains many specifics, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular inventions. Various modifications and adaptations may be made by those skilled in the art without departing from the scope of the invention as defined in the appended claims. The scope of the invention, therefore, shall be defined solely by the following claims.

Claims
  • 1. A recommendation method, comprising: determining a weight and a variation of an influence factor for a candidate object;acquiring an expected value and an actual value of the influence factor;calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor; andcalculating a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor.
  • 2. The recommendation method according to claim 1, wherein a type of the influence factor is a numerical type, and the variation comprises an upper limit variation and a lower limit variation, and the calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor comprises:calculating a difference between the expected value and the lower limit variation of the influence factor, to acquire a lower limit value of the influence factor;calculating a difference between the expected value and the upper limit variation of the influence factor, to acquire an upper limit value of the influence factor;determining that the actual value of the influence factor falls within a range between the lower limit value and the upper limit value; andcalculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor.
  • 3. The recommendation method according to claim 2, wherein the calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor comprises: calculating the influence degree of the influence factor on the candidate object by using Equation 1 and Equation 2,
  • 4. The recommendation method of claim 2, further comprising: determining that the actual value of the influence factor falls beyond the range between the lower limit value and the upper limit value, and determining that the influence degree of the influence factor on the candidate object is zero.
  • 5. The recommendation method according to claim 1, wherein the calculating a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor comprises: calculating a ratio of a sum of influence degrees of influence factors to a sum of weights of the influence factors, to acquire the recommendation degree of the candidate object.
  • 6. The recommendation method of claim 1, wherein a type of the influence factor is a non-numeric type, and the calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor comprises:determining the expected value and the actual value of the influence factor as an expected condition and an actual condition of the influence factor, respectively; and determining whether the expected condition and the actual condition of the influence factor are identical;determining that the influence degree of the influence factor on the candidate object is 100%, in the case that it is determined that the expected condition and the actual condition of the influence factor are identical; anddetermining that the influence degree of the influence factor on the candidate object is zero, in the case that it is determined that the expected condition of the influence factor is different from the actual condition.
  • 7. The recommendation method according to claim 1, further comprising: acquiring a plurality of candidate objects; ranking the plurality of candidate objects according to the recommendation degrees of the plurality of candidate objects, to acquire a ranking result; andsending the ranking result to a user terminal.
  • 8. A recommendation device, comprising: one or more processors; anda storage device configured for storing one or more programs, whereinthe one or more programs are executed by the one or more processors to enable the one or more processors to: determine a weight and a variation of an influence factor for a candidate object;acquire an expected value and an actual value of the influence factor;calculate an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor; andcalculate a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor.
  • 9. The recommendation device according to claim 8, wherein a type of the influence factor is a numerical type, and the one or more programs are executed by the one or more processors to enable the one or more processors further to: calculate a difference between the expected value and the lower limit variation of the influence factor, to acquire a lower limit value of the influence factor;calculate a difference between the expected value and the upper limit variation of the influence factor, to acquire an upper limit value of the influence factor;determine that the actual value of the influence factor falls within a range between the lower limit value and the upper limit value; andcalculate an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor.
  • 10. The recommendation device according to claim 9, wherein the one or more programs are executed by the one or more processors to enable the one or more processors further to: calculate the influence degree of the influence factor on the candidate object by using Equation 1 and Equation 2,
  • 11. The recommendation device of claim 9, wherein the one or more programs are executed by the one or more processors to enable the one or more processors further to: determine that the actual value of the influence factor falls beyond the range between the lower limit value and the upper limit value, and determine that the influence degree of the influence factor on the candidate object is zero.
  • 12. The recommendation device according to claim 8, wherein the one or more programs are executed by the one or more processors to enable the one or more processors further to: calculate a ratio of a sum of the influence degrees of influence factors to a sum of the weights of the influence factors, to acquire the recommendation degree of the candidate object.
  • 13. The recommendation device of claim 8, wherein a type of the influence factor is a non-numeric type, and the one or more programs are executed by the one or more processors to enable the one or more processors further to:determine the expected value and the actual value of the influence factor as an expected condition and an actual condition of the influence factor, respectively; and determine whether the expected condition and the actual condition of the influence factor are identical;determine that the influence degree of the influence factor on the candidate object is 100%, in the case that it is determined that the expected condition and the actual condition of the influence factor are identical; anddetermine that the influence degree of the influence factor on the candidate object is zero, in the case that it is determined that the expected condition of the influence factor is different from the actual condition.
  • 14. The recommendation device according to claim 8, wherein the one or more programs are executed by the one or more processors to enable the one or more processors further to: acquire a plurality of candidate objects; rank the plurality of candidate objects according to the recommendation degrees of the plurality of candidate objects, to acquire a ranking result; andsend the ranking result to a user terminal.
  • 15. (canceled)
  • 16. A non-transitory computer-readable storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, cause the processor to perform operations comprising: determining a weight and a variation of an influence factor for a candidate object;acquiring an expected value and an actual value of the influence factor;calculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the variation and the weight of the influence factor; andcalculating a recommendation degree of the candidate object according to the influence degree and the weight of the influence factor.
  • 17. The non-transitory computer-readable storage medium of claim 16, wherein a type of the influence factor is a numerical type, and the computer executable instructions, when executed by a processor, cause the processor to perform further operations comprising: calculating a difference between the expected value and the lower limit variation of the influence factor, to acquire a lower limit value of the influence factor;calculating a difference between the expected value and the upper limit variation of the influence factor, to acquire an upper limit value of the influence factor;determining that the actual value of the influence factor falls within a range between the lower limit value and the upper limit value; andcalculating an influence degree of the influence factor on the candidate object according to the expected value, the actual value, the upper limit variation, the lower limit variation, and the weight of the influence factor.
  • 18. The non-transitory computer-readable storage medium of claim 17, wherein the computer executable instructions, when executed by a processor, cause the processor to perform further operations comprising: calculating the influence degree of the influence factor on the candidate object by using Equation 1 and Equation 2,
  • 19. The non-transitory computer-readable storage medium of claim 17, wherein the computer executable instructions, when executed by a processor, cause the processor to perform further operations comprising: determining that the actual value of the influence factor falls beyond the range between the lower limit value and the upper limit value, and determining that the influence degree of the influence factor on the candidate object is zero.
  • 20. The non-transitory computer-readable storage medium of claim 16, herein the computer executable instructions, when executed by a processor, cause the processor to perform further operations comprising: calculating a ratio of a sum of influence degrees of influence factors to a sum of weights of the influence factors, to acquire the recommendation degree of the candidate object.
Priority Claims (1)
Number Date Country Kind
201810988166.7 Aug 2018 CN national
PCT Information
Filing Document Filing Date Country Kind
PCT/CN2019/095560 7/11/2019 WO 00