Vehicle sampling method and device

By obtaining historical sampling information and reference ratio information, predicting the expected increase in the number of vehicles, and adjusting the sampling ratio, the problems of low efficiency and poor flexibility in traditional coal vehicle sampling methods were solved, and efficient and accurate sampling results were achieved.

CN120106506BActive Publication Date: 2025-09-30内蒙古伊泰信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510290080.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-09-30
Estimated Expiration
2045-03-12

AI Technical Summary

Technical Problem

Traditional coal vehicle sampling methods are inefficient, difficult to manually set sampling ratios, and unable to flexibly respond to traffic jams at shipping stations, making it difficult to ensure sampling efficiency and quality.

Method used

By obtaining historical sampling information and reference ratio information of the target coal type, the expected number of additional vehicles at the target time is predicted. Combined with the number of waiting vehicles in the current sampling channel, the sampling ratio is automatically adjusted to avoid traffic jams and ensure that the sampling ratio is within the range set by the supplier.

Benefits of technology

It achieves the goal of improving sampling efficiency, reducing labor costs, and ensuring the accuracy and representativeness of sampling results while avoiding traffic congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120106506B_ABST
    Figure CN120106506B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a vehicle sampling method and apparatus, wherein the vehicle sampling method includes: obtaining historical sampling information and reference ratio information corresponding to the target coal type; predicting the expected number of additional vehicles at the target time based on the historical sampling information; determining the congestion state of the current sampling channel at the target time based on the number of vehicles waiting for sampling in the current sampling channel and the expected number of additional vehicles; and, if the congestion state is congested, adjusting the current sampling ratio based on the number of vehicles waiting for sampling, the expected number of additional vehicles, and the reference ratio information to determine a target sampling ratio, wherein the target sampling ratio is used to sample coal-carrying vehicles. By adjusting the sampling ratio based on the predicted congestion of the sampling channel, it is possible to avoid traffic jams while ensuring sample quality, thereby improving sampling efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of sampling technology, and in particular to a vehicle sampling method and device. Background Art

[0002] To ensure the quality of coal shipped by truck, shipping stations conduct random sampling of vehicles transporting coal. Traditionally, sampling ratios are set by laboratory staff at the shipping station based on experience and the coal supplier. Once the sampling ratios are set, incoming vehicles are collected. If traffic jams occur at the shipping station, the sampling ratios are adjusted by contacting the transportation dispatch department by phone. This method is inefficient, difficult to change during manual sampling, and inflexible. Therefore, a solution to these technical problems is urgently needed. Summary of the Invention

[0003] In view of this, embodiments of this specification provide a vehicle sampling method. One or more embodiments of this specification also relate to a vehicle sampling device, a computing device, a computer-readable storage medium, and a computer program to address technical deficiencies in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a vehicle sampling method is provided, comprising:

[0005] Obtain historical sampling information and reference ratio information corresponding to the target coal type;

[0006] Based on the historical sampling information, predict the expected number of additional vehicles at the target time;

[0007] Determining the congestion state of the current sampling channel at the target time according to the number of waiting vehicles in the current sampling channel and the expected number of additional vehicles;

[0008] When the congestion state is congested, the current sampling ratio is adjusted based on the number of waiting vehicles, the expected number of additional vehicles and the reference ratio information to determine the target sampling ratio, wherein the target sampling ratio is used to sample coal transport vehicles.

[0009] According to a second aspect of the embodiments of this specification, a vehicle sampling device is provided, comprising:

[0010] The data acquisition module 402 is configured to acquire historical sampling information and reference ratio information corresponding to the target coal type;

[0011] The data calculation module 404 is configured to predict the expected increase in the number of vehicles at the target time based on the historical sampling information;

[0012] The state determination module 406 is configured to determine the congestion state of the current sampling channel at the target time according to the number of waiting vehicles in the current sampling channel and the expected number of additional vehicles;

[0013] The sampling module 408 is configured to adjust the current sampling ratio based on the number of waiting vehicles, the expected number of additional vehicles and the reference ratio information to determine the target sampling ratio when the congestion state is congested, wherein the target sampling ratio is used to sample coal transport vehicles.

[0014] According to a third aspect of an embodiment of this specification, a computing device is provided, including:

[0015] memory and processor;

[0016] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above-mentioned vehicle sampling method are implemented.

[0017] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned vehicle sampling method are implemented.

[0018] One embodiment of the present specification obtains historical sampling information and reference ratio information of the target coal type, predicts the expected increase in the number of vehicles at the target time based on the historical sampling information, judges the congestion status of the current sampling channel at the target time based on the expected increase in the number of vehicles and the number of vehicles waiting for sampling in the current sampling channel, and automatically adjusts the current sampling ratio according to the number of vehicles waiting for sampling, the expected increase in the number of vehicles and the reference ratio information in the case of congestion to obtain the target sampling ratio, samples the coal-transporting vehicles according to the target sampling ratio, makes the sampling ratio meet the sampling ratio range set by the supplier while avoiding vehicle congestion as much as possible, improves sampling efficiency, and the entire sampling ratio adjustment process is automatically implemented, effectively reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flow chart of a vehicle sampling method provided by one embodiment of this specification;

[0020] Figure 2A This is a first processing flow chart of a vehicle sampling method in a coal transportation yard provided by an embodiment of this specification, steps 202 to 216;

[0021] Figure 2B This is a first processing flow chart of a vehicle sampling method in a coal transportation yard provided by an embodiment of this specification, steps 208 to 236;

[0022] Figure 3A This is a second processing flow chart of a vehicle sampling method in a coal transportation yard provided by an embodiment of this specification, steps 302 to 330;

[0023] Figure 3B This is a second processing flow chart of a vehicle sampling method in a coal transportation yard provided by one embodiment of this specification, steps 332 to 368;

[0024] Figure 4 This is a schematic structural diagram of a vehicle sampling device provided in one embodiment of this specification;

[0025] Figure 5 This is a structural block diagram of a computing device provided by one embodiment of this specification. DETAILED DESCRIPTION

[0026] The following description sets forth many specific details to facilitate a thorough understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.

[0027] The terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of this specification. The singular forms "a," "the," and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0028] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0029] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0030] During the coal transportation process, shipping stations, serving as transit points for centralized coal shipments, conduct random sampling of vehicles transporting coal to ensure the quality of the purchased coal transported by road. Previously, the sampling ratio was determined by laboratory staff at the shipping station based on experience and procurement agreements with coal suppliers. If congestion occurred at the shipping station after all vehicles arrived, laboratory staff would need to communicate with colleagues in the transportation dispatch department by phone to adjust the sampling ratio. This method was inefficient, and the manually set sampling ratio was difficult to change, lacking flexibility. Furthermore, sampling efficiency was affected during holidays or during unusual weather conditions, which could result in insufficient samples.

[0031] To this end, this specification provides a vehicle sampling method, which also involves a vehicle sampling device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0032] See also Figure 1 , Figure 1 A flow chart of a vehicle sampling method provided according to an embodiment of this specification is shown, which specifically includes the following steps.

[0033] Step 102: Obtain historical sampling information and reference ratio information corresponding to the target coal type.

[0034] Specifically, the target coal type refers to the coal type that currently needs to adjust the sampling ratio and be sampled. One target coal type can be sampled by one or more target samplers. Each target sampler is correspondingly set in a sampling channel. Coal-carrying vehicles entering the shipping station need to enter the sampling channel for sampling before they can unload coal. Historical sampling information refers to the historical sampling data corresponding to the target coal type, including but not limited to the historical round-trip time of coal-carrying vehicles transporting the target coal type, and the sampling efficiency of the target sampler for sampling the target coal type. Reference ratio information refers to the relevant reference information set by the laboratory personnel of the shipping station for the target coal type based on experience or after consultation with the supplier of the target coal type.

[0035] Based on this, in order to accurately predict whether a traffic jam will occur within the current sampling channel, it is necessary to first obtain historical sampling information and reference ratio information corresponding to the target coal type. This information helps analyze the patterns of vehicle arrivals and the duration of the sampling process, providing a basis for subsequent adjustments to the sampling ratio.

[0036] Step 104: Based on the historical sampling information, predict the expected number of additional vehicles at the target time.

[0037] Specifically, the target time is a point in time after the current time. The expected number of additional vehicles refers to the total number of vehicles added at the target time.

[0038] Based on this, the system can analyze the historical operating patterns of coal transport vehicles and the historical sampling patterns of target samplers according to historical sampling information, and predict the expected increase in the number of vehicles within the target time based on the analysis results.

[0039] In summary, through comprehensive analysis of historical data, the system can more scientifically predict the trend of future vehicle arrivals, providing strong data support for the formulation and adjustment of sampling plans.

[0040] Furthermore, in order to more accurately predict the expected number of vehicles to be added at the target time, the historical sampling information includes the target sampling efficiency of the target sampling machine and the round-trip time of the coal-transporting vehicles; accordingly, the prediction of the expected number of vehicles to be added at the target time based on the historical sampling information includes: calculating the expected number of sampling vehicles of the target sampling machine within the preset time interval according to the preset time interval and the target sampling efficiency; calculating the expected number of vehicles to be added at the target time according to the preset time interval, the expected number of sampling vehicles and the round-trip time.

[0041] Specifically, the target sampling efficiency refers to the time required for the target sampler to complete a sampling. The target sampling efficiency can be determined based on the historical sampling data of the target sampler. The round-trip time of the coal transport vehicle refers to the average time required for the coal transport vehicle to travel from the departure point to the current sampling channel and back to the departure point. This time can be calculated based on the historical transportation data corresponding to the coal transport vehicle. The preset time interval is the time interval between the target time and the current time. The preset time interval is set by the user according to actual needs. The user includes the laboratory personnel or other staff in the sampling process. The system can automatically adjust the sampling ratio of the target coal type according to the preset time interval. The target sampler is a sampler used to sample the target coal type. The expected number of sampling vehicles is the number of vehicles that the target sampler is expected to complete sampling within the preset time interval. It can also be understood as the number of vehicles that leave the sampling channel within the preset time interval.

[0042] Based on this, since there are not only returning vehicles within the preset time interval, but also vehicles that leave after sampling is completed, in order to accurately calculate the expected additional number of vehicles at the target time, it is necessary to first determine the expected number of sampling vehicles of the target sampling machine within the preset time interval, and then calculate the expected additional number of vehicles at the target time based on the preset time interval and the round-trip time in transit.

[0043] For example, for target coal type A, there is only one sampling channel A. Within this sampling channel, target sampler A is deployed to sample coal vehicles transporting target coal type A. The target number of vehicles is set by the supplier of target coal type A before the start of a sampling cycle. The preset time interval set by the laboratory personnel is 2 hours. The current time is 8:00 AM, and the target time is 10:00 AM. Historical transport data for coal vehicles is obtained for the three months prior to 8:00 AM. The average historical round-trip time for coal vehicles in transit is calculated to be 0.2 hours per vehicle. Therefore, the average round-trip time for coal vehicles in transit is determined to be 0.2 hours per vehicle. The historical sampling efficiency of the target sampler in the week prior to 8:00 AM is calculated to be 0.3 hours per vehicle. Therefore, the target sampling frequency for the target sampler is determined to be 0.3 hours per vehicle. Based on the preset time interval and the target sampling efficiency, the target sampler is expected to sample 20 vehicles within the preset time interval. Furthermore, the expected additional number of vehicles to be sampled during the target time is calculated based on the preset time interval, the expected number of vehicles to be sampled, and the round-trip time.

[0044] It should be noted that the historical time period corresponding to the historical sampling information is the time period from a certain historical time to the current time. The historical time period can be set by the user according to needs, and the current sampling ratio needs to be adjusted once every preset time interval. Therefore, the current time point corresponding to each acquisition of historical sampling information is different, and thus the historical sampling information obtained each time is also different. Such historical sampling information can more accurately reflect the operating rules of the current transport vehicles and target samplers.

[0045] In summary, the process of the embodiment of this specification fully considers the dynamics of the flow of coal transport vehicles and the sampling efficiency of the target sampler, ensuring the accuracy of the prediction results.

[0046] Furthermore, since the number of vehicles added within the preset time interval is not only the number of vehicles returning during this period, but also the number of vehicles leaving after sampling during this period, in order to accurately calculate the expected number of increased vehicles, the expected number of increased vehicles at the target time is calculated based on the preset time interval, the expected number of sampled vehicles and the round-trip time in transit, including: determining the expected number of returning vehicles at the target time based on the preset time interval and the round-trip time in transit; calculating the expected number of vehicles added at the target time based on the expected number of sampled vehicles and the expected number of returning vehicles.

[0047] Specifically, the expected number of return vehicles refers to the total number of coal transport vehicles transporting the target type of coal that are expected to return to the current sampling channel within a preset time interval or by the target time.

[0048] Based on this, we can determine how many vehicles are expected to return to the current sampling channel within the target timeframe, based on the preset time interval and the round-trip duration. This is known as the expected number of returning vehicles. This number reflects the number of vehicles en route and is a crucial factor in predicting future vehicle arrivals. This expected number of returning vehicles is then combined with the number of vehicles that the target sampler is expected to complete sampling within the preset timeframe (the expected number of sampling vehicles) to derive the expected number of additional vehicles within the target timeframe.

[0049] Continuing with the above example, based on the preset time interval of 2 hours and the round trip time of 0.2 hours per coal transport vehicle, it can be seen that 30 coal transport vehicles are expected to return at 9:00 am. Based on this, the expected number of sampled vehicles, 20, is subtracted, and the expected additional vehicles at 9:00 are 10.

[0050] It should be noted that the expected number of additional vehicles can be positive, negative or 0. When the expected number of return vehicles at the target time is greater than the expected number of sampling vehicles, the expected number of additional vehicles is a positive number, indicating that the number of coal-transporting vehicles at the target time is actually increased; if the expected number of return vehicles at the target time is less than the expected number of sampling vehicles, the expected number of additional vehicles is a negative number, indicating that the number of coal-transporting vehicles at the target time is actually reduced; if the expected number of return vehicles at the target time is less than the expected number of sampling vehicles, the expected number of additional vehicles is a negative number, indicating that the number of coal-transporting vehicles at the target time is actually unchanged.

[0051] In summary, the embodiments of this specification comprehensively consider the vehicles that have been sampled and have left and the vehicles that are expected to return on the way, so as to more accurately predict the trend of future vehicle arrivals and provide more reliable data support for adjusting the sampling ratio.

[0052] Furthermore, the changes in coal transport vehicles are different in different time periods within a sampling cycle. Therefore, in order to further improve the accuracy of the prediction of the expected number of return vehicles, the expected number of return vehicles at the target time is determined based on the preset time interval and the round-trip time in transit, including: classifying the round-trip time in transit according to the time dimension to obtain the round-trip time in transit corresponding to at least two time dimensions; determining the target round-trip time in transit corresponding to the target time dimension according to the target time dimension where the target time is located; and determining the expected number of return vehicles at the target time according to the preset time interval and the target round-trip time in transit.

[0053] Specifically, time dimensions refer to different time periods within a sampling cycle. A sampling cycle is the period from the start to the end of sampling. For example, a sampling cycle can be defined as a day, with the different time dimensions within the sampling cycle being morning, noon, and evening. The time dimensions within a sampling cycle can be configured by the user based on actual needs.

[0054] Based on this, the round-trip time of coal transport vehicles can be classified according to the time dimension. In this process, the historical transportation data of coal transport vehicles must be classified according to the time dimension first, and the round-trip time of coal transport vehicles in each time dimension must be counted separately. That is, the historical transportation data lines of coal transport vehicles in the historical time period are classified according to the historical sampling period, and then the historical transportation data in each historical sampling period is classified according to at least two time dimensions. The historical transportation data of the same time dimension in each historical sampling period is counted, and the round-trip time of coal transport vehicles in the time dimension is calculated. Similarly, the corresponding round-trip time of coal transport vehicles in other time dimensions can be calculated in this way.

[0055] When you need to predict the expected number of return vehicles at a certain target time, first determine the time dimension of the target time, then select the round-trip duration corresponding to the time dimension, and finally calculate the expected number of return vehicles based on the preset time interval and the target round-trip duration.

[0056] Continuing with the previous example, let's assume the historical sampling period for the past three months was one day, with the time dimensions being: 6:00 AM - 2:00 PM, 2:00 PM - 10:00 PM, and 10:00 PM - 6:00 AM. Based on the historical transportation data for the past three months, determine the transportation data corresponding to the morning, afternoon, and evening time dimensions for each day. Based on the historical data corresponding to the same time dimensions for each day, calculate the round-trip transit time for transport vehicles in each time dimension as follows: 0.2 hours per vehicle in the morning, 0.3 hours per vehicle in the afternoon, and 0.6 hours per vehicle in the evening. For a target time of 9:00 AM, which falls within the morning time dimension, the corresponding round-trip transit time for transport vehicles is 0.2 hours per vehicle.

[0057] In summary, the embodiments of this specification take into account the differences in vehicle flow in different time periods, which can further improve the accuracy of prediction. At the same time, it also facilitates the statistics and analysis of historical data, providing more reliable data support for subsequent sampling ratio adjustments.

[0058] Step 106: Determine the congestion state of the current sampling channel at the target time based on the number of waiting vehicles in the current sampling channel and the expected number of additional vehicles.

[0059] Specifically, a sampling channel refers to a channel used for sampling the target coal type and for vehicles to queue or travel. The number of vehicles waiting for sampling refers to the number of vehicles that have entered the sampling channel and triggered sampling but have not yet completed sampling. The number of vehicles waiting for sampling can be directly calculated by counting the number of vehicles currently in the sampling channel, or by calculating the difference between the total number of vehicles that have triggered sampling and the total number of vehicles that have completed sampling at the current time.

[0060] Based on this, a comprehensive analysis is conducted based on the number of vehicles waiting for sampling in the current sampling channel and the expected number of additional vehicles to determine whether the sampling channel will be congested at the target time.

[0061] Furthermore, traffic jam is an important factor affecting the sampling ratio. In the case of vehicle congestion, it will lead to low vehicle transportation efficiency. At this time, it is necessary to reduce the sampling of vehicles in the sampling channel while ensuring that the minimum standard samples can be obtained, thereby avoiding vehicle congestion in the sampling channel.

[0062] To avoid congestion in the sampling channel, it is necessary to predict the congestion in the sampling channel in advance based on the expected number of additional vehicles. Determining the congestion status of the current sampling channel at the target time based on the number of vehicles waiting to be sampled in the current sampling channel and the expected number of additional vehicles includes: obtaining the number of vehicles waiting to be sampled in the current sampling channel; calculating the expected number of vehicles waiting to be sampled in the current sampling channel at the target time based on the number of vehicles waiting to be sampled and the expected number of additional vehicles; determining the quantitative relationship between the expected number of vehicles waiting to be sampled and a preset vehicle number threshold, and determining the congestion status of the current sampling channel at the target time based on the quantitative relationship.

[0063] Specifically, the estimated number of vehicles waiting for sampling refers to the number of vehicles that entered the sampling channel at the target time to trigger sampling but have not yet completed sampling. The preset vehicle threshold is the maximum number of vehicles that can be accommodated in the current sampling channel and can also be set by the user based on actual conditions.

[0064] Based on this, the number of vehicles waiting to be picked up in the current sampling channel is obtained. This number is then added to the expected number of additional vehicles to obtain the expected number of vehicles waiting to be picked up at the target time. The expected number of vehicles waiting to be picked up is then compared with a preset vehicle count threshold. If the expected number of vehicles waiting to be picked up is greater than the preset vehicle count threshold, the current sampling channel is determined to be congested at the target time. If the expected number of vehicles waiting to be picked up is less than or equal to the preset vehicle count threshold, the current sampling channel is determined to be non-congested at the target time.

[0065] For example, for target coal type A, the number of vehicles waiting for mining in sampling channel A is currently 15. The estimated additional number of vehicles predicted in step 104 is 10, so the estimated number of vehicles waiting for mining is 25. The preset vehicle number threshold is 20. Since the estimated number of vehicles waiting for mining of 25 is greater than the preset vehicle number threshold of 20, it is determined that the current sampling channel A will be congested at the target time.

[0066] In summary, the embodiments of this specification can accurately predict the congestion state of the future sampling channel by comprehensively considering historical sampling information, the expected increase in the number of vehicles, and the number of vehicles waiting for sampling in the current sampling channel, providing strong data support for the adjustment of the sampling ratio, thereby ensuring the smooth progress of the sampling work.

[0067] Step 108: When the congestion state is congested, the current sampling ratio is adjusted based on the number of waiting vehicles, the expected number of additional vehicles and the reference ratio information to determine the target sampling ratio, wherein the target sampling ratio is used to sample coal transport vehicles.

[0068] Specifically, the sampling ratio refers to the ratio of the number of vehicles that need to be sampled within a sampling cycle to the total number of vehicles in this cycle. The current sampling ratio refers to the sampling ratio at the current time. The current sampling ratio is generally the highest sampling ratio. The target sampling ratio refers to the sampling ratio obtained after adjusting the current sampling ratio. After generating the target sampling ratio, the system will instruct the target sampling machine to sample coal-carrying vehicles according to the target sampling ratio at the target time.

[0069] Based on this, when the sampling channel is congested, the current sampling ratio needs to be adjusted to avoid further congestion and ensure sampling efficiency. In order to ensure that the target sampling ratio can both obtain enough samples and avoid congestion in the sampling channel, the current sampling ratio needs to be adjusted by comprehensively considering the number of waiting vehicles, the expected number of additional vehicles, and the reference ratio information.

[0070] It should be noted that after the current sampling ratio is adjusted to obtain the target sampling ratio, the target time will be sampled according to the target sampling ratio. However, when predicting the target sampling ratio of the next target time based on the target time, the highest sampling ratio will still be adjusted as the current sampling ratio, that is, each adjustment of the sampling ratio is made based on the highest sampling ratio.

[0071] In another embodiment of the present specification, the target sampling ratio obtained after each adjustment may be used as the current sampling ratio for the next adjustment, that is, each adjustment of the sampling ratio is a further adjustment based on the previous adjustment.

[0072] Furthermore, if a traffic jam is predicted at the target time, the subsequent sampling strategy needs to be adjusted based on the traffic jam. If it is predicted that there will be no traffic jam at the target time, the current sampling ratio does not need to be adjusted. If it is predicted that there will be traffic jam at the target time, the current sampling ratio needs to be adjusted based on the specific traffic jam situation. The following will provide a detailed description of the first method for determining the target sampling ratio provided in one embodiment of this specification.

[0073] In order to avoid or alleviate traffic jams at the target time and ensure that the sampled samples can meet the standards reflecting the actual quality of the coal, the current sampling ratio is adjusted based on the number of waiting vehicles, the expected number of additional vehicles and the reference ratio information to determine the target sampling ratio, including: determining a floating sampling ratio based on the reference ratio information, wherein the floating sampling ratio refers to the adjustable range of the current sampling ratio; calculating the vehicle number change ratio based on the number of waiting vehicles, the expected number of additional vehicles and a preset vehicle number threshold; adjusting the current sampling ratio based on the floating sampling ratio and the vehicle number change ratio to obtain the target sampling ratio.

[0074] Specifically, the reference sampling ratio includes a maximum sampling ratio and a minimum sampling ratio, both of which are pre-set by the user. The maximum sampling ratio refers to the maximum proportion of vehicles that can be sampled within a sampling cycle, while the minimum sampling ratio refers to the minimum proportion of vehicles that must be sampled within a sampling cycle. The floating sampling ratio refers to the maximum range within which the current sampling ratio can be adjusted, and the vehicle count change ratio reflects the changes in the number of vehicles within the sampling channel at the target time.

[0075] Based on this, the floating sampling ratio can be calculated according to the highest sampling ratio and the lowest sampling ratio, and the change ratio of coal transport vehicles within the preset time period can be calculated according to the number of waiting vehicles, the expected increase in the number of vehicles and the preset vehicle number threshold. Furthermore, the actual adjustment range of the current sampling ratio is determined according to the floating sampling ratio and the vehicle number change ratio, and then the current sampling ratio is adjusted according to the adjustment range to obtain the target sampling ratio.

[0076] Continuing with the previous example, for target coal type A, the current sampling ratio is the maximum sampling ratio of 100%. The floating sampling ratio calculated based on the difference between the maximum sampling ratio and the minimum sampling ratio of 60% is 40%. The vehicle number change ratio is 0.25, based on the current number of waiting vehicles in sampling channel A of 15, the expected number of additional vehicles of 10, and the preset vehicle number threshold of 20. Therefore, the product of the floating sampling ratio and the vehicle number change ratio is calculated to adjust the current sampling ratio by 0.1 (i.e., 40% * 0.25). Based on the maximum sampling ratio, the adjustment is reduced by 10%, resulting in a target sampling ratio of 90%.

[0077] This means that when it is predicted that sampling channel A will be congested, the sampling ratio needs to be reduced from 100% to 90% to avoid further congestion and ensure the efficiency and quality of sampling.

[0078] It should be noted that if the target sampling ratio is lower than the minimum sampling ratio after adjustment, in order to ensure that there are enough samples, the target sampling ratio needs to be determined as the minimum sampling ratio.

[0079] In summary, the embodiments of this specification can accurately predict the congestion state of the future sampling channel by comprehensively considering historical sampling information, the expected number of additional vehicles, the number of vehicles waiting for sampling in the current sampling channel, and reference ratio information, and dynamically adjust the sampling ratio based on the prediction results, thereby ensuring the smooth progress of the sampling work and ensuring that the samples obtained can truly reflect the quality of the coal.

[0080] Furthermore, in order to accurately calculate the proportion of changes in the number of vehicles, the proportion of changes in the number of vehicles is calculated based on the number of vehicles waiting for procurement, the expected number of vehicles to increase and the preset vehicle number threshold, including: calculating the change in the number of vehicles based on the number of vehicles waiting for procurement and the expected number of vehicles to increase; calculating the proportion of changes in the number of vehicles based on the change in the number of vehicles and the preset vehicle number threshold.

[0081] Specifically, the change in the number of vehicles refers to the change in the number of vehicles in the current time sampling channel relative to the target time sampling channel.

[0082] Based on this, the number of vehicles waiting for sampling in the current sampling channel is subtracted from the expected number of additional vehicles to obtain the vehicle count change. This vehicle count change is then compared with the preset vehicle count threshold to determine the vehicle count change ratio. This vehicle count change ratio reflects the relative change in the number of vehicles in the sampling channel at the target time, providing a basis for adjusting the sampling ratio.

[0083] For example, for target coal type A, the current number of vehicles waiting to be mined in sampling channel A is 15, and the projected number of additional vehicles is 10. Therefore, the change in the number of vehicles is 5 (15 - 10). The preset vehicle threshold is 20, so the vehicle change ratio is 0.25 (5 / 20). This means that relative to the preset vehicle threshold, the number of vehicles in sampling channel A at the target time will increase by 25%. Therefore, the sampling ratio needs to be appropriately reduced to avoid congestion.

[0084] In summary, by accurately calculating the change ratio of the number of vehicles, the change of the number of vehicles in the sampling channel can be predicted more accurately, so as to adjust the sampling ratio more reasonably, ensure the smooth progress of the sampling work, and improve the sampling efficiency and quality.

[0085] Furthermore, if multiple sampling channels sample the target coal type at the same time, the overall sampling ratio of each sampling channel needs to be adjusted. Therefore, another method for calculating the target sampling ratio is provided in another embodiment of this specification. The second method for determining the target sampling ratio provided in another embodiment of this specification will be described in detail below.

[0086] The reference ratio information includes the highest sampling ratio, the lowest sampling ratio and the standard number of sampling vehicles; based on the number of vehicles waiting for sampling, the expected number of additional vehicles and the reference ratio information, the current sampling ratio is adjusted to determine the target sampling ratio, including: counting the number of vehicles that have completed sampling, and judging whether the number of vehicles that have completed sampling is greater than the standard number of sampling vehicles; if so, determining the target sampling ratio based on the lowest sampling ratio; if not, determining the target sampling ratio based on the highest sampling ratio.

[0087] Specifically, the standard sampling vehicle count refers to a preset baseline number of sampling vehicles used to determine whether the current sampling progress meets basic sampling requirements. This standard sampling vehicle count can be set by the user based on the specific requirements of the sampling process to ensure representativeness and accuracy of the sampling results. Alternatively, it can be determined by multiplying the minimum sampling ratio by the total planned vehicle count during the sampling cycle. The planned vehicle count refers to the number of vehicles the supplier plans to dispatch during the sampling cycle. It should be noted that the planned vehicle count can be determined before the start of each sampling cycle.

[0088] Based on this, when the number of completed sampling vehicles exceeds the target sampling number, it means that the current sampling process has progressed to a certain extent and a sufficient number of samples have been obtained. In this case, to avoid congestion in the sampling channel and take into account sampling efficiency, a target sampling ratio can be determined based on the minimum sampling ratio. This ensures sample quality while minimizing the impact on vehicles in the sampling channel and ensuring smooth sampling.

[0089] Conversely, if the number of completed sampling vehicles is less than or equal to the standard number of sampling vehicles, it indicates that the current sampling progress has not yet met the preset requirements and more samples need to be collected. In this case, to ensure that a sufficient number of samples are obtained to reflect the true quality of the coal, a target sampling ratio can be determined based on the maximum sampling ratio. This maximizes the representativeness and accuracy of the sampling results.

[0090] For example, for target coal type B, the preset standard number of sampling vehicles is 60. After the sampling work has been going on for a period of time and at 12 noon, the number of completed sampling vehicles is statistically calculated to be 40, which is less than the standard number of sampling vehicles. Therefore, at this time, the target sampling ratio should be determined based on the highest sampling ratio to ensure that a sufficient number of samples can be collected. If the number of completed sampling vehicles has reached 65, exceeding the standard number of sampling vehicles, then the low sampling ratio of 60% can be directly used as the target sampling ratio to optimize sampling efficiency and avoid congestion.

[0091] In summary, by comprehensively considering the relationship between the number of completed sampling vehicles and the standard number of sampling vehicles, the sampling ratio can be adjusted more flexibly to ensure that the sampling work can meet basic sampling needs while taking into account sampling efficiency and channel congestion. This method provides strong support for the optimization of sampling work and helps to improve the overall effectiveness and quality of sampling work.

[0092] Furthermore, in order to further improve the accuracy of the sampling ratio adjustment, the target sampling ratio is determined based on the highest sampling ratio, including: determining whether the number of completed sampling vehicles reaches the target ratio of the standard sampling number of vehicles: if so, determining the target sampling ratio based on the highest sampling ratio and the first preset adjustment ratio; if not, determining the target sampling ratio based on the highest sampling ratio and the second preset adjustment ratio, wherein the first preset adjustment ratio is less than the second preset adjustment ratio.

[0093] Specifically, the target ratio is an indicator used to measure the degree to which the number of completed sampling vehicles is relative to the standard number of sampling vehicles. The target ratio can be set according to the specific requirements and actual conditions of the sampling work. The first preset adjustment ratio and the second preset adjustment ratio are used to represent the adjustment amplitude of the maximum sampling ratio. It should be noted that in one embodiment of the present specification, when there is no traffic jam, sampling is performed according to the highest sampling ratio by default. In this case, each sampling ratio adjustment is also made at the highest sampling ratio.

[0094] Based on this, when the number of completed sampling vehicles reaches or exceeds the target ratio of the standard sampling number of vehicles, it means that the current sampling work is close to the preset sampling progress requirements. At this time, to avoid congestion in the sampling channel and take into account sampling efficiency, the target sampling ratio can be determined based on the maximum sampling ratio and a smaller first preset adjustment ratio. This can minimize the impact on vehicles in the sampling channel while ensuring the smooth progress of sampling work while ensuring sample quality.

[0095] Conversely, if the number of completed sampling vehicles has not yet reached the target ratio for the standard number of sampling vehicles, this indicates that there is significant room for improvement in the current sampling progress and that more samples need to be collected. In this case, to ensure that a sufficient number of samples are obtained to more accurately reflect the true quality of the coal, the target sampling ratio can be determined based on the maximum sampling ratio and a larger second preset adjustment ratio. This maximizes the representativeness and accuracy of the sampling results.

[0096] For example, for target coal type B, the preset standard number of sampling vehicles is 60, the target ratio is 50%, the first preset adjustment ratio is 25%, and the second preset adjustment ratio is 50%. After the sampling work has been going on for a while and reaches 12 noon, statistics show that the number of completed sampling vehicles is 40, and the standard number of sampling vehicles is 60, reaching 66% of the target ratio of the standard sampling number of vehicles (40 vehicles / 60 vehicles*100%). At this time, the target sampling ratio can be determined based on the maximum sampling ratio of 100% and the smaller first preset adjustment ratio of 25%, that is, the target sampling ratio is 25% (25%*100%). Assuming that the minimum sampling ratio corresponding to target coal type B is 40%, the currently calculated target sampling ratio is less than the minimum sampling ratio, and it cannot be guaranteed that the sample can accurately reflect the quality of the coal. Therefore, the target sampling ratio needs to be set to the minimum sampling ratio of 40%. However, if the number of vehicles that have completed sampling is only 25, which does not reach the target proportion of the standard sampling number of vehicles, then the target sampling proportion can be determined based on the highest sampling proportion of 100% and the larger second preset adjustment proportion of 50%, that is, the target sampling proportion is 50% (50%*100%).

[0097] In summary, by comprehensively considering the ratio of completed sampling vehicles to the target number of standard sampling vehicles, the sampling ratio can be adjusted more accurately, ensuring that the sampling work can meet basic sampling needs while taking into account sampling efficiency and channel congestion. This method further improves the accuracy of sampling ratio adjustment and provides strong support for optimizing sampling work.

[0098] Furthermore, to prevent suppliers from cheating by initially providing high-quality coal within a sampling cycle and then maliciously providing low-quality coal later, it is necessary to calculate the relationship between the number of completed sampling vehicles and the standard number of sampling vehicles when sampling reaches a preset progress, thereby adjusting the current sampling ratio according to the implementation method of the aforementioned embodiment. The preset progress can be understood as the length of time a sampling cycle has already been completed. The preset progress can be represented by a time point or time period. For example, if the sampling cycle is one day (00:01-24:00), then the preset progress can be set to 12:00. One or more preset progresses can be set.

[0099] It should be noted that, since sampling is performed through one sampling channel, the returning vehicles will definitely return to this sampling channel, and the vehicle change ratio in the sampling channel can be determined based on the number of vehicles returning in the current sampling channel. Therefore, the first target sampling ratio determination method is preferred; if there are multiple sampling channels, it is impossible to predict which sampling channel the returning vehicles will enter, and the sampling ratio needs to be adjusted according to the overall completion of the sampling. Therefore, the second sampling ratio determination method is preferred.

[0100] In summary, by setting a preset schedule and adjusting the sampling ratio within that schedule, the embodiments of this specification make sampling more organized and controllable, providing a strong guarantee for accurate coal quality assessment. This ensures sampling efficiency while effectively preventing potential supplier cheating, further improving the representativeness and accuracy of the sampling results.

[0101] Furthermore, sampling machines at shipping stations cannot operate continuously 24 hours a day. Therefore, there is an upper limit on the number of vehicles a sampling machine can sample per day, known as the sampling limit. To prevent equipment failure or damage due to overuse, the number of vehicles sampled during each sampling cycle must be strictly controlled to ensure that the sampling limit is not exceeded. When sampling approaches the sampling limit, the sampling ratio should be adjusted to reduce the pressure on the sampling machine and ensure its normal operation.

[0102] Therefore, in another embodiment of the present specification, the current sampling ratio may be adjusted according to the sampling limit of the target sampler. The specific steps are as follows:

[0103] Determine the target sampling efficiency of the target sampling machine contained in the historical sampling information, and obtain the preset working time of the target sampling machine; calculate the target sampling limit corresponding to the target coal type in the target sampling machine based on the preset working time and the target sampling efficiency; count the number of completed sampling vehicles, and determine whether the number of completed sampling vehicles is greater than or equal to the sampling limit. If so, determine the target sampling ratio based on the minimum sampling ratio; if not, determine the target sampling ratio based on the maximum sampling ratio.

[0104] Specifically, the preset working time is the total working time of the sampler in a sampling cycle. The preset working time can be set by the user based on work experience. The target coal type is sampled by the corresponding target sampler, and a target sampler may also need to sample multiple coal types. The target coal type is one of the multiple coal types sampled by the target sampler. Since the sampling ratios corresponding to different coal types are different, the sampling limits of the target sampler for the various coal types it needs to sample are also different. The target sampling limit refers to the maximum number of sampling vehicles for the target coal type by the target sampler in a sampling cycle.

[0105] Based on this, it is determined whether the number of vehicles that have completed sampling has reached the target sampling limit of the target sampling machine, so as to adjust the sampling ratio accordingly. In the case that the number of vehicles that have completed sampling has not reached the target sampling limit of the target sampling machine, it is further determined whether the number of vehicles that have completed sampling has reached the first target ratio of the target sampling limit. If so, the target sampling ratio is determined based on the highest sampling ratio and the third preset adjustment ratio; if not, it is determined whether the number of vehicles that have completed sampling has reached the second target ratio of the target sampling limit. If so, the target sampling ratio is determined based on the highest sampling ratio and the fourth preset adjustment ratio. If not, the target sampling ratio is determined according to the first determination method of the target sampling ratio in the aforementioned embodiment, wherein the first target ratio is greater than the second target ratio, and the third preset adjustment ratio is less than the fourth preset adjustment ratio.

[0106] Furthermore, the target sampling limit corresponding to the target coal type in the target sampling machine is calculated based on the preset working time and the target sampling efficiency, including: calculating the total sampling limit of the target sampling machine based on the preset working time and the target sampling efficiency; determining the preset sampling coal types assigned to the target sampling machine, the preset sampling coal types including the target coal type; determining the total number of coal trucks of the preset sampling coal type and the target number of coal trucks of the target coal type, calculating the target vehicle ratio of the target number of coal trucks to the total number of coal trucks, and calculating the target sampling limit based on the target vehicle ratio and the total sampling limit.

[0107] Specifically, the preset sampling coal type refers to the coal type that needs to be sampled and is pre-assigned to the target sampling machine. The preset sampling coal type can be one or more types. Different coal types will be pre-assigned different numbers of coal trucks for transportation. The total number of coal trucks is the total number of trucks obtained by adding up the pre-assigned coal trucks corresponding to all preset sampling coal types assigned to the target sampling machine.

[0108] For example, the user sets the preset working time of the target sampler to 20 hours, and the working efficiency of the target sampler is 0.1 hours / vehicle. The calculated total sampling limit of the target sampler is 200 (20 / 0.1) vehicles. The preset sampling coal types corresponding to the target sampler include coal type A, coal type B, and coal type C, among which coal type A is the target sampling coal type. The transport vehicles corresponding to each coal type are: coal type A: 20 vehicles, coal type B: 10 vehicles, and coal type C: 50 vehicles. The target sampling limit of the corresponding target coal type on the target sampler is: 50 (200*(20 / (20+10+50))). If the calculation result is a decimal, the decimal place is discarded and rounded down.

[0109] The number of vehicles that have completed sampling of the target coal type is 15, 15<(50 / 2), and the target sampling ratio is determined according to the first method for determining the target sampling ratio in the above embodiment.

[0110] In addition, if the number of vehicles that have completed sampling is greater than or equal to the target sampling limit, the lowest sampling ratio will be used as the target sampling ratio. Assuming that the first target ratio is 3 / 4, the second target ratio is 1 / 2, the third preset adjustment ratio is 1 / 4, and the third preset adjustment ratio is 3 / 4, if the number of vehicles that have completed sampling is greater than or equal to the target sampling limit * 3 / 4, the highest sampling ratio * 1 / 4 will be used as the target sampling ratio; if the number of vehicles that have completed sampling is greater than or equal to the target sampling limit * 1 / 2, the highest sampling ratio * 3 / 4 ​​will be used as the target sampling ratio.

[0111] In summary, the embodiments of this specification comprehensively consider the sampling limit of the sampler and flexibly adjust the sampling ratio to meet the needs of different sampling stages. The target sampling limit is determined by calculating the total sampling limit of the target sampler and according to the proportion of the target number of coal trucks in the total number of coal trucks. On this basis, different strategies are adopted to determine the target sampling ratio according to the relationship between the number of completed sampling vehicles and the target sampling limit. It ensures that the samples obtained by the final sampling meet the standards, while avoiding damage to the sampler due to excessive use, and can also avoid or alleviate traffic jams, thereby improving the overall efficiency and reliability of the sampling work.

[0112] The following combined Figure 2A and Figure 2B Taking the application of the vehicle sampling method provided in this specification in the coal transportation scenario as an example, the vehicle sampling method is further explained. Figure 2A This is a first processing flow chart of a vehicle sampling method in a coal transportation yard provided by an embodiment of this specification, steps 202 to 216; Figure 2B This is a first processing flow chart of a vehicle sampling method in a coal transportation yard provided by an embodiment of this specification, which includes steps 208 to 236. Specifically, it includes the following steps.

[0113] Step 202: Acquire historical sampling information and reference ratio information corresponding to the target coal type, wherein the historical sampling information includes the target sampling efficiency of the target sampler and the round-trip time of the coal transport vehicle.

[0114] Step 204: Calculate the expected number of sampling vehicles of the target sampling machine within the preset time interval according to the preset time interval and the target sampling efficiency.

[0115] Step 206: Classify the round-trip duration in transit according to the time dimension to obtain the round-trip duration in transit corresponding to at least two time dimensions.

[0116] Step 208: Determine the target round-trip duration corresponding to the target time dimension according to the target time dimension.

[0117] Step 210: Determine the number of vehicles expected to return within the target time based on the preset time interval and the target round-trip duration.

[0118] Step 212: Calculate the expected number of additional vehicles within the target time based on the expected number of sampled vehicles and the expected number of returned vehicles.

[0119] Step 214: Obtain the number of vehicles waiting for sampling in the current sampling channel.

[0120] Step 216: Calculate the expected number of waiting vehicles for the current sampling channel at the target time based on the number of waiting vehicles and the expected number of additional vehicles.

[0121] Step 218: Determine the quantitative relationship between the estimated number of waiting vehicles and a preset vehicle number threshold, and determine the congestion state of the current sampling channel at the target time based on the quantitative relationship.

[0122] Step 220: Determine a floating sampling ratio according to the reference ratio information, wherein the floating sampling ratio refers to an adjustable range of the current sampling ratio.

[0123] Step 222: Calculate the change in the number of vehicles based on the number of vehicles waiting for procurement and the expected number of additional vehicles.

[0124] Step 224: Calculate the vehicle number change ratio based on the vehicle number change and a preset vehicle number threshold.

[0125] Step 226: According to the floating sampling ratio and the vehicle number change ratio, the current sampling ratio is adjusted to obtain a target sampling ratio.

[0126] Step 228: The reference ratio information includes the highest sampling ratio, the lowest sampling ratio and the standard number of sampling vehicles. The number of completed sampling vehicles is counted to determine whether the number of completed sampling vehicles is greater than the standard number of sampling vehicles. If so, execute step 230; if not, execute step 232.

[0127] Step 230: Determine the target sampling ratio based on the minimum sampling ratio.

[0128] Step 232: Determine whether the number of vehicles that have completed sampling has reached the target ratio of the standard number of vehicles for sampling: if so, execute step 234; if not, execute step 236.

[0129] Step 234: Determine the target sampling ratio based on the highest sampling ratio and the first preset adjustment ratio.

[0130] Step 236: Determine the target sampling ratio based on the highest sampling ratio and a second preset adjustment ratio, wherein the first preset adjustment ratio is smaller than the second preset adjustment ratio.

[0131] In summary, the embodiments of this specification can dynamically adjust the sampling ratio through the accurate calculation of the number of waiting vehicles, the expected number of additional vehicles, and the ratio of changes in the number of vehicles, so as to adapt to the sampling needs in different situations. Combining historical sampling information and reference ratio information, it is possible to intelligently predict future congestion and make reasonable sampling plans accordingly. At the same time, considering the relationship between the number of completed sampling vehicles and the standard number of sampling vehicles, the controllability and anti-cheating capabilities of the sampling work are further enhanced. The embodiments of this specification realize the intelligent, efficient and accurate sampling work by comprehensively considering multiple factors and taking corresponding adjustment measures. This not only improves the reliability of coal quality assessment, but also improves the flexibility and accuracy of sampling work.

[0132] The following combined Figure 3A and Figure 3B Taking the application of the vehicle sampling method provided in this specification in the coal transportation scenario as an example, another implementation method of the vehicle sampling method is further described. Figure 3A This is a second processing flow chart of a vehicle sampling method in a coal transportation yard provided by an embodiment of this specification, steps 302 to 330; Figure 3B This is a second processing flow chart of a vehicle sampling method in a coal transportation yard provided by an embodiment of this specification, steps 332 to 368, which specifically include the following steps.

[0133] Step 302: Find the coal suppliers corresponding to all sampling machines.

[0134] For all sampling machines in the entire shipping station, the types of coal sampled by each sampling machine may be different, and the suppliers corresponding to different types of coal may also be different. Therefore, in order to accurately adjust the sampling ratios corresponding to different types of coal, it is necessary to first determine the correspondence between the sampling machines, coal types, and suppliers.

[0135] Step 304: Obtain the factory, supplier, coal type, number of corresponding sampling channels, total number of vehicles that can return on the day, and total number of current samples.

[0136] Step 306: Obtain the number of coal trucks in the sampling channel corresponding to each current sampling machine.

[0137] For any target coal type, determine the sampling machine used to sample the target coal type, and determine the number of vehicles in the sampling channel corresponding to each current sampling machine.

[0138] Step 308: Obtain the estimated sampling number of the sampler at the next moment.

[0139] The estimated sampling number of the sampling machine at the next moment has the same meaning as the estimated number of sampling vehicles described in the above embodiment.

[0140] Step 310: Obtain the total number of vehicles that can be accommodated by each sampling machine channel, the total number of vehicles dispatched by the supplier for each type of coal on that day, and the number of vehicles that can return for each type of coal at the next moment.

[0141] Since there may be multiple sampling machines for sampling the target coal type, each sampling machine corresponds to a sampling channel. The maximum number of vehicles that can be accommodated in each sampling channel, the total number of vehicles dispatched by the supplier for each coal type on that day, and the number of vehicles that can return for each coal type at the target time are obtained.

[0142] Step 312: Obtain the supplier's optimal sampling number, sampled number, and remaining sampling number of coal types.

[0143] The optimal sampling number is the minimum number of samples required to accurately reflect the coal quality of a particular coal type. The number of samples completed is the number of coal transport vehicles that have completed sampling for that particular coal type. The remaining number of samples is the number of vehicles that need to continue sampling to ensure that the optimal sampling number is achieved.

[0144] Step 314 : Determine whether the sampling machine is faulty. If so, execute step 316 ; if not, execute step 320 .

[0145] Determine whether the sampling machine used to sample a certain type of coal has malfunctioned.

[0146] Step 316: Sampling machine failure: 0.

[0147] If the sampler fails, set the corresponding status code to 0.

[0148] Step 318: The sampling ratio is 0.

[0149] When the sampler fails, it means that normal sampling cannot be performed and the sampler needs to be controlled to stop working, so the sampling ratio is set to 0.

[0150] Step 320: Determine whether the supplier's coal type is cleared in the sampling machine; if so, execute step 322; if not, execute step 326.

[0151] Determine whether the sampling barrel used to hold a certain type of coal has been cleared.

[0152] Step 322: The current coal type has been cleared from the barrel: 1.

[0153] If the target coal type has been cleared, the status code is set to 1.

[0154] Step 324: The sampling ratio is in accordance with the audit requirements.

[0155] Step 326 : Check whether the centralized vehicle ratio adjustment is enabled; if so, go to step 328 ; if not, go to step 332 .

[0156] In the case that the barrel is not cleared, the user determines whether to enable the centralized vehicle ratio adjustment, that is, to adjust the sampling ratio corresponding to a certain type of coal as a whole.

[0157] Step 328: Adjust the proportion of concentrated incoming vehicles: 8.

[0158] If overall adjustment is required, the status code is set to 8.

[0159] Step 330: Configure the corresponding return sampling ratio according to the number of vehicles that have been inspected.

[0160] Adjust the current sampling ratio based on the number of vehicles that have completed sampling.

[0161] Step 332: Is there a traffic jam in the sampling machine channel? If so, go to step 334; if not, go to step 336.

[0162] Determine whether there will be traffic jam in the sampling channel corresponding to the target coal type at the target time.

[0163] Step 334: Traffic jam occurs: 2.

[0164] If a traffic jam occurs, the status code is set to 2.

[0165] Step 336: Afternoon supplementary sampling control: If yes, go to step 338; if not, go to step 340.

[0166] After noon, we can determine whether the current sampling ratio needs to be adjusted based on whether the number of completed sampling vehicles reaches the standard number of sampling vehicles.

[0167] Step 338: Afternoon supplementary sampling control: 7.

[0168] The need for additional sampling control means that the current sampling ratio needs to be adjusted and the status code is set to 7.

[0169] Step 340: Whether the sampling limit of the sampler has been reached.

[0170] Determine whether the number of vehicles that have completed sampling for a certain type of coal has reached the sampling limit of the sampling machine.

[0171] Step 342: Target sampling ratio = minimum sampling ratio: 3.

[0172] If the sampling limit is reached, the sampling ratio is adjusted to the minimum sampling ratio and the status code is set to 3.

[0173] Step 344 : The number of sampled vehicles reaches the 3 / 4 sampling limit; if so, execute step 346 ; if not, execute step 348 .

[0174] If the sampling limit has not been reached, determine whether the number of sampled vehicles has reached 3 / 4 of the sampling limit.

[0175] Step 346: Target sampling ratio = 1 / 4 Maximum sampling ratio: 5.

[0176] If the number of sampled vehicles reaches 3 / 4 of the sampling limit, the sampling ratio will be adjusted to 1 / 4 of the maximum sampling ratio, and the status code will be set to 5.

[0177] Step 348 : The number of sampled vehicles reaches the 1 / 2 sampling limit; if so, execute step 350 ; if not, execute step 358 .

[0178] Step 350: Target sampling ratio = 3 / 4 maximum sampling ratio: 6.

[0179] If the number of sampled vehicles reaches 3 / 4 of the sampling limit, the sampling ratio is adjusted to 3 / 4 of the maximum sampling ratio, and the status code is set to 6. It should be noted that although the sampling ratio has been adjusted in steps 342, 346, and 350, the number of sampled vehicles may be less than the standard sampling number set by the user. In order to ensure that the number of sampled vehicles meets the standard, step 352 needs to be executed after executing any one of steps 342, 346, and 350.

[0180] Step 352: Is the number of quality inspection vehicles for the current sampled coal type sufficient? If so, execute step 354; if not, execute step 356.

[0181] When any of steps 332, 336, 340, 344, and 348 meets the conditions, the process can jump to step 352 to determine whether the number of vehicles that have completed sampling has reached the standard number of vehicles for sampling.

[0182] Step 354: Set the corresponding sampling ratio according to the status code.

[0183] If the standard number of sampling vehicles has been reached, the sampling ratio can be set according to the status code. Since different status codes represent different status conditions, the system can determine what status condition was met in the previous step based on the status code and then adjust the sampling ratio.

[0184] Step 356: The number of vehicles inspected for the current type of coal is too small, so every vehicle undergoes quality inspection.

[0185] If the standard number of sampling vehicles is not reached, sampling will be required for every subsequent vehicle.

[0186] Step 358: Dynamic adjustment of sampling ratio: 4.

[0187] If the number of sampled vehicles does not reach 1 / 2 of the sampling limit, the sampling ratio needs to be dynamically adjusted and the status code is set to 4.

[0188] Step 360: Is the current coal type blocked in other sampling machine channels? If so, execute step 362; if not, execute step 364.

[0189] The current coal type has the same meaning as the target coal type in the aforementioned embodiment, and the sampling machine channel has the same meaning as the sampling channel in the aforementioned embodiment.

[0190] Step 362: The lowest sampling ratio is taken for the coal type of the supplier when there is a traffic jam at other sampling machines.

[0191] If a traffic jam occurs in the sampling channel corresponding to the target coal type at the current time, the current sampling ratio is adjusted to a low sampling ratio for sampling.

[0192] Step 364: Predict whether the sampling machine channel will be congested at the next moment; if so, execute step 366; if not, execute step 368.

[0193] Predict whether traffic jam will occur in the target time sampling channel at the target time.

[0194] Step 366: The traffic jam sampling ratio at the next predicted moment is adjusted to the maximum ratio of 3 / 4.

[0195] If a traffic jam is predicted, the sampling ratio of the target time is adjusted to 3 / 4 of the maximum sampling ratio.

[0196] Step 368: The supplier coal type fluctuates between the highest ratio and the lowest ratio.

[0197] The adjusted target sampling ratio always fluctuates between the highest sampling ratio and the lowest sampling ratio.

[0198] The embodiments of this specification implement refined management and intelligent adjustment of sampling ratios. By combining multiple factors, such as coal type, supplier, sampling machine status, and sampling channel congestion, the system can automatically determine and adjust the sampling ratio to suit different sampling needs and actual conditions, thereby improving sampling efficiency.

[0199] Corresponding to the above method embodiment, this specification also provides a vehicle sampling device embodiment, Figure 4 FIG1 shows a schematic diagram of the structure of a vehicle sampling device provided by an embodiment of this specification. Figure 4 As shown, the device includes:

[0200] The data acquisition module 402 is configured to acquire historical sampling information and reference ratio information corresponding to the target coal type;

[0201] The data calculation module 404 is configured to predict the expected increase in the number of vehicles at the target time based on the historical sampling information;

[0202] The state determination module 406 is configured to determine the congestion state of the current sampling channel at the target time according to the number of waiting vehicles in the current sampling channel and the expected number of additional vehicles;

[0203] The sampling module 408 is configured to adjust the current sampling ratio based on the number of waiting vehicles, the expected number of additional vehicles and the reference ratio information to determine the target sampling ratio when the congestion state is congested, wherein the target sampling ratio is used to sample coal transport vehicles.

[0204] The data calculation module 404 includes:

[0205] An estimated sampling vehicle number calculation submodule is configured to calculate the estimated sampling vehicle number of the target sampling machine within the preset time interval according to the preset time interval and the target sampling efficiency;

[0206] The estimated additional vehicle number calculation submodule is configured to calculate the estimated additional vehicle number at the target time based on the preset time interval, the estimated number of sampled vehicles, and the round-trip duration in transit.

[0207] The estimated additional vehicle number calculation submodule is further configured to:

[0208] Determining the expected number of return vehicles at the target time based on the preset time interval and the round-trip duration in transit;

[0209] The expected number of additional vehicles within the target time is calculated based on the expected number of sampling vehicles and the expected number of returning vehicles.

[0210] The estimated additional vehicle number calculation submodule is further configured to:

[0211] Classifying the round-trip duration in transit according to the time dimension to obtain the round-trip duration in transit corresponding to at least two time dimensions;

[0212] Determine the target round-trip duration corresponding to the target time dimension according to the target time dimension;

[0213] The number of vehicles expected to return within the target time is determined based on the preset time interval and the target round-trip duration.

[0214] The state determination module 406 is further configured to:

[0215] Get the number of waiting vehicles in the current sampling channel;

[0216] Calculate the expected number of waiting vehicles for sampling at the target time for the current sampling channel according to the number of waiting vehicles and the expected number of additional vehicles;

[0217] The quantitative relationship between the estimated number of waiting vehicles and a preset vehicle number threshold is determined, and the congestion state of the current sampling channel at the target time is determined based on the quantitative relationship.

[0218] The sampling module 408 includes:

[0219] The first sampling ratio adjustment submodule is configured as follows:

[0220] Determining a floating sampling ratio according to the reference ratio information, wherein the floating sampling ratio refers to an adjustable range of the current sampling ratio;

[0221] Calculate the change ratio of the number of vehicles according to the number of waiting vehicles, the expected number of additional vehicles and the preset vehicle number threshold;

[0222] According to the floating sampling ratio and the vehicle number change ratio, the current sampling ratio is adjusted to obtain a target sampling ratio.

[0223] The first sampling ratio adjustment submodule is further configured to:

[0224] Calculating a change in the number of vehicles based on the number of vehicles waiting for collection and the expected number of additional vehicles;

[0225] The vehicle number change ratio is calculated based on the vehicle number change amount and a preset vehicle number threshold.

[0226] The reference ratio information includes the highest sampling ratio, the lowest sampling ratio and the number of standard sampling vehicles;

[0227] The sampling module 408 includes:

[0228] The second sampling ratio adjustment submodule is configured as follows:

[0229] Counting the number of vehicles that have completed sampling, and determining whether the number of vehicles that have completed sampling is greater than the standard number of vehicles for sampling;

[0230] If so, determining the target sampling ratio based on the minimum sampling ratio;

[0231] If not, the target sampling ratio is determined based on the highest sampling ratio.

[0232] The second sampling ratio adjustment submodule is further configured to:

[0233] Determine whether the number of completed sampling vehicles reaches the target ratio of the standard sampling vehicles:

[0234] If yes, determining the target sampling ratio based on the highest sampling ratio and a first preset adjustment ratio;

[0235] If not, the target sampling ratio is determined based on the highest sampling ratio and a second preset adjustment ratio, wherein the first preset adjustment ratio is smaller than the second preset adjustment ratio.

[0236] The above is a schematic diagram of a vehicle sampling device according to this embodiment. It should be noted that the technical solution of the vehicle sampling device and the technical solution of the vehicle sampling method described above are based on the same concept. For details not described in detail in the technical solution of the vehicle sampling device, please refer to the description of the technical solution of the vehicle sampling method described above.

[0237] Figure 5 The block diagram of a computing device 500 according to one embodiment of the present disclosure is shown. Components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and a database 550 is used to store data.

[0238] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, or a near field communication (NFC) interface.

[0239] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 5The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art may add or replace other components as needed.

[0240] Computing device 500 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, personal digital assistant, laptop computer, notebook computer, netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or personal computer (PC). Computing device 500 can also be a mobile or stationary server.

[0241] The processor 520 is configured to execute the following computer-executable instructions, which, when executed by the processor, implement the steps of the above-mentioned vehicle sampling method.

[0242] The above is a schematic diagram of a computing device according to this embodiment. It should be noted that the technical solution of this computing device is based on the same concept as the technical solution of the aforementioned vehicle sampling method. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the aforementioned vehicle sampling method.

[0243] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned vehicle sampling method.

[0244] The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium is based on the same concept as the technical solution of the vehicle sampling method described above. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the vehicle sampling method described above.

[0245] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned vehicle sampling method.

[0246] The above is an illustrative embodiment of a computer program. It should be noted that the technical solution of this computer program and the technical solution of the vehicle sampling method described above are based on the same concept. For details not described in detail in the technical solution of the computer program, please refer to the description of the technical solution of the vehicle sampling method described above.

[0247] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0248] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content of the computer-readable medium may be appropriately increased or decreased based on the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.

[0249] It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0250] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0251] The preferred embodiments disclosed above are intended only to help illustrate this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A vehicle sampling method, characterized in that: include: Obtain historical sampling information and reference ratio information corresponding to the target coal type; Based on the historical sampling information, the expected number of additional vehicles at the target time is predicted, wherein the historical sampling information includes a target sampling efficiency of a target sampling machine and a round-trip time of the coal transport vehicles in transit; the predicting the expected number of additional vehicles at the target time based on the historical sampling information includes: calculating the expected number of sampling vehicles of the target sampling machine within the preset time interval according to a preset time interval and the target sampling efficiency; and calculating the expected number of additional vehicles at the target time according to the preset time interval, the expected number of sampling vehicles, and the round-trip time in transit; Determining the congestion state of the current sampling channel at the target time according to the number of waiting vehicles in the current sampling channel and the expected number of additional vehicles; When the congestion state is congested, the current sampling ratio is adjusted based on the number of waiting vehicles, the expected number of additional vehicles and the reference ratio information to determine the target sampling ratio, wherein the target sampling ratio is used to sample coal transport vehicles.

2. The vehicle sampling method according to claim 1, characterized in that: The step of calculating the expected number of additional vehicles within the target time period according to the preset time interval, the expected number of sampled vehicles, and the round-trip duration in transit includes: Determining the expected number of return vehicles at the target time based on the preset time interval and the round-trip duration in transit; The expected number of additional vehicles within the target time is calculated based on the expected number of sampling vehicles and the expected number of returning vehicles.

3. The vehicle sampling method according to claim 2, characterized in that: The step of determining the expected number of return vehicles at the target time based on the preset time interval and the round-trip duration includes: Classifying the round-trip duration in transit according to the time dimension to obtain the round-trip duration in transit corresponding to at least two time dimensions; Determine the target round-trip duration corresponding to the target time dimension according to the target time dimension; The number of vehicles expected to return within the target time is determined based on the preset time interval and the target round-trip duration.

4. The vehicle sampling method according to claim 1, characterized in that: The determining, based on the number of waiting vehicles in the current sampling channel and the expected number of additional vehicles, of the congestion state of the current sampling channel at the target time includes: Get the number of waiting vehicles in the current sampling channel; Calculate the expected number of waiting vehicles for sampling at the target time for the current sampling channel according to the number of waiting vehicles and the expected number of additional vehicles; The quantitative relationship between the estimated number of waiting vehicles and a preset vehicle number threshold is determined, and the congestion state of the current sampling channel at the target time is determined based on the quantitative relationship.

5. The vehicle sampling method according to claim 1, characterized in that: The adjusting the current sampling ratio based on the number of waiting vehicles, the expected number of additional vehicles, and the reference ratio information to determine the target sampling ratio includes: Determining a floating sampling ratio according to the reference ratio information, wherein the floating sampling ratio refers to an adjustable range of the current sampling ratio; Calculate the change ratio of the number of vehicles according to the number of waiting vehicles, the expected number of additional vehicles and the preset vehicle number threshold; According to the floating sampling ratio and the vehicle number change ratio, the current sampling ratio is adjusted to obtain a target sampling ratio.

6. The vehicle sampling method according to claim 5, characterized in that: Calculating the change ratio of the number of vehicles based on the number of waiting vehicles, the expected number of additional vehicles, and a preset vehicle number threshold includes: Calculating a change in the number of vehicles based on the number of vehicles waiting for collection and the expected number of additional vehicles; The vehicle number change ratio is calculated based on the vehicle number change amount and a preset vehicle number threshold.

7. The vehicle sampling method according to claim 1, characterized in that: The reference ratio information includes the highest sampling ratio, the lowest sampling ratio and the number of standard sampling vehicles; The adjusting the current sampling ratio based on the number of waiting vehicles, the expected number of additional vehicles, and the reference ratio information to determine the target sampling ratio includes: Counting the number of vehicles that have completed sampling, and determining whether the number of vehicles that have completed sampling is greater than the standard number of vehicles for sampling; If so, determining the target sampling ratio based on the minimum sampling ratio; If not, the target sampling ratio is determined based on the highest sampling ratio.

8. The vehicle sampling method according to claim 7, characterized in that: The determining the target sampling ratio based on the highest sampling ratio includes: Determine whether the number of completed sampling vehicles reaches the target ratio of the standard sampling vehicles: If yes, determining the target sampling ratio based on the highest sampling ratio and a first preset adjustment ratio; If not, the target sampling ratio is determined based on the highest sampling ratio and a second preset adjustment ratio, wherein the first preset adjustment ratio is smaller than the second preset adjustment ratio.

9. A vehicle sampling device, characterized in that: include: A data acquisition module is configured to acquire historical sampling information and reference ratio information corresponding to the target coal type; a data calculation module configured to predict the expected number of additional vehicles at the target time based on the historical sampling information, wherein the historical sampling information includes a target sampling efficiency of a target sampling machine and a round-trip time of the coal transport vehicles in transit; the data calculation module includes: an expected number of sampling vehicles calculation submodule configured to calculate the expected number of sampling vehicles of the target sampling machine within the preset time interval based on a preset time interval and the target sampling efficiency; and an expected number of additional vehicles calculation submodule configured to calculate the expected number of additional vehicles at the target time based on the preset time interval, the expected number of sampling vehicles, and the round-trip time in transit; A state determination module is configured to determine a congestion state of the current sampling channel at the target time according to the number of waiting vehicles in the current sampling channel and the expected number of additional vehicles; The sampling module is configured to adjust the current sampling ratio based on the number of waiting vehicles, the expected number of additional vehicles and the reference ratio information to determine the target sampling ratio when the congestion state is congested, wherein the target sampling ratio is used to sample coal transport vehicles.

10. A computing device, characterized in that include: memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the vehicle sampling method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium, characterized in that It stores computer-executable instructions, which, when executed by a processor, implement the steps of the vehicle sampling method according to any one of claims 1 to 8.