Equipment classification model training method and device, equipment, storage medium and product
The particle swarm optimization algorithm is used to optimize the support vector machine model, which solves the problem of unstable cell selection in the NB-IoT network, achieves accurate assessment of the long-term stability of the network and frequency selection, and improves communication quality and equipment performance.
Patent Information
- Application Number
- CN202410896344.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-22
AI Technical Summary
Cell selection in existing NB-IoT networks is based on frequency point evaluation results, which has inaccuracies and instability, making it difficult to evaluate the stability of the network for long-term use, especially when faced with changes in signal strength, interference levels, and equipment performance.
The particle swarm optimization algorithm is used to optimize the hyperparameter values of the support vector machine model. By training the device classification support vector machine model, a more accurate frequency classification and prediction model is established to evaluate the long-term stability of the network.
It improves the accuracy of frequency selection and the ability to evaluate long-term network stability, ensuring stable connections and efficient communication of devices in dynamic environments.
Smart Images

Figure CN118820918A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a training method, apparatus, device, storage medium and product for a device classification model. Background Art
[0002] Narrow Band Internet of Things (NB-IoT) is an important branch of IoT technology. It supports cellular data connections of low-power devices in wide area networks, and can meet the efficient connection needs of devices with long standby time and high network connection requirements. In NB-IoT networks, due to frequent changes in network environment and device status, dynamic frequency selection technology is usually applied to adjust the frequency selection strategy in real time according to the network environment and device status, and adjust the cell.
[0003] At present, in the cell selection of NB-IoT network, the cell selection in the existing technology is based on the frequency point evaluation results. If the frequency point evaluation is biased or inaccurate, it may lead to unstable or unreliable cell selection results. However, frequency point evaluation may be affected by many factors, such as signal strength, interference level and equipment performance, and may change frequently. The existing methods only focus on the short-term cell selection optimization effect, and it is difficult to evaluate the stability of the long-term use of the network. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device, storage medium and product for training a device classification model, which can evaluate the stability of long-term network use.
[0005] In a first aspect, the present application provides a method for training a device classification model, comprising:
[0006] Acquire a training sample set, the training sample set comprising a plurality of training samples, each of the training samples comprising device feature information and a device classification corresponding to the device feature information;
[0007] Initializing a preset particle swarm, where the positions of the particles represent possible hyperparameter values of a preset device classification support vector machine model;
[0008] For each training sample, the following steps are performed respectively: the device feature information is input into the device classification support vector machine model, and the prediction result of the device classification corresponding to the device feature information is obtained according to the hyperparameter value of the device classification support vector machine model corresponding to each particle position;
[0009] Determining a loss function value of the device classification support vector machine model according to the prediction results of each of the training samples;
[0010] Based on the preset fitness function, the fitness value of each particle is calculated according to the loss function value corresponding to each particle;
[0011] Determining the optimal position of the total population based on the position of the particle with the largest fitness value;
[0012] When the optimal position of the total group satisfies a preset termination condition, the hyperparameter value corresponding to the optimal position of the total group is used as the hyperparameter value of the preset device classification support vector machine model.
[0013] In some possible implementations, the method further includes:
[0014] In the case that the optimal position of the total group does not meet the preset termination condition, the current position of each particle is updated and the fitness value of each particle is calculated according to the optimal position of the total group and the individual optimal position corresponding to each particle to determine the optimal position of the total group, and the device feature information is returned to the device classification support vector machine model until the preset training stop condition is met to obtain the trained device classification support vector machine model.
[0015] In some possible implementations, the particles in the particle group are evenly distributed in each of the basic membranes of the membrane structure, and the determining of the optimal position of the total group based on the position of the particle with the largest fitness value includes:
[0016] Compare the fitness value of each particle with the historical fitness value to determine the individual optimal position corresponding to each particle;
[0017] According to the individual optimal position corresponding to each particle in each basic membrane, determining the group optimal position corresponding to each basic membrane;
[0018] Based on the optimal position of the group with the largest fitness value, the optimal position of the entire group is determined.
[0019] In some possible implementations, the updating of the current position of each particle and calculating the fitness value of each particle to determine the optimal position of the total population according to the optimal position of the total population and the individual optimal position corresponding to each particle, and returning the input of the device feature information into the device classification support vector machine model until the preset training stop condition is met to obtain the trained device classification support vector machine model, including:
[0020] Reduce the inertia weight of each particle according to the current number of iterations;
[0021] Using a preset particle speed update formula, the speed of each particle is updated according to the inertia weight, the optimal position of the total group, and the individual optimal position corresponding to each particle;
[0022] According to the updated speed of each particle, the current position of each particle is updated and the fitness value of each particle is calculated to determine the optimal position of the total population until the preset termination condition is met.
[0023] In some possible implementations, when the optimal position of the total population satisfies a preset termination condition, after taking the hyperparameter value corresponding to the optimal position of the total population as the hyperparameter value of the preset device classification support vector machine model, the method further includes:
[0024] Get device characteristic information of the target device;
[0025] Based on the trained device classification support vector machine model, classify the target device according to the device feature information of the target device to obtain a classification result of the target device;
[0026] According to the classification result and the current network environment characteristics, a corresponding frequency point is allocated to the target device.
[0027] In some possible implementations, after allocating a corresponding frequency point to the target device according to the classification result and the current network environment characteristics, the method further includes:
[0028] Monitoring the device status and current network environment characteristics of the target device;
[0029] Performing a performance evaluation on the frequency point at which the target device is currently connected according to the device state and the current network environment characteristics;
[0030] When the result of the performance evaluation does not meet a preset condition, a candidate frequency point is allocated to the target device.
[0031] In some possible implementations, after allocating a corresponding frequency point to the target device according to the classification result and the current network environment characteristics, the method further includes:
[0032] Collecting feedback data of the target device, wherein the feedback data includes information generated during the operation of the target device based on the allocated frequency point;
[0033] Comparing the feedback data with the historical data of the target device to obtain an optimization strategy;
[0034] Based on the optimization strategy, the trained device classification support vector machine model is optimized.
[0035] In some possible implementations, before acquiring the training sample set, the method further includes:
[0036] Collect historical frequency data, historical network information, and device classifications of multiple devices in different scenarios;
[0037] Performing data cleaning on the historical frequency data and the historical network information;
[0038] Feature extraction is performed on the cleaned historical frequency point data and the historical network information to obtain device feature information.
[0039] The device feature information is combined with the device classification to obtain a training sample set.
[0040] In a second aspect, the present application further provides a training device for a device classification model, the device comprising:
[0041] An acquisition module, used to acquire a training sample set, wherein the training sample set includes a plurality of training samples, each of which includes device feature information and a device classification corresponding to the device feature information;
[0042] An initialization module, used to initialize a preset particle swarm, wherein the positions of the particles represent possible hyperparameter values of a preset device classification support vector machine model;
[0043] An input module, used to input the device feature information into a device classification support vector machine model, and obtain a prediction result of the device classification corresponding to the device feature information according to the hyperparameter value of the device classification support vector machine model corresponding to each particle position;
[0044] A determination module, used to determine the loss function value of the device classification support vector machine model according to the prediction results of each of the training samples;
[0045] A calculation module, used to calculate the fitness value of each particle according to the loss function value corresponding to each particle based on a preset fitness function;
[0046] The determination module is further used to determine the optimal position of the total population based on the position of the particle with the largest fitness value;
[0047] The termination module is used to use the hyperparameter value corresponding to the optimal position of the total group as the hyperparameter value of the preset device classification support vector machine model when the optimal position of the total group meets the preset termination condition.
[0048] In a third aspect, the present application provides a training device for a device classification model, the device comprising: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the training method for the device classification model as described above.
[0049] In a fourth aspect, the present application provides a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the training method for the device classification model as described above is implemented.
[0050] In a fifth aspect, the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the training method of the device classification model as described above.
[0051] The training method, apparatus, device, storage medium and product of the device classification model provided in the embodiment of the present application use a particle swarm optimization algorithm to optimize the hyperparameter values of a preset device classification support vector machine model, and then obtain a trained device classification support vector machine model through model training. The embodiment of the present application uses the prediction accuracy of the SVM model as a fitness function to iterate the particle swarm optimization algorithm, and optimizes the hyperparameters of the device classification support vector machine model through the results of the particle swarm optimization algorithm, so that a more accurate SVM model can be established, thereby evaluating the stability of the network for long-term use. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The present application can be better understood from the following description of the specific embodiments of the present application in conjunction with the accompanying drawings, in which:
[0053] Other features, objects and advantages of the present application will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings, in which the same or similar reference numerals represent the same or similar features.
[0054] Figure 1 is a flow chart of a method for training a device classification model provided by an embodiment of the present application;
[0055] Figure 2 is a flowchart of a method for training a device classification model provided by another embodiment of the present application;
[0056] Figure 3 This is a schematic diagram of a particle membrane structure provided by an embodiment of the present application;
[0057] Figure 4 It is a structural schematic diagram of a training device for a device classification model provided by an embodiment of the present application;
[0058] Figure 5 It is a schematic diagram of the hardware structure of the training device of the device classification model provided in the embodiment of the present application. DETAILED DESCRIPTION
[0059] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0060] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or device including the above elements.
[0061] Particle Swarm Optimization (PSO): A random search algorithm based on group collaboration, which is a type of swarm intelligence algorithm. In frequency selection and prediction, the particle swarm optimization algorithm can be used to optimize the parameters of the model and improve the classification and prediction performance of the model. The algorithm has the advantages of fast convergence speed and strong global search capability.
[0062] Support Vector Machine (SVM): It is a generalized linear classifier that performs binary classification of data in a supervised learning manner. It can be widely used in statistical classification and regression analysis. It classifies or predicts data by mapping data to a high-dimensional space and finding a hyperplane with the maximum interval. In frequency selection and prediction, SVM can be used to establish a frequency selection model to classify and predict frequency points. SVM is efficient and accurate, especially when processing high-dimensional data and small sample data.
[0063] In narrowband IoT networks, dynamic frequency selection technology is widely used because of the frequent changes in network environment and device status. Dynamic frequency selection technology refers to the technology and method of adjusting the frequency selection strategy in real time according to the network environment and device status. By dynamically selecting the most appropriate frequency, the communication quality and efficiency of the device can be improved.
[0064] However, the current related technologies mainly focus on the cell selection problem in NB-IoT networks, which can improve the coverage level and reduce the power consumption of user terminals. However, large-scale NB-IoT networks may require more data and computing resources. In addition, the existing methods may be affected by the complexity and real-time changes of the network environment and need to be further improved and optimized. Since there may be a variety of interference and uncertainty factors in the NB-IoT network environment, such as channel quality changes, device mobility, network congestion, etc., these factors may affect the results of cell selection. Therefore, it may be necessary to adjust and improve according to the actual situation to adapt to different network environments. The cell selection of the existing methods is based on the frequency point evaluation results, and the frequency point evaluation may be affected by a variety of factors, such as signal strength, interference level, device performance, etc. If there is a deviation or inaccuracy in the frequency point evaluation, it may lead to unstable or unreliable cell selection results. The existing methods mainly focus on the short-term cell selection optimization effect, but do not evaluate the long-term performance and stability. In practical applications, the NB-IoT network may need to run stably for a long time, so it is necessary to fully evaluate and optimize the long-term performance and stability. The existing methods require manual selection and preprocessing of features, which is often difficult to handle for high-dimensional data.
[0065] The inventors have studied the above problems and found that if the particle swarm optimization algorithm is used to optimize the parameters of the support vector machine model, a more accurate frequency classification and prediction model can be established. Specifically, the PSO algorithm can be used to find the optimal SVM model parameter combination based on historical data, including kernel function type, kernel function parameters, etc., so as to improve the prediction accuracy and generalization ability of the SVM model. Using this SVM model, the stability of the network in long-term use can be evaluated.
[0066] In order to solve the problems of the prior art, the embodiments of the present application provide a method, apparatus, device, storage medium and product for training a device classification model. The following first introduces the method for training a device classification model provided in the embodiments of the present application.
[0067] Figure 1 The flowchart of the training method of the device classification model provided by one embodiment of the present application is shown. The method can be executed by the training device of the device classification model, such as Figure 1 As shown, the method includes the following steps S101 to S107.
[0068] Step S101: obtaining a training sample set, wherein the training sample set includes a plurality of training samples, and each of the training samples includes device feature information and a device classification corresponding to the device feature information.
[0069] In the specific implementation, it is first necessary to obtain a training sample set, which is used to train a device classification support vector machine (SVM) model. Each training sample includes feature information of a device and a corresponding device classification.
[0070] As another example, the characteristic information of the device may be sensor data, device parameters, or whether the device status is normal or abnormal, and the device classification may be the actual physical hardware type of the network device.
[0071] Step S102: Initialize a preset particle swarm, where the positions of the particles represent possible hyperparameter values of a preset device classification support vector machine model.
[0072] In a specific implementation, a preset particle swarm is initialized. Specifically, the positions of these particles represent a preset range of hyperparameter values of a possible device classification support vector machine model, and in the initialization process, the hyperparameter value represented by each particle is randomly selected.
[0073] As another example, these hyperparameters may include penalty parameter C, kernel function selection, kernel function parameters, etc. Each particle in the particle swarm optimization (PSO) algorithm represents a potential combination of SVM model hyperparameters.
[0074] Step S103: For each training sample, perform the following steps respectively: input the above-mentioned device feature information into the device classification support vector machine model, and obtain the prediction result of the device classification corresponding to the above-mentioned device feature information according to the hyperparameter value of the device classification support vector machine model corresponding to each particle position.
[0075] In the specific implementation, for each training sample, the device feature information is input into the device classification support vector machine model. According to the hyperparameter value corresponding to each particle position, the device classification support vector machine model is used to classify and predict the device feature information. This means that each training sample will correspond to the classification results of multiple different hyperparameter combinations, and then the prediction results of the device classification corresponding to the above device feature information are obtained.
[0076] Step S104: determining the loss function value of the device classification support vector machine model according to the prediction results of each of the training samples.
[0077] In a specific implementation, the loss function value of the device classification support vector machine model is calculated according to the prediction result of each training sample and the preset loss function calculation formula.
[0078] As another example, loss functions are often used to measure the gap between model predictions and actual classifications, such as using cross entropy, mean squared error, etc.
[0079] Step S105: Based on a preset fitness function, the fitness value of each particle is calculated according to the loss function value corresponding to each particle.
[0080] In the specific implementation, based on the preset fitness function, the fitness value of each particle is calculated according to the loss function value corresponding to each particle. The fitness function defines how to evaluate the quality of each particle in the particle optimization process, which is usually inversely proportional to or related to the loss function value.
[0081] Step S106: Based on the position of the particle with the largest fitness value, determine the optimal position of the entire population.
[0082] In the specific implementation, the position of the particle with the largest fitness value in the total population is determined based on the fitness values of all particles. This position is regarded as the best hyperparameter combination in the current particle swarm.
[0083] Step S107: When the optimal position of the total group satisfies a preset termination condition, the hyperparameter value corresponding to the optimal position of the total group is used as the hyperparameter value of the preset device classification support vector machine model.
[0084] In the specific implementation, it is checked whether the preset termination condition is met. If the termination condition is met, the hyperparameter value of the particle with the largest fitness value in the total population will be determined as the hyperparameter value of the final device classification support vector machine model.
[0085] In a specific implementation, the termination condition may be the number of iterations of the PSO algorithm, the degree of convergence of the fitness value, or the stability of the hyperparameter combination.
[0086] The training method of the device classification model provided in the embodiment of the present application uses a particle swarm optimization algorithm to optimize the hyperparameter values of a preset device classification support vector machine model, and then obtains a trained device classification support vector machine model through model training. By optimizing the hyperparameters of the device classification support vector machine model through the particle swarm optimization algorithm, a more accurate model can be established, thereby evaluating the stability of the long-term use of the network.
[0087] In order to obtain a suitable device classification support vector machine model, in some implementations, the method further includes:
[0088] When the optimal position of the total group does not meet the preset termination condition, the current position of each particle is updated and the fitness value of each particle is calculated according to the optimal position of the total group and the individual optimal position corresponding to each particle to determine the optimal position of the total group, and the device feature information is returned to the device classification support vector machine model until the preset training stop condition is met to obtain the trained device classification support vector machine model.
[0089] In a specific implementation, for each particle, a device classification support vector machine model is constructed according to the hyperparameter combination of its current position, and the training sample set is used for training and evaluation. The loss function value of the model on the training set is calculated as the fitness value of the particle. The lower the fitness value (the smaller the loss), the better the hyperparameter combination. Compare the fitness value of the current particle with its individual optimal fitness value. If the current fitness value is better, update the individual optimal position of the particle to the current position. Compare the fitness value of the current particle with the optimal fitness value of the total population. If the current fitness value is better, update the optimal position of the total population to the current position. In the case where the above-mentioned optimal position of the total population does not meet the preset termination condition, the speed and position of each particle are updated according to the formula of the particle swarm optimization algorithm. Repeat the iterative steps until the preset training stop condition is met. The hyperparameters corresponding to the overall optimal position in the total population are determined as the hyperparameters of the final device classification support vector machine model. Use these hyperparameters to retrain the device classification support vector machine model, and then obtain the trained device classification support vector machine model.
[0090] The above method of the embodiment of the present application updates the position of each particle in the particle group when the above optimal position of the total group does not meet the preset termination condition, and then determines the optimal position of the total group again. Through continuous iteration, a suitable device classification support vector machine model can be obtained according to the optimal support vector machine hyperparameters.
[0091] In order to accurately obtain the optimal position of the total group, in some embodiments, the particles in the particle group are evenly distributed in each of the basic films of the film structure, and the above S106 may include steps A1 to C1:
[0092] Step A1: Compare the fitness value of each particle with the historical fitness value to determine the individual optimal position corresponding to each particle.
[0093] In the specific implementation, for each particle, a device classification support vector machine model is constructed based on the hyperparameter combination of its current position and trained using the training set. Then, the model is evaluated using a validation set or cross-validation to obtain a fitness value. The current fitness value is compared with the individual optimal fitness value recorded for the particle. If the current fitness value is better than the individual optimal fitness value, the individual optimal position of the particle is updated to the current position. In this way, each particle will remember its best position during the search process.
[0094] Step B1: According to the above-mentioned individual optimal position corresponding to each particle in each basic membrane, determine the group optimal position corresponding to each of the above-mentioned basic membranes.
[0095] In the specific implementation, the "basic membrane" in the particle swarm optimization algorithm refers to a set of particles that are classified into one category. For each particle, the optimal position of the current basic membrane is determined by comparing its individual optimal position with the individual optimal positions of the surrounding particles.
[0096] As another example, the PSO algorithm uses some form of topology (such as global or local neighborhood) to define the relationship between particles. For example, in the global topology, the optimal position of the group is usually the position with the best individual optimal fitness value among all particles.
[0097] Step C1: Based on the optimal position of the group with the largest fitness value, determine the optimal position of the entire group.
[0098] In the specific implementation, the optimal position of the total group represents the best hyperparameter combination among all particles in the current PSO algorithm iteration. The hyperparameters corresponding to this position will be used to train the final version of the device classification support vector machine model. In each iteration of the PSO algorithm, the optimal fitness values of the group of all current basic membranes are compared. If the optimal fitness value of a basic membrane is better than the current optimal fitness value of the total group, the optimal position of the total group is updated to the optimal position of the group corresponding to the basic membrane.
[0099] The above method of the embodiment of the present application compares the fitness value of each particle with the historical fitness value, first determines the individual optimal position corresponding to each particle, and then determines the group optimal position corresponding to each of the above basic membranes, and finally accurately obtains the overall group optimal position.
[0100] In order to accurately obtain the optimal position of the total population, in some embodiments, the current position of each particle is updated and the fitness value of each particle is calculated according to the optimal position of the total population and the individual optimal position corresponding to each particle to determine the optimal position of the total population, and the device feature information is input into the device classification support vector machine model until the preset training stop condition is met to obtain the trained device classification support vector machine model, including steps A2 to C2:
[0101] Step A2: Reduce the inertia weight corresponding to each particle according to the current number of iterations.
[0102] In the specific implementation, at the beginning of the PSO algorithm, an inertia weight is initialized. The inertia weight controls the balance between exploration and development of particles in the search space. As the iteration proceeds, the inertia weight will gradually decrease, which is to increase the intensity of local search and help particles converge to the local optimal solution faster. The typical inertia weight update method can be linear decrease or exponential decrease.
[0103] As another example, generally, it can be initially set to a larger value, such as 0.9.
[0104] Step B2: Use the preset particle speed update formula to update the speed of each particle according to the inertia weight, the optimal position of the total group, and the individual optimal position corresponding to each particle.
[0105] In a specific implementation, a preset particle speed update formula is used to calculate according to the inertia weight, the optimal position of the total group, and the individual optimal position corresponding to each particle, and the speed of each particle is updated according to the calculated result.
[0106] Step C2: According to the updated speed of each particle, the current position of each particle is updated and the fitness value of each particle is calculated to determine the optimal position of the total population until the above-mentioned preset termination condition is met.
[0107] In the specific implementation, the updated velocity can be used to update the position of the particle, which represents the new exploration position in the hyperparameter space based on moving the particle to the new position. For the updated position, the performance of the device classification support vector machine model is re-evaluated. The fitness value of each particle is compared, the individual optimal position of each particle is updated, the individual optimal positions of all particles are compared, and the optimal position of the total group is updated until the above preset termination conditions are met to obtain the optimal hyperparameter combination.
[0108] The above method of the embodiment of the present application reduces the inertia weight corresponding to each particle according to the current number of iterations, updates the speed of each particle according to the inertia weight, and then updates the current position of each particle to determine the optimal position of the total group. By using the inertia weight that decreases linearly with the number of iterations, it is possible to avoid falling into a local optimal solution and accurately obtain the optimal position of the total group.
[0109] In order to reasonably allocate frequency points to the target device, in some implementations, reference Figure 2 After the above step S107, the above method may further include steps S201 to S203:
[0110] Step S201: Acquire device characteristic information of the target device.
[0111] In the specific implementation, the device feature information of the target device needs to be obtained first. The obtained device feature information may need to be transmitted to a central server or processing node through a network or other means. After receiving the device feature information, the information is stored in a database or memory for processing and access in subsequent steps.
[0112] As another example, the device feature information of the target device may include the device's hardware information (such as CPU, memory, storage), operating system version, network interface, sensor data, etc. Such information is usually obtained through system calls or device APIs.
[0113] Step S202: Based on the trained device classification support vector machine model, the target device is classified according to the device feature information of the target device to obtain a classification result of the target device.
[0114] In a specific implementation, a trained device classification support vector machine (SVM) model is prepared and uses the device feature information obtained in step S201 as input, which is input into the trained SVM model to perform classification prediction of the device type. The SVM model will output the probability that the device belongs to different categories or directly predict the category of the device based on the input feature data.
[0115] As another example, feature extraction and preprocessing may be performed before the device feature information is input, which may include standardization, normalization, or other transformation of the features to ensure consistency with the feature space used during training.
[0116] Step S203: assigning corresponding frequency points to the target devices according to the classification results and current network environment characteristics.
[0117] In the specific implementation, the characteristic information of the current network environment is obtained. According to the device classification result and the characteristics of the current network environment, the frequency allocation logic is executed. According to the frequency or channel determined by the allocation logic, the configuration information is sent to the target device.
[0118] As another example, the characteristic information of the current network environment may include network load, signal strength, interference situation, etc. Such information may be acquired through network monitoring equipment, sensors or other related equipment.
[0119] As another example, frequency allocation logic is usually based on a preset strategy or algorithm, with the goal of allocating the best frequency to the target device to improve network performance and efficiency. For example, for a wireless network, different channels or frequencies may be dynamically allocated based on device type and network load to avoid interference and maximize network capacity.
[0120] The above method of the embodiment of the present application obtains the device feature information of the target device, and then allows the trained device classification support vector machine model to classify the target device according to the device feature information of the target device, thereby obtaining the classification result of the target device, and then according to the classification result and the current network environment characteristics, the corresponding frequency point can be allocated to the target device. Based on the classification of the target device, the frequency point can be reasonably allocated to the target device.
[0121] In order to dynamically adjust the frequency allocated to the target device, in some implementations, after the above S203, the above method further includes steps A3 to C3:
[0122] Step A3: Monitor the device status and current network environment characteristics of the above target device.
[0123] In specific implementations, the status information of the target device may be obtained regularly through system calls or device APIs. This information may include the device's CPU utilization, memory usage, currently running processes or applications, etc. Use network monitoring equipment or network APIs to obtain characteristic information of the current network environment. Specifically, it may include network load, signal strength, interference, available frequencies, etc. Analyze the acquired device status and network environment characteristics, such as calculating average values, change trends, or comparing with preset conditions.
[0124] Step B3: Perform a performance evaluation on the frequency point to which the target device is currently connected according to the device status and the current network environment characteristics.
[0125] In the specific implementation, the frequency point information of the current connection is obtained, including detailed parameters such as frequency and channel. A predefined performance evaluation algorithm is used to evaluate the performance of the current frequency point, for example, based on indicators such as signal quality, interference, and bandwidth utilization.
[0126] Step C3: when the result of the performance evaluation does not meet the preset condition, assigning a candidate frequency point to the target device.
[0127] In the specific implementation, based on the preset performance evaluation conditions, it is determined whether the current frequency meets the requirements. If not, frequency allocation needs to be performed to generate a list of candidate frequencies based on device type, network load, current environment characteristics, etc. These frequencies may be generated through predefined algorithms or based on historical data and models. The selected candidate frequency configuration information is sent to the target device to update its connection settings.
[0128] The above method of the embodiment of the present application performs a performance evaluation on the frequency point currently connected to the target device by monitoring the device status and the current network environment characteristics of the target device. If the result of the performance evaluation does not meet the preset conditions, a candidate frequency point is allocated to the target device. During the use of the target device, the frequency point allocated to the target device is dynamically adjusted according to the actual situation of the device and the network.
[0129] In order to continuously optimize the device classification support vector machine model, in some embodiments, after the above S203, the above method further includes steps A4 to C4:
[0130] Step A4: collecting feedback data of the target device, wherein the feedback data includes information generated during the operation of the target device based on the allocated frequency point.
[0131] In the specific implementation, a data collection point is deployed on the target device, which can be a background service or a lightweight application, responsible for real-time collection of various feedback data generated by the device during operation. The collected data includes but is not limited to the device's performance indicators (such as CPU utilization, memory usage), network parameters (such as signal strength, data transmission rate), application running status, etc.
[0132] Step B4: Compare the feedback data with the historical data of the target device to obtain an optimization strategy.
[0133] In the specific implementation, the feedback data collected in real time is integrated and cleaned with historical data for subsequent comparative analysis. Use appropriate analysis methods (such as statistical analysis, machine learning algorithms) to compare feedback data with historical data to identify performance changes and optimization potential of devices under specific conditions. Based on the results of the comparative analysis, select appropriate optimization strategies or algorithms. This may involve dynamically adjusting device configurations, optimizing network parameters, or recommending new operating modes. Based on the conclusions of the comparative analysis, formulate specific optimization strategies to improve the performance and stability of the device.
[0134] Step C4: Based on the above optimization strategy, the trained device classification support vector machine model is optimized.
[0135] In the specific implementation, a data set for training and optimizing the equipment classification support vector machine (SVM) model is prepared based on historical data and feedback data. The data set should contain information about equipment status, performance indicators, and their association with optimization results. Through cross-validation or other techniques, the parameters of the SVM model are adjusted to improve its generalization ability and prediction accuracy on new data.
[0136] As another example, a feedback mechanism can be established to regularly monitor and evaluate the performance of the model and adjust the model based on real-time data and user feedback to continuously optimize the performance management and classification capabilities of the device.
[0137] The above method of the embodiment of the present application collects the feedback data of the above target device, compares the feedback data with the historical data of the target device, determines a feasible optimization strategy, and then optimizes the trained device classification support vector machine model. The device classification support vector machine model is continuously optimized by the feedback data of the target device, and the device classification support vector machine model can be continuously optimized.
[0138] In order to improve the data quality in the training sample set, in some implementations, before the above S101, the above method may further include steps A5 to D5:
[0139] Step A5: Collect historical frequency data, historical network information, and device classifications corresponding to multiple devices in different scenarios.
[0140] In the specific implementation, different operation scenarios are determined, such as different time periods, locations, or device usage scenarios. The historical frequency data (such as CPU utilization, memory usage), historical network information (such as signal strength, data transmission rate), and device classification information (such as normal, abnormal) of the device in these scenarios are collected.
[0141] As another example, a data collector can be deployed on multiple devices, which may be a lightweight application or a background service responsible for periodically collecting and recording various data when the devices are running.
[0142] Step B5: performing data cleaning on the above historical frequency data and the above historical network information.
[0143] In the specific implementation, the collected raw data is preprocessed, including removing duplicate data, processing missing values and outliers, and converting the data into a unified format and unit to ensure the consistency and comparability of the data.
[0144] Step C5: extracting features from the cleaned historical frequency point data and the historical network information to obtain device feature information.
[0145] In the specific implementation, appropriate features are selected according to the needs of device management and analysis objectives. For example, statistical features of frequency data (such as mean, standard deviation) and time series features of network information (such as trend, periodicity) can be selected. Through data conversion and combination, meaningful features are extracted, which can effectively reflect the behavior and state changes of the device in different scenarios and obtain device feature information.
[0146] Step D5: Combine the above device feature information with the above device classification to obtain a training sample set.
[0147] In the specific implementation, the feature information extracted from each device in different scenarios is combined with the corresponding device classification label into training samples.
[0148] The above method of the embodiment of the present application cleans the above historical frequency data and the above historical network information, and then extracts features to obtain device feature information. The device feature information is combined with the above device classification to obtain a training sample set, which can improve the data quality in the training sample set.
[0149] In one embodiment of the present application, a large amount of historical data of terminal devices is first collected, including device status information, network environment parameters, and frequency usage. These data are cleaned, integrated, and transformed to extract features useful for frequency selection and prediction. Specifically, different scenarios can be subdivided, such as hotel scenarios, online booking scenarios, homestay scenarios, public rental housing scenarios, etc. The relevant information of the device is obtained by reporting the historical device information of the device, which includes detailed network information, such as signal quality, signal-to-noise ratio, interference, etc. For different scenarios, corresponding scene label data needs to be obtained. For example, in the hotel scenario, information such as the name, location, and scale of the hotel can be collected as labels; in the online booking scenario, information such as the type, location, and rent of the house can be collected as labels. These label data help to better understand the network requirements in different scenarios. In order to establish an accurate frequency classification and prediction model, a large amount of historical frequency data needs to be collected. These data include the frequencies used by the device in different scenarios, the usage of the frequencies (such as connection duration, number of connections, etc.), and the performance of the frequencies (such as signal quality, stability, etc.).
[0150] For the collected raw data, data cleaning operations are required to eliminate outliers, missing values, and redundant information. Frequency data with poor signal quality or short connection time are eliminated to ensure the accuracy and reliability of the data. Data from different sources are integrated, such as device information, scene labels, and historical frequency data. A comprehensive data set is established for subsequent model training and prediction. Features useful for frequency selection and prediction are extracted from the integrated data. The network status features of the device (signal quality, interference), scene features (device location, device scale), and performance features of the frequency (connection time, stability) are extracted. In order to facilitate subsequent model training and prediction, certain data transformation operations are performed on the extracted features. The network status features of discrete features and the performance features of the frequency are encoded for model processing.
[0151] The PSO algorithm is used to optimize the parameters of the SVM model to establish a more accurate frequency classification and prediction model. Specifically, the PSO algorithm finds the optimal combination of SVM model parameters based on historical data, including kernel function type, kernel function parameters, etc., to improve the prediction accuracy and generalization ability of the SVM model. Specifically, the membrane particle swarm optimization algorithm (m-PSO) and support vector machine (SVM) are selected as the main models. PSO is a commonly used optimization algorithm that can be used to find the optimal solution. Membrane computing is a parallel computing that can reduce the probability of the particle swarm algorithm falling into the local optimum. SVM is a classifier that can be used for classification and regression tasks. Combining m-PSO and SVM, we can optimize the parameters of the SVM model and improve the prediction accuracy and generalization ability of the model. The m-PSO algorithm finds the optimal combination of SVM model parameters based on historical data, including kernel function type, kernel function parameters, etc. By optimizing these parameters, the prediction accuracy and generalization ability of the SVM model can be improved. In the parameter optimization process, the m-PSO algorithm gradually adjusts the parameter combination of the model through iterative optimization to find the optimal solution.
[0152] The collected data is divided into a training set and a validation set. The training set is used to train the model, and the validation set is used to evaluate the performance of the model. The data is divided according to the date or timestamp, and the most recent historical data is used as the validation set, and the older data is used as the training set. Using the training set data, the optimized SVM model parameters are adopted to train the frequency classification and prediction model. During the training process, we can use methods such as cross-validation to evaluate the performance of the model and adjust the parameters of the model to optimize the performance. Specifically, an NB-IoT network frequency quality data set is established, and the data set is preprocessed. Then initialize the membrane structure, which includes a surface membrane and m basic membranes; initialize a particle population consisting of N particles flying at a certain speed in a k-dimensional space, and evenly distribute all particles to m basic membranes. Each basic membrane has n particles, and the surface membrane is empty. The membrane structure is as follows Figure 3 shown.
[0153] Then initialize the particle swarm algorithm parameters and set the learning factor C 1 , C 2 , inertia weight ω and maximum D iteration number T, limit the range of particles [x min ,x max ] and maximum speed v max In order to balance the global optimization and local optimization capabilities of particles, an inertia weight that decreases linearly with the number of iterations is used. The update of the inertia weight is as follows:
[0154]
[0155] Where t represents the current iteration number.
[0156] Establish the solution space, assign initial values to the penalty parameter c and kernel function parameter gamma in the SVM model, and the initial values are generated by random functions. The VM training accuracy under the meaning of c and gamma is used as the fitness value of PSO, and the fitness of particles in each basic membrane is calculated. The fitness value of each particle is compared with the best position pbest that the particle has passed. nm For comparison, the particle with the larger fitness value is selected as the current individual optimal position, and the individual optimal position of each particle is compared with the group optimal position gbest′ in the basic membrane where it is located. m For comparison, the particle with the larger fitness value is selected as the optimal position of the group in the current basic membrane, and then the optimal position of the group in the m basic membranes is sent to the surface membrane, and then the optimal position gbest with the largest fitness value is found by comparing these m optimal positions of the group, and gbest is used as the optimal position of the group of all particles, and it is returned from the surface membrane to each basic membrane. The speed and position of all particles are updated according to the following formula:
[0157] v nm (t+1)=ωv nm (t)+c 1 rand(pbest nm -x nm )+c 2 rand(gbest t -x nm )
[0158] x nm (t+1)=x nm (t)+v nm (t+1)
[0159] If the results of 15 consecutive iterations are the same, the rule is broken, the particles are reset, and the iteration is restarted. If the termination condition is met (the number of iterations is reached), the iteration is stopped, the global optimal values of the penalty parameters and kernel function parameters are output, and the algorithm ends. This parameter can be used for SVM vector machine classification.
[0160] The trained m-PSO-SVM model is used to classify NB terminal devices. According to the device's feature vector, it is divided into the corresponding category for targeted frequency selection. According to the classification results of the device and the characteristics of the current network environment, the most suitable frequency is selected for the device to use. This step adopts a dynamic frequency selection strategy, that is, according to the real-time monitored device status and network environment information, the frequency selection strategy is dynamically adjusted to ensure that the device is always connected to the most suitable frequency.
[0161] Use the trained SVM model to predict future frequency usage. According to the current device status and network environment information, predict the best frequency in the future to provide a reference for future frequency selection. Specifically, in actual applications, we can collect device status information and network environment information in real time, and use the trained frequency prediction model for prediction. According to the current device status information and network environment information, the most suitable frequency in the future can be predicted to provide a reference for device connection. Combining the dynamic frequency selection strategy and the real-time frequency prediction results, we can dynamically select the most suitable frequency for the device to use. According to the device status information and network environment, combined with the prediction results, the frequency selection strategy is dynamically adjusted to ensure that the device is always connected to the most suitable frequency. By collecting frequency usage and device performance data, the SVM model is regularly updated and optimized to adapt to the changing network environment and device requirements. At the same time, energy-saving strategies such as sleep mechanism and power control are adopted to further reduce device power consumption.
[0162] In order to obtain users' feedback on frequency selection and prediction in a timely manner, multiple feedback channels are established, such as online customer service, user surveys, data analysis, etc. Through these channels, we can interact with users and collect their feedback and opinions. The collected feedback data needs to be processed and analyzed. Compare the feedback data with historical data to find out the problems and deficiencies in frequency selection and prediction. At the same time, the feedback data can also be classified and summarized to find out the focus and needs of users. According to the feedback data and historical data, the problem can be diagnosed and located. Find out the key problems and deficiencies in frequency selection and prediction, such as low prediction accuracy and frequency conflicts. For these problems, corresponding optimization strategies and solutions can be formulated. According to the results of problem diagnosis and location, corresponding optimization measures can be taken. For example, for the problem of low prediction accuracy, you can try to improve the prediction model or increase the feature dimension; for the problem of frequency conflicts, you can optimize the frequency allocation strategy or introduce a coordination mechanism. After the optimization measures are implemented, the optimization effect needs to be evaluated. The optimization effect can be measured by comparing the performance indicators and user satisfaction before and after the optimization. If the optimization effect is not ideal, you can further adjust the optimization strategy and measures. Based on the evaluation results and user feedback, we can continuously improve and iterate the frequency selection and prediction models. We can constantly update the models and optimize the algorithms to improve the prediction accuracy and efficiency. At the same time, we can also continuously adjust and optimize the feedback mechanism and continuous optimization process according to user needs and market changes.
[0163] Through the above steps, closed-loop management of feedback mechanism and continuous optimization can be realized. By collecting user feedback and data analysis, problems can be discovered in time and optimized and improved; by evaluating the optimization effect and user feedback, optimization strategies and measures can be continuously adjusted and iterated. Such feedback mechanism and continuous optimization can ensure that the accuracy and efficiency of frequency selection and prediction are continuously improved, meet user needs and adapt to market changes.
[0164] Based on the training method of the device classification model provided in the above embodiment, the present application also provides a specific implementation of the training device of the device classification model. Please refer to the following embodiment.
[0165] See first Figure 4 The training device 400 of the device classification model provided in the embodiment of the present application includes the following modules:
[0166] An acquisition module 401 is used to acquire a training sample set, wherein the training sample set includes a plurality of training samples, and each of the training samples includes device feature information and a device classification corresponding to the device feature information;
[0167] Initialization module 402, used to initialize a preset particle group, the positions of the particles represent possible hyperparameter values of a preset device classification support vector machine model;
[0168] An input module 403 is used to input the above-mentioned device characteristic information into a device classification support vector machine model, and obtain a prediction result of the device classification corresponding to the above-mentioned device characteristic information according to the device classification support vector machine model hyperparameter value corresponding to each particle position;
[0169] A determination module 404 is used to determine the loss function value of the device classification support vector machine model according to the prediction results of each of the training samples;
[0170] A calculation module 405 is used to calculate the fitness value of each particle according to the loss function value corresponding to each particle based on a preset fitness function;
[0171] The determination module 404 is further used to determine the optimal position of the total population based on the position of the particle with the maximum fitness value;
[0172] The termination module 406 is used to use the hyperparameter value corresponding to the above-mentioned optimal position of the total group as the hyperparameter value of the preset device classification support vector machine model when the above-mentioned optimal position of the total group meets the preset termination condition.
[0173] The training device of the device classification model provided in the embodiment of the present application uses a particle swarm optimization algorithm to optimize the hyperparameter values of a preset device classification support vector machine model, and then obtains a trained device classification support vector machine model through model training. By optimizing the hyperparameters of the device classification support vector machine model through the particle swarm optimization algorithm, a more accurate model can be established, so that the stability of the long-term use of the network can be evaluated.
[0174] The training device of the device classification model provided in the embodiment of the present application uses a particle swarm optimization algorithm to optimize the hyperparameter values of a preset device classification support vector machine model, and then obtains a trained device classification support vector machine model through model training. By optimizing the hyperparameters of the device classification support vector machine model through the particle swarm optimization algorithm, a more accurate model can be established, so that the stability of the long-term use of the network can be evaluated.
[0175] As an implementation of the present application, the training apparatus 400 for the equipment classification model may further include:
[0176] The training module is used to update the current position of each particle and calculate the fitness value of each particle to determine the optimal position of the total group according to the optimal position of the total group and the individual optimal position corresponding to each particle when the optimal position of the total group does not meet the preset termination condition, and return to the above-mentioned input of the device feature information into the device classification support vector machine model until the preset training stop condition is met to obtain the trained device classification support vector machine model.
[0177] The above method of the embodiment of the present application updates the position of each particle in the particle group when the above optimal position of the total group does not meet the preset termination condition, and then determines the optimal position of the total group again. Through continuous iteration, a suitable device classification support vector machine model can be obtained according to the optimal support vector machine hyperparameters.
[0178] As an implementation of the present application, the training apparatus 400 for the equipment classification model may further include:
[0179] The comparison module is used to compare the fitness value of each particle with the historical fitness value to determine the individual optimal position corresponding to each particle.
[0180] The determination module is used to determine the group optimal position corresponding to each of the above basic membranes according to the above individual optimal position corresponding to each particle in each basic membrane.
[0181] The determination module is also used to determine the optimal position of the total group based on the optimal position of the group with the largest fitness value.
[0182] The above method of the embodiment of the present application compares the fitness value of each particle with the historical fitness value, first determines the individual optimal position corresponding to each particle, and then determines the group optimal position corresponding to each of the above basic membranes, and finally accurately obtains the overall group optimal position.
[0183] As an implementation of the present application, the training apparatus 400 for the equipment classification model may further include:
[0184] The reduction module is used to reduce the inertia weight corresponding to each particle according to the current number of iterations.
[0185] The updating module is used to update the speed of each particle using a preset particle speed updating formula according to the inertia weight, the optimal position of the total group and the individual optimal position corresponding to each particle.
[0186] The updating module is further used to update the current position of each particle according to the updated speed of each particle and calculate the fitness value of each particle to determine the optimal position of the total group until the above-mentioned preset termination condition is met.
[0187] The above method of the embodiment of the present application reduces the inertia weight corresponding to each particle according to the current number of iterations, updates the speed of each particle according to the inertia weight, and then updates the current position of each particle to determine the optimal position of the total group. By using the inertia weight that decreases linearly with the number of iterations, it is possible to avoid falling into a local optimal solution and accurately obtain the optimal position of the total group.
[0188] As an implementation of the present application, the training apparatus 400 for the equipment classification model may further include:
[0189] The acquisition module is used to obtain the device characteristic information of the target device.
[0190] The classification module is used to classify the target device based on the trained device classification support vector machine model and the device feature information of the target device to obtain the classification result of the target device.
[0191] The allocation module is used to allocate corresponding frequency points to the target devices according to the classification results and the current network environment characteristics.
[0192] The above method of the embodiment of the present application obtains the device feature information of the target device, and then allows the trained device classification support vector machine model to classify the target device according to the device feature information of the target device, thereby obtaining the classification result of the target device, and then according to the classification result and the current network environment characteristics, the corresponding frequency point can be allocated to the target device. Based on the classification of the target device, the frequency point can be reasonably allocated to the target device.
[0193] As an implementation of the present application, the training apparatus 400 for the equipment classification model may further include:
[0194] The monitoring module is used to monitor the device status and current network environment characteristics of the above target devices.
[0195] The evaluation module is used to perform a performance evaluation on the frequency point to which the target device is currently connected according to the device status and the current network environment characteristics.
[0196] The allocation module is used to allocate candidate frequency points to the target device when the result of the performance evaluation does not meet the preset conditions.
[0197] The above method of the embodiment of the present application performs a performance evaluation on the frequency point currently connected to the target device by monitoring the device status and the current network environment characteristics of the target device. If the result of the performance evaluation does not meet the preset conditions, a candidate frequency point is allocated to the target device. During the use of the target device, the frequency point allocated to the target device is dynamically adjusted according to the actual situation of the device and the network.
[0198] As an implementation of the present application, the training apparatus 400 for the equipment classification model may further include:
[0199] The collection module is used to collect feedback data of the target device, wherein the feedback data includes information generated during the operation of the target device based on the allocated frequency point.
[0200] The comparison module is used to compare the feedback data with the historical data of the target device to obtain an optimization strategy.
[0201] The optimization module is used to optimize the trained device classification support vector machine model based on the optimization strategy.
[0202] The above method of the embodiment of the present application collects the feedback data of the above target device, compares the feedback data with the historical data of the target device, determines a feasible optimization strategy, and then optimizes the trained device classification support vector machine model. The device classification support vector machine model is continuously optimized by the feedback data of the target device, and the device classification support vector machine model can be continuously optimized.
[0203] As an implementation of the present application, the training apparatus 400 for the equipment classification model may further include:
[0204] The collection module is used to collect historical frequency data, historical network information and device classification corresponding to multiple devices in different scenarios.
[0205] The cleaning module is used to clean the above historical frequency data and the above historical network information.
[0206] The extraction module is used to extract features from the cleaned historical frequency point data and the historical network information to obtain device feature information.
[0207] The classification module is used to combine the above device feature information with the above device classification to obtain a training sample set.
[0208] The above method of the embodiment of the present application cleans the above historical frequency data and the above historical network information, and then extracts features to obtain device feature information. The device feature information is combined with the above device classification to obtain a training sample set, which can improve the data quality in the training sample set.
[0209] Each module in the training device of the equipment classification model provided in the embodiment of the present application can implement each step in the training method of the equipment classification model mentioned above and achieve the corresponding effect. For the sake of concise description, it will not be repeated here.
[0210] Figure 5 A schematic diagram of the structure of the training hardware of the device classification model provided in an embodiment of the present application is shown.
[0211] The device for training the device classification model may include a processor 501 and a memory 502 storing computer program instructions.
[0212] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0213] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.
[0214] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method for training a device classification model according to any one embodiment of the present disclosure.
[0215] The processor 501 implements any one of the device classification model training methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .
[0216] In one example, the training device for the device classification model may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0217] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0218] Bus 510 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0219] In addition, in combination with the method for training the device classification model in the above embodiments, the present application embodiment may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, the method for training any device classification model in the above embodiments is implemented.
[0220] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed, implements the method for training any one of the device classification models in the above embodiments.
[0221] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0222] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0223] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0224] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box 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, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0225] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for training a device classification model, characterized in that: include: Acquire a training sample set, the training sample set comprising a plurality of training samples, each of the training samples comprising device feature information and a device classification corresponding to the device feature information; Initializing a preset particle swarm, where the positions of the particles represent possible hyperparameter values of a preset device classification support vector machine model; For each training sample, the following steps are performed respectively: the device feature information is input into the device classification support vector machine model, and the prediction result of the device classification corresponding to the device feature information is obtained according to the hyperparameter value of the device classification support vector machine model corresponding to each particle position; Determining a loss function value of the device classification support vector machine model according to the prediction results of each of the training samples; Based on the preset fitness function, the fitness value of each particle is calculated according to the loss function value corresponding to each particle; Determining the optimal position of the total population based on the position of the particle with the largest fitness value; When the optimal position of the total group satisfies a preset termination condition, the hyperparameter value corresponding to the optimal position of the total group is used as the hyperparameter value of the preset device classification support vector machine model.
2. The method for training a device classification model according to claim 1, characterized in that: The method further comprises: In the case that the optimal position of the total group does not meet the preset termination condition, the current position of each particle is updated and the fitness value of each particle is calculated according to the optimal position of the total group and the individual optimal position corresponding to each particle to determine the optimal position of the total group, and the device feature information is returned to the device classification support vector machine model until the preset training stop condition is met to obtain the trained device classification support vector machine model.
3. The method for training a device classification model according to claim 1, characterized in that: The particles in the particle group are evenly distributed in each basic membrane of the membrane structure, and the optimal position of the total group is determined based on the position of the particle with the largest fitness value, including: Compare the fitness value of each particle with the historical fitness value to determine the individual optimal position corresponding to each particle; According to the individual optimal position corresponding to each particle in each basic membrane, determining the group optimal position corresponding to each basic membrane; Based on the optimal position of the group with the largest fitness value, the optimal position of the entire group is determined.
4. The method for training a device classification model according to claim 2, characterized in that: The updating of the current position of each particle and the calculation of the fitness value of each particle according to the optimal position of the total group and the individual optimal position corresponding to each particle to determine the optimal position of the total group, and returning the input of the device feature information into the device classification support vector machine model until the preset training stop condition is met to obtain the trained device classification support vector machine model, including: Reduce the inertia weight of each particle according to the current number of iterations; Using a preset particle speed update formula, the speed of each particle is updated according to the inertia weight, the optimal position of the total group, and the individual optimal position corresponding to each particle; According to the updated speed of each particle, the current position of each particle is updated and the fitness value of each particle is calculated to determine the optimal position of the total population until the preset termination condition is met.
5. The method for training a device classification model according to claim 1, characterized in that: When the optimal position of the total group satisfies the preset termination condition, after taking the hyperparameter value corresponding to the optimal position of the total group as the hyperparameter value of the preset device classification support vector machine model, the method further includes: Get device characteristic information of the target device; Based on the trained device classification support vector machine model, classify the target device according to the device feature information of the target device to obtain a classification result of the target device; According to the classification result and the current network environment characteristics, a corresponding frequency point is allocated to the target device.
6. The method for training a device classification model according to claim 5, characterized in that: After allocating a corresponding frequency point to the target device according to the classification result and the current network environment characteristics, the method further includes: Monitoring the device status and current network environment characteristics of the target device; Performing a performance evaluation on the frequency point at which the target device is currently connected according to the device state and the current network environment characteristics; When the result of the performance evaluation does not meet a preset condition, a candidate frequency point is allocated to the target device.
7. The method for training a device classification model according to claim 5, characterized in that: After allocating a corresponding frequency point to the target device according to the classification result and the current network environment characteristics, the method further includes: Collecting feedback data of the target device, wherein the feedback data includes information generated during the operation of the target device based on the allocated frequency point; Comparing the feedback data with the historical data of the target device to obtain an optimization strategy; Based on the optimization strategy, the trained device classification support vector machine model is optimized.
8. The method for training a device classification model according to any one of claims 1 to 7, characterized in that: Before obtaining the training sample set, the method further includes: Collect historical frequency data, historical network information, and device classifications of multiple devices in different scenarios; Performing data cleaning on the historical frequency data and the historical network information; Performing feature extraction on the cleaned historical frequency point data and the historical network information to obtain device feature information; The device feature information is combined with the device classification to obtain a training sample set.
9. A training device for a device classification model, characterized in that: The device comprises: An acquisition module, used to acquire a training sample set, wherein the training sample set includes a plurality of training samples, each of which includes device feature information and a device classification corresponding to the device feature information; An initialization module, used to initialize a preset particle swarm, wherein the positions of the particles represent possible hyperparameter values of a preset device classification support vector machine model; An input module, used to input the device feature information into a device classification support vector machine model, and obtain a prediction result of the device classification corresponding to the device feature information according to the hyperparameter value of the device classification support vector machine model corresponding to each particle position; A determination module, used to determine the loss function value of the device classification support vector machine model according to the prediction results of each of the training samples; A calculation module, used to calculate the fitness value of each particle according to the loss function value corresponding to each particle based on a preset fitness function; The determination module is further used to determine the optimal position of the total population based on the position of the particle with the largest fitness value; The termination module is used to use the hyperparameter value corresponding to the optimal position of the total group as the hyperparameter value of the preset device classification support vector machine model when the optimal position of the total group meets the preset termination condition.
10. A training device for a device classification model, characterized in that: The device includes: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the training method of the device classification model as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the training method for the device classification model as described in any one of claims 1-8 is implemented.
12. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the training method for the device classification model as described in any one of claims 1-8.
Citation Information
Cited By
Radar signal classification method and device, electronic equipment, medium and program product
CN120539696A
