Visibility determination method, device, computer equipment and readable storage medium
The random forest regression model is used to process visibility-related characteristic parameters, which solves the problem of difficulty in visibility monitoring and forecasting and large errors in the existing technology, realizes the commercialization of monitoring and forecasting, and significantly reduces the average absolute error, which is applicable Ten-minute-by-minute forecasts from traffic weather stations.
Patent Information
- Application Number
- CN202111121000.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-09-18
- Filing Date
- 2021-09-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-09-24
AI Technical Summary
It is difficult for existing visibility monitoring and forecasting products to have both monitoring and forecasting functions, and most short-term forecasting products have large errors and cannot be effectively applied to actual operations and products.
A random forest regression model is used to monitor and forecast by obtaining characteristic parameters related to visibility, such as single meteorological element characteristics, inter-element relationship characteristics and variability characteristics. The model is built using a combination of training sets and hyperparameters, and the model hyperparameters are optimized to Improve forecast accuracy.
It has realized the commercialization of monitoring and forecasting, significantly reduced the average absolute error, improved the monitoring and forecasting effect, is suitable for most traffic weather stations, saves equipment costs, and can predict the visibility value of the next hour ten minutes by ten.
Smart Images

Figure CN113807454B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a data analysis system and application field, and in particular to a visibility determination method, device, computer equipment and readable storage medium. Background Art
[0002] Visibility is an indicator of atmospheric transparency. Its changes are affected by weather phenomena such as precipitation, sandstorms, fog, and haze. It is also related to the content of atmospheric pollutants and has an important impact on aviation, shipping, railways, highways and other fields. At present, visibility monitoring or forecasting products specifically for application scenarios such as cities, aviation, railways, and shipping are emerging in an endless stream, but most of these products can only achieve one of the monitoring or forecasting functions, and do not have both functions. In addition, there are few visibility monitoring and forecasting products for highway traffic, and the models and methods are relatively simple.
[0003] Visibility monitoring mainly includes visual monitoring, instrument monitoring and image / video recognition monitoring. Visual monitoring is mainly based on manual observation, that is, the maximum horizontal distance at which a person with normal vision can see and recognize the outline of a target object (black, moderate size) from the sky background under the current weather conditions. However, manual observation lacks standardization and objectivity, and the data error is large; instrument monitoring mainly includes optical instruments such as transmission visibility meters, scattered visibility meters, and lidar visibility meters. The data is objective and accurate, but the instrument maintenance cost is high and the operation is complicated; image / video monitoring is a technology that uses video or camera images and various image recognition technologies to judge the visibility in the image. This technology improves the universality of visibility monitoring, but the hardware equipment is expensive and is limited by the range of camera and video monitoring. The upper limit of visibility that the model can monitor is low. In addition, the model has high requirements for sample data, so it is difficult to truly commercialize and productize it. In addition, the current meteorological stations, regional stations, and transportation stations all observe conventional meteorological elements, but few are equipped with cameras or video surveillance equipment, which limits the promotion and use of image recognition technology. The large amount of accumulated meteorological data has no one interested in it, resulting in data waste.
[0004] Visibility forecasts mainly include numerical model forecasts and statistical forecasts. Numerical model forecasts are mainly based on data equations such as fluid mechanics, thermodynamics, and atmospheric dynamics, and are based on meteorology and physical mechanics principles to predict the state of atmospheric motion and weather phenomena in the future, such as the currently common ECMWF, GFS, BJ-RUC, etc. Statistical forecasts are mainly based on mathematical formulas, revealing the relationship between environmental factors and meteorological factors and visibility from a purely mathematical perspective, and realizing the forecast of visibility, such as multivariate linear review, BP neural network, etc.
[0005] Since statistical methods can adjust input variables according to meteorological data, effectively make up for the shortcomings of numerical model forecasting that some variables are difficult to obtain, and have high forecast accuracy, coupled with the development of computer technology and the advent of the big data era, there are more and more forecast products based on machine learning and deep learning. However, most short-term forecast models are point-to-point forecast products based on the current time forecast for a certain time in the future, and the average absolute error of the forecasted visibility is higher than 1000m. Summary of the invention
[0006] Therefore, the technical problem to be solved by the present invention is to overcome the difficulties in commercializing and productizing existing visibility monitoring and forecasting, the inability to combine both monitoring and forecasting functions, and the large errors in most short-term forecast products, thereby providing a visibility determination method, device, computer equipment and readable storage medium.
[0007] To achieve the above object, the present invention adopts the following technical solution:
[0008] According to a first aspect, the present invention discloses a visibility determination method, the visibility determination method comprising:
[0009] Obtaining characteristic parameters related to visibility;
[0010] The characteristic parameters related to visibility are input into a trained random forest regression model to obtain visibility.
[0011] Optionally, the characteristic parameters related to visibility include one or more of the following: single meteorological element characteristics, inter-element relationship characteristics, comprehensive diagnostic characteristics, and variability characteristics.
[0012] Among them, the single meteorological element characteristics required by the monitoring model include one or more of the following: instantaneous wind speed, temperature, relative humidity; the relationship characteristics between the elements include one or more of the following: temperature difference between the upper and lower layers, water vapor pressure difference between the upper and lower layers; the variability characteristics include one or more of the following: wind speed variability of 40, 50, 60 minutes, temperature difference between the upper and lower layers of 30, 50 minutes, relative humidity variability of 20 minutes, relative humidity variability of 60 minutes at 30 cm above the ground, water vapor pressure difference of 50 minutes at 30 cm above the ground, temperature variability of 10 minutes, dew point difference of 10 cm above the ground, 50 minutes, temperature variability of 60 minutes, dew point temperature variability of 60 minutes, vapor pressure variability of 30 minutes.
[0013] Among them, the single meteorological element characteristics required by the forecast model include one or more of the following: temperature, relative humidity, and water vapor pressure; the relationship characteristics between the elements include one or more of the following: dew point temperature difference between the upper and lower layers; the comprehensive diagnostic characteristics include one or more of the following: humidity visibility index, sensible heat flux, and latent heat flux; the variability characteristics include one or more of the following: 5-minute temperature variability, 5- and 10-minute variability of the upper and lower layer temperature difference, 5- and 10-minute variability of the upper and lower layer humidity difference, 5- and 10-minute variability of the sensible heat flux, 5- and 10-minute variability of the latent heat flux, 10-minute variability of water vapor pressure, and 10-minute variability of visibility.
[0014] Optionally, the training method of the random forest regression model includes:
[0015] Get the training set and current hyperparameter combination;
[0016] Establishing a current random forest regression model corresponding to the current hyperparameter combination according to the training set;
[0017] Get the test set and the true value corresponding to the test set;
[0018] Inputting the test set into the current random forest regression model to obtain a final prediction value;
[0019] Determine a model score based on the predicted value and the true value;
[0020] Traversing a plurality of preset hyperparameter combinations, and determining an optimal modeling hyperparameter combination of the random forest regression model according to the obtained plurality of model scores;
[0021] The random forest regression model is obtained according to the optimal modeling hyperparameter combination.
[0022] Optionally, establishing a corresponding current random forest regression model according to the current hyperparameter combination includes:
[0023] Performing replacement sampling in the training set to obtain at least two training subsets;
[0024] For any training subset, determine the classification and regression tree model corresponding to the training subset, and traverse all training subsets to obtain the current random forest regression model corresponding to the current hyperparameter combination.
[0025] Optionally, inputting the test set into the current random forest regression model to obtain a final prediction value comprises:
[0026] Determine the unit domain to which each test sample in the test set belongs in each classification and regression tree model and the average value of the corresponding unit domain, that is, the predicted value of each classification and regression tree model;
[0027] Determine the average of all classification and regression tree model prediction values, which is the final prediction value of the corresponding test sample.
[0028] According to the second aspect, the present invention also discloses a visibility determination device, including: a parameter acquisition module: used to obtain characteristic parameters related to visibility; a feature input module: used to input the characteristic parameters related to visibility into a trained random forest regression model to obtain visibility.
[0029] According to the third aspect, the present invention also discloses a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the visibility determination method as described in the first aspect or any optional embodiment of the first aspect.
[0030] According to a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the visibility determination method as described in the first aspect or any optional embodiment of the first aspect are implemented.
[0031] The technical solution of the present invention has the following advantages:
[0032] 1. The visibility obtained by implementing the present invention, whose training samples are derived from conventional meteorological element data detected by traffic meteorological stations, can not only save equipment costs, but also make full use of existing historical data. The feature scheme used is applicable to most traffic meteorological stations and is easy to promote on a large scale.
[0033] 2. The forecast model used in the present invention is a point-to-many model, which can forecast the visibility value of ten minutes each in the next hour based on the current time.
[0034] 3. Compared with other traditional similar models, the monitoring and forecasting model used in the present invention has a greatly reduced mean absolute error and significantly improved monitoring and forecasting effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1A flow chart of a visibility determination method according to an embodiment of the present invention;
[0037] Figure 2 A schematic diagram of a flow chart of a random forest regression algorithm in an embodiment of the present invention;
[0038] Figure 3 A schematic diagram of a flow chart of a classification and regression tree algorithm in an embodiment of the present invention;
[0039] Figure 4 is a structural schematic diagram of a visibility determination device in an embodiment of the present invention;
[0040] Figure 5 Schematic diagram of the structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] In the description of the present invention, it should be noted that the term "and / and / or" used in the present specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0043] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0044] The embodiment of the present invention discloses a visibility determination method, such as Figure 1 As shown, the method comprises the following steps:
[0045] Step 101, obtaining characteristic parameters related to visibility;
[0046] Exemplarily, in obtaining characteristic parameters related to visibility, the monitoring model needs to include one or more of meteorological element characteristics, relationship characteristics between elements, comprehensive diagnostic characteristics, and variability characteristics, wherein the single meteorological element characteristics include one or more of the following: instantaneous wind speed, temperature, and relative humidity; the relationship characteristics between elements include one or more of the following: temperature difference between upper and lower layers, and water vapor pressure difference between upper and lower layers; the variability characteristics include one or more of the following: 40, 50, and 60 minute variability of wind speed, 30 and 50 minute variability of temperature difference between upper and lower layers, 20 minute variability of relative humidity, 60 minute variability of relative humidity 30 cm above the ground, 50 minute variability of water vapor pressure difference between upper and lower layers, 10 minute variability of temperature, 10 and 50 minute variability of dew point difference 30 cm above the ground, 60 minute variability of temperature, 60 minute variability of dew point temperature, and 30 minute variability of air pressure.
[0047] The forecast model needs to include one or more of the characteristics of meteorological elements, characteristics of the relationship between elements, comprehensive diagnostic characteristics, and variability characteristics, wherein the single meteorological element characteristics include one or more of the following: temperature, relative humidity, and water vapor pressure; the characteristics of the relationship between elements include one or more of the following: dew point temperature difference between the upper and lower layers; the comprehensive diagnostic characteristics include one or more of the following: humidity visibility index, sensible heat flux, and latent heat flux; the variability characteristics include one or more of the following: 5-minute variability of temperature, 5- and 10-minute variability of the upper and lower layer temperature difference, 5- and 10-minute variability of the upper and lower layer humidity difference, 5- and 10-minute variability of the sensible heat flux, 5- and 10-minute variability of the latent heat flux, 10-minute variability of water vapor pressure, and 10-minute variability of visibility.
[0048] Step 102: Input the characteristic parameters related to visibility into a trained random forest regression model to obtain visibility.
[0049] Exemplarily, in a training method for determining a regression tree model, a training set and a current hyperparameter combination are first obtained; then, replacement sampling is performed in the training set to obtain at least two training subsets; for any training subset, a classification and regression tree model corresponding to the training subset is determined, and all training subsets are traversed to obtain a current random forest regression model corresponding to the current hyperparameter combination; then a test set and true values corresponding to the test set are obtained; predicted values of the test set samples are determined respectively; the current predicted values are compared with the true values to calculate a model score; multiple preset hyperparameter combinations are traversed, and the optimal hyperparameter combination for modeling the random forest regression model is determined based on the multiple scores obtained; and visibility is obtained based on the random forest regression model established based on the optimal hyperparameter combination.
[0050] Among them, the training set sample data used in the present invention is derived from the conventional meteorological element data detected by the traffic meteorological station, which can not only save equipment costs but also make full use of the existing historical data. The feature scheme used is applicable to most traffic meteorological stations and is easy to promote on a large scale.
[0051] Optionally, in some embodiments of the present invention, Figure 2 As shown, sample data is randomly extracted from the original training set with replacement to form a sample set S (S>1); the classification and regression tree function is used to establish a corresponding classification and regression tree model for each randomly extracted sample set S;
[0052] The classification and regression tree is the core weak learning machine of the random forest regression model. It is a machine learning method that splits into a decision tree in the form of a binary tree under the condition of given input variables and finally outputs the conditional probability distribution of the predicted value. This method can solve both the classification problem of discrete data and the regression problem of continuous data. Its algorithm is as follows Figure 3 shown.
[0053] The essence of classification and regression trees is to find the optimal splitting point for each type of feature, and then perform binary tree splitting according to the optimal splitting point according to the importance of each feature until the stopping condition is met (generally reaching the preset tree depth, the minimum number of samples for stopping splitting, or the tree has been completely split), and finally divide the sample data into a finite number of unit domains. The average value of all output values in each unit domain is the optimal output value of the unit domain. The mathematical idea is as follows:
[0054] For a sample set with n types of features, each type of feature has a segmentation variable V n The sample set S is divided into two unit domains, R1 and R2. All output values in the R1 unit domain are less than the segmentation variable, and all output values in the R2 unit domain are greater than or equal to the segmentation variable. Therefore, the optimal output values corresponding to the two unit domains are:
[0055]
[0056] Among them, C m1 and C m2 is the optimal output value of the R1 and R2 unit domains divided by the mth class (1≤m≤n) feature; i and j are the number of samples corresponding to the two unit domains after division, y i and j They are the output values in the corresponding two unit domains. From this, the loss function can be obtained:
[0057]
[0058] When the loss function L reaches the minimum, the corresponding (m,V m) is the optimal segmentation node of the mth type of feature, and its corresponding segmentation variable is V m .
[0059] Each region is repeatedly divided according to the optimal output value and the loss function until the stop condition is met, and finally all the input feature data can be divided into R k The average value of the output values contained in each unit domain is the predicted value. Therefore, the final classification and regression tree function is:
[0060]
[0061] Among them, I(x∈R k ) is a logical value, if k x ∈R, then I(x∈R k )=1, otherwise I(x∈R k )=0;C k The unit domain R k The essence of the final classification and regression tree function is to first determine which unit domain the input variable belongs to, and then return the predicted value of the unit domain.
[0062] Optionally, in some embodiments of the present invention, a test set B is obtained, and according to the classification and regression tree model determined by the training set, the unit domain T and the average value C of the corresponding unit domain of each sample in the test set can be determined. t , so the average value C t The test results of this classification and regression tree model can be obtained.
[0063] Optionally, the current prediction value can be obtained from the prediction results of all classification and regression tree models and the number of tree models Q:
[0064]
[0065] Where Q is the number of tree models in the random forest.
[0066] Optionally, by traversing all hyperparameter combinations and deriving the score of the model corresponding to the current hyperparameter combination based on the relationship between the obtained predicted value Y and the true value, the optimal hyperparameter combination of the random forest regression model can be determined, and then the optimal random forest regression model can be obtained, and visibility can be obtained based on this random forest regression model.
[0067] The visibility obtained by this method uses training samples from conventional meteorological element data detected by traffic meteorological stations, which can save equipment costs and make full use of existing historical data. The feature scheme used is applicable to most traffic meteorological stations and is easy to promote on a large scale. The forecast model used is a point-to-many model, which can forecast the visibility value of ten minutes in the next hour based on the current time.
[0068] Optionally, the obtained random forest regression model is subjected to a performance test, a new validation set sample C is obtained, and a model prediction value z is obtained based on the random forest regression model. i , and based on the true value w i And the number of validation samples n, the mean absolute error is obtained:
[0069]
[0070] The verification results of the different visibility intervals of the monitoring model and the forecast model for ten minutes in the next hour and the average absolute error of the overall sample are shown in Table 1. The interval threshold is from the "Standard of the People's Republic of China - Horizontal Visibility" (GB / T33673-2017).
[0071] Table 1 Average absolute error of monitoring and 10-minute forecast models (unit: m)
[0072]
[0073] Note: The threshold points used to divide visibility in the table are from the national level visibility classification standard (GB / T33673-2017), and the interval is open on the left and closed on the right.
[0074] The forecast model used in the present invention is a point-to-many model, which can forecast the visibility value of ten minutes each in the next hour based on the current time. Compared with other traditional similar models, the monitoring and forecasting model used has a greatly reduced average absolute error and significantly improved monitoring and forecasting effects.
[0075] The embodiment of the present invention also provides a visibility determination device, such as Figure 4 As shown, the device comprises:
[0076] The parameter acquisition module 301 is used to acquire characteristic parameters related to visibility, and the details are as described in step 101;
[0077] The feature input module 302 is used to input the feature parameters related to visibility into the trained random forest regression model to obtain visibility. For details, refer to step 102.
[0078] The embodiment of the present invention also provides a computer device, such as Figure 4As shown, the computer device may include a processor 401 and a memory 402, wherein the processor 401 and the memory 402 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0079] The processor 401 may be a central processing unit (CPU). The processor 401 may also be other general-purpose processors, digital signal processors (DAP), application-specific integrated circuits (AAIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0080] The memory 402 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the key shielding method of the visibility determination device in the embodiment of the present invention (for example, Figure 4 The processor 41 executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory 402, that is, the visibility determination method in the above method embodiment is implemented.
[0081] The memory 402 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 401, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 402 may optionally include a memory remotely arranged relative to the processor 401, and these remote memories may be connected to the processor 401 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0082] The one or more modules are stored in the memory 402, and when executed by the processor 401, the following is performed: Figure 1-3 Visibility determination method in the illustrated embodiment.
[0083] For details of the above computer equipment, please refer to Figure 1-3The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.
[0084] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FlaAh Memory), a hard disk (Hard DiAk Drive, abbreviated: HDD) or a solid-state drive (ASD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0085] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A visibility determination method, characterized in that: include: Obtaining characteristic parameters related to visibility; Inputting the characteristic parameters related to visibility into a trained random forest regression model to obtain visibility; The training method of the random forest regression model includes: Get the training set and current hyperparameter combination; Establishing a current random forest regression model corresponding to the current hyperparameter combination according to the training set; Get the test set and the true value corresponding to the test set; Inputting the test set into the current random forest regression model to obtain a final prediction value; Determine a model score based on the predicted value and the true value; Traversing a plurality of preset hyperparameter combinations, and determining an optimal modeling hyperparameter combination of the random forest regression model according to the obtained plurality of model scores; Obtaining the random forest regression model according to the optimal modeling hyperparameter combination; The establishing of a corresponding current random forest regression model according to the current hyperparameter combination comprises: Performing replacement sampling in the training set to obtain at least two training subsets; For any training subset, determine the classification and regression tree model corresponding to the training subset, and traverse all training subsets to obtain the current random forest regression model corresponding to the current hyperparameter combination; The step of inputting the test set into the current random forest regression model to obtain a final prediction value comprises: Determine the unit domain to which each test sample in the test set belongs in each classification and regression tree model and the average value of the corresponding unit domain, that is, the predicted value of each classification and regression tree model; Determine the average of all classification and regression tree model prediction values, which is the final prediction value of the corresponding test sample.
2. The visibility determination method according to claim 1, characterized in that: The characteristic parameters related to visibility include at least one of the following: single meteorological element characteristics, inter-element relationship characteristics, comprehensive diagnostic characteristics, and variability characteristics.
3. The visibility determination method according to claim 2, characterized in that: The random forest regression model is a visibility monitoring model, and the single meteorological element characteristics include at least one of the following: instantaneous wind speed, temperature, and relative humidity; the relationship characteristics between the elements include at least one of the following: temperature difference between the upper and lower layers, and water vapor pressure difference between the upper and lower layers; the variability characteristics include at least one of the following: wind speed variability of 40, 50, and 60 minutes, temperature difference between the upper and lower layers of 30 and 50 minutes, relative humidity variability of 20 minutes, relative humidity variability of 60 minutes at 30 cm above the ground, water vapor pressure difference between the upper and lower layers of 50 minutes, temperature variability of 10 minutes, dew point difference 30 cm above the ground of 10 and 50 minutes, temperature variability of 60 minutes, dew point temperature variability of 60 minutes, and air pressure variability of 30 minutes.
4. The visibility determination method according to claim 2, characterized in that: The random forest regression model is a visibility prediction model, and the single meteorological element characteristics include at least one of the following: temperature, relative humidity, and water vapor pressure; the relationship characteristics between the elements include: dew point temperature difference between the upper and lower layers; the comprehensive diagnostic characteristics include at least one of the following: humidity visibility index, sensible heat flux, and latent heat flux; the variability characteristics include at least one of the following: 5-minute temperature variability, 5- and 10-minute variability of upper and lower layer temperature difference, 5- and 10-minute variability of upper and lower layer humidity difference, 5- and 10-minute variability of sensible heat flux, 5- and 10-minute variability of latent heat flux, 10-minute variability of water vapor pressure, and 10-minute variability of visibility.
5. A visibility determination device, characterized in that: include: Parameter acquisition module: used to obtain characteristic parameters related to visibility; Feature input module: used for inputting the feature parameters related to visibility into the trained random forest regression model to obtain visibility; The training method of the random forest regression model includes: Get the training set and current hyperparameter combination; Establishing a current random forest regression model corresponding to the current hyperparameter combination according to the training set; Get the test set and the true value corresponding to the test set; Inputting the test set into the current random forest regression model to obtain a final prediction value; Determine a model score based on the predicted value and the true value; Traversing a plurality of preset hyperparameter combinations, and determining an optimal modeling hyperparameter combination of the random forest regression model according to the obtained plurality of model scores; Obtaining the random forest regression model according to the optimal modeling hyperparameter combination; The establishing of a corresponding current random forest regression model according to the current hyperparameter combination comprises: Performing replacement sampling in the training set to obtain at least two training subsets; For any training subset, determine the classification and regression tree model corresponding to the training subset, and traverse all training subsets to obtain the current random forest regression model corresponding to the current hyperparameter combination; The step of inputting the test set into the current random forest regression model to obtain a final prediction value comprises: Determine the unit domain to which each test sample in the test set belongs in each classification and regression tree model and the average value of the corresponding unit domain, that is, the predicted value of each classification and regression tree model; Determine the average of all classification and regression tree model prediction values, which is the final prediction value of the corresponding test sample.
6. A computer device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor performs the steps of the visibility determination method as described in any one of claims 1-4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the visibility determination method according to any one of claims 1 to 4 are implemented.
