A Deep Learning-Based Intelligent Fault Prediction Method and System for Switches
Deep learning technology is used to analyze the operating status data of switches and extract features to determine faults, which solves the shortcomings of existing technologies that rely on manual setting of thresholds, enables real-time monitoring and decision support of switch faults, and reduces costs and time.
Patent Information
- Application Number
- CN202410251041.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-06
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-03-06
AI Technical Summary
Existing switch fault prediction methods rely on manually setting thresholds and rules, which cannot meet real-time requirements, increase labor costs and time costs, and cannot adapt to changes in the network environment.
Using artificial intelligence technology based on deep learning, by monitoring and analyzing the operating status time series data of the switch, such as network traffic, port status and CPU utilization, extracting local timing features and timing associated semantic features, using convolutional neural networks and converters The module determines whether the switch is faulty.
It realizes real-time monitoring of switch faults, reduces the impact of faults on the network, provides important decision support for network management and maintenance, and reduces labor costs and time costs.
Smart Images

Figure CN117834567B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent prediction technology, and more specifically, to a switch fault intelligent prediction method and system based on deep learning. Background Art
[0002] Switches are important devices in computer networks, used to forward data packets between different network nodes. In large-scale networks, switch failures may cause network interruptions, data loss, and performance degradation, causing inconvenience and losses to network operations and users. Therefore, accurate and timely prediction of switch failures has become an important task in network management and maintenance.
[0003] Traditional switch fault prediction methods are mainly based on thresholds, rules, and simple statistical analysis techniques. These methods often require manual setting of thresholds or rules, which means that if the distribution of data changes or new fault modes appear, the thresholds or rules need to be manually readjusted to adapt to changes in the network environment, which not only increases labor costs and time costs, but also fails to meet real-time requirements. Therefore, a switch fault intelligent prediction method and system based on deep learning is expected. Summary of the invention
[0004] In order to solve the above technical problems, this application is proposed. The embodiment of the present application provides a switch fault intelligent prediction method and system based on deep learning, which uses artificial intelligence technology based on deep learning to monitor and analyze the operating status time series data of the switch, such as network traffic, port status and CPU utilization, and mines the abnormal status characteristics of the switch to determine whether the switch is faulty. In this way, real-time monitoring of switch faults can be achieved, providing important decision-making support for network management and maintenance personnel, and reducing the impact of switch faults on the network.
[0005] Accordingly, according to one aspect of the present application, a deep learning-based intelligent switch fault prediction method is provided, which includes: obtaining a time series of operating status data of a monitored switch, wherein the operating status data includes network traffic, port status, and CPU utilization; extracting local timing features of the operating status data time series to obtain a sequence of switch operating status local timing feature vectors; extracting timing-related semantic features of the sequence of switch operating status local timing feature vectors to obtain a switch operating status timing-related semantic coding feature vector; and determining whether the monitored switch has a fault based on the switch operating status timing-related semantic coding feature vector.
[0006] In the above-mentioned intelligent switch fault prediction method based on deep learning, the local time series features of the operating status data time series are extracted to obtain a sequence of local time series feature vectors of the switch operating status, including: performing sequence division on the operating status data time series based on a predetermined time scale to obtain a sequence of local time series of the operating status data; using a deep learning model to perform time series encoding on the sequence of local time series of the operating status data to obtain a sequence of local time series feature vectors of the switch operating status.
[0007] In the above-mentioned switch fault intelligent prediction method based on deep learning, the deep learning model is a switch operation status feature extractor based on a convolutional neural network model.
[0008] In the above-mentioned intelligent prediction method for switch faults based on deep learning, a deep learning model is used to perform time series encoding on the sequence of local time series of the operating status data to obtain a sequence of local time series feature vectors of the switch operating status, including: using a switch operating status feature extractor based on a convolutional neural network model to encode each local time series of the operating status data in the sequence of local time series of the operating status data to obtain a sequence of local time series feature vectors of the switch operating status.
[0009] In the above-mentioned intelligent prediction method for switch faults based on deep learning, the time-series-related semantic features of the sequence of local time-series feature vectors of the switch operation status are extracted to obtain the switch operation status time-series-related semantic coding feature vector, including: passing the sequence of local time-series feature vectors of the switch operation status through a context encoder based on a converter module to obtain the switch operation status time-series-related semantic coding feature vector.
[0010] In the above-mentioned intelligent switch fault prediction method based on deep learning, whether the monitored switch has a fault is determined based on the switch operation status timing-related semantic coding feature vector, including: passing the switch operation status timing-related semantic coding feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether the monitored switch has a fault.
[0011] In the above-mentioned intelligent switch fault prediction method based on deep learning, the switch operation state time series associated semantic coding feature vector is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the monitored switch has a fault, including: using the fully connected layer of the classifier to fully connect the switch operation state time series associated semantic coding feature vector to obtain a fully connected coding feature vector; inputting the fully connected coding feature vector into the Softmax classification function of the classifier to obtain the probability value of the switch operation state time series associated semantic coding feature vector belonging to each classification label, and the classification label includes the presence of a fault in the monitored switch and the absence of a fault in the monitored switch; and determining the classification label corresponding to the largest of the probability values as the classification result.
[0012] In the above-mentioned switch fault intelligent prediction method based on deep learning, it also includes a training step: training the switch operation status feature extractor based on the convolutional neural network model, the context encoder based on the converter module and the classifier.
[0013] In the above-mentioned switch fault intelligent prediction method based on deep learning, the training step includes: obtaining training data, the training data including a time series of training operation status data of a monitored switch, wherein the training operation status data includes training network traffic, training port status and training CPU utilization, and a true value of whether the monitored switch has a fault; performing sequence division on the time series of the training operation status data based on a predetermined time scale to obtain a sequence of local time series of the training operation status data; using the switch operation status feature extractor based on the convolutional neural network model to encode each local time series of the training operation status data in the sequence of local time series of the training operation status data to obtain a local time series of the training switch operation status; The invention relates to a method for training a switch operation state feature extractor based on a convolutional neural network model, ...
[0014] According to another aspect of the present application, a deep learning-based intelligent switch fault prediction system is provided, which includes: a switch operation status monitoring module, used to obtain the operation status data time series of the monitored switch, wherein the operation status data includes network traffic, port status and CPU utilization; an operation status local time series encoding module, used to extract the local time series features of the operation status data time series to obtain a sequence of switch operation status local time series feature vectors; an operation status time series association semantic encoding module, used to extract the time series association semantic features of the sequence of the switch operation status local time series feature vectors to obtain a switch operation status time series association semantic encoding feature vector; a fault diagnosis module, used to determine whether the monitored switch has a fault based on the switch operation status time series association semantic encoding feature vector.
[0015] Compared with the prior art, the deep learning-based intelligent switch fault prediction method and system provided by the present application utilizes deep learning-based artificial intelligence technology to monitor and analyze the switch's operating status time series data, such as network traffic, port status, and CPU utilization, from which the abnormal status characteristics of the switch are mined to further determine whether the switch has a fault. In this way, real-time monitoring of switch faults can be achieved, providing important decision-making support for network management and maintenance personnel, and reducing the impact of switch faults on the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0017] Figure 1 The present invention is a flowchart of a method for intelligently predicting switch faults based on deep learning according to an embodiment of the present application.
[0018] Figure 2 Schematic diagram of the architecture of a deep learning-based intelligent switch fault prediction method according to an embodiment of the present application.
[0019] Figure 3 The present invention is a flowchart of extracting local time series features of the operation status data time series in the switch fault intelligent prediction method based on deep learning according to an embodiment of the present application to obtain a sequence of local time series feature vectors of the switch operation status.
[0020] Figure 4The present invention is a flowchart of obtaining a classification result by passing the switch operation status time series association semantic coding feature vector through a classifier in a switch fault intelligent prediction method based on deep learning according to an embodiment of the present application.
[0021] Figure 5 The present invention is a flowchart of the training steps in the deep learning-based intelligent switch fault prediction method according to an embodiment of the present application.
[0022] Figure 6 4 is a block diagram of a switch fault intelligent prediction system based on deep learning according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] To facilitate the understanding of the embodiments of the present invention, the specific embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the specific embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0024] Figure 1 The present invention is a flowchart of a method for intelligently predicting switch faults based on deep learning according to an embodiment of the present application. Figure 2 FIG. 1 is a schematic diagram of the architecture of a switch fault intelligent prediction method based on deep learning according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the deep learning-based intelligent prediction method for switch faults according to the embodiment of the present application, the method includes the following steps: S110, obtaining the time series of the operating status data of the monitored switch, wherein the operating status data includes network traffic, port status and CPU utilization; S120, extracting the local timing features of the time series of the operating status data to obtain a sequence of local timing feature vectors of the switch operating status; S130, extracting the timing-associated semantic features of the sequence of local timing feature vectors of the switch operating status to obtain a timing-associated semantic coding feature vector of the switch operating status; S140, determining whether the monitored switch has a fault based on the timing-associated semantic coding feature vector of the switch operating status.
[0025] As mentioned in the above background technology, the switch is one of the important devices in the computer network. It is usually used in a local area network (LAN) or a wide area network (WAN) to connect multiple computers or other network devices and forward data packets between them. In a large-scale network, the connection method and topology of the switch are very complex. If a switch fails, it may cause network interruption, data loss, data packet loop, broadcast storm and other problems, affecting the performance and stability of the entire network. Therefore, in order to reduce the impact of switch failures on the network, network administrators usually need to take some preventive and maintenance measures to reduce the probability of failures, and respond to and resolve failures in a timely manner to ensure the stability of the network.
[0026] At present, some existing switch fault prediction methods mainly perform fault detection and prediction by manually setting thresholds or rules. When certain indicators of the switch (such as CPU utilization, memory utilization, link load, etc.) exceed or fall below the set threshold, a fault alarm is triggered. Although this method is simple and intuitive, it requires prior understanding and setting of appropriate thresholds. Detecting switch faults based on specific rules requires the administrator to understand network behavior and failure modes and write corresponding rules. These methods rely on the administrator's experience and expertise, and require continuous adjustment and updating of thresholds or rules to adapt to changes in the network environment, which not only increases labor costs and time costs, but also fails to meet real-time requirements.
[0027] In response to the above technical problems, the technical concept of this application is to use artificial intelligence technology based on deep learning to monitor and analyze the time series data of the switch's operating status, such as network traffic, port status, and CPU utilization, and to mine the abnormal state characteristics of the switch to determine whether the switch is faulty. In this way, real-time monitoring of switch faults can be achieved, providing important decision-making support for network management and maintenance personnel, and reducing the impact of switch faults on the network.
[0028] In the above-mentioned intelligent prediction method for switch faults based on deep learning, the step S110 obtains the time series of the operating status data of the monitored switch, wherein the operating status data includes network traffic, port status and CPU utilization. It should be understood that network traffic refers to the data traffic passing through the switch, which reflects the data transmission of the switch in a specific time period. Abnormal network traffic may mean network congestion, link failure or attack. Port status refers to the working status of each port on the switch, including information such as the switch status, link status and rate of the port. Abnormal port status may indicate problems such as port hardware failure, link interruption or configuration error. By monitoring and analyzing changes in port status, potential fault conditions can be discovered in time. CPU utilization refers to the utilization rate of the central processing unit (CPU) of the switch, which reflects the computing load of the switch. Abnormal CPU utilization may indicate insufficient computing resources, software problems or malicious attacks of the switch. In other words, by obtaining the time series data of network traffic, port status and CPU utilization of the monitored switch, comprehensive switch status information can be provided, so that it is possible to accurately determine whether the switch has a fault based on the switch status information, and provide timely fault warning and decision support.
[0029] In the above-mentioned switch fault intelligent prediction method based on deep learning, the step S120 extracts the local time series features of the operation status data time series to obtain a sequence of local time series feature vectors of the switch operation status. Specifically, Figure 3 The present invention is a flowchart of extracting local time series features of the operation status data time series in the switch fault intelligent prediction method based on deep learning according to the embodiment of the present application to obtain a sequence of local time series feature vectors of the switch operation status. Figure 3 As shown, the step S120 includes: S121, dividing the operation status data time series into sequences based on a predetermined time scale to obtain a sequence of local time series of the operation status data; S122, using a deep learning model to perform time series encoding on the sequence of local time series of the operation status data to obtain a sequence of local time series feature vectors of the switch operation status.
[0030] Specifically, the step S121 divides the operation status data time series into a sequence based on a predetermined time scale to obtain a sequence of local time series of the operation status data. It should be understood that by dividing the entire operation status data time series into multiple local time series, the operation status of the switch can be decomposed into smaller time periods, and the data in each time period can more concentratedly describe the operation status characteristics in the time period to avoid the interference of noise and fluctuations in the entire time series on fault prediction. In addition, the operation status of the switch may have different time scale change patterns. For example, some fault modes may manifest as short-term, rapid state changes. By dividing the operation status data into a predetermined time scale, important operation status characteristics can be highlighted, thereby better identifying and predicting faults.
[0031] Specifically, in step S122, the sequence of local time series of the operating status data is time-encoded using a deep learning model to obtain a sequence of local time series feature vectors of the operating status of the switch. In a specific example of the present application, the encoding method of using a deep learning model to time-encode the sequence of local time series of the operating status data to obtain a sequence of local time series feature vectors of the operating status of the switch is to use a switch operating status feature extractor based on a convolutional neural network model to encode each local time series of the operating status data in the sequence of local time series of the operating status data to obtain a sequence of local time series feature vectors of the operating status of the switch. A person of ordinary skill in the art should know that a convolutional neural network (CNN) is a deep learning model that constructs a deep network by stacking multiple convolutional layers, pooling layers, and fully connected layers. During the training process, the convolutional neural network optimizes the network parameters through a back-propagation algorithm so that the network can learn the feature representation and pattern of the input data. In the technical solution of the present application, the sequence of the local time series of the operating status data is input into the switch operating status feature extractor based on the convolutional neural network model for processing. The switch operating status feature extractor can apply the convolution layer to perform local perception on the input data, and extract the local time series features of each local time series of the operating status data through the sliding window operation of the convolution kernel, such as sudden traffic changes, abnormal port status, etc., so as to better represent the operating status of the switch, capture the characteristic patterns related to the fault, and provide more distinguishing input for subsequent fault prediction. In addition, the parameter sharing characteristics of the convolutional neural network can reduce the number of parameters of the model and improve the training efficiency and generalization ability of the model.
[0032] In the above-mentioned intelligent prediction method for switch faults based on deep learning, the step S130 extracts the time-related semantic features of the sequence of local time-related feature vectors of the switch operation state to obtain the switch operation state time-related semantic coding feature vector. It should be understood that in order to capture the time-related association and semantic information between the operation states of the switch at different time points, the sequence of local time-related feature vectors of the switch operation state is further subjected to time-related semantic coding. In a specific example of the present application, the encoding method of extracting the time-related semantic features of the sequence of local time-related feature vectors of the switch operation state to obtain the switch operation state time-related semantic coding feature vector is to pass the sequence of local time-related feature vectors of the switch operation state through a context encoder based on a converter module to obtain the switch operation state time-related semantic coding feature vector. A person of ordinary skill in the art should know that the converter module is a neural network model based on a self-attention mechanism, which can perform context association on each element in the input sequence through a self-attention mechanism, that is, each element can obtain information about other elements. In the technical solution of the present application, a context encoder based on a converter module is used to process the sequence of the local time series feature vectors of the switch operation state, which can interactively correlate the switch operation state feature information in the sequence of the local time series feature vectors of the switch operation state, and capture the time series correlation characteristics between the local time series feature vectors of the operation state of each switch, so as to more accurately describe the operation state of the switch. In addition, the converter module can perform deep semantic encoding on the sequence of the local time series feature vectors of the switch operation state through a multi-layer self-attention mechanism, learn the semantic features and patterns related to faults in the sequence of the local time series feature vectors of the switch operation state, and encode them into a more expressive semantic feature representation, so as to better represent the state evolution process of the switch and improve the accuracy of switch fault prediction.
[0033] In the above-mentioned intelligent switch fault prediction method based on deep learning, the step S140 determines whether the monitored switch has a fault based on the switch operation state timing-related semantic coding feature vector. In a specific example of the present application, the implementation method of determining whether the monitored switch has a fault based on the switch operation state timing-related semantic coding feature vector is to pass the switch operation state timing-related semantic coding feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether the monitored switch has a fault. It should be understood that a classifier is a model for mapping input data to different categories, which can learn the distinguishing features between different categories and assign the input data to corresponding categories according to its features. In the technical solution of the present application, first, the classifier is trained using training data with known labels so that it can learn the mapping relationship between sample features in the training data and different labels. Then, the switch operation status time series associated semantic coding feature vector is input into the trained classifier, and the classifier is used to learn the feature pattern in the switch operation status time series associated semantic coding feature vector, capture the difference between the fault feature pattern and the normal state feature, and then realize the classification mapping of the switch operation status time series associated semantic coding feature vector, and output the classification result for indicating whether the monitored switch has a fault. In this way, the prediction and detection of switch faults can be realized, thereby helping network administrators to timely discover and solve potential problems and improve the performance and manageability of the network.
[0034] Figure 4 The present invention is a flowchart of a method for intelligently predicting switch faults based on deep learning according to an embodiment of the present application, in which the switch operation status time series associated semantic coding feature vector is passed through a classifier to obtain a classification result. Figure 4 As shown, the step S140 includes: S141, using the fully connected layer of the classifier to fully connect the semantic coding feature vector of the switch operation status timing association to obtain a fully connected coding feature vector; S142, inputting the fully connected coding feature vector into the Softmax classification function of the classifier to obtain the probability value of the switch operation status timing association semantic coding feature vector belonging to each classification label, and the classification label includes the monitored switch having a fault and the monitored switch not having a fault; S143, determining the classification label corresponding to the largest one among the probability values as the classification result.
[0035] It should be understood that before using the above neural network model, it is necessary to train the switch operation status feature extractor based on the convolutional neural network model, the context encoder based on the converter module, and the classifier. That is to say, in the switch fault intelligent prediction method based on deep learning of the present application, it also includes a training step of training the switch operation status feature extractor based on the convolutional neural network model, the context encoder based on the converter module, and the classifier.
[0036] Figure 5 FIG. 1 is a flowchart of the training steps in the switch fault intelligent prediction method based on deep learning according to an embodiment of the present application. Figure 5 As shown, the training step includes: S210, acquiring training data, the training data including a time series of training operation status data of a monitored switch, wherein the training operation status data includes a real value of training network traffic, training port status and training CPU utilization, and whether the monitored switch has a fault; S220, performing sequence division on the time series of the training operation status data based on a predetermined time scale to obtain a sequence of local time series of the training operation status data; S230, using the switch operation status feature extractor based on the convolutional neural network model to encode each local time series of the training operation status data in the sequence of local time series of the training operation status data to obtain a sequence of local time series feature vectors of the operation status of the training switch; S2 40, pass the sequence of the local temporal feature vectors of the training switch operation status through the context encoder based on the converter module to obtain the training switch operation status temporal association semantic coding feature vector; S250, pass the training switch operation status temporal association semantic coding feature vector through the classifier to obtain the classification loss function value; S260, calculate the specific loss function value of the sequence of the training switch operation status local temporal feature vectors and the training switch operation status temporal association semantic coding feature vector; S270, use the weighted sum of the classification loss function value and the specific loss function value as the loss function value to train the switch operation status feature extractor based on the convolutional neural network model, the context encoder based on the converter module and the classifier.
[0037] In the above technical solution, the sequence of the local time series feature vectors of the training switch operation status expresses the sample data association features in the local time domain of the training operation status data of the monitored switch determined by time scale division in the global time domain, and the training switch operation status time series association semantic coding feature vector represents the association features in the local time domain based on the global association features of the local time domain context under the global time domain. Therefore, the sequence of the local time series feature vectors of the training switch operation status and the training switch operation status time series association semantic coding feature vector have different feature group density representations based on different association modes under the global time domain-local time domain scale. In this way, when the training switch operation status time series association semantic coding feature vector is trained through a classifier, the switch operation status feature extractor based on the convolutional neural network model and the context encoder based on the converter module will have imbalanced training iterations based on different feature group density representations, affecting the overall training efficiency of the model.
[0038] Therefore, in the technical solution of the present application, consideration is given to improving the consistency of the feature group density representation of the sequence of the local timing feature vectors of the training switch operating status and the semantic coding feature vector associated with the timing of the training switch operating status, thereby further introducing a specific loss function for the sequence of the local timing feature vectors of the training switch operating status and the semantic coding feature vector associated with the timing of the training switch operating status.
[0039] Specifically, the step S260 includes: using the following specific loss function to calculate a specific loss function value of the sequence of the local time series feature vectors of the training switch operation state and the semantic coding feature vector associated with the training switch operation state time series; wherein the specific loss function is expressed as: ; is a concatenated feature vector obtained by concatenating the sequence of local time series feature vectors of the switch operation status, is the switch operation status time sequence associated semantic coding feature vector, wherein the cascade feature vector The semantic coding feature vector associated with the switch operation state timing Have the same length , and are the concatenated feature vectors The semantic coding feature vector associated with the switch operation state timing The eigenvalues of represents the square of the vector's two-norm, is the specific loss function value.
[0040] Here, the specific loss function performs group count attention based on feature group density, and performs adaptive attention to different density representation modes between the sequence of local time series feature vectors of the operating state of the training switch and the semantic coding feature vector associated with the operating state of the training switch by recursively mapping the group count as the output feature group density. By using it as a specific loss function to train the model, the model can avoid over-estimation and under-estimation for different density modes under the feature distribution of the sequence of local time series feature vectors of the operating state of the training switch and the semantic coding feature vector associated with the operating state of the training switch, and learn the corresponding relationship between the feature value distribution and the group density distribution, thereby achieving the optimization of the consistency of the feature group density representation between the sequence of local time series feature vectors of the operating state of the training switch with different feature densities and the semantic coding feature vector associated with the operating state of the training switch, so as to improve the overall training efficiency of the model.
[0041] In summary, the intelligent switch fault prediction method based on deep learning according to the embodiment of the present application is explained, which uses artificial intelligence technology based on deep learning to monitor and analyze the time series data of the switch's operating status, such as network traffic, port status, and CPU utilization, and mines the abnormal state characteristics of the switch to further determine whether the switch has a fault. In this way, real-time monitoring of switch faults can be achieved, providing important decision-making support for network management and maintenance personnel, and reducing the impact of switch faults on the network.
[0042] Figure 6 FIG. 1 is a block diagram of a switch fault intelligent prediction system based on deep learning according to an embodiment of the present application. Figure 6 As shown, according to an embodiment of the present application, a switch fault intelligent prediction system 100 based on deep learning includes: a switch operation status monitoring module 110, which is used to obtain the operation status data time series of the monitored switch, wherein the operation status data includes network traffic, port status and CPU utilization; an operation status local time series encoding module 120, which is used to extract the local time series features of the operation status data time series to obtain a sequence of switch operation status local time series feature vectors; an operation status time series association semantic encoding module 130, which is used to extract the time series association semantic features of the sequence of the switch operation status local time series feature vectors to obtain a switch operation status time series association semantic encoding feature vector; a fault diagnosis module 140, which is used to determine whether the monitored switch has a fault based on the switch operation status time series association semantic encoding feature vector.
[0043] Here, those skilled in the art can understand that the specific operations of each module in the above-mentioned switch fault intelligent prediction system based on deep learning have been referred to above. Figures 1 to 5The description of the deep learning-based intelligent prediction method for switch faults has been introduced in detail, and therefore, its repeated description will be omitted.
[0044] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments. In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the module division is only a logical function division, and there may be other division methods in actual implementation. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0045] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0046] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference to a figure in a claim should not be considered as limiting the claim to which it relates.
[0047] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units stated in the system claims can also be implemented by one unit through software or hardware.
[0048] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A switch fault intelligent prediction method based on deep learning, characterized in that: include: Acquire a time series of operating status data of a monitored switch, wherein the operating status data includes network traffic, port status, and CPU utilization; extract local time series features of the time series of the operating status data to obtain a sequence of local time series feature vectors of the switch operating status; extract time series-related semantic features of the sequence of local time series feature vectors of the switch operating status to obtain a time series-related semantic coding feature vector of the switch operating status; determine whether the monitored switch has a fault based on the time series-related semantic coding feature vector of the switch operating status; The method further includes a training step of: training a switch operation status feature extractor based on a convolutional neural network model, a context encoder based on a converter module, and a classifier; The training step includes: acquiring training data, the training data including a time series of training operation status data of a monitored switch, wherein the training operation status data includes training network traffic, training port status, training CPU utilization, and a true value of whether the monitored switch is faulty; performing sequence division on the time series of training operation status data based on a predetermined time scale to obtain a sequence of local time series of training operation status data; using the switch operation status feature extractor based on the convolutional neural network model to encode each local time series of training operation status data in the sequence of local time series of training operation status data to obtain a sequence of local time series feature vectors of training switch operation status. ; Pass the sequence of the local time series feature vectors of the running state of the training switch through the context encoder based on the converter module to obtain the time series associated semantic coding feature vector of the running state of the training switch; Pass the time series associated semantic coding feature vector of the running state of the training switch through the classifier to obtain the classification loss function value; Calculate the specific loss function value of the sequence of the local time series feature vectors of the running state of the training switch and the time series associated semantic coding feature vector of the running state of the training switch; Use the weighted sum of the classification loss function value and the specific loss function value as the loss function value to train the switch running state feature extractor based on the convolutional neural network model, the context encoder based on the converter module and the classifier; The specific loss function value of the sequence of the local time series feature vectors of the running state of the training switch and the semantic coding feature vector associated with the running state of the training switch is calculated, including: using the following specific loss function to calculate the specific loss function value of the sequence of the local time series feature vectors of the running state of the training switch and the semantic coding feature vector associated with the running state of the training switch; wherein the specific loss function is expressed as: ; is a concatenated feature vector obtained by concatenating the sequence of local time series feature vectors of the switch operation status, is the switch operation status time sequence associated semantic coding feature vector, wherein the cascade feature vector The semantic coding feature vector associated with the switch operation state timing Have the same length , and are the concatenated feature vectors The semantic coding feature vector associated with the switch operation state timing The eigenvalues of represents the square of the vector's two-norm, is the specific loss function value.
2. The switch fault intelligent prediction method based on deep learning according to claim 1 is characterized in that: Extracting local time series features of the operation status data time series to obtain a sequence of local time series feature vectors of the switch operation status, including: performing sequence division on the operation status data time series based on a predetermined time scale to obtain a sequence of local time series of the operation status data; and performing time series encoding on the sequence of local time series of the operation status data using a deep learning model to obtain a sequence of local time series feature vectors of the switch operation status.
3. The switch fault intelligent prediction method based on deep learning according to claim 2 is characterized in that: The deep learning model is a switch operation status feature extractor based on a convolutional neural network model.
4. The switch fault intelligent prediction method based on deep learning according to claim 3 is characterized in that: Using a deep learning model to perform time series encoding on the sequence of local time series of the operating status data to obtain a sequence of local time series feature vectors of the operating status of the switch, including: using a switch operating status feature extractor based on a convolutional neural network model to encode each local time series of the operating status data in the sequence of local time series of the operating status data to obtain a sequence of local time series feature vectors of the operating status of the switch.
5. The switch fault intelligent prediction method based on deep learning according to claim 4 is characterized in that: Extracting the time-series-related semantic features of the sequence of local time-series feature vectors of the switch operation status to obtain the switch operation status time-series-related semantic coding feature vector, including: passing the sequence of the switch operation status local time-series feature vectors through a context encoder based on a converter module to obtain the switch operation status time-series-related semantic coding feature vector.
6. The switch fault intelligent prediction method based on deep learning according to claim 5 is characterized in that: Based on the switch operation status timing-related semantic coding feature vector, determining whether the monitored switch has a fault includes: passing the switch operation status timing-related semantic coding feature vector through a classifier to obtain a classification result, wherein the classification result is used to indicate whether the monitored switch has a fault.
7. The switch fault intelligent prediction method based on deep learning according to claim 6 is characterized in that: The switch operation state timing-related semantic coding feature vector is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the monitored switch has a fault, including: using the fully connected layer of the classifier to perform fully connected coding on the switch operation state timing-related semantic coding feature vector to obtain a fully connected coding feature vector; inputting the fully connected coding feature vector into the Softmax classification function of the classifier to obtain probability values of the switch operation state timing-related semantic coding feature vector belonging to each classification label, and the classification labels include whether the monitored switch has a fault and whether the monitored switch does not have a fault; and determining the classification label corresponding to the largest of the probability values as the classification result.
8. A switch fault intelligent prediction system based on deep learning according to the switch fault intelligent prediction method based on deep learning according to claim 1, characterized in that: include: A switch operation status monitoring module is used to obtain the operation status data time series of the monitored switch, wherein the operation status data includes network traffic, port status and CPU utilization; an operation status local time series coding module is used to extract the local time series features of the operation status data time series to obtain a sequence of switch operation status local time series feature vectors; an operation status time series association semantic coding module is used to extract the time series association semantic features of the sequence of switch operation status local time series feature vectors to obtain a switch operation status time series association semantic coding feature vector; a fault diagnosis module is used to determine whether the monitored switch has a fault based on the switch operation status time series association semantic coding feature vector.
