Transportation mode recommendation method and device
By adjusting the coefficients in the transportation expression and based on the number of reasons for parameter values, the problem of insufficiently accurate recommendation of transportation modes in logistics scenarios is solved, providing a transportation mode that is more in line with user needs, and improving the accuracy of recommendations and user satisfaction.
Patent Information
- Application Number
- CN202310849036.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-01-14
AI Technical Summary
In logistics scenarios, it is difficult for the existing technology to accurately recommend transportation methods that meet user needs. Especially in community group buying and other scenarios, the choice of carriers is often based on a comprehensive evaluation of cost, timeliness and service quality, but there is a lack of an effective adjustment mechanism, resulting in The recommendation results are not accurate enough.
By obtaining the unselected reasons for the unselected historical recommended transportation method, adjusting the coefficients in the transportation expression, generating the target transportation expression based on the number of reasons for the parameter value in each evaluation direction, and recommending a transportation method that is more in line with user needs.
Accurate adjustments to transportation methods have been achieved, and the accuracy of recommendations has been improved, allowing users to obtain transportation methods that are more in line with their needs, meeting their comprehensive expectations of cost, strength, timeliness and service quality.
Smart Images

Figure CN119313236A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to the field of logistics and recommendation algorithm technology, and especially to a method and device for recommending a mode of transportation. Background Art
[0002] In various logistics scenarios, such as community group buying, the supplier delivers the goods to the warehouse of the enterprise that sells the goods. The enterprise then arranges the carrier's transport vehicle to transport the goods from the enterprise's warehouse to the warehouse of the grid station, and finally the delivery personnel of the grid station complete the delivery at the end of the logistics.
[0003] The carrier who undertakes the transportation task from the enterprise's warehouse to the grid station is an important link in transportation. Generally speaking, each city will recruit 3-6 carriers. To determine the transportation method, you need to determine a carrier. Summary of the invention
[0004] Provided are a method, device, electronic device and storage medium for recommending a transportation mode.
[0005] According to a first aspect, a method for recommending a mode of transport is provided, comprising: obtaining reasons for non-selection of historically recommended modes of transport that have not been selected, wherein the historically recommended modes of transport are obtained using an initial transport expression, the transport expression includes parameters for determining the mode of transport and coefficients of each parameter, the reasons for non-selection indicate that the parameter values of the parameters corresponding to the historically recommended modes of transport are in any evaluation direction, the parameters include at least two of the cost, strength, timeliness and service of the mode of transport, and the mode of transport includes a carrier; for the parameters involved in each reason for non-selection, based on the number of reasons for the parameter value of the parameter in each evaluation direction, adjusting the coefficient of the parameter in the initial transport expression to obtain a target transport expression including the adjusted coefficient; and using the target transport expression to recommend a target mode of transport.
[0006] According to a second aspect, a transport mode recommendation device is provided, comprising: an acquisition unit, configured to acquire the reasons for non-selection of historically recommended transport modes that have not been selected, wherein the historically recommended transport modes are obtained using an initial transport expression, the transport expression includes parameters for determining the transport mode and coefficients of each parameter, the reasons for non-selection indicate that the parameter value of the parameter corresponding to the historically recommended transport mode is in any evaluation direction, any evaluation direction is an over-high direction or an over-low direction, the parameters include at least two of the cost, strength, timeliness and service of the transport mode, and the transport mode includes a carrier; an adjustment unit, configured to adjust the coefficient of the parameter in the initial transport expression for the parameter involved in each non-selection reason based on the number of reasons for the parameter value of the parameter in each evaluation direction, to obtain a target transport expression including the adjusted coefficient; a determination unit, configured to use the target transport expression to recommend the target transport mode.
[0007] According to a third aspect, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so as to enable the at least one processor to execute a method of any embodiment of the recommended method for a mode of transportation.
[0008] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute a method according to any embodiment of the method for recommending a transportation mode.
[0009] According to a fifth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the method of any embodiment of the method for recommending a mode of transport.
[0010] According to the scheme disclosed in the present invention, the mode of transportation can be accurately adjusted based on the actual evaluation direction of the evaluator on the recommended mode of transportation, thereby helping to recommend a better mode of transportation that better meets the needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0012] Figure 1 is an exemplary system architecture diagram in which some embodiments of the present disclosure may be applied;
[0013] Figure 2 is a flow chart of an embodiment of a recommended method of transportation according to the present disclosure;
[0014] Figure 3ais a flow chart of another embodiment of a recommended method for a transportation mode according to the present disclosure;
[0015] Figure 3b is a schematic diagram of the number of reasons for various parameters of the transportation method according to the present disclosure;
[0016] Figure 3c is a schematic diagram of the number and number of reasons for the recommended method of transportation according to the present disclosure;
[0017] Figure 4 is a schematic structural diagram of an embodiment of a recommended device for a transportation method according to the present disclosure;
[0018] Figure 5 The block diagram of an electronic device used to implement the method for recommending a transportation mode according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0020] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved all comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0021] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the method for recommending a mode of transportation or an apparatus for recommending a mode of transportation of the present disclosure can be applied.
[0023] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0024] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as video applications, live broadcast applications, instant messaging tools, email clients, social platform software, etc.
[0025] The terminal devices 101, 102, 103 here can be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0026] The server 105 may be a server that provides various services, such as a backend server that provides support to the terminal devices 101, 102, and 103. The backend server may analyze and process the received data such as the reasons for not selecting the historically recommended transportation methods, and feed back the processing results (such as the target recommended transportation method) to the terminal device.
[0027] It should be noted that the method for recommending a mode of transport provided in the embodiment of the present disclosure may be executed by the server 105 or the terminal devices 101 , 102 , 103 , and accordingly, the device for recommending a mode of transport may be disposed in the server 105 or the terminal devices 101 , 102 , 103 .
[0028] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0029] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for recommending a transportation mode according to the present disclosure. The method for recommending a transportation mode includes the following steps:
[0030] Step 201, obtaining the reasons for non-selection of the historically recommended transportation methods that have not been selected, wherein the historically recommended transportation methods are obtained using an initial transportation expression, the transportation expression includes parameters for determining the transportation methods and a coefficient for each parameter, and the reasons for non-selection indicate that the parameter values of the corresponding parameters of the historically recommended transportation methods are in any evaluation direction, the parameters include at least two of the cost, strength, timeliness and service of the transportation methods, and the transportation methods include carriers.
[0031] In this embodiment, the transport mode recommendation method is executed on the execution subject (eg Figure 1 The server or terminal device shown in the figure can obtain the reasons for not selecting the historical recommended transportation methods that have not been selected from this device or other electronic devices. The person responsible for selecting the transportation method can select the recommended transportation method as the transportation method to be ultimately used for actual transportation (such as carriage). Alternatively, if the person is not satisfied with the recommended transportation method, he or she may not select the recommended transportation method and select other transportation methods as the actual transportation method. If the person does not select the recommended transportation method, he or she may give the reason for not selecting the recommended transportation method, that is, the reason for not selecting the recommended transportation method.
[0032] The mode of transport is obtained by using a transport expression. Specifically, the value calculated by the mode of transport expression can be used as the score of the mode of transport. The higher the score, the better the mode of transport. The recommended mode of transport among the modes of transport can be obtained in various ways. For example, the execution entity can use the mode of transport with the highest score among the modes of transport as the recommended mode of transport. Alternatively, the execution entity can push a preset number of modes of transport to a designated terminal device in descending order of scores, and the user of the designated terminal device can select a recommended mode of transport.
[0033] Specifically, the mode of transportation may refer to a carrier, or the mode of transportation may be a preset transportation strategy including a carrier and a transportation route.
[0034] The transport expression includes parameters for determining the transport mode and coefficients for each parameter. In practice, the parameters may include at least two of the cost, strength, timeliness and service of the transport mode. In practice, the parameters may be derived from the health of the carrier.
[0035] Specifically, the transport expression can be expressed as:
[0036] F(s)=a i cost+b i ·strength+c i ·performance+d i ·service
[0037] 0 i ,b i ,c i ,d i ≤1
[0038] Among them, F(s) is the score of the transportation mode, cost is the cost of the transportation mode, and a i is the cost coefficient, strength is the strength of the transportation method, b i is the coefficient of strength, performance is the time efficiency of the transportation method, c i is the time efficiency coefficient, service is the service of the mode of transport, d i The coefficient of service.
[0039] A non-selection reason indicates that the parameter value of the parameter corresponding to the recommended transport mode is in any evaluation direction, that is, the evaluation direction of a parameter in a non-selection reason is only in one direction, such as too high or too low. For multiple non-selection reasons of the recommended transport mode obtained by using the same transport expression, there may be different evaluation directions. In a non-selection reason, at least one parameter can have an evaluation direction, that is, the evaluator may believe that at least one parameter does not meet his expectations and needs to be modified. The parameters corresponding to the recommended transport mode refer to the parameters in the transport expression used to obtain the recommended transport mode.
[0040] Specifically, the over-high direction indicates that the evaluator believes that the value of the parameter is too high, that is, the parameter is higher than the expected value of the evaluator. The over-low direction indicates that the evaluator believes that the value of the parameter is too low, that is, the parameter is lower than the expected value of the evaluator.
[0041] Step 202, for each parameter involved in the non-selection reason, based on the number of reasons for the parameter value of the parameter in each evaluation direction, the coefficient of the parameter in the initial transport expression is adjusted to obtain a target transport expression including the adjusted coefficient.
[0042] In this embodiment, the above-mentioned execution entity can adjust the coefficient of the parameter in the initial transport expression for the parameters involved in each non-selected reason (such as each parameter) based on the number of reasons for the parameter value of the parameter in each evaluation direction, generate an adjusted coefficient, and thus obtain a target transport expression including the adjusted coefficient.
[0043] In practice, the execution entity may use various methods to adjust the coefficient of the parameter in the initial transport expression based on the number of reasons for the parameter value in each evaluation direction. For example, the execution entity may input the number of reasons for different evaluation directions and the coefficient before adjustment into a preset model, and obtain the adjusted coefficient output from the preset model.
[0044] Step 203, using the target transportation expression, recommending a target transportation method.
[0045] In this embodiment, the execution subject may use the adjusted target transportation expression to determine the target transportation mode, so that the execution subject can output the target transportation mode to other electronic devices to achieve the effect of recommending the target transportation mode.
[0046] The method provided by the above-mentioned embodiments of the present disclosure can accurately adjust the mode of transportation according to the actual evaluation direction of the evaluator on the recommended mode of transportation, thereby helping to recommend a better mode of transportation that better meets the needs of the user.
[0047] Further references Figure 3a , which shows a process 300 of another embodiment of a method for recommending a mode of transport. The process 300 includes the following steps:
[0048] Step 301, obtaining the reasons for non-selection of the historically recommended transportation methods that have not been selected, wherein the historically recommended transportation methods are obtained using an initial transportation expression, the transportation expression includes parameters for determining the transportation methods and a coefficient for each parameter, and the reasons for non-selection indicate that the parameter values of the parameters corresponding to the historically recommended transportation methods are in any evaluation direction, and any evaluation direction is an overly high direction or an overly low direction, and the parameters include at least two of the cost, strength, timeliness, and service of the transportation methods.
[0049] Step 302, for the parameters involved in each non-selected reason, in response to the evaluation direction of the parameter value of the parameter including the too high direction and the too low direction, obtain the number of reasons for the parameter in the first evaluation direction, and use the number of reasons of other parameters in the second evaluation direction to modify the number of reasons to obtain the modified number of reasons.
[0050] In this embodiment, for each parameter involved in each non-selection reason, the execution subject (eg Figure 1 The server or terminal device shown in the figure can obtain the number of reasons for the non-selected reasons for the parameter value of the parameter in the first evaluation direction, that is, the first number of reasons, when the parameter value of the parameter includes the too low direction. In addition, the above-mentioned execution subject can also obtain the number of reasons for the non-selected reasons for the parameter values of other parameters other than the parameter in the second evaluation direction, that is, the second number of reasons.
[0051] The execution subject may modify the number of causes of the parameter in the second evaluation direction using the number of causes of other parameters in various ways, that is, determine to modify the first number of causes using the second number of causes. For example, the execution subject may input the first number of causes and the second number of causes into a trained model, and obtain the modified number of causes outputted from the model. The model may determine the modified number of causes using the first number of causes and the second number of causes.
[0052] The first evaluation direction is one of the too high direction or the too low direction, and the second evaluation direction is the other direction.
[0053] Step 303, summing up the number of reasons for modification of each parameter of the mode of transport to obtain a summed result.
[0054] In this embodiment, after determining the number of modified reasons for each parameter of the mode of transport, the execution entity may add up the number of modified reasons to obtain a summed result.
[0055] Step 304, based on the modified number of reasons and the summed result, the coefficient of the parameter in the initial transport expression is adjusted to obtain a target transport expression including the adjusted coefficient.
[0056] In this embodiment, the execution subject may use various methods to adjust the coefficient of the parameter in the initial transport expression based on the modified number of reasons and the summed result. For example, the execution subject may input the modified number of reasons and the summed result into a specified formula or model, and use the result output from the specified formula or model as the adjusted coefficient. The specified formula or model may generate the adjusted coefficient using the modified number of reasons and the summed result, as well as the parameters before adjustment. Alternatively, the execution subject may determine the quotient of the modified number of reasons and the summed result as the adjustment range of the coefficient.
[0057] In practice, because the parameter value and the coefficient are multiplied in the transport expression, when the transport expression is used to obtain the mode of transport, a high parameter value can be converted into a high coefficient ratio of the parameter, so the multiplication result of the parameter value and the coefficient can be adjusted by adjusting the coefficient, thereby improving the problem of the parameter being too high in the transport expression. Correspondingly, a low parameter value can be converted into a low coefficient ratio of the parameter.
[0058] Step 305, using the target transportation expression, recommending a target transportation method.
[0059] This embodiment can modify the number of causes of a parameter by the number of causes of other parameters, thereby converting the coefficient adjustment in dual evaluation directions into the coefficient adjustment in a single evaluation direction, thereby simplifying the adjustment steps and improving the adjustment efficiency.
[0060] In some optional implementations of the present embodiment, the above-mentioned obtaining the number of reasons for the parameter in the first evaluation direction, and modifying the number of reasons by using the number of reasons of other parameters in the second evaluation direction to obtain the modified number of reasons may include: in response to the first evaluation direction being too low and the second evaluation direction being too high, executing the first step: obtaining the number of reasons for the parameter in the too low direction, determining the sum of the number of reasons and the number of reasons of other parameters in the too high direction, and obtaining the sum of the number of reasons; or, in response to the first evaluation direction being too high and the second evaluation direction being too low, executing the second step: obtaining the number of reasons for the parameter in the too high direction, and determining the difference between the number of reasons and the number of reasons of other parameters in the too low direction, and obtaining the difference in the number of reasons.
[0061] In these optional implementations, the above-mentioned execution subject can use two methods to determine the modified number of reasons when the parameter has both the number of reasons in the too-high direction and the number of reasons in the too-low direction. In the case that the parameter is too high, it can be modified by subtracting the coefficient of the parameter, and the first method corresponds to the first step. The first method can convert the subtraction operation of the number of reasons in the too-high direction of the parameter into an addition operation of the number of reasons in the too-low direction of each other parameter. Specifically, the above-mentioned execution subject obtains the number of reasons in the too-low direction in response to the first evaluation direction being the too-low direction and the second evaluation direction being the too-high direction, and determines the sum of the number of reasons and the number of reasons in the too-high direction of other parameters, and the sum is the sum of the number of reasons. The number of reasons modified in this way is the sum of the number of reasons.
[0062] like Figure 3b As shown in the figure, for each parameter of cost, strength, timeliness and service, there are problems of too high coefficient ratio and too low coefficient ratio. In the case where the coefficient ratio of a certain parameter is too high, the ratio of the coefficient of other parameters can be increased, that is, other coefficients can be added to the coefficient of the parameter. Number 1 indicates the coefficient when the ratio is too low, and number 2 indicates the coefficient when the ratio is too high. Figure 3c As shown in the figure, the number of reasons and, for example, if the cost coefficient ratio is too high, the way to reduce the cost coefficient ratio is converted to increasing the coefficient ratio of the other three parameters. The increase in the coefficient ratio here can be achieved by increasing the corresponding number of reasons. In this way, a2 is added to b1, c1 and d1 respectively, and so on. If the coefficient of each parameter has the problem of too high or too low ratio, the number of reasons for each coefficient when it is too high is superimposed on the number of reasons for the coefficients of the other three parameters, so as to obtain Figure 3b The sum of the reasons when the proportion of each coefficient is too low, that is, a1+b2+c2+d2, b1+a2+c2+d2, c1+a2+b2+d2, d1+a2+b2+c2. Adding these sums of reasons can get the sum result.
[0063] In the case where the parameter is too low, it can be modified by adding the parameter or the coefficient of the parameter. The second method corresponds to the second step. The second method can convert the addition operation of the number of reasons for the parameter being too low into the subtraction operation of the number of reasons for each other parameter being too high. Specifically, the above-mentioned execution subject obtains the number of reasons for the parameter being too high in response to the first evaluation direction being too high and the second evaluation direction being too low, and determines the difference between the number of reasons and the number of reasons for other parameters being too low, and the difference is the difference in the number of reasons. The number of reasons after modification in this way is the difference in the number of reasons.
[0064] For each parameter in these implementations, if the evaluator believes that the proportion of the parameter is too high, the proportion of the coefficient of the parameter can be reduced for adjustment. If the evaluator believes that the proportion of the parameter is too low, the proportion of the coefficient of the parameter can be increased for adjustment.
[0065] In some optional implementations of the present embodiment, the step 304 of adjusting the coefficient of the parameter in the initial transport expression based on the modified number of reasons and the summed result may include: determining the quotient of the modified number of reasons and the summed result; based on the quotient, determining the adjustment range of the coefficient of the parameter in the initial transport expression; and adjusting the coefficient of the parameter in the initial transport expression using the adjustment range.
[0066] In these implementations, the execution subject may modify the quotient of the number of reasons and the summed result, and may determine the adjustment range of the coefficient of the parameter in the initial transport expression based on the quotient in various ways. For example, the execution subject may input the quotient into a pre-generated formula or model, and use the output of the formula or model as the adjustment range. The formula or model may determine the adjustment range of the coefficient using the input quotient and the coefficient in the initial transport expression.
[0067] These implementations can quantify the adjustment by determining the quotient, which helps to determine the exact coefficient adjustment range, thereby improving the accuracy of the adjustment coefficient.
[0068] In some optional application scenarios of these implementations, the above-mentioned determination of the adjustment range of the coefficient of the parameter in the initial transport expression based on the quotient may refer to directly using the quotient as the adjustment range, which is specifically expressed by the following formula:
[0069]
[0070] Where a% is the adjustment amplitude, a1 is the number of reasons why the parameter value of the first parameter is too low, b1 is the number of reasons why the parameter value of the second parameter is too low, c1 is the number of reasons why the parameter value of the third parameter is too low, d1 is the number of reasons why the parameter value of the fourth parameter is too low, a2 is the number of reasons why the parameter value of the first parameter is too high, b2 is the number of reasons why the parameter value of the second parameter is too high, c3 is the number of reasons why the parameter value of the third parameter is too high, and d2 is the number of reasons why the parameter value of the fourth parameter is too high. When the number of coefficients n is 4, n-1 is 3. The numerator of the formula is the sum of the number of reasons for the coefficient a, and the denominator is the sum.
[0071] In some optional application scenarios of these implementations, the method also includes: obtaining the historical adoption rate of the historically recommended transportation method obtained by using the initial transportation expression of the determined transportation method; if the historical adoption rate is less than the target adoption rate, determining the difference between the target adoption rate and the historical adoption rate, and using the difference as an adjustment coefficient for the coefficient of the parameter in the initial transportation expression; adjusting the coefficient of the parameter in the initial transportation expression using an adjustment range, including: adjusting the coefficient of the parameter in the initial transportation expression according to the adjustment range and the adjustment coefficient.
[0072] In these optional application scenarios, the above-mentioned execution entity can obtain the historical adoption rate of the historically recommended transportation method generated by the initial transportation expression. If the historical adoption rate is less than the target adoption rate, the difference between the target adoption rate and the historical adoption rate can be determined. The difference can be used as an adjustment coefficient for the coefficient. In the transportation expression, the adjustment coefficient and the coefficient are multiplied. In addition, the adjustment range and the coefficient are also multiplied. In this way, the coefficient of the parameter can be adjusted using the adjustment coefficient and the adjustment range.
[0073] In practice, the target adoption rate indicates that users have a high acceptance of each recommended transportation method, such as 90%.
[0074] These application scenarios can adjust the coefficients based on the user's historical adoption rate, so that the adjustment process can objectively reflect the user's true intentions, which helps to improve the user's adoption rate of the recommended transportation method determined by the adjusted target transportation expression.
[0075] In some optional application scenarios of these implementations, the adjustment amplitude has an adjustment sign, and the step of determining the adjustment sign includes: in response to the first evaluation direction being too low and the second evaluation direction being too high, determining the adjustment sign as a positive sign; in response to the first evaluation direction being too high and the second evaluation direction being too low, determining the adjustment sign as a negative sign.
[0076] In these application scenarios, the adjusted coefficient a can be expressed by the following formula: i1 :
[0077] a i1 =(1±a%)·e·a i
[0078] Among them, a% is the adjustment range, ± is the adjustment symbol, e is the difference between the target adoption rate and the historical adoption rate, and a i is the unadjusted coefficient in the initial transport expression.
[0079] These application scenarios can further precisely adjust the coefficients by adjusting the signs.
[0080] In some optional application scenarios of these implementations, the method also includes: in response to determining that the adjusted coefficient of any parameter reaches 1, canceling the number of reasons for other parameters in the too-high direction added to the sum of the number of reasons for the arbitrary parameter; and subtracting the number of reasons for the arbitrary parameter in the too-high direction from the sum of the number of reasons for other parameters other than the arbitrary parameter.
[0081] In these optional application scenarios, the modified number of reasons may have a numerical range limit, specifically between 0 and 1. The above-mentioned execution subject may cancel the number of reasons of other parameters in the too high direction added to the sum of the number of reasons when the adjusted coefficient of any parameter reaches 1. In addition, the above-mentioned execution subject may balance the above cancellation by subtracting the number of reasons of any parameter in the too high direction from the sum of the number of reasons of other parameters.
[0082] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a transportation mode recommendation device, which is similar to Figure 2 Corresponding to the method embodiment shown in FIG. 1 , in addition to the features described below, the device embodiment may also include Figure 2 The device can be applied to various electronic devices.
[0083] like Figure 4 As shown, the transport mode recommendation device 400 of this embodiment includes: an acquisition unit 401, an adjustment unit 402 and a recommendation unit 403. The acquisition unit 401 is configured to acquire the reasons for non-selection of the historically recommended transport modes that are not selected, wherein the historically recommended transport modes are obtained by using an initial transport expression, the transport expression includes parameters for determining the transport mode and the coefficient of each parameter, the reasons for non-selection indicate that the parameter value corresponding to the historically recommended transport mode is in any evaluation direction, any evaluation direction is an over-high direction or an over-low direction, and the parameters include at least two of the cost, strength, timeliness and service of the transport mode; the adjustment unit 402 is configured to adjust the coefficient of the parameter in the initial transport expression for the parameter involved in each non-selection reason based on the number of reasons for the parameter value of the parameter in each evaluation direction, and obtain a target transport expression including the adjusted coefficient; the recommendation unit 403 is configured to determine the target recommended transport mode by using the target transport expression.
[0084] In this embodiment, the specific processing of the acquisition unit 401, the adjustment unit 402 and the recommendation unit 403 of the transportation mode recommendation device 400 and the technical effects thereof can be referred to in Figure 2 The relevant descriptions of step 201, step 202 and step 203 in the corresponding embodiment are not repeated here.
[0085] In some optional implementations of the present embodiment, the adjustment unit is further configured to adjust the coefficient of the parameter in the initial transport expression based on the number of reasons for the parameter value of the parameter in each evaluation direction in the following manner: in response to the evaluation direction of the parameter value of the parameter including an over-high direction and an over-low direction, the number of reasons for the parameter in the first evaluation direction is obtained, and the number of reasons is modified using the number of reasons for other parameters in the second evaluation direction to obtain a modified number of reasons; the modified numbers of reasons of each parameter of the transport mode are added to obtain a summed result; based on the modified number of reasons and the summed result, the coefficient of the parameter in the initial transport expression is adjusted.
[0086] In some optional implementations of the present embodiment, the adjustment unit is further configured to execute the following method to obtain the number of reasons for the parameter in the first evaluation direction, and to modify the number of reasons using the number of reasons of other parameters in the second evaluation direction to obtain the modified number of reasons: in response to the first evaluation direction being too low and the second evaluation direction being too high, execute the first step: obtain the number of reasons for the parameter in the too low direction, determine the sum of the number of reasons and the number of reasons of other parameters in the too high direction, and obtain the sum of the number of reasons; or in response to the first evaluation direction being too high and the second evaluation direction being too low, execute the second step: obtain the number of reasons for the parameter in the too high direction, and determine the difference between the number of reasons and the number of reasons of other parameters in the too low direction, and obtain the difference in the number of reasons.
[0087] In some optional implementations of the present embodiment, the adjustment unit is further configured to adjust the coefficient of the parameter in the initial transport expression based on the modified number of causes and the summed result in the following manner: determine the quotient of the modified number of causes and the summed result; based on the quotient, determine the adjustment range of the coefficient of the parameter in the initial transport expression; and use the adjustment range to adjust the coefficient of the parameter in the initial transport expression.
[0088] In some optional implementations of this embodiment, based on the quotient, the adjustment range of the coefficient of the parameter in the initial transport expression is determined, and the following formula is used to express it:
[0089]
[0090] Among them, a% is the adjustment amplitude, a1 is the number of reasons why the parameter value of the first parameter is too low, b1 is the number of reasons why the parameter value of the second parameter is too low, c1 is the number of reasons why the parameter value of the third parameter is too low, d1 is the number of reasons why the parameter value of the fourth parameter is too low, a2 is the number of reasons why the parameter value of the first parameter is too high, b2 is the number of reasons why the parameter value of the second parameter is too high, c3 is the number of reasons why the parameter value of the third parameter is too high, and d2 is the number of reasons why the parameter value of the fourth parameter is too high.
[0091] In some optional implementations of the present embodiment, the device also includes: an adoption rate generating unit, configured to obtain the historical adoption rate of the historically recommended transportation method obtained by adopting the initial transportation expression of the determined transportation method; an adjustment coefficient determining unit, configured to determine the difference between the target adoption rate and the historical adoption rate if the historical adoption rate is less than the target adoption rate, and use the difference as the adjustment coefficient of the coefficient of the parameter in the initial transportation expression; and adjust the coefficient of the parameter in the initial transportation expression by using the adjustment amplitude, including: adjusting the coefficient of the parameter in the initial transportation expression according to the adjustment amplitude and the adjustment coefficient.
[0092] In some optional implementations of this embodiment, the adjustment amplitude has an adjustment sign, and the step of determining the adjustment sign includes: in response to the first evaluation direction being too low and the second evaluation direction being too high, determining the adjustment sign as a positive sign; in response to the first evaluation direction being too high and the second evaluation direction being too low, determining the adjustment sign as a negative sign.
[0093] In some optional implementations of the present embodiment, the device further includes: a cancellation unit, configured to cancel the number of reasons for other parameters in the too-high direction added to the sum of the number of reasons for the arbitrary parameter in response to determining that the adjusted coefficient of the arbitrary parameter reaches 1; and a subtraction unit, configured to subtract the number of reasons for the arbitrary parameter in the too-high direction from the sum of the number of reasons for other parameters other than the arbitrary parameter.
[0094] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0095] Figure 5A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0096] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0097] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0098] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the recommended method of the mode of transport. For example, in some embodiments, the recommended method of the mode of transport may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the recommended method of the mode of transport described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the recommended method of the mode of transport by any other appropriate means (e.g., by means of firmware).
[0099] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0100] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0101] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0102] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0103] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0104] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0105] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0106] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for recommending a mode of transport, the method comprising: Obtaining a non-selection reason for a historically recommended transportation method that is not selected, wherein the historically recommended transportation method is obtained by using an initial transportation expression, the transportation expression includes parameters for determining the transportation method and a coefficient of each parameter, the non-selection reason indicates that the parameter value of the parameter corresponding to the historically recommended transportation method is any evaluation direction, the parameter includes at least two of the cost, strength, timeliness and service of the transportation method, and the transportation method includes a carrier; For each parameter involved in the non-selected reason, based on the number of reasons for the parameter value of the parameter in each evaluation direction, the coefficient of the parameter in the initial transport expression is adjusted to obtain a target transport expression including the adjusted coefficient; The target transportation expression is adopted to recommend a target transportation method.
2. The method according to claim 1, wherein: The number of reasons for the parameter value of the parameter in each evaluation direction, adjusting the coefficient of the parameter in the initial transport expression, comprises: In response to the evaluation direction of the parameter value of the parameter including an over-high direction and an over-low direction, obtaining the number of causes of the parameter in a first evaluation direction, and modifying the number of causes using the number of causes of other parameters in a second evaluation direction to obtain a modified number of causes; The number of reasons for modification of each parameter of the mode of transport is summed up to obtain the sum result; Based on the modified number of reasons and the summed result, the coefficient of the parameter in the initial transportation expression is adjusted.
3. The method according to claim 2, wherein: The step of obtaining the number of reasons for the parameter in the first evaluation direction, and modifying the number of reasons by using the number of reasons for other parameters in the second evaluation direction to obtain the modified number of reasons includes: In response to the first evaluation direction being the too low direction and the second evaluation direction being the too high direction, executing the first step: obtaining the number of reasons for the parameter being in the too low direction, determining the sum of the number of reasons and the number of reasons for other parameters being in the too high direction, and obtaining the sum of the number of reasons; or In response to the first evaluation direction being too high and the second evaluation direction being too low, the second step is executed: obtaining the number of reasons for the parameter being too high, and determining the difference between the number of reasons and the number of reasons for other parameters being too low to obtain the difference in the number of reasons.
4. The method according to claim 2, wherein: Based on the modified number of reasons and the summed result, the coefficient of the parameter in the initial transportation expression is adjusted, including: Determining the quotient of the modified number of reasons and the summed result; Based on the quotient, determining an adjustment amplitude of a coefficient of the parameter in the initial transport expression; The coefficient of the parameter in the initial transport expression is adjusted using the adjustment amplitude.
5. The method according to claim 4, wherein: The adjustment range of the coefficient of the parameter in the initial transport expression is determined based on the quotient, and is expressed by the following formula: Among them, a% is the adjustment amplitude, a1 is the number of reasons why the parameter value of the first parameter is too low, b1 is the number of reasons why the parameter value of the second parameter is too low, c1 is the number of reasons why the parameter value of the third parameter is too low, d1 is the number of reasons why the parameter value of the fourth parameter is too low, a2 is the number of reasons why the parameter value of the first parameter is too high, b2 is the number of reasons why the parameter value of the second parameter is too high, c3 is the number of reasons why the parameter value of the third parameter is too high, and d2 is the number of reasons why the parameter value of the fourth parameter is too high.
6. The method according to claim 4, wherein: The method further comprises: Obtain the historical adoption rate of the historically recommended transportation mode obtained by using the initial transportation expression of the determined transportation mode; If the historical adoption rate is less than the target adoption rate, determining the difference between the target adoption rate and the historical adoption rate, and using the difference as an adjustment coefficient for the coefficient of the parameter in the initial transportation expression; The step of adjusting the coefficient of the parameter in the initial transport expression by using the adjustment amplitude includes: According to the adjustment range and the adjustment coefficient, the coefficient of the parameter in the initial transport expression is adjusted.
7. The method according to claim 4, wherein: The adjustment amplitude has an adjustment sign, and the step of determining the adjustment sign includes: In response to the first evaluation direction being an excessively low direction and the second evaluation direction being an excessively high direction, determining the adjustment sign to be a positive sign; In response to the first evaluation direction being an excessively high direction and the second evaluation direction being an excessively low direction, the adjustment sign is determined to be a negative sign.
8. The method according to claim 3, wherein: The method further comprises: In response to determining that the adjusted coefficient of any parameter reaches 1, canceling the number of causes of the arbitrary parameter and the number of causes of other parameters added in the excessively high direction; The sum of the causes of the parameters other than the arbitrary parameter is subtracted from the number of causes of the arbitrary parameter being too high.
9. A device for recommending a mode of transportation, the device comprising: an acquisition unit configured to acquire a non-selection reason of a historically recommended transportation mode that is not selected, wherein the historically recommended transportation mode is obtained by using an initial transportation expression, the transportation expression includes parameters for determining the transportation mode and a coefficient of each parameter, the non-selection reason indicates that a parameter value of a parameter corresponding to the historically recommended transportation mode is any evaluation direction, the parameter includes at least two of the cost, strength, timeliness and service of the transportation mode, and the transportation mode includes a carrier; an adjusting unit configured to adjust, for each parameter involved in each non-selected reason, the coefficient of the parameter in the initial transport expression based on the number of reasons for the parameter value of the parameter in each evaluation direction, to obtain a target transport expression including the adjusted coefficient; The recommendation unit is configured to adopt the target transportation expression to recommend a target transportation method.
10. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.