Online car-hailing charging pile scheduling method and system based on cloud platform
By using machine learning and computer vision technology in the online car-hailing charging pile dispatching system to optimize user sorting and charging resource management, it solves the problem of low charging resource utilization efficiency, improves user satisfaction and system reliability, and reduces the risk of severe weather and the impact of traffic congestion.
Patent Information
- Application Number
- CN202410757208.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology makes it difficult to efficiently utilize charging resources in online car-hailing charging pile dispatching, especially when multiple users reserve charging piles in the same area, leading to problems such as supply exceeding demand and charging piles being idle.
By collecting forecast weather assessment data, user reservation information, historical vehicle condition data, and vehicle failure assessment data, we use machine learning models to optimize user rankings, prioritize users with low contract breach assessment values, and calculate vehicle floor space using drones and computer vision technology. and types, generate charging route data, train deep neural network models to predict vehicle condition data, and optimize charging pile resource management.
It improves charging resource utilization efficiency and user satisfaction, reduces reservation cancellations, improves system reliability and intelligence, ensures priority use by honest users, reduces the impact of bad weather and traffic congestion, and improves overall service quality and operations. efficiency.
Smart Images

Figure CN118586649A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of scheduling technology, and more specifically, to a cloud platform-based online car-hailing charging pile scheduling method and system. Background Art
[0002] Cloud platform is an Internet-based computing model, through which shared hardware and software resources and information can be provided to computer terminals and other devices on demand. Cloud platform provides powerful computing power and storage resources, which can process large amounts of data in real time and perform complex calculations.
[0003] Online car-hailing charging piles are charging facilities designed specifically for online car-hailing, which can provide fast and convenient charging services. Through cloud computing technology, real-time monitoring and scheduling optimization of the charging pile status can be achieved.
[0004] The Chinese patent application publication number CN117291757A discloses a charging pile scheduling system and scheduling method. Based on the request information and vehicle information of the mobile terminal, the charging pile time period information is updated and synchronized to the charging pile management system. The charging pile management system controls the charging authority of the target charging pile, reducing the waiting time of users queuing on site.
[0005] The Chinese patent with authorization announcement number CN112269359B discloses a remote control system for an IoT smart charging pile based on a cloud platform. By setting a charging detection module, the vehicle model and charging curve parameters or universal curve parameters are obtained to perform intelligent charging on the vehicle and determine the charging status of the vehicle, which helps users to grasp the charging information in real time.
[0006] The Chinese patent application publication number CN114971312A discloses a new energy vehicle charging pile scheduling management system and method. The basic information of the charging pile is displayed on the charging end and fed back to the charging pile management platform. The vehicle end then provides basic vehicle information, accepts the location of the charging pile, occupancy status, distance between the charging pile and the vehicle, and scheduled charging plans. The platform integrates the information to achieve the optimal charging plan.
[0007] However, the above patent only collects basic information from the user side and the charging side, and matches the optimal charging reservation plan. However, in actual situations, there will still be a charging situation where supply exceeds demand. When multiple users reserve charging piles in the same area, how to make the charging piles be used with the highest efficiency and reduce the idle charging piles caused by emergencies is still a major problem.
[0008] In view of this, the present invention proposes a cloud platform-based online car-hailing charging pile scheduling method and system to solve the above problems. Summary of the invention
[0009] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a method and system for scheduling charging piles for online car-hailing vehicles based on a cloud platform.
[0010] To achieve the above object, the present invention provides the following technical solution: a method for scheduling charging piles for online car-hailing vehicles based on a cloud platform, the method comprising:
[0011] Collect forecast weather assessment data, user-submitted reservation time, user reservation starting location, user reservation time and charging station location; collect the length and width of the road section, and the number of vehicles on the road section; collect the number of user-reservation cancellations and the total number of user-reservation reservations; collect the age, usage time and total mileage of user vehicle models; collect the area occupied by vehicles and classify them into vehicle types;
[0012] Generate charging route data based on the user's scheduled starting location and the charging pile location;
[0013] Calculate historical vehicle condition data at various times; the time includes hours, days of the week, and whether it is a holiday; train a machine learning model for real-time prediction of vehicle condition data based on historical vehicle condition data, time, and charging route data;
[0014] The vehicle fault assessment degree is calculated based on the age, usage time and total mileage of the user's vehicle model; users are ranked based on the breach of contract assessment value. When users make reservations for a charging station at the same time, users with low breach of contract assessment values are given priority.
[0015] Preferably, the reservation time submitted by the user is the time when the user submits the reservation charging pile information on the user terminal; the user reservation starting location is the current geographical location when the user submits the reservation charging pile information, and the user reservation time is the time when the user reserves the use of the charging pile;
[0016] Set weather evaluation for each type of weather; the evaluation predicts weather evaluation data Where TQi is the weather evaluation degree at the time i steps after the user submits the reservation time; n is the maximum number of steps from the user submits the reservation time to the user reservation time;
[0017] The charging route data is the name of the road section that the user passes through from the reservation starting location to the charging pile location; collect historical vehicle condition data;
[0018] The number of vehicles on a road section is the number of vehicles that exist on the road section at the same time at time A.
[0019] Preferably, the process of collecting the vehicle footprint includes:
[0020] Data collection;
[0021] Image preprocessing: denoising, contrast enhancement, and white balance correction of images;
[0022] Vehicle detection: Apply object detection algorithms to identify vehicles in the image and draw bounding boxes for each detected vehicle;
[0023] Perspective transformation: Identify the key points required for perspective transformation in the image; use the key points to calculate the homography matrix and perform perspective transformation to transform the shape of the vehicle in the image from a perspective view to a top-down view;
[0024] Size estimation: Identify objects of known size in an image and calculate the conversion ratio from pixels in the image to actual distance based on the information of the objects of known size;
[0025] Area calculation: Count the number of pixels occupied by the vehicle in the top view and use a conversion ratio to convert the number of pixels into the actual area as the vehicle footprint.
[0026] Preferably, a floor area threshold is set to classify vehicle types into small vehicles, medium vehicles and large vehicles; the floor area threshold includes a primary floor area threshold and a secondary floor area threshold. When the floor area of a vehicle is greater than the primary floor area threshold, it is a large vehicle; when the floor area of a vehicle is less than or equal to the primary floor area threshold and greater than the secondary floor area threshold, it is classified as a medium vehicle; when the floor area of a vehicle is less than or equal to the secondary floor area threshold, it is classified as a small vehicle;
[0027] The calculation process of historical vehicle condition data is as follows: In the formula, ∑S1 is the sum of the areas occupied by small cars on the road section, ∑S2 is the sum of the areas occupied by medium-sized cars on the road section; ∑S3 is the sum of the areas occupied by large cars on the road section; l is the length of the road section, d is the width of the road section; H is the number of vehicles on the road section, H1 is the number of small cars; H2 is the number of medium-sized cars; H3 is the number of large cars.
[0028] Preferably, the training process of the machine learning model includes:
[0029] A set of time and charging path data is converted into a feature vector, and the historical vehicle condition data is used as the label corresponding to the feature vector. Each set of feature vectors and the label corresponding to each set of feature vectors are constructed as a sample, and multiple samples are collected to construct a data set; the data set is divided into a training set, a validation set, and a test set, wherein the training set accounts for 60% of the data set, and the validation set and the test set each account for 20% of the data set;
[0030] The training set is used as the input of the machine learning model, and the machine learning model uses real-time vehicle condition data as output; the historical vehicle condition data corresponding to a set of real-time feature vectors is used as the prediction target, and minimizing the loss function value of the machine learning model is used as the training target; when the loss function value of the machine learning model is less than or equal to a preset target loss value, the training is stopped;
[0031] The machine learning model loss function is the mean square error; the mean square error is calculated by In the loss function, mse is the loss function value, i is the feature vector group number; u is the number of feature vector groups; y i is the label corresponding to the i-th group of feature vectors, The vehicle condition data predicted by the i-th group of feature vectors;
[0032] The machine learning model is a deep neural network model;
[0033] The calculation method of the hidden layer H of the deep neural network model includes:
[0034] H=G[b i +w i s(b i-1 +w i-1 x)]; where H is the output of the hidden layer; G is the activation function; b i is the bias term of the hidden layer; w i is the weight of the hidden layer; s is the activation function; b i-1 is the bias term of the previous layer; w i-1 is the weight of the previous layer; x is the input training set.
[0035] The deep neural network model consists of 4 fully connected layers. The first 3 hidden layers contain 32, 64 and 32 neurons respectively. One SoftMax classification layer contains 4 neurons. The neurons are connected to each other through weights and activated by the ReLU activation function.
[0036] Preferably, the number of times the user has canceled reservations in history and the total number of times the user has made reservations in history are recorded and obtained from the cloud platform. The ratio of the number of times the user has canceled reservations in history to the total number of times the user has made reservations in history is used as the regret evaluation degree;
[0037] Vehicle fault assessment GZ = 18530t / T + LnX / 6387; where t is the usage time; T is the age of the user's vehicle model; X is the total mileage; the breach of contract assessment value is generated based on the vehicle fault assessment, regret assessment, weather assessment data and vehicle condition data;
[0038] Where GZ is the vehicle fault assessment degree, FH is the regret assessment degree, and CK is the vehicle condition data.
[0039] A cloud platform-based online car-hailing charging pile dispatching system, the system comprising:
[0040] Data collection module, collects forecast weather assessment data, user-submitted reservation time, user reservation starting location, user reservation time and charging pile location; collects the length and width of the road section, the number of vehicles on the road section; collects the number of user-reservation cancellations and the total number of user-reservation reservations; collects the age, usage time and total mileage of user vehicle models; collects the area occupied by vehicles and classifies them into vehicle types;
[0041] A data processing module generates charging route data based on the user's scheduled starting location and the charging pile location;
[0042] Model training module, calculating historical vehicle condition data at various times; the time includes hours, days of the week, and whether it is a holiday; training a machine learning model for real-time prediction of vehicle condition data based on historical vehicle condition data, time, and charging route data;
[0043] The decision-making module calculates the vehicle fault assessment degree based on the age, usage time and total mileage of the user's vehicle model; and sorts users based on the breach of contract assessment value. When users make reservations for a charging station at the same time, users with low breach of contract assessment values are given priority.
[0044] An electronic device includes: a processor and a memory, wherein the memory stores a computer program that can be called by the processor; the processor executes the above-mentioned cloud platform-based online car-hailing charging pile scheduling method by calling the computer program stored in the memory.
[0045] A computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the above-mentioned cloud platform-based online car-hailing charging pile scheduling method.
[0046] The technical effects and advantages of the cloud platform-based online car-hailing charging pile scheduling method and system of the present invention are as follows: by obtaining user reservation information, starting location, charging pile location, historical vehicle condition data, combined with predicted weather evaluation data, charging route data, using drones and computer vision technology to calculate the vehicle footprint and type, constructing time and path-based feature vectors, training deep neural network models, predicting vehicle condition data, and calculating user regret and vehicle fault evaluation degrees, ultimately generating a breach of contract evaluation value to optimize user sorting and recommendations.
[0047] Optimize charging pile management through data-driven and machine learning, improve resource utilization efficiency and user satisfaction, and reduce reservation cancellations. Combined with real-time vehicle conditions and weather forecasts, improve system reliability and intelligence, ensure that honest users have priority, reduce the impact of bad weather and traffic congestion, and improve overall service quality and operational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1A schematic diagram of a cloud platform-based online car-hailing charging pile scheduling method of the present invention;
[0049] Figure 2 A schematic diagram of a cloud platform-based online car-hailing charging pile scheduling system of the present invention;
[0050] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application;
[0051] Figure 4 It is a schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Example 1
[0054] See also Figure 1 As shown, the cloud platform-based online car-hailing charging pile scheduling method and system described in this embodiment include:
[0055] Collect the reservation time submitted by the user, the user's reservation starting location, the user's reservation time and the location of the charging station;
[0056] The reservation time submitted by the user is the time when the user submits the reservation charging pile information on the user end; it is obtained in real time by the user end database;
[0057] The user's reservation starting location is the user's current geographic location when submitting the charging pile reservation information, which is obtained in real time by the GPS or Beidou satellite positioning system; the charging pile location is obtained in the same way.
[0058] The user reservation time is the time when the user reserves the use of the charging pile; it is submitted by the user through the user terminal and uploaded to the cloud platform, and obtained by the cloud platform in real time;
[0059] Collect forecast weather assessment data; set a weather assessment degree for each type of weather. The better the weather condition, the higher the weather assessment degree. For example, the weather assessment degree is set to 10 for sunny days; the weather assessment degree is set to 5 for light rain; and the weather assessment degree is set to 1 for blizzards. The assessment degree predicts weather assessment data Where TQi is the weather evaluation degree at the time i steps after the user submits the reservation time; n is the maximum number of steps from the user submits the reservation time to the user reservation time;
[0060] The step size can be adjusted according to the actual project situation. For example, if you need to roughly estimate the forecast weather assessment data, set the step size to 2 hours, which means that the weather assessment data is collected every two hours for calculating the weather assessment data. If you need to accurately obtain the forecast weather assessment data in areas with complex weather conditions, set the step size to 15 minutes.
[0061] By evaluating the future weather, we can analyze the impact of weather conditions on users’ regretful behavior in charging pile reservations. For example, bad weather may make users more likely to cancel their reservations, causing other users who should have reserved charging piles to miss the best charging time, resulting in a waste of scarce charging pile resources.
[0062] Generate charging route data based on the user's scheduled starting location and the charging pile location;
[0063] The charging route data is the name of the road section that the user passes through from the scheduled starting location to the charging pile location; the charging route data is obtained after the online map software sets the starting point to the user's scheduled starting location and the end point to the charging pile location, and the path is generated.
[0064] Collect historical vehicle condition data; the process of collecting historical vehicle condition data includes:
[0065] Collect the length and width of the road section; the length and width of the road section are obtained by the relevant transportation planning departments;
[0066] Collect the number of vehicles on a road section; the number of vehicles on a road section is the number of vehicles that exist on the road section at the same time at a point in time; the number of vehicles on a road section is obtained by taking a bird's-eye view of the road section at a certain point in time and calculating it in real time through computer vision analysis;
[0067] Computer vision is the science and technology that studies how to enable computers to "see" and understand visual information. It involves acquiring, processing, analyzing, and understanding image and video data to extract meaningful information from them. Computer vision enables computers to extract information from visual data, similar to how humans perceive the world through vision.
[0068] Collect the area occupied by vehicles; the process of collecting the area occupied by vehicles includes:
[0069] Data collection: Use drones, surveillance cameras, or other types of cameras to take pictures of vehicles from above.
[0070] Image preprocessing: denoising, contrast enhancement, white balance correction and other processing are performed on the image to improve image quality.
[0071] It should be noted that if the image contains data from multiple cameras or at different time points, image registration is required to align images from different perspectives or time points.
[0072] Vehicle detection: Apply object detection algorithms (including but not limited to YOLO and Faster R-CNN) to identify vehicles in the image and draw bounding boxes for each detected vehicle to determine its location in the image.
[0073] Perspective transformation: Identify the key points required for perspective transformation in the image (such as the four corners of the vehicle). Use the key points to calculate the homography matrix and perform perspective transformation to transform the shape of the vehicle in the image from a perspective view to a top view.
[0074] Due to the camera's viewing angle and the distance between the vehicle and the ground, the vehicle may have perspective distortion in the image; the perspective transformation technology is used to convert the image into a bird's-eye view, eliminating the perspective effect and making the projection of the vehicle in the image closer to its actual position and shape on the ground.
[0075] Size estimation: Identify objects of known scale in the image (such as lane lines, parking spaces, etc.) and calculate the conversion ratio from pixels in the image to actual distance based on the information of objects of known scale.
[0076] Area calculation: Count the number of pixels occupied by the vehicle in the top view and use a conversion ratio to convert the number of pixels into actual area.
[0077] Divide vehicle types based on vehicle footprint; set footprint thresholds to divide vehicle types into small, medium and large vehicles; the footprint thresholds include the first-level footprint threshold and the second-level footprint threshold. When the vehicle footprint is greater than the first-level footprint threshold, it is a large vehicle; when the vehicle footprint is less than or equal to the first-level footprint threshold and greater than the second-level footprint threshold, it is classified as a medium vehicle; when the vehicle footprint is less than or equal to the second-level footprint threshold, it is classified as a small vehicle. Collect the number of vehicles of different types.
[0078] Historical vehicle condition data In the formula, ∑S1 is the sum of the areas occupied by small cars on the road section, ∑S2 is the sum of the areas occupied by medium-sized cars on the road section; ∑S3 is the sum of the areas occupied by large cars on the road section; l is the length of the road section, d is the width of the road section; H is the number of vehicles on the road section, H1 is the number of small cars; H2 is the number of medium-sized cars; H3 is the number of large cars.
[0079] Historical vehicle condition data reflects the congestion of a road section. The larger the historical vehicle condition data, the more congested the road section is, and vice versa. Analyzing the proportion of different types of vehicles on a road section helps to more accurately assess the road wear and tear. When the historical vehicle condition data is larger, the traffic jam is getting worse, and users will report that they are more likely to cancel their reservations due to traffic congestion. When the proportion of medium-sized cars, which are the main users of charging piles, is higher, the possibility of peers going there to charge is greater, and the sense of congestion is stronger, and the possibility of users regretting is higher.
[0080] Collect historical vehicle condition data at different times; time is also an important factor affecting user regret. When the traffic is congested and the time is late, the possibility of users canceling the reservation is relatively high. The time includes hours, days of the week, and whether it is a holiday.
[0081] Train a machine learning model to predict vehicle condition data in real time based on historical vehicle condition data, time, and charging path data;
[0082] The training process of the machine learning model includes:
[0083] A set of time and charging path data is converted into a feature vector, historical vehicle condition data is used as the label corresponding to the feature vector, each set of feature vectors and the label corresponding to each set of feature vectors are constructed as a sample, and multiple samples are collected to construct a data set; the data set is divided into a training set, a validation set and a test set, wherein the training set accounts for 60% of the data set, and the validation set and the test set each account for 20% of the data set.
[0084] The training set is used as the input of the machine learning model, and the machine learning model uses real-time vehicle condition data as output; the historical vehicle condition data corresponding to a set of real-time feature vectors is used as the prediction target, and minimizing the loss function value of the machine learning model is used as the training target; when the loss function value of the machine learning model is less than or equal to a preset target loss value, the training is stopped;
[0085] The machine learning model loss function is the mean square error; the mean square error is calculated by The model is trained with minimization as the goal, so that the machine learning model can better fit the data, thereby improving the performance and accuracy of the model; in the loss function, mse is the loss function value, i is the feature vector group number; u is the number of feature vector groups; y i is the label corresponding to the i-th group of feature vectors, is the vehicle condition data predicted by the i-th group of feature vectors.
[0086] The machine learning model is a deep neural network model;
[0087] Compared with traditional classification methods, the deep neural network model has good fault tolerance. The calculation method of the hidden layer H of the deep neural network model includes:
[0088] H=G[b i +w i s(b i-1 +w i-1 x)]; where H is the output of the hidden layer; G is the activation function; b i is the bias term of the hidden layer; w i is the weight of the hidden layer; s is the activation function; b i-1 is the bias term of the previous layer; wi-1 is the weight of the previous layer; x is the input training set.
[0089] The deep neural network model consists of 4 fully connected layers. The first 3 hidden layers contain 32, 64 and 32 neurons respectively. One SoftMax classification layer contains 4 neurons. The neurons are connected to each other through weights and activated by the ReLU activation function.
[0090] The output of the machine learning model is conducive to obtaining more accurate data based on a small amount of data. Since shooting equipment such as drones cannot perform real-time calculations uninterruptedly throughout the day, using the machine learning model is practical and more efficient.
[0091] Collect the number of times the user has canceled reservations in history and the total number of reservations in history; the number of times the user has canceled reservations in history and the total number of reservations in history are obtained from the cloud platform records. The ratio of the number of times the user has canceled reservations in history to the total number of reservations in history is used as the regret evaluation degree; the greater the regret evaluation degree, the higher the possibility that the user will regret in normal times.
[0092] Collect the age, usage time and total mileage of the user's car model; the age, usage time and common scenarios of the user's car model are obtained by sending an online questionnaire to the user through the cloud platform;
[0093] The model age indicates the period of time during which the vehicle can maintain its functionality and safety under normal maintenance and upkeep. After this period, the vehicle's performance may decline, with more mechanical problems and safety hazards.
[0094] The vehicle fault assessment degree GZ=18530t / T+LnX / 6387 is calculated based on the user's model age, usage time and total mileage; where t is the usage time; T is the user's model age; X is the total mileage; the higher the vehicle fault assessment degree, the greater the probability that the vehicle may fail, and the greater the probability of canceling the appointment due to sudden failure.
[0095] Generate a breach of contract assessment value based on vehicle fault assessment, regret assessment, weather assessment data and vehicle condition data; Where GZ is the vehicle fault assessment, FH is the regret assessment, and CK is the vehicle condition data. The breach assessment value reflects the user's breach of contract. The higher the breach assessment value, the lower the user's integrity and the greater the possibility of unexpected situations.
[0096] Users are sorted in ascending order based on their breach of contract evaluation values. When users make reservations for a charging station at the same time, users with low breach of contract evaluation values are given priority.
[0097] Example 1 obtains user reservation information, starting location, charging pile location, historical vehicle condition data, combines predicted weather assessment data, charging route data, uses drones and computer vision technology to calculate the vehicle footprint and type, constructs time and path-based feature vectors, trains deep neural network models, predicts vehicle condition data, and calculates user regret and vehicle fault assessment levels, and ultimately generates a breach of contract assessment value to optimize user sorting and recommendations.
[0098] Example 1 optimizes charging pile management through data-driven and machine learning, improves resource utilization efficiency and user satisfaction, and reduces reservation cancellations. Combined with real-time vehicle conditions and weather forecasts, the system reliability and intelligence level are improved to ensure that honest users have priority, reduce the impact of bad weather and traffic congestion, and improve overall service quality and operational efficiency.
[0099] Example 2
[0100] See also Figure 2 As shown, the part not described in detail in this embodiment is described in Example 1, and a cloud platform-based online car-hailing charging pile scheduling system is provided, the system comprising: a data collection module, collecting forecast weather assessment data, user-submitted reservation time, user reservation starting location, user reservation time and charging pile location; collecting the length and width of the road section, and the number of vehicles on the road section; collecting the number of user-historical reservation cancellations and the number of user-historical total reservations; collecting the age, usage time and total mileage of user vehicle models; collecting the area occupied by vehicles and classifying vehicle types;
[0101] A data processing module generates charging route data based on the user's scheduled starting location and the charging pile location;
[0102] Model training module, calculating historical vehicle condition data at various times; the time includes hours, days of the week, and whether it is a holiday; training a machine learning model for real-time prediction of vehicle condition data based on historical vehicle condition data, time, and charging route data;
[0103] The decision-making module calculates the vehicle fault assessment based on the age, usage time and total mileage of the user's vehicle model; generates a breach of contract assessment value based on the vehicle fault assessment degree, regret assessment degree, weather assessment data and vehicle condition data; and sorts users based on the breach of contract assessment value. When users make reservations for a charging station at the same time, users with low breach of contract assessment values are given priority.
[0104] The modules are connected via wired and / or wireless networks.
[0105] Example 3
[0106] See also Figure 3As shown, according to another aspect of the present application, an electronic device 500 is also provided. The electronic device 500 may include one or more processors and one or more memories. The memory stores a computer readable code, and when the computer readable code is executed by one or more processors, it can execute the above-mentioned method and system for scheduling charging piles for online car-hailing based on a cloud platform.
[0107] The method or system according to the embodiment of the present application can also be used by Figure 3 The electronic device architecture shown in FIG. Figure 3 As shown, the electronic device 500 may include a bus 501, one or more CPUs 502, a read-only memory (ROM) 503, a random access memory (RAM) 504, a communication port 505 connected to a network, an input / output component 506, a hard disk 507, etc. The storage device in the electronic device 500, such as the ROM 503 or the hard disk 507, can store a method and system for scheduling charging piles for online car-hailing vehicles based on a cloud platform provided in the present application. A method for scheduling charging piles for online car-hailing vehicles based on a cloud platform may include: collecting forecast weather assessment data, user-submitted reservation time, user reservation starting location, user reservation time and charging pile location; collecting the length and width of the road section, and the number of vehicles on the road section; collecting the number of user cancellations and the total number of user reservations in history; collecting the age, usage time and total mileage of user vehicle models; collecting the area occupied by vehicles and classifying vehicle types;
[0108] Generate charging route data based on the user's scheduled starting location and the charging pile location;
[0109] Calculate historical vehicle condition data at various times; the time includes hours, days of the week, and whether it is a holiday; train a machine learning model for real-time prediction of vehicle condition data based on historical vehicle condition data, time, and charging route data;
[0110] The vehicle fault assessment is calculated based on the age, usage time and total mileage of the user's vehicle model; the breach of contract assessment value is generated based on the vehicle fault assessment degree, regret assessment degree, weather assessment data and vehicle condition data; users are ranked based on the breach of contract assessment value, and when users make reservations for a charging station at the same time, users with low breach of contract assessment values are given priority.
[0111] Furthermore, the electronic device 500 may also include a user interface 508. Figure 3 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 3 One or more components of an electronic device are shown.
[0112] Example 4
[0113] See also Figure 4As shown, it is a computer-readable storage medium 600 according to an embodiment of the present application. Computer-readable instructions are stored on the computer-readable storage medium 600. When the computer-readable instructions are executed by the processor, a method and system for scheduling charging piles for online car-hailing vehicles based on a cloud platform according to an embodiment of the present application described with reference to the above figures can be executed. The storage medium 600 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0114] In addition, according to an embodiment of the present application, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the present application provides a non-temporary machine-readable storage medium, which stores machine-readable instructions, and the machine-readable instructions can be executed by a processor to execute instructions corresponding to the method steps provided in the present application, such as: collecting predicted weather assessment data, user-submitted reservation time, user reservation starting location, user reservation time and charging pile location; collecting road section length and width, and the number of vehicles on the road section; collecting the number of user historical cancellations and the number of user historical total reservations; collecting the age, usage time and total mileage of user vehicle models; collecting the area occupied by vehicles and classifying vehicle types; generating charging route data based on the user's reservation starting location and charging pile location; calculating historical vehicle condition data at each time; the time includes hours, days of the week and whether it is a holiday; training a machine learning model for real-time prediction of vehicle condition data based on historical vehicle condition data, time and charging route data; calculating vehicle fault assessment based on the age, usage time and total mileage of user vehicle models; generating a breach of contract assessment value based on the vehicle fault assessment, regret assessment, weather assessment data and vehicle condition data; sorting users based on the breach of contract assessment value, and when users make reservations for a charging pile at the same time, users with low breach of contract assessment values are given priority.
[0115] When the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are performed.
[0116] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through a wired network or a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0117] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0118] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0119] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a method and system for scheduling online car-hailing charging piles based on a cloud platform. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0120] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0121] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0122] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0123] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method and system for scheduling charging piles for online car-hailing vehicles based on a cloud platform, characterized in that: include: Collect forecast weather assessment data, user-submitted reservation time, user reservation starting location, user reservation time and charging station location; Collect the length and width of the road section, and the number of vehicles on the road section; Collect the number of user's historical cancellations and total number of user's historical reservations; Collect the user's vehicle model age, usage time and total mileage; Collect vehicle footprint and classify vehicle types; Generate charging route data based on the user's scheduled starting location and the charging pile location; Calculate historical vehicle condition data at each time; the time includes hour, day of the week, and whether it is a holiday; train a machine learning model for real-time prediction of vehicle condition data based on historical vehicle condition data, time, and charging route data: The vehicle fault assessment is calculated based on the age, usage time and total mileage of the user's vehicle model; the breach of contract assessment value is generated based on the vehicle fault assessment degree, regret assessment degree, weather assessment data and vehicle condition data; users are ranked based on the breach of contract assessment value, and when users make reservations for a charging station at the same time, users with low breach of contract assessment values are given priority.
2. According to a cloud platform-based online car-hailing charging pile scheduling method according to claim 1, it is characterized in that: The reservation time submitted by the user is the time when the user submits the reservation information of the charging pile on the user end; the user's reservation starting location is the current geographical location when the user submits the reservation information of the charging pile, and the user's reservation time is the time when the user reserves the use of the charging pile; Set weather evaluation for each type of weather; the evaluation predicts weather evaluation data Where TQi is the weather evaluation degree at the time i steps after the user submits the reservation time; n is the maximum number of steps from the user submits the reservation time to the user reservation time; The charging route data is the name of the road section that the user passes from the scheduled starting location to the charging station location; Collect historical vehicle condition data; The number of vehicles on a road section is the number of vehicles that exist on the road section at the same time at time A.
3. A cloud platform-based online car-hailing charging pile scheduling method according to claim 2, characterized in that: The process of collecting vehicle footprint includes: data collection; Image preprocessing: denoising, contrast enhancement, and white balance correction of images; Vehicle detection: Apply object detection algorithms to identify vehicles in the image and draw bounding boxes for each detected vehicle; Perspective transformation: Identify the key points required for perspective transformation in the image; use the key points to calculate the homography matrix and perform perspective transformation to transform the shape of the vehicle in the image from a perspective view to a top-down view; Size estimation: Identify objects of known size in an image and calculate the conversion ratio from pixels in the image to actual distance based on the information of the objects of known size; Area calculation: Count the number of pixels occupied by the vehicle in the top view and use a conversion ratio to convert the number of pixels into the actual area as the vehicle footprint.
4. A cloud platform-based online car-hailing charging pile scheduling method according to claim 3, characterized in that: The area threshold is set to classify vehicles into small, medium and large vehicles. The area threshold includes a primary area threshold and a secondary area threshold. When the area of a vehicle is greater than the primary area threshold, it is a large vehicle. When the area of a vehicle is less than or equal to the primary area threshold and greater than the secondary area threshold, it is a medium vehicle. When the area of a vehicle is less than or equal to the secondary area threshold, it is a small vehicle. The calculation process of historical vehicle condition data is as follows: In the formula, ∑S1 is the sum of the areas occupied by small cars on the road section, ∑S2 is the sum of the areas occupied by medium-sized cars on the road section; ∑S3 is the sum of the areas occupied by large cars on the road section; l is the length of the road section, d is the width of the road section; H is the number of vehicles on the road section, H1 is the number of small cars; H2 is the number of medium-sized cars; H3 is the number of large cars.
5. A cloud platform-based online car-hailing charging pile scheduling method according to claim 4, characterized in that: The training process of the machine learning model includes: A set of time and charging path data is converted into a feature vector, and the historical vehicle condition data is used as the label corresponding to the feature vector. Each set of feature vectors and the label corresponding to each set of feature vectors are constructed as a sample, and multiple samples are collected to construct a data set; the data set is divided into a training set, a validation set, and a test set, wherein the training set accounts for 60% of the data set, and the validation set and the test set each account for 20% of the data set; The training set is used as the input of the machine learning model, and the machine learning model uses real-time vehicle condition data as output; the historical vehicle condition data corresponding to a set of real-time feature vectors is used as the prediction target, and minimizing the loss function value of the machine learning model is used as the training target; when the loss function value of the machine learning model is less than or equal to a preset target loss value, the training is stopped; The machine learning model loss function is the mean square error; the mean square error is calculated by In the loss function, mse is the loss function value, i is the feature vector group number; u is the number of feature vector groups; y i is the label corresponding to the i-th group of feature vectors, The vehicle condition data predicted by the i-th group of feature vectors; The machine learning model is a deep neural network model; The calculation method of the hidden layer H of the deep neural network model includes: H=G[b i +w i s(b i-1 +w i-1 x)]; where H is the output of the hidden layer; G is the activation function; b i is the bias term of the hidden layer; w i is the weight of the hidden layer; s is the activation function; b i-1 is the bias term of the previous layer; w i-1 is the weight of the previous layer; x is the input training set. The deep neural network model consists of 4 fully connected layers. The first 3 hidden layers contain 32, 64 and 32 neurons respectively. One SoftMax classification layer contains 4 neurons. The neurons are connected to each other through weights and activated by the ReLU activation function.
6. A cloud platform-based online car-hailing charging pile scheduling method according to claim 5, characterized in that: The ratio of the number of historical cancellations to the total number of historical reservations made by the user is used as the regret evaluation degree; Vehicle fault assessment degree GZ = 18530t / T + LnX / 6387; Where t is the usage time; T is the service life of the user's vehicle model; X is the total mileage; The calculation process of the breach of contract assessment value includes: Where GZ is the vehicle fault assessment degree, FH is the regret assessment degree, and CK is the vehicle condition data.
7. A cloud platform-based online car-hailing charging pile dispatching system, characterized in that: Data collection module, which collects forecast weather assessment data, user-submitted reservation time, user reservation starting location, user reservation time and charging pile location; collects road section length and width, and the number of vehicles on the road section; Collect the number of user's historical cancellations and total number of user's historical reservations; Collect the user's vehicle model age, usage time and total mileage; Collect vehicle footprint and classify vehicle types; A data processing module generates charging route data based on the user's scheduled starting location and the charging pile location; Model training module, calculating historical vehicle condition data at various times; the time includes hours, days of the week, and whether it is a holiday; training a machine learning model for real-time prediction of vehicle condition data based on historical vehicle condition data, time, and charging route data; The decision-making module calculates the vehicle fault assessment based on the age, usage time and total mileage of the user's vehicle model; generates a breach of contract assessment value based on the vehicle fault assessment degree, regret assessment degree, weather assessment data and vehicle condition data; and sorts users based on the breach of contract assessment value. When users make reservations for a charging station at the same time, users with low breach of contract assessment values are given priority.
8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes the cloud platform-based online car-hailing charging pile scheduling method described in any one of claims 1 to 6 by calling the computer program stored in the memory.
9. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer executes a cloud platform-based online car-hailing charging pile scheduling method as described in any one of claims 1 to 6.
Citation Information
Cited By
Intelligent management method and system for campus shared washing machine
CN120673518A
