Random forest model training method and device
Through random forest model training and identification, the problem of low efficiency in manual identification of indoor outdoor extension cells in mobile communication systems is solved, efficient outdoor outdoor extension cell identification is achieved, and the identification accuracy and network quality are improved.
Patent Information
- Application Number
- CN202110275274.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-15
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-03-15
AI Technical Summary
In mobile communication systems, there is a problem of low efficiency in manually identifying indoor separation base stations. About 13% of the indoor separation base station drawings deviate from the actual construction design, which requires a lot of manpower and material resources to check and confirm.
The random forest model training method is used to obtain the MR data set of indoor subdivisions, train the random forest model, and use these models to identify indoor subdivisions, and select the model with the highest accuracy for prediction to improve the identification efficiency.
It significantly improves the identification efficiency of indoor extension cells, saves the resources required for manual identification, and improves network quality and identification accuracy.
Smart Images

Figure CN115082767B
Abstract
Description
Technical Field
[0001] This document relates to the field of communication technology, and in particular to a random forest model training method and device. Background Art
[0002] In mobile communication systems, the scale of mobile communication networks is getting larger and larger, and the corresponding wireless network structure is becoming more and more complex. The indoor signal distribution system is also called the indoor distribution system. It uses the indoor antenna distribution system to evenly distribute the base station signal in every corner of the room, so as to ensure that every area in the room can achieve ideal signal coverage, thereby improving the mobile communication environment in the building; the cell covered by the indoor distribution system is called the indoor distribution cell.
[0003] At present, the only way to identify the external antenna in the indoor distribution area is to manually check the indoor distribution design drawings output during the construction of the indoor distribution site to determine whether the indoor distribution system is designed with an external antenna. However, about 13% of the indoor distribution base station drawings are different from the actual construction design, and maintenance personnel need to be coordinated to go to the indoor distribution site for investigation and confirmation, which requires a lot of manpower and material resources to complete the identification of the external antenna in the indoor distribution system. Summary of the invention
[0004] The purpose of one embodiment of the present specification is to provide a random forest model training method and device to solve the problem of low efficiency caused by manual identification of room division and extra-division cells.
[0005] To solve the above technical problems, an embodiment of this specification is implemented as follows:
[0006] In a first aspect, an embodiment of this specification provides a random forest model training method, comprising:
[0007] Acquire a first MR data set corresponding to the first room sub-cell set and a second MR data set corresponding to the second room sub-cell set;
[0008] Based on the first MR data set and the feature quantity, a random forest model is trained with preset model parameters, and at least one random forest model is trained with at least one modified model parameter;
[0009] Inputting the second MR data set into each random forest model to perform room division and external lead identification to obtain a corresponding room division and external lead cell list;
[0010] A target random forest model is selected from among the random forest models according to the indoor area introduction cell list.
[0011] In a second aspect, another embodiment of the present specification provides a random forest model training device, comprising:
[0012] A data acquisition module is configured to acquire a first MR data set corresponding to the first room sub-cell set and a second MR data set corresponding to the second room sub-cell set;
[0013] A model training module, configured to train a random forest model with preset model parameters based on the first MR data set and the feature quantity, and train at least one random forest model with at least one modified model parameter;
[0014] A model testing module is configured to input the second MR data set into each random forest model to perform room division and external lead identification to obtain a corresponding room division and external lead cell list;
[0015] The model selection module is configured to select a target random forest model from among the random forest models according to the indoor area extracellular cell list.
[0016] In a third aspect, another embodiment of the present specification provides a random forest model training device, comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the steps of the random forest model training method as described in the first aspect above.
[0017] In a fourth aspect, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the random forest model training method described in the first aspect above are implemented.
[0018] The random forest model training method provided in this embodiment first obtains a first MR data set corresponding to a first set of indoor cells and a second MR data set corresponding to a second set of indoor cells, trains a random forest model with preset model parameters based on the first MR data set and the feature quantity, and trains at least one random forest model with at least one modified model parameter; then inputs the second MR data set into each random forest model for indoor extra-introduction identification to obtain a corresponding indoor extra-introduction cell list, and finally selects a target random forest model from each random forest model according to the indoor extra-introduction cell list, so that the target random forest model can be used to predict the indoor extra-introduction cell in the future, thereby improving the efficiency of indoor extra-introduction cell identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in one or more embodiments of the present specification, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0020] Figure 1 A processing flow chart of a random forest model training method provided in one embodiment of this specification;
[0021] Figure 2 A processing flow chart of a random forest model training method applied to a room separation and external introduction recognition scenario provided in one embodiment of this specification;
[0022] Figure 3 A schematic diagram of a random forest model training device provided in one embodiment of this specification;
[0023] Figure 4 A schematic diagram of the structure of a random forest model training device provided for one embodiment of this specification. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0025] An embodiment of a random forest model training method provided in this specification:
[0026] Reference Figure 1 , which shows a random forest model training method processing flow chart provided in this embodiment, referring to Figure 2 , which shows a processing flow chart of a random forest model training method applied to room separation and external introduction recognition scenarios provided in this embodiment.
[0027] Reference Figure 1 The random forest model training method provided in this embodiment specifically includes the following steps S102 to S108.
[0028] Step S102, obtaining a first MR data set corresponding to the first room sub-cell set and a second MR data set corresponding to the second room sub-cell set.
[0029] The random forest model training method provided in this embodiment divides the indoor cell set into two parts, uses the MR data of one part of the indoor cells and combines multiple model parameters to train the corresponding random forest model, uses the MR data of the other part of the indoor cells to test the recognition accuracy of the trained random forest models, and selects the random forest model with the highest accuracy in the test results as the target random forest model for subsequent recognition and prediction of external or non-external introduction of indoor cells of unknown classification. Specifically, as long as the MR (Measurement Report) data and PRACH (Physical Random Access Channel) access distance data of the indoor cells are input into the target random forest model, the random forest model can predict the indoor cells of the indoor external introduction type, thereby improving the efficiency of indoor external introduction cell identification while ensuring the accuracy, and at the same time, improving the convenience of optimizing the characteristics of indoor external introduction cells and improving network quality, and saving a large amount of resources required for manual identification of indoor external introduction cells.
[0030] The first set of indoor cells is a set of indoor cells divided from indoor cells for model training; the second set of indoor cells is a set of indoor cells divided from indoor cells for model testing.
[0031] The first MR data set includes the MR data of each indoor cell in the first indoor cell set and / or the cell identifier of each indoor cell. The MR data includes a TA (Timing Advance) value; the MR data is the actual measurement result of user communication collected by network communication equipment during the process of the user terminal initiating a service and communicating with the base station, covering indicators such as the network coverage, service quality, and cell or carrier transmission function of the cell. By collecting MR data from the entire network and analyzing the MR data, the distribution of current users can be discovered, and the cell coverage can also be evaluated to discover problems in the network, such as poor coverage in the network, user disconnection, etc., so as to optimize the network and improve the user experience; correspondingly, the second MR data set includes the MR data of each indoor cell in the second indoor cell set and / or the cell identifier of each indoor cell.
[0032] In specific implementation, in order to make the random forest model predict the indoor external introduction cell more accurately, the MR data of the indoor cell obtained is divided into two parts, a training data set and a test data set, with the indoor cell as the unit. The training data set is used to train the random forest model, and the test data set is used to test the accuracy of the trained random forest model, so as to select the random forest model with the highest accuracy to predict the indoor external introduction cell. In addition, since there is no indoor external introduction but the coverage distance is far, such as indoor cells in large shopping malls, train stations and optical fiber extension scenes, if the TA value is used as a feature quantity, it is easy to misjudge such indoor cells as indoor external introduction cells. Therefore, in order to improve the accuracy of the trained random forest model for predicting the indoor external introduction cell, before dividing the training data set and the test data set, the indoor cells that do not have indoor external introduction but have a long coverage distance are deleted. Based on this, in an optional implementation manner provided by this embodiment, before the step of obtaining the first MR data set corresponding to the first indoor cell set and the second MR data set corresponding to the second indoor cell set is executed, the first indoor cell and the second indoor cell are divided in the following manner:
[0033] Acquire the MR data set of the room sub-area;
[0034] Using a screening algorithm to screen the indoor cells to obtain effective indoor cells;
[0035] Dividing the effective indoor cells according to a preset ratio to obtain the first indoor cell set and the second indoor cell set;
[0036] The MR data set of each room cell in the first room cell set constitutes the first MR data set; the MR data set of each room cell in the second room cell set constitutes the second MR data set.
[0037] For example, 114 indoor cells are selected as the data set. The indoor extracellular types of these 114 indoor cells are known. The cell identifiers of these 114 indoor cells are input into the screening algorithm to delete the misjudged indoor cells, and the indoor cells in scenes such as large shopping malls, high-speed railway stations and optical fiber extension are deleted to obtain 100 valid indoor cells. These 100 indoor cells with known indoor extracellular types are divided into training data sets and test data sets in a ratio of 7:3, and then an MR data set consisting of MR data of 70% of the indoor cells divided into the training data set and an MR data set consisting of MR data of 30% of the indoor cells divided into the test data set are obtained.
[0038] In the process of training the random forest model, in order to improve the efficiency of decision tree training, it is necessary to select a feature quantity that has the ability to classify the training data to train the decision tree. Usually, the criterion for selecting the feature quantity is information gain, or information gain ratio, or Gini index, etc. The information gain of the feature quantity is calculated each time the decision tree is constructed, and their sizes are compared. The feature quantity with the largest information gain, or the feature quantity with the largest information gain ratio, or the feature quantity with the smallest Gini index is selected. In an optional implementation provided in this embodiment, the feature quantity is constructed in the following manner:
[0039] Determine a starting threshold value according to the TA value of the indoor non-external cell, and determine at least one correction threshold value according to the starting threshold value;
[0040] Calculating the proportion of sampling points in the first MR data set whose TA values are greater than the starting threshold, and respectively calculating the proportion of sampling points in the first MR data set whose TA values are greater than each correction threshold;
[0041] The characteristic quantity is constructed by taking the calculated sampling point ratio as the characteristic field.
[0042] Specifically, a starting threshold is determined based on the actual TA value of the indoor non-external cell. For example, the average value of the TA values of multiple actual indoor non-external cells is determined, and the average value is used as the starting threshold, and then at least one correction threshold is determined based on the starting threshold.
[0043] For example, after manual investigation, it was found that the TA value of indoor non-external cells is generally not greater than 3. Therefore, 3 is determined as the starting threshold, and 5, 8, and 10 are determined as correction thresholds. The proportion of sampling points with TA values greater than 3, greater than 5, greater than 8, and greater than 10 in the MR data of the indoor cells divided into the training data set are calculated respectively, and the calculated four sampling point proportions are used as four fields to construct feature quantities.
[0044] In addition, the feature value can also be a data table determined based on the starting threshold and at least one correction threshold. For example, TA>3, TA>5, TA>8 and TA>10 are used as four fields to construct the feature value, and the random forest model is trained based on the feature value and the first MR data set. Specifically, in the process of training the random forest model, data tables of TA>3, TA>5, TA>8 and TA>10 are obtained respectively, and the splitting characteristics of the decision tree are determined based on the data in the data table.
[0045] Step S104: Based on the first MR data set and the feature quantity, a random forest model is trained with preset model parameters, and at least one random forest model is trained with at least one modified model parameter.
[0046] The preset model parameters include the initially set, i.e., default model parameters of the initial random forest model before training. For example, the number of subtrees (decision trees) in the preset model parameters is 10, and the evaluation criterion is Gini (Gini index). The corrected model parameters refer to the model parameters obtained by modifying the preset model parameters. For example, according to the preset model parameters, the number of subtrees is modified to 9 and 11, and the evaluation criterion is Gini. Random forest refers to a classifier that uses multiple decision trees to train and predict samples. The process of training a random forest model is actually a process of constructing multiple decision trees and integrating them to obtain a more accurate and stable model. The random forest constructs multiple decision trees. When predicting a certain sample, the prediction results of each decision tree in the random forest are statistically analyzed, and then the final result is determined through a voting mechanism from these prediction results.
[0047] In specific implementation, the process of constructing each decision tree is the training process of the random forest model. Among them, for any one of the decision trees that make up the random forest model, in the process of constructing this decision tree, one core process is random sampling, and the other core process is complete splitting. First is the process of random sampling. Random sampling includes row sampling and column sampling. For row sampling, sampling is carried out in a with-replacement manner, that is, in the sampled sample set, there may be duplicate samples. Assuming there are N input samples, then there are also N sampled samples. This makes it so that when training the random forest model, the samples input to each decision tree are not all the samples, making it relatively less likely to overfit. For column sampling, m (m << M) are selected from M feature quantities. After that, the data after sampling is used to construct a decision tree in a completely split manner, so that each leaf node of the decision tree either cannot be split further or all samples point to the same classification.
[0048] Specifically, in the process of training the random forest model, the input first MR dataset is arranged in rows and columns, and row and column sampling is performed multiple times. Multiple decision trees are constructed based on the sampled data. In an optional implementation manner provided in this embodiment, the random forest model is composed of a preset number of decision trees.
[0049] The decision tree is obtained through training in the following manner:
[0050] Randomly sample the first MR dataset, and determine the splitting feature according to the feature quantity;
[0051] Construct the decision tree according to the sampled MR data and the splitting feature.
[0052] For example, the first input MR data set is sampled, and the splitting feature is determined according to the input feature quantity, and a subtree is constructed according to the sampled data and the splitting feature. In this way, 10 such subtrees are constructed. These 10 subtrees together constitute a random forest model. The number of subtrees is adjusted, and the corresponding random forest models are trained with 9 and 11 subtrees respectively.
[0053] In addition, the random forest model can also be trained in the following manner: first, the input first MR data set and feature values are sampled, and subtrees are constructed according to the sampled data and the evaluation standard Gini, and 10 subtrees are constructed using the above method. These 10 subtrees constitute a random forest model; and then the same method is used to train random forest models containing 9 subtrees and 11 subtrees respectively. It should be noted that the adjustment method and number of adjustments for the correction model parameters can be determined in combination with the recognition accuracy during the specific execution process, and this embodiment is not limited here.
[0054] Step S106, inputting the second MR data set into each random forest model to perform room division and external introduction identification to obtain a corresponding room division and external introduction cell list.
[0055] The indoor external introduction identification refers to identifying whether the corresponding indoor cell is an indoor external introduction cell based on the input MR data of the indoor cell; the indoor external introduction cell refers to an indoor cell designed with an external antenna; the indoor external introduction cell list is a list generated by each random forest model based on the identification result and the cell identifier of the indoor external introduction cell after performing the indoor external introduction identification, or is an identification result of the indoor cell generated based on the identification result and in the order of the input MR data.
[0056] In the specific implementation, in order to select the random forest model with the highest recognition accuracy of the indoor division extra-cell to predict the indoor division extra-cell, the MR data of the indoor division cell divided into the test data set is used to test at least one random forest model obtained by training. Specifically, each random forest model is used to perform indoor division extra-cell recognition on the second MR data set. In an optional implementation manner provided in this embodiment, the indoor division extra-cell recognition is specifically performed in the following manner:
[0057] Inputting the input second MR data set into each decision tree, and obtaining the classification results output by each decision tree;
[0058] Determine the recognition result according to the classification result and the preset voting mechanism;
[0059] The indoor area list is generated and output based on the identification results.
[0060] Specifically, in the process of indoor classification and external introduction identification using the random forest model, the decision trees in the random forest model are used to classify the MR data set, and the classification results of each decision tree are obtained respectively. The classification results of each decision tree are voted according to the voting mechanism of the random forest model (for example, the minority obeys the majority voting mechanism, or the one-vote veto system, or the weighted majority), and the classification results determined by the voting are used as the recognition results of the random forest model for the MR data set and output.
[0061] For example, the MR data set used for testing is input into multiple random forest models obtained through training. Each random forest model inputs the input MR data set into each decision tree of the random forest model, and each decision tree is allowed to classify the MR data corresponding to each indoor cell in the MR data set. According to the classification results output by each decision tree, a voting mechanism of minority obeys majority is adopted to determine the final recognition result. According to the recognition result and the cell identifier of the indoor cell, a list of indoor cells is generated and output.
[0062] Step S108, selecting a target random forest model from among the random forest models according to the indoor area introduction cell list.
[0063] The target random forest model refers to the random forest model with the highest accuracy selected after comparing the list of indoor division extra-regional cells with the actual indoor division extra-regional cells.
[0064] In a specific implementation, in order to determine the recognition accuracy of each random forest model, in an optional implementation provided in this embodiment, the target random forest model is selected from the random forest models according to the room division and external introduction cell list in the following manner:
[0065] Compare the indoor division extra-cell list with the actual indoor division extra-cell list, and calculate the recognition accuracy of the random forest model corresponding to the indoor division extra-cell list according to the comparison result;
[0066] A random forest model whose recognition accuracy meets preset conditions is selected as the target random forest model.
[0067] Specifically, the second MR data set is input into each random forest model, each decision tree in each random forest model performs classification and identification according to the MR data in the second MR data set and obtains a corresponding list of indoor separation cells, the obtained list of indoor separation cells is compared with the actual list of indoor separation cells, the recognition accuracy of each random forest model is calculated, and the random forest model with the highest recognition accuracy is selected to predict the indoor separation cells.
[0068] For example, four random forest models are trained, and the MR data of the indoor cells in the test data set are respectively input into the four random forest models to obtain four lists of indoor cells, and the four lists of indoor cells are compared with the actual lists of indoor cells, and the recognition accuracy rates of the four random forest models are 90%, 93%, 95% and 91% respectively. Therefore, the random forest model with a recognition accuracy rate of 95% is selected as the target random forest model for subsequent prediction of indoor cells. The target random forest model is based on the four fields of TA>3 sampling point proportion, TA>5 sampling point proportion, TA>8 sampling point proportion, and TA>10 sampling point proportion in MR as feature quantities, the number of subtrees is set to 10, and it is trained with Gini as the evaluation standard.
[0069] In the case where the target random forest model is selected, the MR data of the indoor cells in the corresponding area are subsequently input, which cells are indoor cells and the list of indoor cells can be predicted in a short time. Specifically, in order to save a lot of resources consumed by manually identifying indoor cells, in an optional implementation mode provided in this embodiment, after determining the target random forest model, the indoor cells can be predicted by the following method:
[0070] Inputting the MR data of the room division cell to be predicted into the target random forest model for room division externalization prediction; the target random forest model inputs the MR data into each decision tree and obtains the classification results output by each decision tree; determining the prediction result according to the classification results of each decision tree and a preset voting mechanism;
[0071] Obtain a predicted room division extra-regional cell list generated and output by the target random forest model according to the prediction results.
[0072] In specific implementation, when the target random forest model predicts the MR data of the indoor cell to be predicted, each decision tree in the target random forest model classifies the MR data. Specifically, in an optional implementation provided by this embodiment, each decision tree in the target random forest model classifies the MR data in the following manner: first, the distance between the terminal device and the base station is calculated based on the MR data; then, the coverage distance of the base station in the indoor cell to be predicted is calculated based on the distance, and the classification result is determined based on the coverage distance. The terminal device includes a device for realizing a wireless communication function, such as a terminal or a chip that can be used in a terminal, etc., which is not limited here.
[0073] It should be noted that the random forest model trained in this embodiment is selected for prediction based on the training of other models (such as neural networks, Bayesian classifiers, etc.). By comparison, it is found that the random forest model has the highest accuracy in identifying indoor division and external introduction cells. Therefore, the random forest model is trained according to different model parameters, and the random forest model with the highest recognition accuracy is determined for subsequent prediction of indoor division and external introduction cells. After actual testing, the efficiency of predicting indoor division and external introduction cells using the target random forest model is improved by about 99.5% compared with manual identification.
[0074] The following combination Figure 2 , taking the application of the random forest model training method provided by this embodiment in the indoor separation and external guidance recognition scene as an example, the random forest model training method provided by this embodiment is further explained. Figure 2 The random forest model training method applied to the indoor and outdoor identification scene specifically includes steps S202 to S220.
[0075] Step S202, obtaining an MR data set consisting of MR data of each room sub-area.
[0076] Here, the indoor cell is an indoor cell of a known indoor external introduction type or an indoor non-external introduction type.
[0077] Step S204, determining a starting threshold and at least one correction threshold according to the TA value of the indoor non-external cell.
[0078] Step S206: constructing a feature value according to the starting threshold, the correction threshold and the MR data set.
[0079] Step S208, use a screening algorithm to screen the indoor cells to obtain valid indoor cells.
[0080] Step S210, dividing the effective room cells according to a preset ratio to obtain corresponding training MR data sets and test MR data sets.
[0081] Step S212: training a random forest model with preset model parameters according to the training MR data set and the feature quantity.
[0082] Step S214, adjusting the model parameters, and training the random forest model with at least one adjusted model parameter according to the training MR data set and the feature quantity.
[0083] Step S216, input the test MR data set into the trained random forest model to obtain the corresponding room-divided external introduction cell list.
[0084] Step S218, compare the indoor division extra-cell list with the actual indoor division extra-cell list, and calculate the recognition accuracy of each random forest model based on the comparison result.
[0085] Step S220, selecting the random forest model with the highest recognition accuracy as the target random forest model.
[0086] The random forest model training method provided in this embodiment first obtains a first MR data set corresponding to a first set of indoor cells and a second MR data set corresponding to a second set of indoor cells, trains a random forest model with preset model parameters based on the first MR data set and the feature quantity, and trains at least one random forest model with at least one modified model parameter; then inputs the second MR data set into each random forest model for indoor extra-introduction identification to obtain a corresponding indoor extra-introduction cell list, and finally selects a target random forest model from each random forest model according to the indoor extra-introduction cell list, so that the target random forest model can be used to predict the indoor extra-introduction cell in the future, thereby improving the efficiency of indoor extra-introduction cell identification.
[0087] Figure 3 A schematic diagram of a random forest model training device provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the device comprises:
[0088] The data acquisition module 302 is configured to acquire a first MR data set corresponding to the first room sub-cell set and a second MR data set corresponding to the second room sub-cell set;
[0089] A model training module 304 is configured to train a random forest model with preset model parameters based on the first MR data set and the feature quantity, and train at least one random forest model with at least one modified model parameter;
[0090] The model testing module 306 is configured to input the second MR data set into each random forest model to perform room division and external lead identification to obtain a corresponding room division and external lead cell list;
[0091] The model selection module 308 is configured to select a target random forest model from among the random forest models according to the indoor area introduction cell list.
[0092] Optionally, the random forest model training device further includes:
[0093] A data set acquisition module is configured to acquire an MR data set of a room cell;
[0094] A screening module is configured to screen the indoor cells using a screening algorithm to obtain effective indoor cells;
[0095] A division module is configured to divide the effective indoor cells according to a preset ratio to obtain the first indoor cell set and the second indoor cell set;
[0096] The MR data set of each room cell in the first room cell set constitutes the first MR data set; the MR data set of each room cell in the second room cell set constitutes the second MR data set.
[0097] Optionally, the feature quantity is constructed by running the following modules:
[0098] A threshold determination module is configured to determine a starting threshold according to a TA value of a non-external cell of the indoor division, and determine at least one correction threshold according to the starting threshold;
[0099] a proportion calculation module, configured to calculate the proportion of sampling points in the first MR data set whose TA values are greater than the starting threshold, and respectively calculate the proportion of sampling points in the first MR data set whose TA values are greater than each correction threshold;
[0100] The feature quantity construction module is configured to construct the feature quantity using the calculated sampling point ratio as the feature field.
[0101] Optionally, the random forest model consists of a preset number of decision trees;
[0102] The decision tree is obtained by running the following modules:
[0103] a sampling module, configured to randomly sample the first MR data set and determine a splitting feature according to the feature quantity;
[0104] The construction module is configured to construct the decision tree according to the sampled MR data and the splitting features.
[0105] Optionally, the random forest model performs room separation and external lead identification by running the following submodules:
[0106] A classification result acquisition submodule, configured to input the second MR data set into each decision tree and obtain the classification results output by each decision tree;
[0107] A recognition result determination submodule, configured to determine a recognition result according to the classification result and a preset voting mechanism;
[0108] The cell list generation submodule is configured to generate and output the indoor division cell list according to the identification result.
[0109] Optionally, the model selection module 308 includes:
[0110] A comparison submodule is configured to compare the indoor division extra-cell list with the actual indoor division extra-cell list, and calculate the recognition accuracy of the random forest model corresponding to the indoor division extra-cell list according to the comparison result;
[0111] The selection submodule is configured to select a random forest model whose recognition accuracy meets a preset condition as the target random forest model.
[0112] Optionally, the random forest model training device further includes:
[0113] The prediction module is configured to input the MR data of the room division cell to be predicted into the target random forest model for room division external introduction prediction; the target random forest model inputs the MR data into each decision tree and obtains the classification results output by each decision tree; and determines the prediction result according to the classification results of each decision tree and a preset voting mechanism;
[0114] The prediction result acquisition module is configured to obtain the predicted room division extra-regional cell list generated and output by the target random forest model according to the prediction result.
[0115] Among them, any decision tree in the decision trees is classified by running the following submodules:
[0116] a distance calculation submodule, configured to calculate the distance between the terminal device and the base station based on the MR data;
[0117] The result determination submodule is configured to calculate the coverage distance of the base station in the indoor cell to be predicted according to the distance, and determine the classification result according to the coverage distance.
[0118] The random forest model training device provided in this embodiment firstly runs the data acquisition module 302 to obtain the first MR data set corresponding to the first room division cell set and the second MR data set corresponding to the second room division cell set, and runs the model training module 304 to train the random forest model with preset model parameters based on the first MR data set and the feature quantity, and trains at least one random forest model with at least one modified model parameter; then runs the model testing module 306 to input the second MR data set into each random forest model for room division ex-lead identification to obtain the corresponding room division ex-lead cell list, and finally runs the model selection module 308 to select the target random forest model from each random forest model according to the room division ex-lead cell list, so that the target random forest model can be used to predict the room division ex-lead cell in the future, thereby improving the efficiency of room division ex-lead cell identification.
[0119] The random forest model training device provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0120] Furthermore, an embodiment of this specification also provides a random forest model training device, Figure 4 A schematic diagram of a random forest model training device provided in an embodiment of this specification is shown in FIG. Figure 4 As shown, the device includes: a memory 401, a processor 402, a bus 403 and a communication interface 404. The memory 401, the processor 402 and the communication interface 404 communicate through the bus 403, and the communication interface 404 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.
[0121] Figure 4 In the embodiment, the memory 401 stores computer executable instructions that can be run on the processor 402. When the computer executable instructions are executed by the processor 402, the following process is implemented:
[0122] Acquire a first MR data set corresponding to the first room sub-cell set and a second MR data set corresponding to the second room sub-cell set;
[0123] Based on the first MR data set and the feature quantity, a random forest model is trained with preset model parameters, and at least one random forest model is trained with at least one modified model parameter;
[0124] Inputting the second MR data set into each random forest model to perform room division and external lead identification to obtain a corresponding room division and external lead cell list;
[0125] A target random forest model is selected from among the random forest models according to the indoor area introduction cell list.
[0126] Optionally, when the computer executable instructions are executed by the processor, they further include:
[0127] Acquire the MR data set of the room sub-area;
[0128] Using a screening algorithm to screen the indoor cells to obtain effective indoor cells;
[0129] Dividing the effective indoor cells according to a preset ratio to obtain the first indoor cell set and the second indoor cell set;
[0130] The MR data set of each room cell in the first room cell set constitutes the first MR data set; the MR data set of each room cell in the second room cell set constitutes the second MR data set.
[0131] Optionally, the feature quantity is constructed in the following manner:
[0132] Determine a starting threshold value according to the TA value of the indoor non-external cell, and determine at least one correction threshold value according to the starting threshold value;
[0133] Calculating the proportion of sampling points in the first MR data set whose TA values are greater than the starting threshold, and respectively calculating the proportion of sampling points in the first MR data set whose TA values are greater than each correction threshold;
[0134] The characteristic quantity is constructed by taking the calculated sampling point ratio as the characteristic field.
[0135] Optionally, the random forest model consists of a preset number of decision trees;
[0136] The decision tree is trained in the following way:
[0137] Randomly sampling the first MR data set, and determining a splitting feature according to the feature quantity;
[0138] The decision tree is constructed according to the sampled MR data and the splitting features.
[0139] Optionally, the random forest model uses the following method to perform room separation and external lead identification:
[0140] Inputting the input second MR data set into each decision tree, and obtaining the classification results output by each decision tree;
[0141] Determine the recognition result according to the classification result and the preset voting mechanism;
[0142] The indoor area list is generated and output based on the identification results.
[0143] Optionally, selecting a target random forest model from among the random forest models according to the room division external introduction cell list includes:
[0144] Compare the indoor division extra-cell list with the actual indoor division extra-cell list, and calculate the recognition accuracy of the random forest model corresponding to the indoor division extra-cell list according to the comparison result;
[0145] A random forest model whose recognition accuracy meets preset conditions is selected as the target random forest model.
[0146] Optionally, when the computer executable instructions are executed by the processor, they further include:
[0147] Inputting the MR data of the room division cell to be predicted into the target random forest model for room division externalization prediction; the target random forest model inputs the MR data into each decision tree and obtains the classification results output by each decision tree; determining the prediction result according to the classification results of each decision tree and a preset voting mechanism;
[0148] Obtain a predicted room division extra-regional cell list generated and output by the target random forest model according to the prediction results.
[0149] Among them, any decision tree in the decision trees is classified in the following manner: calculating the distance between the terminal device and the base station based on the MR data; calculating the coverage distance of the base station in the indoor cell to be predicted according to the distance, and determining the classification result according to the coverage distance.
[0150] The random forest model training device provided in this embodiment, through the cooperation of the memory 401, the processor 402, the bus 403 and the communication interface 404, first obtains the first MR data set corresponding to the first indoor cell set and the second MR data set corresponding to the second indoor cell set, and trains the random forest model with preset model parameters based on the first MR data set and the feature quantity, and trains at least one random forest model with at least one modified model parameter; then inputs the second MR data set into each random forest model for indoor out-of-cell identification to obtain the corresponding indoor out-of-cell cell list, and finally selects the target random forest model from each random forest model according to the indoor out-of-cell cell list, so that the target random forest model can be used to predict the indoor out-of-cell in the future, thereby improving the efficiency of indoor out-of-cell identification.
[0151] The random forest model training device provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0152] Furthermore, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented:
[0153] Acquire a first MR data set corresponding to the first room sub-cell set and a second MR data set corresponding to the second room sub-cell set;
[0154] Based on the first MR data set and the feature quantity, a random forest model is trained with preset model parameters, and at least one random forest model is trained with at least one modified model parameter;
[0155] Inputting the second MR data set into each random forest model to perform room division and external lead identification to obtain a corresponding room division and external lead cell list;
[0156] A target random forest model is selected from among the random forest models according to the indoor area introduction cell list.
[0157] Optionally, when the computer executable instructions are executed by a processor, they further include:
[0158] Acquire the MR data set of the room sub-area;
[0159] Using a screening algorithm to screen the indoor cells to obtain effective indoor cells;
[0160] Dividing the effective indoor cells according to a preset ratio to obtain the first indoor cell set and the second indoor cell set;
[0161] The MR data set of each room cell in the first room cell set constitutes the first MR data set; the MR data set of each room cell in the second room cell set constitutes the second MR data set.
[0162] Optionally, the feature quantity is constructed in the following manner:
[0163] Determine a starting threshold value according to the TA value of the indoor non-external cell, and determine at least one correction threshold value according to the starting threshold value;
[0164] Calculating the proportion of sampling points in the first MR data set whose TA values are greater than the starting threshold, and respectively calculating the proportion of sampling points in the first MR data set whose TA values are greater than each correction threshold;
[0165] The characteristic quantity is constructed by taking the calculated sampling point ratio as the characteristic field.
[0166] Optionally, the random forest model consists of a preset number of decision trees;
[0167] The decision tree is trained in the following way:
[0168] Randomly sampling the first MR data set, and determining a splitting feature according to the feature quantity;
[0169] The decision tree is constructed according to the sampled MR data and the splitting features.
[0170] Optionally, the random forest model uses the following method to perform room separation and external lead identification:
[0171] Inputting the input second MR data set into each decision tree, and obtaining the classification results output by each decision tree;
[0172] Determine the recognition result according to the classification result and the preset voting mechanism;
[0173] The indoor area list is generated and output based on the identification results.
[0174] Optionally, selecting a target random forest model from among the random forest models according to the room division external introduction cell list includes:
[0175] Compare the indoor division extra-cell list with the actual indoor division extra-cell list, and calculate the recognition accuracy of the random forest model corresponding to the indoor division extra-cell list according to the comparison result;
[0176] A random forest model whose recognition accuracy meets preset conditions is selected as the target random forest model.
[0177] Optionally, when the computer executable instructions are executed by a processor, they further include:
[0178] Inputting the MR data of the room division cell to be predicted into the target random forest model for room division externalization prediction; the target random forest model inputs the MR data into each decision tree and obtains the classification results output by each decision tree; determining the prediction result according to the classification results of each decision tree and a preset voting mechanism;
[0179] Obtain a predicted room division extra-regional cell list generated and output by the target random forest model according to the prediction results.
[0180] Among them, any decision tree in the decision trees is classified in the following manner: calculating the distance between the terminal device and the base station based on the MR data; calculating the coverage distance of the base station in the indoor cell to be predicted according to the distance, and determining the classification result according to the coverage distance.
[0181] The computer-readable storage medium provided in this embodiment first obtains a first MR data set corresponding to a first set of indoor cells and a second MR data set corresponding to a second set of indoor cells, trains a random forest model with preset model parameters based on the first MR data set and the characteristic quantity, and trains at least one random forest model with at least one modified model parameter; then inputs the second MR data set into each random forest model for indoor extrapolation identification to obtain a corresponding indoor extrapolation cell list, and finally selects a target random forest model from each random forest model according to the indoor extrapolation cell list, so that the target random forest model can be used to predict the indoor extrapolation cell in the future, thereby improving the efficiency of indoor extrapolation cell identification.
[0182] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0183] The computer-readable storage medium provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0184] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0185] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0186] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0188] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0189] Memory may include non-permanent storage in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.
[0190] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0191] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0192] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0193] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A random forest model training method, characterized in that: include: Acquire a first MR data set corresponding to the first room sub-cell set and a second MR data set corresponding to the second room sub-cell set; Based on the first MR data set and the feature quantity, a random forest model is trained with preset model parameters, and at least one random forest model is trained with at least one modified model parameter; Inputting the second MR data set into each random forest model to perform room division and external lead identification to obtain a corresponding room division and external lead cell list; Selecting a target random forest model from among the random forest models according to the indoor area introduction cell list; The feature quantity is constructed in the following way: Determine a starting threshold value according to the TA value of the indoor non-external cell, and determine at least one correction threshold value according to the starting threshold value; Calculating the proportion of sampling points in the first MR data set whose TA values are greater than the starting threshold, and respectively calculating the proportion of sampling points in the first MR data set whose TA values are greater than each correction threshold; The characteristic quantity is constructed by taking the calculated sampling point ratio as the characteristic field.
2. The random forest model training method according to claim 1, characterized in that: Before the step of acquiring the first MR data set corresponding to the first room sub-cell set and the second MR data set corresponding to the second room sub-cell set is performed, the method further includes: Acquire the MR data set of the room sub-area; Using a screening algorithm to screen the indoor cells to obtain effective indoor cells; Dividing the effective indoor cells according to a preset ratio to obtain the first indoor cell set and the second indoor cell set; The MR data set of each room cell in the first room cell set constitutes the first MR data set; the MR data set of each room cell in the second room cell set constitutes the second MR data set.
3. The random forest model training method according to claim 1, characterized in that: The random forest model consists of a preset number of decision trees; The decision tree is trained in the following way: Randomly sampling the first MR data set, and determining a splitting feature according to the feature quantity; The decision tree is constructed according to the sampled MR data and the splitting features.
4. The random forest model training method according to claim 1, characterized in that: The random forest model uses the following method to identify the room division and external introduction: Inputting the input second MR data set into each decision tree, and obtaining the classification results output by each decision tree; Determine the recognition result according to the classification result and the preset voting mechanism; The indoor area list is generated and output based on the identification results.
5. The random forest model training method according to claim 1, characterized in that: The selecting a target random forest model from among the random forest models according to the room division and external introduction cell list comprises: Compare the indoor division extra-cell list with the actual indoor division extra-cell list, and calculate the recognition accuracy of the random forest model corresponding to the indoor division extra-cell list according to the comparison result; A random forest model whose recognition accuracy meets preset conditions is selected as the target random forest model.
6. The random forest model training method according to claim 1, characterized in that: After the step of selecting a target random forest model in each random forest model according to the room division and external introduction cell list is performed, the method further includes: Inputting the MR data of the room division cell to be predicted into the target random forest model for room division externalization prediction; the target random forest model inputs the MR data into each decision tree and obtains the classification results output by each decision tree; determining the prediction result according to the classification results of each decision tree and a preset voting mechanism; Obtaining a predicted room division extra-regional cell list generated and output by the target random forest model according to the prediction result; Among them, any decision tree in the decision trees is classified in the following manner: calculating the distance between the terminal device and the base station based on the MR data; calculating the coverage distance of the base station in the indoor cell to be predicted according to the distance, and determining the classification result according to the coverage distance.
7. A random forest model training device, characterized in that: include: A data acquisition module is configured to acquire a first MR data set corresponding to the first room sub-cell set and a second MR data set corresponding to the second room sub-cell set; A model training module, configured to train a random forest model with preset model parameters based on the first MR data set and the feature quantity, and train at least one random forest model with at least one modified model parameter; A model testing module is configured to input the second MR data set into each random forest model to perform room division and external lead identification to obtain a corresponding room division and external lead cell list; A model selection module is configured to select a target random forest model from among the random forest models according to the room division and external introduction cell list; The feature quantity is constructed by running the following modules: A threshold determination module is configured to determine a starting threshold according to a TA value of a non-external cell of the indoor division, and determine at least one correction threshold according to the starting threshold; a proportion calculation module, configured to calculate the proportion of sampling points in the first MR data set whose TA values are greater than the starting threshold, and respectively calculate the proportion of sampling points in the first MR data set whose TA values are greater than each correction threshold; The feature quantity construction module is configured to construct the feature quantity using the calculated sampling point ratio as the feature field.
8. A random forest model training device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer executable instructions, and when the computer executable instructions are executed on the processor, the steps of the method described in any one of claims 1 to 6 can be implemented.
9. A computer-readable storage medium having computer-executable instructions stored therein, characterized in that: When the computer executable instructions are executed by a processor, the steps of the method described in any one of claims 1 to 6 can be implemented.
