Task information generation method, device, electronic device and readable storage medium
By obtaining the attribute and historical characteristic information of the shared tram, combining hardware and spatiotemporal information, predicting its power demand and generating task information, the problem of inaccurate power prediction in the existing technology is solved, and work efficiency and accuracy of tram management are improved.
Patent Information
- Application Number
- CN202010844881.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology makes it difficult to accurately predict power demand when managing shared trams, resulting in low efficiency in charging or battery replacement.
By obtaining the attribute feature information and historical feature information of the target tram, using the pre-trained power consumption prediction model, combined with hardware information and spatiotemporal information, the future power demand of the target tram is predicted, and task information is generated based on the prediction results to indicate charging or replacement. Battery.
It improves the accuracy of the power demand of shared trams, improves the work efficiency of staff, ensures timely charging or replacement of trams, and avoids insufficient power or overcharging.
Smart Images

Figure CN112101738B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a task information generation method, device, electronic device and readable storage medium. Background Art
[0002] At present, more and more people choose shared trams as a means of travel. Therefore, more and more shared trams are deployed in various areas of the city. At the same time, since shared trams use electricity as a power source and batteries to store electrical energy, when the battery power of a shared tram is too low, the shared tram needs to be charged or the battery replaced.
[0003] In order to uniformly manage a large number of shared trams, a power threshold is set in the prior art. Whenever a shared tram appears with a battery level lower than the threshold, the electronic device will generate a charging order or a battery replacement order. After receiving the order, the staff can charge the shared tram or replace the battery at night.
[0004] However, due to various objective factors (such as the model of shared trams, battery life, etc.), the power consumption rate of each shared tram is different. When the staff charges or replaces the batteries of the shared trams, some shared trams may have sufficient remaining power, while some shared trams may have been without power for a long time, which reduces the efficiency of charging or replacing batteries. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a task information generation method, device, electronic device and readable storage medium to improve the accuracy of determining the predicted power demand, thereby improving the work efficiency of the staff.
[0006] In a first aspect, a method for generating task information is provided, the method being applied to an electronic device, the method comprising:
[0007] Acquire attribute feature information of the target tram, wherein the attribute feature information includes current time and space information and hardware information of the target tram;
[0008] Determining historical characteristic information of a first preset time period according to the attribute characteristic information, the historical characteristic information including historical spatiotemporal information and hardware information of a plurality of trams;
[0009] Based on the historical characteristic information and the attribute characteristic information, determining the predicted power demand of the target electric vehicle, wherein the predicted power demand is used to represent the predicted value of power consumption of the target electric vehicle within a preset time period in the future; and
[0010] In response to the current available power of the target electric vehicle being less than or equal to the predicted required power, task information is generated, wherein the task information is used to instruct charging or replacing a battery of the target electric vehicle.
[0011] Optionally, the current spatiotemporal information includes current time information and / or current space information, the current time information is used to represent information related to the current time, and the current space information is used to represent information related to the current space;
[0012] The determining, according to the attribute characteristic information, the historical characteristic information of the first preset time period includes:
[0013] Based on the current spatiotemporal information, historical feature information of a first preset time period is determined.
[0014] Optionally, the current time information includes a first time, and the first preset time period includes a plurality of time periods;
[0015] The determining, based on the current spatiotemporal information, historical feature information of a first preset time period includes:
[0016] Determining, according to the first time, a second time corresponding to the first time in each time period; and
[0017] According to the second time, historical characteristic information of a plurality of trams departing from the second time is obtained from a database.
[0018] Optionally, the current space information includes a parking location;
[0019] The determining, based on the current spatiotemporal information, historical feature information of a first preset time period includes:
[0020] According to the parking position, historical characteristic information of a plurality of trams departing from the parking position in the first time period is obtained from a database.
[0021] Optionally, determining the historical feature information of a first preset time period based on the current spatiotemporal information includes:
[0022] According to the current spatiotemporal information, historical characteristic information of a plurality of trams departing from the second time and the parking position is obtained from a database.
[0023] Optionally, the determining the predicted required power of the target electric vehicle based on the historical characteristic information and the attribute characteristic information includes:
[0024] Preprocessing the attribute feature information to determine the data to be input, wherein the preprocessing includes at least information screening and vectorization processing; and
[0025] The data to be input and the historical characteristic information are input into a pre-trained power consumption prediction model to determine the predicted power demand output by the pre-trained power consumption prediction model.
[0026] Optional,
[0027] The hardware information includes: vehicle condition information and battery information. The vehicle condition information includes vehicle model information, vehicle health information, usage time and warranty times. The battery information includes battery model, battery health information, battery charging times and battery usage time.
[0028] The historical spatiotemporal information includes: historical time information and historical space information. The historical time information is used to represent historical information related to historical time, and the historical space information is used to represent historical information related to multiple parking spots.
[0029] Optionally, the method further includes:
[0030] Acquire a training set, wherein the training set at least includes historical feature information of a second preset time period and attribute feature information of a preset moment;
[0031] Inputting the historical characteristic information of the second preset time period and the attribute characteristic information at the preset time as training samples into the power consumption prediction model to determine the output of the power consumption prediction model; and
[0032] Based on the annotations of the training samples and the output of the power consumption prediction model, the model parameters of the power consumption prediction model are updated.
[0033] Optionally, the power consumption prediction model includes: an embedding layer, a long short-term memory network and a dense layer, the embedding layer is used for feature extraction, the long short-term memory network is used to perform calculations based on the features extracted by the embedding layer, and the dense layer is used to output power prediction values based on the calculation results of the long short-term memory network.
[0034] In a second aspect, a task information generating device is provided, the device being applied to an electronic device, the device comprising:
[0035] A first acquisition module is used to acquire attribute feature information of a target tram, wherein the attribute feature information includes current time and space information and hardware information of the target tram;
[0036] A first determination module, configured to determine historical characteristic information of a first preset time period according to the attribute characteristic information, wherein the historical characteristic information includes historical spatiotemporal information and hardware information of a plurality of trams;
[0037] A second determination module is used to determine the predicted power demand of the target electric vehicle based on the historical characteristic information and the attribute characteristic information, wherein the predicted power demand is used to represent the predicted value of power consumption of the target electric vehicle within a preset time period in the future; and
[0038] A generating module is used to generate task information in response to the current available power of the target electric vehicle being less than or equal to the predicted required power, wherein the task information is used to instruct charging or replacing the battery of the target electric vehicle.
[0039] Optionally, the current spatiotemporal information includes current time information and / or current space information, the current time information is used to represent information related to the current time, and the current space information is used to represent information related to the current space;
[0040] The first determining module is specifically configured to:
[0041] Based on the current spatiotemporal information, historical feature information of a first preset time period is determined.
[0042] Optionally, the current time information includes a first time, and the first preset time period includes a plurality of time periods;
[0043] The first determining module is further configured to:
[0044] Determining, according to the first time, a second time corresponding to the first time in each time period; and
[0045] According to the second time, historical characteristic information of a plurality of trams departing from the second time is obtained from a database.
[0046] Optionally, the current space information includes a parking location;
[0047] The first determining module is further configured to:
[0048] According to the parking position, historical characteristic information of a plurality of trams departing from the parking position in the first time period is obtained from a database.
[0049] Optionally, the first determining module is further configured to:
[0050] According to the current spatiotemporal information, historical characteristic information of a plurality of trams departing from the second time and the parking position is obtained from a database.
[0051] Optionally, the second determining module is specifically configured to:
[0052] Preprocessing the attribute feature information to determine the data to be input, wherein the preprocessing includes at least information screening and vectorization processing; and
[0053] The data to be input and the historical characteristic information are input into a pre-trained power consumption prediction model to determine the predicted power demand output by the pre-trained power consumption prediction model.
[0054] Optional,
[0055] The hardware information includes: vehicle condition information and battery information. The vehicle condition information includes vehicle model information, vehicle health information, usage time and warranty times. The battery information includes battery model, battery health information, battery charging times and battery usage time.
[0056] The historical spatiotemporal information includes: historical time information and historical space information. The historical time information is used to represent historical information related to historical time, and the historical space information is used to represent historical information related to multiple parking spots.
[0057] Optionally, the device further comprises:
[0058] A second acquisition module, used to acquire a training set, wherein the training set at least includes historical feature information of a second preset time period and attribute feature information of a preset moment;
[0059] A third determination module, configured to input the historical characteristic information of the second preset time period and the attribute characteristic information at the preset moment as training samples into a power consumption prediction model to determine an output of the power consumption prediction model; and
[0060] An updating module is used to update the model parameters of the power consumption prediction model based on the annotations of the training samples and the output of the power consumption prediction model.
[0061] Optionally, the power consumption prediction model includes: an embedding layer, a long short-term memory network and a dense layer, the embedding layer is used for feature extraction, the long short-term memory network is used to perform calculations based on the features extracted by the embedding layer, and the dense layer is used to output power prediction values based on the calculation results of the long short-term memory network.
[0062] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect.
[0063] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer program instructions, wherein the computer program instructions implement the method described in the first aspect when executed by a processor.
[0064] Through the embodiments of the present invention, hardware information can be used as an internal influencing factor of the predicted power consumption value of each tram, and spatiotemporal information can be used as an external influencing factor of the predicted power consumption value of each tram. Since both historical characteristic information and attribute characteristic information include hardware information and spatiotemporal information, when the electronic device combines the internal and external influencing factors to predict power, it can accurately determine the predicted power demand of the target tram, and then the electronic device can determine whether to generate task information based on the accurate predicted power demand, thereby improving the work efficiency of the staff. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The above and other objects, features and advantages of the embodiments of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0066] Figure 1 A schematic diagram of a task information generation system provided by an embodiment of the present invention;
[0067] Figure 2 A flowchart of a method for generating task information provided by an embodiment of the present invention;
[0068] Figure 3 A schematic diagram of a power consumption prediction model provided by an embodiment of the present invention;
[0069] Figure 4 A flowchart of another method for generating task information provided by an embodiment of the present invention;
[0070] Figure 5 A flowchart of another method for generating task information provided by an embodiment of the present invention;
[0071] Figure 6 A schematic diagram of the structure of a task information generating device provided by an embodiment of the present invention;
[0072] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0073] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the detailed description of the present invention below, some specific details are described in detail. It is possible for a person skilled in the art to fully understand the present invention without the description of these details. In order to avoid confusing the essence of the present invention, known methods, processes, flows, components and circuits are not described in detail.
[0074] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0075] Unless the context clearly requires otherwise, words such as “include”, “including” and the like in the specification should be interpreted as including rather than being exclusive or exhaustive; that is, as meaning “including but not limited to”.
[0076] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0077] like Figure 1 As shown, Figure 1 A schematic diagram of a method for generating task information provided by an embodiment of the present invention includes: a target tram 11, a service end 12, a database 13 and an electronic device 14.
[0078] The target electric vehicle 11 may be a shared electric motorcycle, a shared electric vehicle, or the like. Figure 1 The target electric vehicle 11 shown in the figure is only an example, and the embodiment of the present invention does not limit the type of the target electric vehicle 11.
[0079] The server 12 can be used as an operation platform, which can communicate with the target tram 11 through the network to obtain attribute feature information of the target tram 11 . The attribute feature information is used to characterize the time, space, hardware and other information of the target tram 11 .
[0080] The database 13 may be a server for storing data, which may communicate with the electronic device 14 via a network. In addition, the database 13 may store historical feature information, which may include time, space, hardware and other information of the history of multiple trams.
[0081] The electronic device 14 may be a terminal or a server, wherein the terminal may be a smart phone, a tablet computer or a personal computer (PC), etc., and the server may be a single server or a server cluster configured in a distributed manner.
[0082] Specifically, when generating task information, the electronic device 14 can obtain the attribute characteristic information of the target tram 11, and then obtain the historical characteristic information of the first preset time period from the database 13 based on the attribute characteristic information, and then determine the predicted demand power of the target tram based on the historical characteristic information and the attribute characteristic information, and then determine whether the task information needs to be generated based on the predicted demand power.
[0083] Need to explain, Figure 1The system shown is only an example provided by the embodiment of the present invention. In actual application, the corresponding functions of the server 12, the database 13 and the electronic device 14 can be implemented by a single server or a server cluster.
[0084] The following will describe in detail a method for generating task information provided by an embodiment of the present invention in conjunction with a specific implementation manner. Figure 2 As shown, the specific steps are as follows:
[0085] In step 100, attribute feature information of a target electric vehicle is obtained.
[0086] The attribute feature information includes the current time and space information and hardware information of the target tram.
[0087] In step 200, historical characteristic information of a first preset time period is determined according to the attribute characteristic information.
[0088] The historical feature information includes historical spatiotemporal information and hardware information of multiple trams.
[0089] In step 300, the predicted required power of the target electric vehicle is determined based on the historical characteristic information and the attribute characteristic information.
[0090] The predicted power demand is used to represent the predicted power consumption of the target tram within a preset time in the future.
[0091] In step 400 , in response to the current available power of the target electric vehicle being less than or equal to the predicted required power, task information is generated.
[0092] The task information is used to instruct charging or replacing the battery of the target electric vehicle.
[0093] Through the embodiments of the present invention, hardware information can be used as an internal influencing factor of the predicted power consumption value of each tram, and spatiotemporal information can be used as an external influencing factor of the predicted power consumption value of each tram. Since both historical characteristic information and attribute characteristic information include hardware information and spatiotemporal information, when the electronic device combines the internal and external influencing factors to predict power, it can accurately determine the predicted power demand of the target tram, and then the electronic device can determine whether to generate task information based on the accurate predicted power demand, thereby improving the work efficiency of the staff.
[0094] Furthermore, the hardware information includes vehicle condition information and battery information. The vehicle condition-related information and battery-related information can be used as one aspect of predicting the power consumption of the target electric vehicle within a preset time in the future.
[0095] Among them, the vehicle condition information may include vehicle model information, vehicle health information, usage time and warranty number, and other information related to the properties of the tram itself and its usage.
[0096] Among them, vehicle model information can be used to determine the standard power consumption speed of the tram, and vehicle health information, usage time, and warranty times can be used as individual attributes of the tram to indirectly predict the tram's power consumption.
[0097] Battery information may include battery model, battery health information, battery charge times, battery usage time, and other information related to the battery's own properties and usage.
[0098] Among them, the battery signal can be used to identify the type of battery, service life and other information, and the battery health information, battery charge times and battery usage time and other information can be used to indirectly determine how long the battery can continue to be used.
[0099] Historical spatiotemporal information includes: historical time information and historical space information.
[0100] The historical time information is used to represent historical information related to historical time, and the historical space information is used to represent historical information related to multiple parking spots.
[0101] For example, the historical time information may represent the power consumption of each tram in each time period (the time period may be a day or an hour, etc.) among multiple trams, and the weather conditions corresponding to each time period.
[0102] The historical spatial information may represent the departure location and power consumption of each tram for each trip among multiple trams, and the weather conditions in various regions (the regions may be multiple districts of a city).
[0103] In an optional application scenario, shared electric motorcycle A is the target electric motorcycle, and the electronic device can obtain the attribute feature information of shared electric motorcycle A and the historical feature information of multiple shared electric motorcycles in the past 30 days.
[0104] Among them, all of the multiple shared electric motorcycles can be the same model as the shared electric motorcycle A, or some of them can be the same model as the shared electric motorcycle A, which is not limited in the embodiment of the present invention.
[0105] Furthermore, the electronic device can predict the predicted power demand of shared electric motorcycle A in the next 24 hours based on the attribute characteristic information of shared electric motorcycle A and the historical characteristic information of multiple shared electric motorcycles in the past 30 days.
[0106] If the current available power of shared electric motorcycle A is less than the predicted required power, the electronic device can generate task information.
[0107] It should be noted that in actual applications, each shared electric motorcycle will reserve a portion of reserve power and set a power shortage threshold (generally, the power shortage threshold is the same as the reserve power value). When the remaining power of the shared electric motorcycle is less than the power shortage threshold, the shared electric motorcycle will not be able to be turned on.
[0108] In practical applications, the remaining power in the electric vehicle battery can be determined by a coulomb counter. The principle is that according to Faraday's law, the amount of substance reacting at the electrode can accurately calculate the amount of electricity passing through the circuit.
[0109] In the embodiment of the present invention, the currently available power = the remaining power - the reserve power. If the currently available power of the shared electric motorcycle A is less than or equal to the predicted demand power, it indicates that the shared electric motorcycle A may use up the currently available power within the next 24 hours, and the shared electric motorcycle A needs to be charged or the battery replaced.
[0110] Optionally, the current spatiotemporal information may include current time information and / or current space information. Using time-related information and space-related information can be used as another aspect of predicting the power consumption of the target tram within a preset time in the future. Among them, the current time information is used to represent information related to the current time, and the current space information is used to represent information related to the current space.
[0111] Furthermore, step 200 may be: determining historical feature information of a first preset time period based on current spatiotemporal information.
[0112] In one implementation, the current time information includes a first time (eg, current moment), and the first preset time period includes a plurality of time periods.
[0113] Furthermore, the electronic device can determine the second time corresponding to the first time in each time period based on the first time; and obtain historical characteristic information of multiple trams departing from the second time from the database based on the second time.
[0114] For example, in one application scenario, the target electric vehicle is a shared electric motorcycle B, the first time is 19:00, the first preset time period is 30 days, and the time period is 1 day.
[0115] After the electronic device obtains the attribute characteristic information of the shared electric motorcycle B, it can determine 19:00 (the second time) of each day in the past 30 days based on the first time (19:00), and then obtain the historical characteristic information of the shared electric motorcycles that depart at 19:00 every day from the database.
[0116] Through the embodiments of the present invention, time is one of the external factors that affect the predicted power demand of the target tram (an external factor in the time dimension). For example, the morning and evening peak hours are the peak usage hours, during which the power of the target tram will decrease rapidly, while the frequency of usage at night is very low, during which the power consumption of the target tram will be very slow.
[0117] Therefore, when the electronic device makes a prediction based on the historical characteristic information of multiple trams departing from the second time, the predicted required power of the target tram can be predicted more accurately from the time dimension.
[0118] In one embodiment, the current spatial information includes a parking location.
[0119] Furthermore, the electronic device can obtain historical characteristic information of multiple trams departing from the parking location in the first time period and the parking location from the database according to the parking location.
[0120] For example, in one application scenario, the target electric vehicle is a shared electric motorcycle B, the parking location is subway station exit a, and the first preset time period is 30 days.
[0121] After the electronic device obtains the attribute feature information of the shared electric motorcycle B, it can obtain the historical feature information of the shared electric motorcycles departing from exit a of the subway station in the past 30 days from the database.
[0122] In practical applications, in order to ensure that there is sufficient historical feature information, the parking location generally represents a parking area of an appropriate range.
[0123] For example, if the parking position corresponds to exit a of a subway station, the parking position may be a circular area with a radius of 200 meters, centered at exit a of the subway station.
[0124] For another example, if the parking location corresponds to exit a of a subway station, the parking location may also be a collection of multiple shared electric motorcycle parking spots or shared tram parking spaces near exit a of the subway station.
[0125] Through the embodiments of the present invention, since the parking location is one of the external factors that affect the predicted power demand of the target tram (an external factor in the spatial dimension), for example, parking locations such as subway station exits, near bus stops, and near office buildings are high-frequency vehicle usage areas, while parking locations such as roadsides are low-frequency vehicle usage areas.
[0126] Therefore, when the electronic device makes a prediction based on the historical characteristic information of multiple trams departing from a specific pickup location, the predicted required power of the target tram can be predicted more accurately from the spatial dimension.
[0127] In one embodiment, in combination with the above two embodiments of electronic devices determining historical characteristic information of a first preset time period, the electronic device can obtain historical characteristic information of multiple trams departing from a second time and parking location from a database based on current time and space information.
[0128] For example, in one application scenario, the target electric vehicle is a shared electric motorcycle B, the first time is 19:00, the first preset time period is 30 days, the time cycle is 1 day, and the parking location is subway station exit a.
[0129] After the electronic device obtains the attribute characteristic information of the shared electric motorcycle B, it can determine 19:00 (the second time) of each day in the past 30 days based on the first time (19:00).
[0130] Furthermore, the electronic device can obtain from the database the historical characteristic information of the shared electric motorcycles that departed from Exit a of the subway station at 19:00 every day in the past 30 days.
[0131] In the embodiment of the present invention, time is the time dimension factor that affects the predicted power demand of the target tram, and the parking position is the space dimension factor that affects the predicted power demand of the target tram. Therefore, when the electronic device predicts the predicted power demand of the target tram based on both the time dimension factor and the space dimension factor, the predicted power demand can be made more accurate.
[0132] After the electronic device determines the historical characteristic information and the attribute characteristic information, it can determine the predicted required power of the target electric vehicle based on the historical characteristic information and the attribute characteristic information.
[0133] Specifically, in one implementable method, the attribute characteristic information can be preprocessed to determine the data to be input; and the data to be input and the historical characteristic information are input into a pre-trained power consumption prediction model to determine the predicted power demand output by the pre-trained power consumption prediction model.
[0134] Among them, preprocessing at least includes information screening and vectorization processing. In practical applications, since the attribute characteristic information is real-time data obtained by the electronic device, the attribute characteristic data may contain useless data. In order to reduce the computing pressure of the electronic device when predicting power, the electronic device can preprocess the attribute characteristic information to remove useless data and vectorize the useful data.
[0135] In one embodiment, the power consumption prediction model may include an embedding layer, a long short-term memory network (LSTM), and a dense layer.
[0136] Among them, the embedding layer can convert the data into vectors by encoding (such as one-hot encoding), and then create an embedding matrix, so that the vector corresponding to each data becomes smaller, which is more conducive to calculation. Therefore, in an embodiment of the present invention, the embedding layer can be used to extract feature information of attribute feature information or historical feature information.
[0137] A long short-term memory network is an artificial neural network that includes multiple feature nodes to calculate features. It is suitable for processing and predicting important events with very long intervals and delays in time series. In an embodiment of the present invention, a long short-term memory network can be used to calculate based on the features extracted by the embedding layer and determine the power prediction value.
[0138] The dense layer is connected to each feature node, and can determine the final output result according to the weight of each feature. In an embodiment of the present invention, the dense layer is used to output the power prediction value according to the calculation result of the long short-term memory network.
[0139] like Figure 3 As shown, Figure 3 A schematic diagram of a power consumption prediction model provided by an embodiment of the present invention shows the process of processing feature information by the power consumption prediction model.
[0140] exist Figure 3 In the figure, the power consumption prediction model includes: embedding layer 1, embedding layer 2, embedding layer 3, embedding layer 4, long short-term memory network and dense layer.
[0141] The characteristic information includes: time information, space information, vehicle condition information and battery information.
[0142] It should be noted that in actual applications, time information may include current time information and historical time information, space information may include current space information and historical space information, vehicle condition information includes vehicle condition information of the target tram and vehicle condition information of multiple trams, and battery information includes battery information of the target tram and battery information of multiple trams.
[0143] Specifically, the electronic device can input time information into embedding layer 1 , space information into embedding layer 2 , vehicle condition information into embedding layer 3 , and battery information into embedding layer 4 .
[0144] The embedding layers 1-4 of the power consumption prediction model can perform feature extraction on feature information, and then input the feature-extracted data into the long short-term memory network.
[0145] The LSTM network can perform calculations based on the features extracted by the embedding layers 1-4 and input the calculation results into the dense layer.
[0146] The dense layer can determine the predicted power demand based on the calculation results of the long short-term memory network and output the predicted power demand.
[0147] Furthermore, combined Figure 3 The embodiment of the present invention provides a flowchart of a method for generating task information, such as Figure 4 As shown, the specific steps include:
[0148] In step 41, the attribute characteristic information of the target tram is obtained from the service end.
[0149] Among them, the service end can be a server that has established a network connection with the target electric vehicle. In actual applications, the service end can be an operating platform for shared electric motorcycles.
[0150] In step 42, the attribute feature information is preprocessed.
[0151] Among them, the preprocessing process can include information screening and vectorization processing.
[0152] In step 43, historical characteristic information of a first preset time period is obtained from a database.
[0153] After acquiring the attribute characteristic information, the electronic device can determine the historical characteristic information of the first preset time period according to the attribute characteristic information.
[0154] Specifically, the electronic device may determine the historical characteristic information of the first preset time period based on the current time information and / or the current space information.
[0155] In step 44, the attribute feature information and the historical feature information are input into a pre-trained power consumption prediction model.
[0156] Among them, the pre-trained power consumption prediction model can be Figure 2 The power consumption prediction model shown.
[0157] In step 45, the predicted power demand output by the pre-trained power consumption prediction model is determined.
[0158] In step 46, it is determined whether the predicted required power is greater than or equal to the current available power of the target electric vehicle. If so, step 47 is executed, and if not, the process ends.
[0159] In step 47, task information is generated.
[0160] Among them, the electronic device can send the task information to the server, so that the server sends the task information to the task receiving end (such as the smartphone of the operation and maintenance staff).
[0161] Combination Figure 3 and Figure 4, vehicle condition information and battery information can be used as internal influencing factors of the power consumption prediction value of each tram, and time information and space information can be used as external influencing factors of the power consumption prediction value of each tram. Since historical feature information and attribute feature information both include hardware information and time and space information, when electronic equipment combines internal and external influencing factors to predict power, it can accurately determine the predicted power demand of the target tram, and then the electronic equipment can determine whether to generate task information based on the accurate predicted power demand, thereby improving the work efficiency of the staff.
[0162] In one embodiment, the electronic device may train the power consumption prediction model, such as Figure 5 As shown, the specific steps include:
[0163] In step 51, a training set is obtained.
[0164] The training set at least includes historical feature information of the second preset time period and attribute feature information of the preset moment.
[0165] For example, the electronic device may obtain the attribute feature information at 15:00 (preset time) on the Xth day, and the historical feature information of the most recent 30 days before the Xth day (a second preset time period).
[0166] In step 52, the historical characteristic information of the second preset time period and the attribute characteristic information at the preset time are input into the power consumption prediction model as training samples to determine the output of the power consumption prediction model.
[0167] The process of the electronic device determining the power consumption prediction model output based on the historical characteristic information of the second preset time period and the attribute characteristic information of the preset time can refer to the above steps 41 to 47, and the embodiments of the present invention are not described here.
[0168] In step 53, based on the annotations of the training samples and the output of the power consumption prediction model, the model parameters of the power consumption prediction model are updated.
[0169] In practical applications, the electronic device may update the model parameters of the power consumption prediction model based on a backpropagation algorithm (BP).
[0170] Through the embodiments of the present invention, the trained power consumption prediction model can be extended online, and the electronic device can determine whether it is necessary to generate task information based on the task information generation method provided by the embodiments of the present invention. For example, the electronic device can perform power prediction and determine whether it is necessary to generate task information every hour, which can improve the work efficiency of the staff.
[0171] Based on the same technical concept, the embodiment of the present invention also provides a task information generating device, such as Figure 6 As shown, the device includes: a first acquisition module 61, a first determination module 62, a second determination module 63 and a generation module 64;
[0172] A first acquisition module 61 is used to acquire attribute characteristic information of a target tram, where the attribute characteristic information includes current time and space information and hardware information of the target tram;
[0173] A first determination module 62, for determining historical characteristic information of a first preset time period according to the attribute characteristic information, the historical characteristic information including historical spatiotemporal information and hardware information of a plurality of trams;
[0174] A second determination module 63 is used to determine the predicted power demand of the target tram based on the historical characteristic information and the attribute characteristic information, where the predicted power demand is used to represent the predicted value of power consumption of the target tram within a preset time period in the future; and
[0175] The generating module 64 is used to generate task information in response to the current available power of the target electric vehicle being less than or equal to the predicted required power, wherein the task information is used to instruct charging or replacing the battery of the target electric vehicle.
[0176] Optionally, the current spatiotemporal information includes current time information and / or current space information, the current time information is used to represent information related to the current time, and the current space information is used to represent information related to the current space;
[0177] The first determining module 62 is specifically configured to:
[0178] Based on the current spatiotemporal information, historical feature information of a first preset time period is determined.
[0179] Optionally, the current time information includes a first time, and the first preset time period includes a plurality of time periods;
[0180] The first determining module 62 is further configured to:
[0181] Determine, according to the first time, a second time in each time period corresponding to the first time; and
[0182] According to the second time, historical characteristic information of a plurality of trams departing from the second time is obtained from a database.
[0183] Optionally, the current space information includes a parking location;
[0184] The first determining module 62 is further specifically configured to:
[0185] According to the parking location, historical characteristic information of a plurality of trams departing from the parking location in a first time period is obtained from a database.
[0186] Optionally, the first determining module 62 is further configured to:
[0187] According to the current spatiotemporal information, historical characteristic information of a plurality of trams departing from the second time and the parking position is obtained from the database.
[0188] Optionally, the second determining module 63 is specifically configured to:
[0189] Preprocessing the attribute feature information to determine the data to be input, the preprocessing at least includes information screening and vectorization processing; and
[0190] The data to be input and the historical characteristic information are input into a pre-trained power consumption prediction model to determine the predicted power demand output by the pre-trained power consumption prediction model.
[0191] Optional,
[0192] Hardware information includes: vehicle condition information and battery information. Vehicle condition information includes vehicle model information, vehicle health information, usage time and warranty number. Battery information includes battery model, battery health information, battery charge times and battery usage time.
[0193] The historical spatiotemporal information includes: historical time information and historical space information. The historical time information is used to represent historical information related to historical time, and the historical space information is used to represent historical information related to multiple parking spots.
[0194] Optionally, the device further includes: a second acquisition module, a third determination module and an update module;
[0195] A second acquisition module is used to acquire a training set, where the training set at least includes historical feature information of a second preset time period and attribute feature information of a preset moment;
[0196] A third determination module, configured to input the historical characteristic information of the second preset time period and the attribute characteristic information at the preset time as training samples into the power consumption prediction model to determine the output of the power consumption prediction model; and
[0197] The updating module is used to update the model parameters of the power consumption prediction model based on the annotation of the training samples and the output of the power consumption prediction model.
[0198] Optionally, the power consumption prediction model includes: an embedding layer, a long short-term memory network and a dense layer, the embedding layer is used for feature extraction, the long short-term memory network is used to perform calculations based on the features extracted by the embedding layer, and the dense layer is used to output power prediction values based on the calculation results of the long short-term memory network.
[0199] Through the embodiments of the present invention, hardware information can be used as an internal influencing factor of the predicted power consumption value of each tram, and spatiotemporal information can be used as an external influencing factor of the predicted power consumption value of each tram. Since both historical characteristic information and attribute characteristic information include hardware information and spatiotemporal information, when the electronic device combines the internal and external influencing factors to predict power, it can accurately determine the predicted power demand of the target tram, and then the electronic device can determine whether to generate task information based on the accurate predicted power demand, thereby improving the work efficiency of the staff.
[0200] Figure 7 Schematic diagram of an electronic device according to an embodiment of the present invention. Figure 7 As shown, Figure 7 The electronic device shown is a general address query device, which includes a general computer hardware structure, which at least includes a processor 71 and a memory 72. The processor 71 and the memory 72 are connected via a bus 73. The memory 72 is suitable for storing instructions or programs executable by the processor 71. The processor 71 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 71 executes the instructions stored in the memory 72, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 73 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 74 and the display device and the input / output (I / O) device 75. The input / output (I / O) device 75 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 75 is connected to the system via an input / output (I / O) controller 76.
[0201] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, devices (equipment) or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0202] The present invention is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present invention. It should be understood that each process in the flowchart can be implemented by computer program instructions.
[0203] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.
[0204] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.
[0205] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.
[0206] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0207] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating task information, characterized in that: The method comprises: Acquire attribute feature information of the target tram, wherein the attribute feature information includes current time and space information and hardware information of the target tram; Determining historical characteristic information of a first preset time period according to the attribute characteristic information, the historical characteristic information including historical spatiotemporal information and hardware information of a plurality of trams; Determine the predicted power demand of the target electric vehicle based on the historical characteristic information and the attribute characteristic information, wherein the predicted power demand is used to represent the predicted value of power consumption of the target electric vehicle within a preset time period in the future; and In response to the current available power of the target electric vehicle being less than or equal to the predicted required power, generating task information, the task information being used to instruct charging or replacing a battery of the target electric vehicle; Wherein, the first preset time period includes a plurality of time periods, the historical characteristic information is the historical characteristic information of the second time corresponding to the first time in each of the time periods, and the first time is used to represent the current moment; The historical time-space information includes: historical time information and historical space information, the historical space information includes the departure position of each tram trip, the current time-space information includes current time information and / or current space information, the current space information includes the parking position; The determining, according to the attribute characteristic information, the historical characteristic information of the first preset time period includes: According to the parking position, historical characteristic information of a plurality of trams departing from the parking position in the first preset time period is obtained from a database.
2. The method according to claim 1, characterized in that The current time information is used to represent information related to the current time, and the current space information is used to represent information related to the current space.
3. The method according to claim 2, characterized in that The current time information includes a first time; The determining, based on the current spatiotemporal information, historical feature information of a first preset time period includes: Determining, according to the first time, a second time corresponding to the first time in each time period; and According to the second time, historical characteristic information of a plurality of trams departing from the second time is obtained from a database.
4. The method according to any one of claims 1 to 3, characterized in that The step of determining the predicted required power of the target electric vehicle based on the historical characteristic information and the attribute characteristic information includes: Preprocessing the attribute feature information to determine the data to be input, wherein the preprocessing includes at least information screening and vectorization processing; and The data to be input and the historical characteristic information are input into a pre-trained power consumption prediction model to determine the predicted power demand output by the pre-trained power consumption prediction model.
5. The method according to claim 1, characterized in that The hardware information includes: vehicle condition information and battery information. The vehicle condition information includes vehicle model information, vehicle health information, usage time and warranty times. The battery information includes battery model, battery health information, battery charging times and battery usage time. The historical time information is used to represent historical information related to historical time, and the historical space information is used to represent historical information related to multiple parking spots.
6. The method according to claim 4, characterized in that The method further comprises: Acquire a training set, wherein the training set at least includes historical feature information of a second preset time period and attribute feature information of a preset moment; Inputting the historical characteristic information of the second preset time period and the attribute characteristic information at the preset time as training samples into the power consumption prediction model to determine the output of the power consumption prediction model; and Based on the annotations of the training samples and the output of the power consumption prediction model, the model parameters of the power consumption prediction model are updated.
7. The method according to claim 4, characterized in that The power consumption prediction model includes: an embedding layer, a long short-term memory network and a dense layer. The embedding layer is used for feature extraction, the long short-term memory network is used for calculation according to the features extracted by the embedding layer, and the dense layer is used for outputting a power prediction value according to the calculation result of the long short-term memory network.
8. A task information generating device, characterized in that: The device comprises: A first acquisition module is used to acquire attribute feature information of a target tram, wherein the attribute feature information includes current time and space information and hardware information of the target tram; A first determination module, configured to determine historical characteristic information of a first preset time period according to the attribute characteristic information, wherein the historical characteristic information includes historical spatiotemporal information and hardware information of a plurality of trams; A second determination module is used to determine the predicted power demand of the target electric vehicle based on the historical characteristic information and the attribute characteristic information, wherein the predicted power demand is used to represent the predicted value of power consumption of the target electric vehicle within a preset time period in the future; and A generating module, configured to generate task information in response to the current available power of the target electric vehicle being less than or equal to the predicted required power, wherein the task information is used to instruct charging or replacing a battery of the target electric vehicle; Wherein, the first preset time period includes a plurality of time periods, the historical characteristic information is the historical characteristic information of the second time corresponding to the first time in each of the time periods, and the first time is used to represent the current moment; The historical time-space information includes: historical time information and historical space information, the historical space information includes the departure position of each tram trip, the current time-space information includes current time information and / or current space information, the current space information includes the parking position; The first determining module is further specifically configured to: According to the parking position, historical characteristic information of a plurality of trams departing from the parking position in the first preset time period is obtained from a database.
9. The device according to claim 8, characterized in that The current time information is used to represent information related to the current time, and the current space information is used to represent information related to the current space.
10. The device according to claim 9, characterized in that The current time information includes a first time; The first determining module is further specifically configured to: Determining, according to the first time, a second time corresponding to the first time in each time period; and According to the second time, historical characteristic information of a plurality of trams departing from the second time is obtained from a database.
11. The device according to any one of claims 8 to 10, characterized in that The second determining module is specifically used to: Preprocessing the attribute feature information to determine the data to be input, wherein the preprocessing includes at least information screening and vectorization processing; and The data to be input and the historical characteristic information are input into a pre-trained power consumption prediction model to determine the predicted power demand output by the pre-trained power consumption prediction model.
12. The device according to claim 8, characterized in that The hardware information includes: vehicle condition information and battery information. The vehicle condition information includes vehicle model information, vehicle health information, usage time and warranty times. The battery information includes battery model, battery health information, battery charging times and battery usage time. The historical time information is used to represent historical information related to historical time, and the historical space information is used to represent historical information related to multiple parking spots.
13. The device according to claim 11, characterized in that The device also includes: A second acquisition module, used to acquire a training set, wherein the training set at least includes historical feature information of a second preset time period and attribute feature information of a preset moment; A third determination module, configured to input the historical characteristic information of the second preset time period and the attribute characteristic information at the preset moment as training samples into a power consumption prediction model to determine an output of the power consumption prediction model; and An updating module is used to update the model parameters of the power consumption prediction model based on the annotations of the training samples and the output of the power consumption prediction model.
14. The device according to claim 11, characterized in that The power consumption prediction model includes: an embedding layer, a long short-term memory network and a dense layer. The embedding layer is used for feature extraction, the long short-term memory network is used for calculation according to the features extracted by the embedding layer, and the dense layer is used for outputting a power prediction value according to the calculation result of the long short-term memory network.
15. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
