Transporter evaluation method and device based on rule engine, computer equipment, readable storage medium and program product

Through the evaluation method based on the rules engine, the service information of the transporter is obtained and the target evaluation rule configuration is determined, which solves the problem of low evaluation adaptability in the existing technology, and achieves flexible and efficient adaptation to the evaluation of the transporter.

CN120011856APending Publication Date: 2025-05-16CHINA SOUTHERN POWER GRID INTERNET SERVICE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510125573.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-27
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The prior art methods for evaluation of transporters have low adaptability and cannot adapt to different evaluation standards and new needs.

Method used

The evaluation method based on the rules engine is adopted to obtain the service information of the transporter, determine the target evaluation rule configuration from the rules engine, obtain evaluation reference data, and evaluate based on the rules and data to generate evaluation results.

Benefits of technology

It improves the adaptability of the transporter's evaluation, can flexibly respond to evaluation needs in different scenarios, and quickly respond to new needs and changes in the logistics industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120011856A_ABST
    Figure CN120011856A_ABST
Patent Text Reader

Abstract

The invention relates to a transport party evaluation method and device based on a rule engine, computer equipment, a readable storage medium and a program product. The method comprises the steps of determining corresponding target evaluation rule configuration from a rule engine based on business information of a transportation party, determining flat-opening reference data based on a target evaluation rule in the target evaluation rule configuration, evaluating the transportation party based on the evaluation reference data and the target evaluation rule, and obtaining a corresponding evaluation result. Compared with traditional evaluation based on a fixed form, the scheme determines the corresponding target evaluation rule configuration under different business information by combining with the rule engine including the autonomously generated evaluation rule configuration, and flexibly obtains the corresponding evaluation reference data by using the target evaluation rule configuration to evaluate the transportation party, thereby improving the evaluation efficiency. Therefore, the adaptability of evaluation of transportation parties in different scenes is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of logistics and transportation technology, and in particular to a transporter evaluation method, device, computer equipment, computer-readable storage medium and computer program product based on a rule engine. Background Art

[0002] With the development of logistics and transportation methods, the transportation of goods and other items through logistics and transportation services has become the mainstream. During the transportation process, the performance of the transportation service by the transporter is related to the performance of the transportation service. In order to ensure that the transporter can complete the transportation service well, it is necessary to evaluate the transporter in a timely manner to promptly discover and fix the problems of the transporter. At present, the way to evaluate the transporter is usually to evaluate by filling in a form with fixed items. However, evaluating the transporter by filling in a form with fixed items cannot adapt to different evaluation standards.

[0003] Therefore, the current method of evaluating transporters has the defect of low adaptability. Summary of the invention

[0004] Based on this, it is necessary to provide a rule-engine-based transport party evaluation method, device, computer equipment, computer-readable storage medium and computer program product that can improve adaptability in response to the above technical problems.

[0005] In a first aspect, the present application provides a transporter evaluation method based on a rule engine, comprising:

[0006] Obtain the business information corresponding to the transporter to be evaluated;

[0007] According to the business information, a corresponding target evaluation rule configuration is determined from a rule engine; the rule engine stores various evaluation rule configurations corresponding to various types of business information;

[0008] According to each target evaluation rule in the target evaluation rule configuration, obtaining corresponding evaluation reference data;

[0009] The evaluation result corresponding to the transporter is determined according to each of the evaluation reference data and each of the target evaluation rules.

[0010] In a second aspect, the present application also provides a transporter evaluation device based on a rule engine, comprising:

[0011] The first acquisition module is used to acquire the business information corresponding to the transport party to be evaluated;

[0012] A determination module, used to determine the corresponding target evaluation rule configuration from a rule engine according to the business information; the rule engine stores various evaluation rule configurations corresponding to various types of business information;

[0013] A second acquisition module, used to acquire corresponding evaluation reference data according to each target evaluation rule in the target evaluation rule configuration;

[0014] The evaluation module is used to determine the evaluation result corresponding to the transporter according to each of the evaluation reference data and each of the target evaluation rules.

[0015] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0016] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0017] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0018] The above-mentioned transporter evaluation method, device, computer equipment, computer-readable storage medium and computer program product based on the rule engine determine the corresponding target evaluation rule configuration from the rule engine based on the transporter's business information, determine the flat opening reference data based on the target evaluation rule in the target evaluation rule configuration, evaluate the transporter based on the evaluation reference data and the target evaluation rule, and obtain the corresponding evaluation result. Compared with the traditional evaluation based on a fixed form, this solution determines the corresponding target evaluation rule configuration under different business information by combining a rule engine containing an autonomously generated evaluation rule configuration, and uses the target evaluation rule configuration to flexibly obtain the corresponding evaluation reference data to evaluate the transporter, thereby improving the adaptability of evaluating the transporter in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 The figure is a flow chart of a method for evaluating a transporter based on a rule engine in one embodiment;

[0021] Figure 2It is a flowchart of a method for evaluating a transporter based on a rule engine in another embodiment;

[0022] Figure 3 It is a structural block diagram of a transporter evaluation device based on a rule engine in one embodiment;

[0023] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] In related technologies, evaluation indicators and corresponding scoring rules are pre-set and fixed, and cannot quickly respond to new demands and new scenarios in the logistics industry. For example, with the rise of green logistics, it is difficult to integrate the consideration of carbon emission indicators of transporters into the existing system because there is a lack of flexible and variable rule setting mechanism, and a large amount of code needs to be rewritten for each adjustment. Moreover, simple conditional judgments are difficult to handle complex business logic, and cannot automatically summarize in-depth evaluation basis from massive data.

[0026] Based on this, the present application determines the corresponding target evaluation rule configuration under different business information by combining a rule engine that includes an autonomously generated evaluation rule configuration, and uses the target evaluation rule configuration to flexibly obtain the corresponding evaluation reference data to evaluate the transporter, thereby improving the adaptability of evaluating the transporter in different scenarios.

[0027] In one embodiment, Figure 1 As shown, a transporter evaluation method based on a rule engine is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server, including the following steps S202 to S208. Among them:

[0028] Step S202, obtaining the business information corresponding to the transport party to be evaluated.

[0029] The terminal may be a computer or a mobile phone. The transporter may be the business executor that needs to be evaluated. The transporter is also called a carrier, which provides logistics and transportation services. In order to evaluate the transporter's transportation business and determine the performance of the transporter's business, the terminal may obtain the business information corresponding to the transporter to be evaluated. The above business information may include multiple types of information. For example, the terminal may use the time point or business scenario when the transporter performs the transportation business as business information.

[0030] Step S204: determining the corresponding target evaluation rule configuration from the rule engine according to the business information; the rule engine stores various evaluation rule configurations corresponding to various types of business information.

[0031] Among them, the terminal can be provided with a rule engine, and the rule engine can store various evaluation rule configurations corresponding to various types of business information, that is, the terminal can pre-build the evaluation rule configuration based on the rule engine. Among them, the rule engine can be used to build evaluation rules. The rule engine adopts a flexible rule definition language, allowing users to define and modify evaluation rules through a graphical interface or a simple text editing method. The above evaluation rule configuration can be constructed based on multiple evaluation rules. The corresponding evaluation rule configuration of the transporter under the conditions of different business information can be different.

[0032] After the terminal obtains the business information corresponding to the above-mentioned transport party to be evaluated, it can determine the target evaluation rule configuration corresponding to the above-mentioned business information from the rule engine based on the business information. That is, the terminal can determine the target evaluation rule configuration corresponding to the above-mentioned business information from the rule engine when the transport party is in the above-mentioned business information. Specifically, the above-mentioned business information includes but is not limited to information such as time points and business scenarios. Different business information corresponds to different evaluation rule configurations, and the evaluation rule configuration corresponding to the same business information may also have different versions. The terminal can select the applicable type and version of the target evaluation rule configuration according to different time points or business scenarios.

[0033] Step S206: acquiring corresponding evaluation reference data according to each target evaluation rule in the target evaluation rule configuration.

[0034] Among them, multiple evaluation rules are stored in each evaluation rule configuration stored in the rule engine. Then the above-mentioned target evaluation rule configuration may include multiple target evaluation rules. Each target evaluation rule in the target evaluation rule configuration can be used to evaluate and judge the transporter. Then the terminal can obtain each target evaluation rule in the above-mentioned target evaluation rule configuration, and obtain each evaluation reference data according to each target evaluation rule in the target evaluation rule configuration. Among them, the evaluation reference data may be the data needed by the terminal when making an evaluation judgment based on the evaluation rules. The evaluation reference data includes but is not limited to data generated by the transporter's vehicle, warehouse, order and other systems.

[0035] Step S208: Determine the evaluation result corresponding to the above-mentioned transporter according to each of the above-mentioned evaluation reference data and each of the above-mentioned target evaluation rules.

[0036] After the terminal determines the various evaluation reference data that need to be obtained based on the target evaluation rules, it can obtain the various evaluation reference data from the corresponding data source, so that the terminal can evaluate the transporter according to the various evaluation reference data and the various target evaluation rules, and obtain the corresponding evaluation results of the transporter. According to the above-mentioned target evaluation rules, the terminal can determine the evaluation reference data that needs to be used, and by matching the evaluation reference data with the corresponding target evaluation rules, the terminal can determine the corresponding evaluation results of the transporter according to the various matching results of the various target evaluation rules and the corresponding evaluation reference data.

[0037] In the above-mentioned transporter evaluation method based on rule engine, the corresponding target evaluation rule configuration is determined from the rule engine based on the transporter's business information, and the reference data is determined based on the target evaluation rule in the target evaluation rule configuration. The transporter is evaluated based on the evaluation reference data and the target evaluation rule and the corresponding evaluation result is obtained. Compared with the traditional evaluation based on fixed forms, this solution determines the corresponding target evaluation rule configuration under different business information by combining a rule engine containing an autonomously generated evaluation rule configuration, and uses the target evaluation rule configuration to flexibly obtain the corresponding evaluation reference data to evaluate the transporter, thereby improving the adaptability of evaluating the transporter in different scenarios.

[0038] In one embodiment, it also includes: obtaining an input rule expression; parsing the rule expression according to a rule engine to obtain a corresponding abstract syntax tree; converting the abstract syntax tree into an evaluation rule; and generating evaluation rule configurations corresponding to various types of business information according to each evaluation rule and storing them in the rule engine.

[0039] In this embodiment, the terminal can use the rule engine to build an evaluation rule configuration in advance. Then the terminal can use the rule engine to generate various evaluation rules. Among them, the rule engine supports the construction of evaluation rules by combining graphic components, inputting rule statements, etc. For example, the terminal can determine the rule expression based on the various graphic components obtained by combination or using the input rule statements, so that the terminal can parse the rule expression according to the rule engine to obtain the corresponding abstract syntax tree. The abstract syntax tree represents the logic of the rule expression. Thus, the terminal can convert the abstract syntax tree into an evaluation rule. Among them, the evaluation rule can be an executable instruction.

[0040] The terminal can generate multiple evaluation rules based on multiple rule expressions, so that the terminal can generate various evaluation rule configurations corresponding to various types of business information based on various evaluation rules, and store various evaluation rule configurations in the database of the rule engine. Among them, the terminal can obtain various evaluation rules that meet the evaluation requirements of various types of business information according to the evaluation requirements of various types of business information, and generate various evaluation rule configurations corresponding to various types of business information based on these obtained evaluation rules. Among them, the above rule expressions can be generated in multiple ways.

[0041] In one embodiment, obtaining an input rule expression includes: obtaining combination information for each rule condition component and each rule action component in the above rule engine to obtain the above rule expression; the above rule condition component represents the component corresponding to the condition of the evaluation rule, and the above rule action component represents the component corresponding to the action executed by the evaluation rule.

[0042] In this embodiment, the above rule expression can be obtained by combining components. Among them, the terminal can display a variety of graphical components, for example, the terminal can display multiple graphical rule condition components and multiple rule action components. Among them, the rule condition component represents the component corresponding to the condition of the evaluation rule, such as the judgment rule for the transport party's business; the rule action component represents the component corresponding to the action executed by the evaluation rule, such as deducting or adding points. Among them, each rule condition component and each rule action component can express the condition or action in the form of words or sentences. The user can combine the rule condition component and the rule action component by dragging and dropping the rule condition component and the rule action component.

[0043] Based on the above combination, the terminal can obtain the combination information for each rule condition component and each rule action component in the rule engine, so that the terminal can obtain the rule expression according to each rule condition component and each rule action component in the combination. For example, the terminal can use the rule engine to combine the conditions and actions in the combined rule condition component and rule action component to obtain the corresponding rule expression.

[0044] In one embodiment, obtaining an input rule expression includes: obtaining a rule statement input into the rule engine to obtain the rule expression.

[0045] In this embodiment, the terminal can also provide a text input page in the rule engine, so that the user can enter the corresponding text to form a rule statement. The terminal can obtain the rule statement entered in the rule engine, and then the terminal can obtain a rule expression based on the rule statement.

[0046] Specifically, a rule engine module is provided in the terminal, and a rule parser is included in the rule engine module, which can parse the rule text input by the user into logical instructions that can be executed by the computer. For example, the user can define an evaluation rule: "If the proportion of new energy vehicles used by the transporter during transportation is higher than 80%, 5 points will be added to the total score", and the rule parser will parse this rule into corresponding conditional judgment and scoring operation instructions to obtain the above evaluation rules. The rule engine module also has a rule version management function. Whenever the user modifies the rule, the terminal will automatically generate a version number for the new evaluation rule and archive the old version of the rule. In this way, during the evaluation process, the applicable rule version can be selected for evaluation according to different time points or business scenarios.

[0047] Among them, users can use the rule engine module operation interface to graphically drag rule action components, rule condition components or text to write rule statements, so that the terminal can parse the rules through the rule engine, build an abstract syntax tree, convert it into executable instruction evaluation rules, store it in the rule library, and generate a unique version number for the rules.

[0048] Through the above embodiments, the terminal can parse the input rules into computer-executable logical instructions through the rule parser inside the rule engine, accurately understand the logical structure of the rules by constructing an abstract syntax tree, and construct evaluation rules based on the combination between components or the input of rule statements, and use multiple evaluation rules to form an evaluation rule configuration, so that the rules can be updated in time, which improves the flexibility and adaptability of the evaluation rules, and the terminal can use different evaluation rule configurations to evaluate the transporter in different scenarios, which improves the adaptability of evaluating the transporter.

[0049] In one embodiment, according to each target evaluation rule in the above target evaluation rule configuration, corresponding evaluation reference data are obtained, including: according to each of the above target evaluation rules, each collection condition and each data source are determined; according to each of the above collection conditions, each of the above evaluation reference data is obtained from the corresponding each of the above data sources.

[0050] In this embodiment, the terminal uses the evaluation rules to evaluate the transporter, and needs to make a judgment in combination with the evaluation reference data. Among them, the evaluation reference data comes from multiple data sources related to the transporter, and the terminal can obtain the corresponding evaluation reference data after determining the target evaluation rules. For example, the terminal can determine the various collection conditions and various data sources according to the various target evaluation rules. Among them, the collection conditions can be the requirements and rules for the terminal to collect evaluation reference data, such as how many seconds to collect once, how much data to collect, etc. The data source can be a system that generates data, such as the transporter's vehicle, warehouse, and order systems. The terminal can obtain various evaluation reference data from the corresponding data sources according to various collection conditions.

[0051] Specifically, a data collection module is provided in the terminal. The terminal automatically collects the data required for evaluation from the transporter at various stages of the logistics transportation process through the data collection module as evaluation reference data. The terminal obtains various data such as transportation time, cargo integrity, delivery punctuality, vehicle type, carbon emissions, etc. in real time by connecting to the data interface. For example, in the cargo delivery stage, the terminal automatically obtains information on whether the cargo is intact through the data collection module; and obtains the vehicle's driving trajectory and driving time data during transportation.

[0052] When obtaining evaluation reference data, the terminal reads the configuration file (target evaluation rule configuration) through the data collection module, specifies the data collection time interval, each data source interface and transmission protocol, for example, configures the data collection every 30 minutes, and connects with the vehicle management system through the HTTP (Hypertext Transfer Protocol) protocol, so that the terminal connects to each data source based on the above process. After the terminal connects to each data source, it can connect to the transporter's vehicle, warehouse, order and other system data sources through the HTTP protocol at a predetermined interval to obtain data such as driving trajectory, cargo integrity, and delivery punctuality, and after formatting, deduplication and error correction of the data, it is stored in the local temporary database as evaluation reference data.

[0053] Through this embodiment, the terminal can collect evaluation reference data from the corresponding data source according to the corresponding collection conditions based on the requirements of the evaluation rules, and use the collected evaluation reference data to conduct multi-faceted evaluation of the transporter, thereby improving the accuracy of the evaluation of the transporter.

[0054] In one embodiment, the evaluation result corresponding to the above-mentioned transport party is determined according to each of the above-mentioned evaluation reference data and each of the above-mentioned target evaluation rules, including: determining each of the above-mentioned target evaluation reference data corresponding to each of the above-mentioned target evaluation rules in each of the above-mentioned evaluation reference data; matching each of the above-mentioned target evaluation rules with the corresponding each of the target evaluation reference data to obtain each corresponding matching score and each of the above-mentioned scoring basis information corresponding to each of the above-mentioned matching scores; determining the evaluation result corresponding to the above-mentioned transport party according to each of the above-mentioned matching scores and each of the above-mentioned scoring basis information.

[0055] In this embodiment, after the terminal determines the target rating rule and obtains the corresponding evaluation reference data, it can evaluate the transporter. Among them, the evaluation reference data required for each target evaluation rule may be different, and the terminal can determine the target evaluation reference data corresponding to each target evaluation rule in each evaluation reference data. Thus, the terminal can match each target evaluation rule with the corresponding target evaluation reference data to obtain the corresponding matching scores and the scoring basis information. Among them, the matching score indicates that the terminal analyzes the degree of satisfaction of the conditions of the target evaluation rule based on the target evaluation reference data, and then obtains the corresponding matching score; the scoring basis information indicates the process through which the matching score is obtained, such as which rules lead to deductions or additions, etc. Thus, the terminal can determine the evaluation result corresponding to the transporter according to each matching score and each scoring basis information.

[0056] Specifically, an evaluation execution module is provided in the terminal. The terminal connects to the temporary database in the terminal through the evaluation execution module to confirm that the data is complete and accurate. The terminal can clarify the data fields to be extracted, that is, the target evaluation reference data, based on the target evaluation rules, and load the executable instructions of the target evaluation rules in the rule engine. The terminal can read the target evaluation reference data from the temporary database and match it with the corresponding target evaluation rules, calculate and judge each rule, and add points if the conditions are met. The final score is obtained by combining the results of each rule, and the evaluation details are generated based on the score and the score basis information.

[0057] Among them, the terminal automatically performs the evaluation calculation of the transporter through the evaluation execution module according to the rule instructions (target evaluation rules) parsed by the rule engine module and the data collected by the data collection module (target evaluation reference data). The terminal first matches the collected data with the conditions in the rules to determine whether the conditions for adding or deducting points are met. For example, for the above-mentioned new energy vehicle usage ratio rule, the terminal will calculate the proportion of the cargo volume transported by the transporter using new energy vehicles in a certain period of time to the total cargo volume. If the proportion is higher than the threshold, such as 80%, the corresponding score, such as 5 points, will be added to the total score. During the evaluation process, the terminal will record the results of each evaluation (matching score) and the rules based on it (score basis information) in detail to generate evaluation details, which include not only the final score of the carrier, but also the composition of the score, such as which rules lead to adding or deducting points, and the corresponding score value. In this way, the transporter and relevant personnel can clearly understand the basis of the evaluation results.

[0058] Through this embodiment, the terminal can determine the matching score and scoring basis information based on the matching of the target evaluation rules with the corresponding target evaluation reference data, and then obtain the evaluation result of the transporter, thereby realizing the evaluation of the transporter based on flexibly generated rules and improving the adaptability of the evaluation of the transporter.

[0059] In one embodiment, after determining the evaluation result corresponding to the above-mentioned transport party according to each of the above-mentioned evaluation reference data and each of the above-mentioned target evaluation rules, it also includes: obtaining the display configuration corresponding to the above-mentioned transport party; the above-mentioned display configuration represents the corresponding configuration when displaying the evaluation result of the above-mentioned transport party; according to the above-mentioned display configuration, determining the data to be displayed in the above-mentioned evaluation result; obtaining each data to be displayed corresponding to each of the above-mentioned evaluation results within a preset time period; and outputting the above-mentioned display page after generating the display page according to each of the above-mentioned data to be displayed.

[0060] In this embodiment, after the terminal obtains the above-mentioned evaluation results, it can also display the evaluation results. Among them, the terminal can display different evaluation result information according to needs, for example, determine the data to be displayed based on the display configuration. Among them, the terminal can obtain the display configuration information corresponding to the transporter. The display configuration information represents the configuration of the data to be displayed when displaying the evaluation results of the transporter. The terminal can determine the data to be displayed in the evaluation results according to the display configuration. In addition, the terminal can also display multiple evaluation results within a cycle, thereby realizing the display of changing trends. The terminal can extract the data to be displayed in each evaluation result obtained by each evaluation within a preset time period, and obtain the data to be displayed corresponding to each evaluation result. Thus, the terminal can generate a display page according to each data to be displayed, and output the display page. Thus, the data matching the display configuration in each evaluation result can be displayed in the display page, and can also be displayed in a corresponding form, such as by a chart or numerical form.

[0061] Specifically, a result display and analysis module is provided in the terminal. The terminal obtains evaluation details, such as evaluation results, through the result display and analysis module, and determines the visualization method (display configuration) and configures the display page according to the data characteristics and user needs. Among them, the terminal displays the evaluation results generated by the evaluation execution module to the user in an intuitive manner through the result display and analysis module. For example, the terminal can determine the data to be displayed based on the display configuration, and use charts, reports and other forms to display the above-determined data to be displayed, including but not limited to the score trend of the transporter, the score of each indicator and the comparison with other transporters. For example, the terminal uses a bar chart to display the score comparison of different transporters on the green logistics carbon emission indicators, and uses a line chart to display the score change trend of a certain transporter over a period of time.

[0062] Through this embodiment, the terminal can use the evaluation results to generate and output a display page, thereby improving the intuitiveness of the evaluation results for the transporter.

[0063] In related technologies, the logistics industry is changing with each passing day, and new transportation modes, special cargo types, and environmental protection requirements are constantly emerging. In the existing static scoring system, the evaluation indicators and scoring rules are fixed at the beginning of the system construction. Whenever new considerations emerge, the entire evaluation system is difficult to adapt quickly.

[0064] Based on this, this application proposes an evaluation method and system based on a rule engine, and constructs an evaluation system based on a rule engine, so that business personnel can independently and quickly update the evaluation rules. Whether it is adding carbon emission assessments for green logistics or specifying special protection rules for the transportation of fragile goods, there is no need for complex code changes, thereby outputting more objective and accurate carrier evaluations.

[0065] In an exemplary embodiment, Figure 2 As shown, Figure 2 It is a flow chart of a transporter evaluation method based on a rule engine in another embodiment. In this embodiment, a rule engine module, a data collection module, an evaluation execution module and a result display module are provided in the terminal. Among them, the terminal allows users to define and modify evaluation rules through a graphical interface or a simple text editing method through a rule engine module combined with a rule definition language. The rule engine module contains a rule parser that can parse the rule text entered by the user into a logical instruction that can be executed by a computer. For example, a user can define an evaluation rule: "If the proportion of new energy vehicles used by the transporter during transportation is higher than 80%, then add 5 points to the total score", and the rule parser will parse this rule into corresponding conditional judgment and score operation instructions to obtain the above evaluation rules. The rule engine module also has a rule version management function. Whenever a user modifies a rule, the terminal will automatically generate a version number for the new evaluation rule and archive the old version of the rule. In this way, during the evaluation process, the applicable rule version can be selected for evaluation according to different time points or business scenarios.

[0066] The terminal automatically collects the data required for evaluation from the transporter at each stage of the logistics transportation process through the data collection module as evaluation reference data. The terminal obtains various data such as transportation time, cargo integrity, delivery on-time rate, vehicle type, carbon emissions, etc. in real time by connecting to the data interface. For example, in the cargo delivery stage, the terminal automatically obtains information on whether the cargo is intact through the data collection module; and obtains the vehicle's driving trajectory and driving time data during transportation.

[0067] The terminal automatically performs the evaluation calculation of the transporter through the evaluation execution module according to the rule instructions (target evaluation rules) parsed by the rule engine module and the data collected by the data collection module (target evaluation reference data). The terminal first matches the collected data with the conditions in the rules to determine whether the conditions for adding or deducting points are met. For example, for the above-mentioned new energy vehicle usage ratio rule, the terminal will calculate the proportion of the cargo volume transported by the transporter using new energy vehicles in a certain period of time to the total cargo volume. If the proportion is higher than the threshold, such as 80%, the corresponding score, such as 5 points, will be added to the total score. During the evaluation process, the terminal will record the results of each evaluation (matching score) and the rules based on it (score basis information) in detail to generate evaluation details, which include not only the final score of the carrier, but also the composition of the score, such as which rules lead to adding or deducting points, and the corresponding score value. In this way, the transporter and relevant personnel can clearly understand the basis of the evaluation results.

[0068] The terminal obtains evaluation details, such as evaluation results, through the result display and analysis module, and determines the visualization method (display configuration) and configures the display page according to the data characteristics and user needs. Among them, the terminal displays the evaluation results generated by the evaluation execution module to the user in an intuitive way through the result display and analysis module. For example, the terminal can determine the data to be displayed based on the display configuration, and use charts, reports and other forms to display the above-determined data to be displayed, including but not limited to the score trend of the transporter, the score of each indicator, and the comparison with other transporters. For example, the terminal uses a bar chart to display the score comparison of different transporters on the green logistics carbon emission indicators, and uses a line chart to display the score change trend of a certain transporter over a period of time.

[0069] Specifically, users can use the rule engine module operation interface to graphically drag rule action components, rule condition components or text to write rule statements, so that the terminal can parse the rules through the rule engine, build an abstract syntax tree, convert them into executable evaluation rules, store them in the rule library, and generate a unique version number for the rules.

[0070] When obtaining evaluation reference data, the terminal reads the configuration file (target evaluation rule configuration) through the data collection module, specifies the data collection time interval, each data source interface and transmission protocol, for example, configures collection every 30 minutes, and connects with the vehicle management system through the HTTP protocol, so that the terminal connects to each data source based on the above process. After the terminal connects to each data source, it can connect to the transporter's vehicle, warehouse, order and other system data sources through the HTTP protocol at a predetermined interval to obtain data such as driving trajectory, cargo integrity, and delivery punctuality, and after formatting, deduplication and error correction of the data, it is stored in the local temporary database as evaluation reference data.

[0071] The terminal connects to the temporary database in the terminal through the evaluation execution module to confirm that the data is complete and accurate. The terminal can specify the data fields to be extracted based on the target evaluation rules, that is, the target evaluation reference data, and load the executable instructions of the target evaluation rules in the rule engine. The terminal can read the target evaluation reference data from the temporary database and match it with the corresponding target evaluation rules, calculate and judge each rule, and add points if the conditions are met. The final score is obtained by combining the results of each rule, and the evaluation details are generated based on the score and the score basis information.

[0072] The terminal obtains evaluation details, such as evaluation results, through the result display and analysis module, and determines the visualization method (display configuration) and configures the display page according to the data characteristics and user needs.

[0073] Through the above embodiments, the terminal determines the target evaluation rule configuration corresponding to different business information by combining the rule engine containing the self-generated evaluation rule configuration, and uses the target evaluation rule configuration to flexibly obtain the corresponding evaluation reference data to evaluate the transporter, thereby improving the adaptability of evaluating the transporter in different scenarios. In addition, the terminal quickly formulates and adjusts rules according to new needs and new scenarios in the logistics industry, improving the flexibility of formulating evaluation rules.

[0074] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0075] Based on the same inventive concept, the embodiment of the present application also provides a transporter evaluation device based on a rule engine for implementing the transporter evaluation method based on a rule engine. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the transporter evaluation device based on a rule engine provided below can refer to the limitations of the transporter evaluation method based on a rule engine above, and will not be repeated here.

[0076] In an exemplary embodiment, Figure 3 As shown, a transporter evaluation device based on a rule engine is provided, comprising: a first acquisition module 500, a determination module 502, a second acquisition module 504 and an evaluation module 506, wherein:

[0077] The first acquisition module 500 is used to acquire the business information corresponding to the transport party to be evaluated.

[0078] The determination module 502 is used to determine the corresponding target evaluation rule configuration from the rule engine according to the above business information; the above rule engine stores various evaluation rule configurations corresponding to various types of business information.

[0079] The second acquisition module 504 is used to acquire corresponding evaluation reference data according to each target evaluation rule in the target evaluation rule configuration.

[0080] The evaluation module 506 is used to determine the evaluation result corresponding to the above-mentioned transport party according to each of the above-mentioned evaluation reference data and each of the above-mentioned target evaluation rules.

[0081] In one embodiment, the above-mentioned device also includes: a construction module, which is used to obtain an input rule expression; parse the above-mentioned rule expression according to the rule engine to obtain a corresponding abstract syntax tree; convert the above-mentioned abstract syntax tree into an evaluation rule; and generate each evaluation rule configuration corresponding to each type of business information according to each evaluation rule and store it in the above-mentioned rule engine.

[0082] In one embodiment, the above-mentioned device also includes: a construction module, which is used to obtain the combination information of each rule condition component and each rule action component in the above-mentioned rule engine to obtain the above-mentioned rule expression; the above-mentioned rule condition component represents the component corresponding to the condition of the evaluation rule, and the above-mentioned rule action component represents the component corresponding to the action executed by the evaluation rule.

[0083] In one embodiment, the apparatus further comprises: a construction module, configured to obtain the rule statement input into the rule engine to obtain the rule expression.

[0084] In one embodiment, the second acquisition module 504 is used to determine each acquisition condition and each data source according to each target evaluation rule; and to acquire each evaluation reference data from the corresponding data source according to each acquisition condition.

[0085] In one embodiment, the above-mentioned evaluation module 506 is used to determine each target evaluation reference data corresponding to each of the above-mentioned target evaluation rules in each of the above-mentioned evaluation reference data; match each of the above-mentioned target evaluation rules with the corresponding each of the target evaluation reference data to obtain each corresponding matching score and each scoring basis information corresponding to each of the above-mentioned matching scores; determine the evaluation result corresponding to the above-mentioned transport party according to each of the above-mentioned matching scores and each of the above-mentioned scoring basis information.

[0086] In one embodiment, the above-mentioned device also includes: a display module, which is used to obtain the display configuration corresponding to the above-mentioned transport party; the above-mentioned display configuration represents the corresponding configuration when displaying the evaluation results of the above-mentioned transport party; according to the above-mentioned display configuration, determine the data to be displayed in the above-mentioned evaluation results; obtain each data to be displayed corresponding to each of the above-mentioned evaluation results within a preset time period; generate a display page according to each of the above-mentioned data to be displayed and then output the above-mentioned display page.

[0087] Each module in the above-mentioned transporter evaluation device based on the rule engine can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0088] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 4 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a transporter evaluation method based on a rule engine is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0089] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0090] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above-mentioned rule engine-based transporter evaluation method when executing the computer program.

[0091] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned rule engine-based transporter evaluation method is implemented.

[0092] In one embodiment, a computer program product is provided, including a computer program, which implements the above-mentioned rule engine-based transport party evaluation method when executed by a processor.

[0093] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0094] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0095] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0096] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A transporter evaluation method based on rule engine, characterized in that: The method comprises: Obtain the business information corresponding to the transporter to be evaluated; According to the business information, a corresponding target evaluation rule configuration is determined from a rule engine; the rule engine stores various evaluation rule configurations corresponding to various types of business information; According to each target evaluation rule in the target evaluation rule configuration, obtaining corresponding evaluation reference data; The evaluation result corresponding to the transporter is determined according to each of the evaluation reference data and each of the target evaluation rules.

2. The method according to claim 1, characterized in that The method further comprises: Get the input regular expression; Parsing the rule expression according to the rule engine to obtain a corresponding abstract syntax tree; Converting the abstract syntax tree into evaluation rules; According to each evaluation rule, each evaluation rule configuration corresponding to each type of business information is generated and stored in the rule engine.

3. The method according to claim 2, characterized in that The regular expression for obtaining input includes: Acquire combination information of each rule condition component and each rule action component in the rule engine to obtain the rule expression; the rule condition component represents a component corresponding to a condition of the evaluation rule, and the rule action component represents a component corresponding to an action executed by the evaluation rule; and / or, The rule statement input into the rule engine is acquired to obtain the rule expression.

4. The method according to claim 1, characterized in that The step of obtaining corresponding evaluation reference data according to each target evaluation rule in the target evaluation rule configuration includes: Determine each acquisition condition and each data source according to each of the target evaluation rules; According to each of the collection conditions, each of the evaluation reference data is obtained from each of the corresponding data sources.

5. The method according to claim 1, characterized in that Determining the evaluation result corresponding to the transporter according to each of the evaluation reference data and each of the target evaluation rules includes: Determine, among the evaluation reference data, each target evaluation reference data corresponding to each target evaluation rule; Matching each of the target evaluation rules with the corresponding target evaluation reference data to obtain corresponding matching scores and scoring basis information corresponding to each of the matching scores; According to each of the matching scores and each of the score basis information, the evaluation result corresponding to the transporter is determined.

6. The method according to any one of claims 1 to 5, characterized in that: After determining the evaluation result corresponding to the transporter according to each of the evaluation reference data and each of the target evaluation rules, the method further includes: Obtaining a display configuration corresponding to the transporter; the display configuration represents a configuration corresponding to displaying the evaluation result of the transporter; Determining the data to be displayed in the evaluation result according to the display configuration; Obtaining each data to be displayed corresponding to each evaluation result within a preset time period; After generating a display page according to each of the to-be-displayed data, the display page is output.

7. A transporter evaluation device based on a rule engine, characterized in that: The device comprises: The first acquisition module is used to acquire the business information corresponding to the transport party to be evaluated; A determination module, used to determine the corresponding target evaluation rule configuration from a rule engine according to the business information; the rule engine stores various evaluation rule configurations corresponding to various types of business information; A second acquisition module, used to acquire corresponding evaluation reference data according to each target evaluation rule in the target evaluation rule configuration; The evaluation module is used to determine the evaluation result corresponding to the transporter according to each of the evaluation reference data and each of the target evaluation rules.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Data processing method and device, computer equipment and readable storage medium

    CN121029817A