Fault diagnosis method, device, equipment and medium
By converting the business data of the set-top box into a characteristic fault map and inputting it into the fault diagnosis model, the problem of non-intelligent fault diagnosis of the set-top box in the existing technology is solved, and intelligent detection and fault handling are improved.
Patent Information
- Application Number
- CN202110365767.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-06
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-04-06
AI Technical Summary
In the existing technology, set-top box fault diagnosis is not intelligent enough and cannot effectively implement intelligent detection, resulting in low fault handling efficiency.
By obtaining the business data of the set-top box, convert it into a characteristic fault map in picture format, and input it into the pre-trained fault diagnosis model to output the fault diagnosis results and realize intelligent detection.
It realizes intelligent detection of set-top box faults, improves fault handling efficiency, and can accurately identify fault types, causes and network quality, and provide solutions.
Smart Images

Figure CN115167329B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of network television, and in particular, relates to a fault diagnosis method, device, equipment and medium. Background Art
[0002] Internet Protocol TV (IPTV) is based on network video resources, and uses TV sets, personal computers and handheld devices as the main display terminals. IPTV can provide a variety of digital media services through the Internet protocol, bringing users a new way to watch TV. However, with the rapid development of media services represented by IPTV, higher standards are also required for network operation and maintenance.
[0003] Currently, faults can be detected by detecting set-top box error codes, or by using interactive wireless signal transmission between the client and the server to monitor status parameters in real time. However, there is a problem that fault diagnosis is not intelligent enough.
[0004] Therefore, how to realize intelligent detection of set-top box failures is an issue that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide a fault diagnosis method, apparatus, device and medium, which can make up for the defect that the prior art cannot intelligently detect set-top box faults.
[0006] In a first aspect, an embodiment of the present application provides a fault diagnosis method, the method comprising: obtaining first business data of a target set-top box; converting the first business data into a picture format to obtain a characteristic fault map of the target set-top box; inputting the characteristic fault map into a target fault diagnosis model, and outputting a fault diagnosis result of the target set-top box.
[0007] In some embodiments of the first aspect, based on simulating the behavior of the target set-top box, basic behavior data of the target set-top box is obtained, wherein the basic behavior data includes set-top box information, traffic data and network management data of the target set-top box; and the first business data is determined based on the basic behavior data.
[0008] In some embodiments of the first aspect, first business data is determined based on basic behavior data, including: obtaining two-dimensional vector data of a target set-top box based on traffic data and network management data, the two-dimensional vector data representing data on a relationship between multiple data stream information obtained within a preset time range and a preset time range; obtaining terminal association information of the target set-top box by querying based on a set-top box identifier in the set-top box information; obtaining network access information of the target set-top box by querying based on the terminal association information; and determining the first business data based on the two-dimensional vector data, the terminal association information, the network access information, and the set-top box information.
[0009] In some embodiments of the first aspect, two-dimensional vector data of the target set-top box is obtained based on the traffic data and network management data, including: monitoring the IP quintuple and MAC address of the traffic data based on the network management data, and determining abnormal traffic data with abnormal IP quintuple and MAC address; performing service message parsing and service session restoration on the abnormal traffic data to obtain a data stream of the abnormal traffic data; and processing the data stream into two-dimensional vector data.
[0010] In some embodiments of the first aspect, the first business data is converted into a picture format to obtain a characteristic fault map of the target set-top box, including: normalizing multiple first business data acquired within a preset time period to obtain second business data of the target set-top box; converting the second business data into a picture format to obtain a characteristic fault map of the target set-top box.
[0011] In some embodiments of the first aspect, before obtaining the first business data of the target set-top box, the method also includes: obtaining multiple training samples, wherein the training samples include characteristic fault graph samples of the set-top box and their corresponding fault diagnosis result samples; training a first fault diagnosis model according to the training samples to obtain a target fault diagnosis model.
[0012] In the second aspect, an embodiment of the present application provides a fault diagnosis device, which includes: a first acquisition module, used to acquire first business data of a target set-top box; a conversion module, used to convert the first business data into a picture format to obtain a characteristic fault map of the target set-top box; an output module, inputting the characteristic fault map into a target fault diagnosis model, and outputting a fault diagnosis result of the target set-top box.
[0013] In some embodiments of the second aspect, the second acquisition module is used to obtain basic behavior data of the target set-top box based on simulating the behavior of the target set-top box, wherein the basic behavior data includes set-top box information, traffic data and network management data of the target set-top box; the determination module is used to determine the first business data based on the basic behavior data.
[0014] In a third aspect, a fault diagnosis device is provided, comprising: a memory for storing computer program instructions; a processor for reading and running the computer program instructions stored in the memory to execute the fault diagnosis method provided by the first aspect or any optional implementation of the first aspect.
[0015] In a fourth aspect, a computer storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the fault diagnosis method provided by the first aspect or any optional implementation of the first aspect is implemented.
[0016] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0017] The embodiment of the present application obtains the first business data of the target set-top box by converting it into a picture format to obtain a characteristic fault map of the target set-top box. After obtaining the characteristic fault map of the target set-top box, the characteristic fault map of the target set-top box is input into a pre-trained target fault diagnosis model, thereby obtaining a fault diagnosis result of the target set-top box, thereby realizing intelligent detection of set-top box faults. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 It is a flowchart of a fault diagnosis method provided in an embodiment of the present application;
[0020] Figure 2 is a flowchart of another fault diagnosis method provided in an embodiment of the present application;
[0021] Figure 3 is a structural schematic diagram of a fault diagnosis device provided in an embodiment of the present application;
[0022] Figure 4 It is a structural diagram of a fault diagnosis device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] 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.
[0024] 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 statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0025] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0026] Most of the existing technologies for set-top box fault diagnosis currently analyze the error codes of the set-top boxes to diagnose the faults caused by the set-top boxes, or diagnose the set-top box faults based on the transmission of interactive wireless signals. They are mainly used to optimize various aspects of the performance of the set-top boxes for manufacturers and service providers, and cannot facilitate users to troubleshoot faults and actively operate and maintain in a timely and accurate manner, so that problems can be solved and the fault handling efficiency can be improved. However, the diagnostic methods in the existing technologies are too limited and not intelligent enough, and cannot solve the actual problems on the user side.
[0027] In summary, in order to solve the problem in the prior art that the set-top box fault cannot be intelligently detected, the embodiments of the present application provide a fault diagnosis method, device, equipment and medium.
[0028] The technical solution provided in the embodiments of the present application is described below in conjunction with the accompanying drawings.
[0029] Figure 1 It is a flowchart of a fault diagnosis method provided in an embodiment of the present application.
[0030] like Figure 1 As shown, the execution subject of the method is the pipeline side network management system, and the fault diagnosis method can include the following steps
[0031] First, step S110, obtaining first service data of a target set-top box;
[0032] Next, step S120, converting the first service data into a picture format to obtain a characteristic fault diagram of the target set-top box;
[0033] Then, in step S130, the characteristic fault graph is input into the target fault diagnosis model, and the fault diagnosis result of the target set-top box is output.
[0034] Therefore, by converting the acquired first business data of the target set-top box into a picture format, a characteristic fault map of the target set-top box is obtained. After obtaining the characteristic fault map of the target set-top box, the characteristic fault map of the target set-top box is input into a pre-trained target fault diagnosis model, so that the fault diagnosis result of the target set-top box can be obtained, thereby realizing intelligent detection of set-top box faults.
[0035] The above steps are described in detail below:
[0036] First, step S110 is involved. In the embodiment of the present application, the target set-top box refers to the set-top box that needs to be diagnosed for a fault. The first service data includes set-top box information, two-dimensional vector data, terminal association information and network access information.
[0037] Secondly, step S120 is involved, and the picture format includes but is not limited to RGB format, and may also be other picture formats such as bmp format, jpg format, etc. The characteristic fault map is a picture containing the target set-top box fault information obtained based on the first service data of the target set-top box. Exemplarily, the first service data of the target set-top box can be converted into an RGB picture format to obtain the characteristic fault map of the target set-top box.
[0038] Then, step S130 is involved, the target fault diagnosis model is a model obtained through pre-training, and exemplarily, the target fault diagnosis model can be a traffic classification model of CNN-LSTM, which is not limited here. The fault diagnosis result includes the fault type, fault cause and network quality assessment result of the target set-top box, and may also include a solution. Exemplarily, when the characteristic fault graph is input into the traffic classification model of CNN-LSTM that has been pre-trained, after the traffic classification model of CNN-LSTM recognizes and analyzes the characteristic fault graph, the fault type, fault cause, network quality assessment structure and corresponding solution of the target set-top box are displayed.
[0039] In a specific example, the characteristic fault map and the preset fault code table can be used as the input of the target fault diagnosis model to obtain the fault diagnosis result. Figure 1 A corresponding detection record table and detection status diagram are provided to obtain the detection record and detection status corresponding to the characteristic fault diagram.
[0040] In another specific example, it is first necessary to obtain multiple training samples. Among them, the training samples include characteristic fault graph samples of set-top boxes and their corresponding fault diagnosis result samples. Through multiple training samples obtained from historical data, the characteristic fault graph samples in each training sample and the corresponding fault diagnosis result samples are input into the first fault diagnosis model for training to obtain a target fault diagnosis model. Among them, the first fault diagnosis model is a fault model to be trained. Exemplarily, assuming that the first fault diagnosis model is a traffic classification model of a CNN-LSTM to be trained, the obtained multiple characteristic fault graph samples and the corresponding fault diagnosis result samples are input into the traffic classification model of the CNN-LSTM to be trained for training to obtain the traffic classification model of the target CNN-LSTM. After obtaining the traffic classification model of the target CNN-LSTM, the obtained characteristic fault graph is input into the traffic classification model of the target CNN-LSTM to obtain the fault diagnosis result of the target set-top box.
[0041] In addition, when training the traffic classification model based on CNN-LSTM, the CNN network is used and then the LSTM structure is used for joint training. First, the traffic characteristics of the data flow are extracted using the convolution layer-pooling layer, and then the description is generated using the LSTM structure. The extracted features are nonlinearly combined using the fully connected layer to obtain the output, and finally the classifier is used to obtain the diagnosis result and the target fault diagnosis model. Among them, the network structure has two convolution layers C1 and C2, two pooling layers P1 and P2, and two fully connected layers FC1 and FC2. The input layer is a 16*16 dataset after data preprocessing. The C1 layer uses 32 3*3 convolution kernels and outputs a feature fault map of unchanged size to the P1 layer. The P1 layer uses 2*2 window maximum pooling. The P1 layer outputs to the C2 layer. C2 and C1 use the same parameters, and P2 and P1 also use the same parameters. After two layers of convolution-pooling operations, a 4*4 image is output to the fully connected layers FC1 and FC2. FC1 has a total of 1024 neurons and FC2 has 128 neurons. After the softmax layer, a 1*12 label vector is output, and finally the trained target CNN-LSTM traffic classification model is obtained.
[0042] Therefore, by using machine learning methods to perform pattern recognition on the characteristic fault diagrams that have been collected and standardized, real-time analysis and data restoration can be achieved to obtain the corresponding features, that is, the fault diagnosis results can be accurately obtained.
[0043] Based on this, in addition to the above steps, in a possible embodiment, Figure 2 As shown, before step S110, the above-mentioned fault diagnosis method may further include: step S1001 and step S1002, which are specifically as follows:
[0044] Step S1001, based on simulating the behavior of the target set-top box, basic behavior data of the target set-top box is obtained.
[0045] Here, the basic behavior data may include set-top box information, traffic data and network management data. Among them, the set-top box information is the information obtained by the set-top box through sniffing passive collection, which may include the set-top box number, set-top box IP address, broadband type, set-top box model, set-top box manufacturer, default gateway, electronic program guide, and data streams generated by simulating the behavior of the target set-top box. Traffic data refers to the traffic data collected based on the behavior of the target set-top box after the end-side optical network unit (Optical Network Unit, ONU) accesses the target set-top box. As a result, it is possible to have an automated data collection process and full-flow data line-speed collection, support and television (Television, TV) service signaling and data flow line-speed collection, as well as real-time collection of other service data in the network. Network management data is network management data automatically collected by the pipeline side network management system, which can realize the automated collection of network management data of key network element devices of the TV service bearer network. After collecting the set-top box information, traffic data and network management data, the basic behavior data needs to be compressed and packaged and sent to the pipeline side network management system. For example, the target set-top box can be used to actively inspect the user's behavior and simulate the user's routine operations to obtain basic behavior data. For example, the target set-top box can perform operations such as program on-demand and fast-forward, and automatically traverse the set-top box operations. In addition, the target set-top box also supports automated testing of customizable application behavior processes. This automated test can be an automated test based on big data and algorithms to optimally detect target set-top box failures. Based on this, users can customize related behavior operations to simulate the target set-top box packet sending and detect system failures such as network and IPTV background.
[0046] Step S1002: determining first business data according to basic behavior data.
[0047] Specifically, the two-dimensional vector data, terminal association information, and network access information in the first business data are obtained through the set-top box information, traffic data, and network management data in the basic behavior data, and then the high-dimensional first business data is obtained by combining the set-top box information in the basic behavior data.
[0048] Among them, the two-dimensional vector data of the target set-top box can be obtained through the traffic data and network management data in the basic behavior data. Specifically, the IP five-tuple and media access control address (Media Access Control, MAC) of the traffic data are monitored through the network management data in the basic behavior data to obtain the abnormal traffic data with abnormal IP five-tuple and MAC address in the traffic data, and the two-dimensional vector data is processed by the data stream after the service message parsing and service session restoration of the obtained abnormal traffic data. Among them, the IP five-tuple refers to the source IP address, source port, destination IP address, destination port, and transport layer protocol. The data stream obtained based on the abnormal traffic data is a data stream including the IP five-tuple, MAC address and data packet size of the abnormal traffic data. The two-dimensional vector data is represented as the data of the relationship between the data stream obtained based on the abnormal traffic processing and the preset time range within the preset time range. Exemplarily, in one coordinate axis, the vertical axis can be time data, and the horizontal axis can be the data stream obtained at the current time.
[0049] In addition, the terminal association information of the target set-top box refers to the terminal association information obtained by querying the unique set-top box identifier of the set-top box in the set-top box information, wherein the terminal association information may include information such as broadband services and IPTV service usage. The network access information is the network access information obtained by querying the set-top box to the access network and other related links based on the terminal association information of the target set-top box. Exemplarily, the network access information may be a transport layer protocol, an application layer protocol, VLAN information, a port number, etc. Finally, the high-dimensional first service data is obtained based on the obtained two-dimensional vector data, the terminal association information, the network access information, and the set-top box information in the basic behavior data.
[0050] In this way, the first business data is obtained by performing real-time standard processing on the collected basic behavior data, which avoids the accuracy of the obtained first business data being affected by human intervention to a certain extent.
[0051] Continue as Figure 2 As shown, accordingly, the above-mentioned step S120 may specifically include: step S1201 and step S1202, which are specifically as follows:
[0052] Step S1201, normalizing a plurality of first service data acquired within a preset time period to obtain second service data of a target set-top box.
[0053] The second business data is business data obtained by normalizing the first business data corresponding thereto.
[0054] Exemplarily, the first business data acquired within a certain period of time (H hours) is preprocessed, that is, the first business data is sampled and divided, the data is balanced, and the formula is used Normalize the data of each dimension in the interval [0,255], where max(x) is the maximum value of a feature x in the entire first business data, and min(x) is the minimum value of a feature x in the entire first business data. Each first business data has T features, and the value ranges of all features are normalized. That is to say, for multiple first business data obtained within a preset time period, each dimension of each first business data is normalized, that is, the two-dimensional vector data, terminal association information and network access information therein are normalized. More specifically, multiple features in the data of each dimension of the two-dimensional vector data, terminal association information and network access information are normalized.
[0055] In a specific example, three first business data A, B, and C are obtained within a preset time period, and the two-dimensional vector data in the three first business data are normalized. The three first business data respectively contain two-dimensional vector data A1, A2, A3; B1, B2, B3; C1, C2, C3. First, the features of the corresponding two-dimensional vector data in the three first business data are normalized, that is, A1, B1, and C1 are substituted into the formula for normalization.
[0056] Step S1202: convert the second service data into a picture format to obtain a characteristic fault diagram of the target set-top box.
[0057] Specifically, by converting each feature (i.e., data) in the second business data into a picture format, and using data enhancement methods to process the picture, such as random shearing, adding some data and noise to the original data, improving the generalization ability of the model, and performing random inversion and sharpening operations on the picture, it is beneficial to the feature extraction of the neural network, and obtaining a feature fault map.
[0058] Based on the same inventive concept, the present application embodiment also provides a fault diagnosis device. Figure 3 Explanation
[0059] Figure 3 It is a structural schematic diagram of a fault diagnosis device provided in an embodiment of the present application.
[0060] like Figure 3 As shown, the fault diagnosis device may include: a first acquisition unit 310 , a conversion unit 320 and an output module 330 .
[0061] A first acquisition module 310, configured to acquire first service data of a target set-top box;
[0062] A conversion module 320, configured to convert the first service data into a picture format to obtain a characteristic fault diagram of a target set-top box;
[0063] The output module 330 inputs the characteristic fault diagram into the target fault diagnosis model and outputs the fault diagnosis result of the target set-top box.
[0064] In some embodiments, the apparatus further comprises:
[0065] A second acquisition module is used to acquire basic behavior data of the target set-top box based on simulating the behavior of the target set-top box, wherein the basic behavior data includes set-top box information, traffic data and network management data of the target set-top box;
[0066] A determination module is used to determine the first business data according to the basic behavior data
[0067] In some embodiments, the determination module specifically includes:
[0068] A first acquisition unit, configured to obtain two-dimensional vector data of a target set-top box according to the traffic data and the network management data, wherein the two-dimensional vector data represents data on a relationship between a plurality of data flow information obtained within a preset time range and the preset time range;
[0069] A second acquisition unit is used to query and obtain the terminal association information of the target set-top box according to the set-top box identifier in the set-top box information;
[0070] A third acquisition unit is used to obtain network access information of a target set-top box according to the terminal association information;
[0071] The fourth acquisition unit is used to determine the first service data based on the two-dimensional vector data, the terminal association information, the network access information and the set-top box information.
[0072] In some embodiments, the first acquisition unit specifically includes:
[0073] The first determination subunit is used to monitor the IP quintuple and MAC address of the flow data according to the network management data, and determine the abnormal flow data with abnormal IP quintuple and MAC address
[0074] A first acquisition subunit is used to perform service message parsing and service session restoration on the abnormal traffic data to obtain a data stream of the abnormal traffic data;
[0075] The first processing subunit is used to process the data stream into two-dimensional vector data.
[0076] In some embodiments, the conversion module 320 may specifically include:
[0077] A normalization processing unit, used for performing normalization processing on a plurality of first service data acquired within a preset time period to obtain second service data of a target set-top box;
[0078] The first conversion unit is used to convert the second service data into a picture format to obtain a characteristic fault map of a target set-top box.
[0079] In some embodiments, the apparatus further comprises:
[0080] A first training module is used to obtain a plurality of training samples, wherein the training samples include characteristic fault diagram samples of the set-top box and corresponding fault diagnosis result samples;
[0081] The second training module is used to train the first fault diagnosis model according to the training samples to obtain a target fault diagnosis model.
[0082] The embodiment of the present application obtains the first business data of the target set-top box by converting it into a picture format to obtain a characteristic fault map of the target set-top box. After obtaining the characteristic fault map of the target set-top box, the characteristic fault map of the target set-top box is input into a pre-trained target fault diagnosis model, thereby obtaining a fault diagnosis result of the target set-top box, thereby realizing intelligent detection of set-top box faults.
[0083] Figure 4 It is a structural diagram of a fault diagnosis device provided in an embodiment of the present application.
[0084] like Figure 4 As shown, the fault diagnosis device 400 in this embodiment includes an input device 401, an input interface 402, a central processing unit 403, a memory 404, an output interface 405, and an output device 406. The input interface 402, the central processing unit 403, the memory 404, and the output interface 405 are interconnected through a bus 410, and the input device 401 and the output device 406 are connected to the bus 410 through the input interface 402 and the output interface 405, respectively, and then connected to other components of the information acquisition device 400.
[0085] Specifically, the input device 401 receives input information from the outside and transmits the input information to the central processing unit 403 through the input interface 402; the central processing unit 403 processes the input information based on the computer executable instructions stored in the memory 404 to generate output information, temporarily or permanently stores the output information in the memory 404, and then transmits the output information to the output device 406 through the output interface 405; the output device 406 outputs the output information to the outside of the information acquisition device 400 for user use.
[0086] In one embodiment, Figure 4The fault diagnosis device 400 shown includes: a memory 404 for storing programs; a processor 403 for running the programs stored in the memory to perform the Figure 1 or Figure 2 The method of the illustrated embodiment.
[0087] The present application also provides a computer-readable storage medium on which computer program instructions are stored; when the computer program instructions are executed by a processor, the present application also provides a computer-readable storage medium on which computer program instructions are stored; Figure 1 or Figure 2 The method of the illustrated embodiment.
[0088] 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.
[0089] The functional blocks shown in the structural block diagram described above 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 (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments 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 communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memories (Read-Only Memory, ROM), flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0090] 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.
[0091] 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 fault diagnosis method, characterized in that: include: Acquire first service data of a target set-top box, wherein the first service data includes set-top box information, two-dimensional vector data, terminal association information, and network access information; Converting the first service data into a picture format to obtain a characteristic fault diagram of the target set-top box; Inputting the characteristic fault graph into a target fault diagnosis model, and outputting a fault diagnosis result of the target set-top box; The converting the first service data into a picture format to obtain a characteristic fault diagram of the target set-top box includes: Normalizing a plurality of first service data acquired within a preset time period to obtain second service data of the target set-top box; Converting the second service data into a picture format to obtain a characteristic fault diagram of the target set-top box; Before obtaining the first service data of the target set-top box, the method further includes: Acquire a plurality of training samples, wherein the training samples include characteristic fault diagram samples of a set-top box and corresponding fault diagnosis result samples; A first fault diagnosis model is trained according to the training samples to obtain a target fault diagnosis model.
2. The method according to claim 1, characterized in that Before the first service data of the target set-top box is obtained, the method includes: Based on simulating the behavior of the target set-top box, basic behavior data of the target set-top box is obtained, wherein the basic behavior data includes set-top box information, traffic data and network management data of the target set-top box; The first business data is determined according to the basic behavior data.
3. The method according to claim 2, characterized in that The determining the first business data according to the basic behavior data includes: Obtaining two-dimensional vector data of the target set-top box according to the traffic data and the network management data, wherein the two-dimensional vector data represents data of a relationship between a plurality of pieces of data flow information obtained within a preset time range and the preset time range; According to the set-top box identifier in the set-top box information, query and obtain the terminal association information of the target set-top box; Obtaining network access information of the target set-top box according to the terminal association information; The first service data is determined based on the two-dimensional vector data, the terminal association information, the network access information and the set-top box information.
4. The method according to claim 3, characterized in that: The step of obtaining the two-dimensional vector data of the target set-top box according to the traffic data and the network management data includes: Monitoring the IP quintuple and the MAC address of the traffic data according to the network management data, and determining abnormal traffic data with abnormal IP quintuple and abnormal MAC address; Performing service message parsing and service session restoration on the abnormal traffic data to obtain a data stream of the abnormal traffic data; The data stream is processed into the two-dimensional vector data.
5. A fault diagnosis device, characterized in that: The device comprises: A first acquisition module, used to acquire first service data of a target set-top box, wherein the first service data includes set-top box information, two-dimensional vector data, terminal association information and network access information; A conversion module, used for converting the first service data into a picture format to obtain a characteristic fault diagram of the target set-top box; An output module, inputting the characteristic fault graph into a target fault diagnosis model, and outputting a fault diagnosis result of the target set-top box; The conversion module comprises: A normalization processing unit, configured to perform normalization processing on a plurality of first service data acquired within a preset time period to obtain second service data of the target set-top box; A first conversion unit, configured to convert the second service data into a picture format to obtain a characteristic fault diagram of the target set-top box; The device also includes: A first training module is used to obtain a plurality of training samples, wherein the training samples include characteristic fault diagram samples of set-top boxes and corresponding fault diagnosis result samples; The second training module is used to train the first fault diagnosis model according to the training samples to obtain a target fault diagnosis model.
6. The device according to claim 5, characterized in that The device also includes: A second acquisition module is used to acquire basic behavior data of the target set-top box based on simulating the behavior of the target set-top box, wherein the basic behavior data includes set-top box information, traffic data and network management data of the target set-top box; A determination module is used to determine the first business data according to the basic behavior data.
7. A fault diagnosis device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the fault diagnosis method according to any one of claims 1 to 4.
8. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the fault diagnosis method according to any one of claims 1 to 4 is implemented.
