Abnormal link detection method, device, equipment and storage medium
By combining the offline isolated forest model trained with historical data and the personalized model trained with online conference samples, abnormal link detection is performed on audio and video communications, which solves the problem of low accuracy in the existing technology and achieves accurate identification of complex scenes. .
Patent Information
- Application Number
- CN202210441702.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-25
AI Technical Summary
Existing audio and video communication abnormal link detection has low accuracy. This is mainly because training supervision models requires manual labeling of samples, which consumes a lot of manpower and has incomplete coverage, resulting in inaccurate models. It is difficult to adapt to complex scenarios by judging a single abnormality threshold.
The offline isolated forest model trained based on historical data and the personalized isolated forest model trained based on current meeting online samples are used to detect real-time link samples. The target abnormal value is obtained through weighted calculation. If the target abnormal value is greater than the threshold, an exception notification is issued.
It improves the accuracy of abnormal link detection in audio and video communication. It uses dual models to identify abnormal traffic from different angles, adapts to complex scenarios, and enhances the accuracy of detection.
Smart Images

Figure CN114793205B
Abstract
Description
Technical Field
[0001] The present application relates to the field of video communication technology, and in particular to an abnormal link detection method, device, equipment and storage medium. Background Art
[0002] The current abnormal link detection in audio and video communications (such as video conferencing) mainly includes training supervision models by marking abnormal samples and performing abnormal threshold detection and judgment on single indicators. Among them, training supervision models requires manual labeling of samples, which consumes a lot of manpower, and incomplete coverage of abnormal samples causes inaccurate models. Single abnormal threshold judgment can only detect simple scenarios and is difficult to adapt to complex scenarios, resulting in inaccurate detection. Therefore, the current abnormal link detection in audio and video communications has the problem of low accuracy. Summary of the invention
[0003] The main purpose of the present application is to provide an abnormal link detection method, device, equipment and storage medium, aiming to solve the technical problem of low accuracy in abnormal link detection of audio and video communications in the prior art.
[0004] To achieve the above object, the present application provides an abnormal link detection method, the abnormal link detection method comprising:
[0005] The real-time link sample is detected based on a preset first detection model and a second detection model to obtain a first outlier value and a second outlier value respectively, wherein the first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting;
[0006] Performing weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value;
[0007] If the target abnormal value is greater than the abnormal threshold, it is determined that the data link is abnormal and an abnormal notification is issued.
[0008] Optionally, the step of detecting the real-time link sample based on a preset first detection model and a second detection model to obtain a first outlier value and a second outlier value respectively, wherein the first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting, includes:
[0009] Obtain a historical sample set and an initial detection model;
[0010] Training the initial detection model based on the historical sample set, and when the training result meets the end condition, stopping the training to obtain the first model parameter;
[0011] The first model parameters are input into the initial detection model to obtain a first detection model.
[0012] Optionally, before the step of detecting the real-time link sample based on the preset first detection model and the second detection model to obtain the first abnormal value and the second abnormal value, the step includes:
[0013] Obtain online samples within a preset time period before the current meeting to form an online sample set;
[0014] Inputting the online sample set into the initial detection model for training, and when the training result meets the end condition, stopping the training to obtain the second model parameters;
[0015] The second model parameters are input into the initial detection model to obtain a second detection model.
[0016] Optionally, the step of performing weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value includes:
[0017] Obtaining preset weighting parameters;
[0018] The first outlier value and the second outlier value are weightedly calculated based on a weighting parameter to obtain a target outlier value.
[0019] Optionally, if the target abnormal value is greater than an abnormal threshold, determining that an abnormality exists in the data link and issuing an abnormality notification comprises:
[0020] Get the anomaly threshold;
[0021] comparing the target outlier value with the outlier threshold;
[0022] If the target abnormal value is greater than the abnormal threshold, the real-time link sample is determined to be an abnormal sample, an abnormality exists in the data link, and an abnormality notification is issued.
[0023] Optionally, if the target abnormal value is greater than the abnormal threshold, the real-time link sample is determined to be an abnormal sample, and an abnormality exists in the data link. After the step of issuing an abnormality notification, the method includes:
[0024] Acquiring link characteristic information in a communication link;
[0025] Based on the abnormal state of the link feature information, an abnormal processing result corresponding to the abnormal state is output.
[0026] Optionally, the first detection model is an offline isolation forest model, and the second detection model is an online isolation forest model.
[0027] The present application also provides an abnormal link detection device, the abnormal link detection device comprising:
[0028] A detection module, configured to detect the real-time link sample based on a preset first detection model and a second detection model to obtain a first abnormal value and a second abnormal value respectively, wherein the first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting;
[0029] A calculation module, configured to perform weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value;
[0030] The judgment module is used to determine that there is an abnormality in the data link and issue an abnormality notification if the target abnormality value is greater than the abnormality threshold.
[0031] The present application also provides an abnormal link detection device, the abnormal link detection device comprising: a memory, a processor, and a program stored in the memory for implementing the abnormal link detection method.
[0032] The memory is used to store a program for implementing the abnormal link detection method;
[0033] The processor is used to execute a program for implementing the abnormal link detection method to implement the steps of the abnormal link detection method described above.
[0034] An embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned abnormal link detection methods.
[0035] The present application provides an abnormal link detection method, device, equipment and storage medium. Compared with the low accuracy of abnormal link detection in audio and video communication in the prior art, in the present application, the real-time link samples are detected based on the preset first detection model and the second detection model to obtain the first abnormal value and the second abnormal value respectively. The first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting; the first abnormal value and the second abnormal value are weighted and calculated to obtain the target abnormal value; if the target abnormal value is greater than the abnormal threshold, it is determined that the data link is abnormal, and an abnormal notification is issued. The relatively universal offline isolation forest model is trained using historical data, and the personalized online isolation forest model corresponding to the user is trained using the traffic data of a single user in the meeting, thereby obtaining a double isolation forest model. In the process of users participating in the meeting, the aforementioned trained double isolation forest model is used to jointly participate in abnormal identification, thereby ensuring the accuracy of abnormal identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application;
[0037] Figure 2 This is a flow chart of the first embodiment of the abnormal link detection method of the present application;
[0038] Figure 3 This is a schematic diagram of a video conferencing architecture of the first embodiment of the abnormal link detection method of the present application;
[0039] Figure 4 This is a schematic diagram of the functional modules of a preferred embodiment of the abnormal link detection device of the present application.
[0040] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.
[0043] The terminal in the embodiment of the present application can be a PC, or it can be a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a portable computer, or other portable terminal devices with display function.
[0044] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0045] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.
[0046] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0047] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a network operation control application program.
[0048] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the network operation control application stored in the memory 1005.
[0049] Reference Figure 2 , an embodiment of the present application provides an abnormal link detection method, the abnormal link detection method comprising:
[0050] Step S100, detecting the real-time link sample based on a preset first detection model and a second detection model to obtain a first outlier value and a second outlier value respectively, wherein the first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting;
[0051] Step S200, performing weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value;
[0052] Step S300: If the target abnormal value is greater than the abnormal threshold, it is determined that there is an abnormality in the data link and an abnormality notification is issued.
[0053] The specific steps are as follows:
[0054] Step S100, detecting the real-time link sample based on a preset first detection model and a second detection model to obtain a first outlier value and a second outlier value respectively, wherein the first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting;
[0055] In this embodiment, it should be noted that the abnormal link detection method belongs to the abnormal link detection system, and the abnormal link detection system is subordinate to the abnormal link detection device.
[0056] In this embodiment, the specific application scenario may be:
[0057] The current abnormal link detection in audio and video communications (such as video conferencing) mainly includes training supervision models by marking abnormal samples and performing abnormal threshold detection and judgment on single indicators. Among them, training supervision models requires manual labeling of samples, which consumes a lot of manpower, and incomplete coverage of abnormal samples causes inaccurate models. Single abnormal threshold judgment can only detect simple scenarios and is difficult to adapt to complex scenarios, resulting in inaccurate detection. Therefore, the current abnormal link detection in audio and video communications has the problem of low accuracy.
[0058] In the present application, for the abnormal link detection system, the real-time link samples are detected based on the preset first detection model and the second detection model to obtain the first abnormal value and the second abnormal value respectively. The first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting; the first abnormal value and the second abnormal value are weighted and calculated to obtain the target abnormal value; if the target abnormal value is greater than the abnormal threshold, it is determined that there is an abnormality in the data link, and an abnormal notification is issued, that is, the abnormal traffic in the real-time link is identified from different angles through two prediction models to obtain the first abnormal value and the second abnormal value. By weighting the two abnormal values, the detection of abnormal samples in the real-time link samples is realized, thereby improving the accuracy of abnormal link detection.
[0059] That is, in the present application, dual models are used to identify abnormal traffic from different angles, thereby solving the problem of low accuracy in detecting abnormal links in audio and video communications.
[0060] In this embodiment, it should be noted that the first detection model and the second detection model are models for detecting and identifying abnormal traffic in the communication link. The first detection model is a detection of universal distribution of sample data, and the second detection model is a detection of individual distribution of single conference samples or strong correlation of single sending user receiving end samples. It can be understood that the first detection model can be an offline isolation forest model, and the second detection model can be an online isolation forest model, wherein the isolation forest (Isolation Forest, referred to as iForest), the isolation forest model is composed of N trees, which is used to mine abnormal (Anomaly) data, or outlier mining, which can be understood to be in a large number of data, to find data that does not conform to the rules of other data, usually used for attack detection and traffic anomaly analysis in network security. Through the two isolation forest models, the detection and identification of abnormal traffic can be realized from different angles. The following is described as an example that the first detection model can be an offline isolation forest model and the second detection model can be an online isolation forest model. The implementation methods of other detection models are basically the same and will not be repeated here.
[0061] Reference Figure 3 , Based on the video conference architecture diagram of SFU (Selective Forward Unit), user A pushes the audio and video streams to the SFU server to which he is directly connected. The server forwards the audio and video streams of user A to the SFU server to which users in the same conference are connected through the SFU server cascade, and then pushes them to other users. The number of bits, bit rate, packet data, packet loss, nack request number, pli request number, fir request number, frame rate, resolution and other indicators of the sent or received data stream are obtained within a period T (usually 10s, 20s or 1min) as indicator characteristics of link quality, where
[0062] s(i) represents the link characteristic information of the flow sent by user i (collected at the sending client end);
[0063] fs(i) indicates that the sfu service directly linked to user i receives the flow link feature information (collected by the SFU server);
[0064] fr(i,j) indicates that the sfu service directly linked to user j receives the link characteristic information of the flow sent by user i (collected by the SFU server);
[0065] r(i,j) indicates the link characteristic information of the flow sent by user i received by user j (collected by the receiving client);
[0066] According to the meaning of the eigenvector, it is easy to know that there is a significant correlation between s(i), fs(i), fr(i,j), and r(i,j). (i,j),j∈M},{r (i,j) ,j∈M}, the correlation between samples is strong, which indicates the characteristic distribution of the receiving end of the stream sent by user i;
[0067] Collection {s (i) ,i∈M},{fs (i) ,i∈M},{fr (i,j) ,j∈M i∈M},{r (i,j) ,j∈M, there is a certain correlation between samples within i∈M, which represents the characteristic distribution of sample data in the same conference; where M represents the set of users in a conference.
[0068] Furthermore, the step of detecting the real-time link sample based on the preset first detection model and the second detection model to obtain the first outlier value and the second outlier value respectively, wherein the first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting, includes:
[0069] Step A1, obtaining a historical sample set and an initial detection model;
[0070] Step A2, training the initial detection model based on the historical sample set, and when the training result meets the end condition, stopping the training to obtain the first model parameter;
[0071] Step A3: input the first model parameters into the initial detection model to obtain a first detection model.
[0072] In this embodiment, a historical sample set is formed based on offline data in history, and an isolation forest model MODEL is created through the historical sample set, wherein the isolation forest model is a tree-shaped integrated model composed of more than one isolated tree, and all nodes of each isolated tree have 2 child nodes or no child nodes; given a sample set X = {x1, x2, ..., xn} containing n samples, the samples are grouped according to their frame rate fps, resolution w and h to form a sample set G, and for each sample set, the sample set X is recursively constructed by randomly selecting a feature q of the data set and a split value p of the randomly selected feature, thereby establishing an isolation tree.
[0073] The initial detection model is trained through the historical sample set. When the training result meets the end condition, the training stops. The end condition can be that the depth of the isolated tree reaches the specified maximum value; it can also be that after a certain recursion, the node of the isolated tree has only one sample; it can also be that after a certain recursion, the node data of the isolated tree have the same value. When the training result meets one of the above end conditions, the process of recursively establishing the isolated tree stops. Therefore, each set of historical sample sets is sampled t times, and a part of the data is sampled each time to establish an isolated tree iTree (fps,w,h), t samplings are performed to establish t isolated trees, and finally G*t isolated trees form an isolation forest.
[0074] After the model training is completed, the first model parameters such as the sample data set feature q1 and the feature split value p1 are obtained. The historical sample set X is recursively constructed through the sample data set feature q1 and the feature split value p1 to establish an isolation tree. The obtained offline isolation forest model is as follows:
[0075]
[0076] Among them, fps is the frame rate of the sample, w*h is the resolution, and μ1 and μ2 are the weighting coefficients of the above formula.
[0077] It should be noted that μ1 and μ2 are empirical values obtained through historical training. If it is detected that the accuracy of the target outlier value obtained based on μ1 and μ2 is low, μ1 and μ2 are optimized and adjusted. It can be understood that the difference between the target outlier value and the actual outlier value is used to determine whether the difference exceeds the error range. If so, μ1 and μ2 need to be optimized and adjusted.
[0078] Therefore, the specific process of detecting the real-time link sample through the first detection model to obtain the first abnormal value is:
[0079] The path length h of a leaf node x in an isolated tree (fps,w,h) (x) is the number of edges from the root node of the isolation tree to the leaf node where x is located. Given a data set containing n samples, an isolation tree is established for it. The average path length c(n) of an isolation tree is:
[0080]
[0081] Wherein, H(i) is the harmonic number, and its value may be H(i)=ln(i)+0.577215664.
[0082] When the sample size is fixed at n, the average path length c(n) of different isolated trees is the same, which is used to standardize the path length h(x) of sample x. The calculation formula for the anomaly score of sample x is as follows:
[0083]
[0084] Based on the above formula (1) and formula (2), the first outlier score is obtained offline. It can be understood that the isolation forest is composed of n isolated trees. For a certain sample x, the leaf node x of each isolated tree has a path length h(x). F(h(x)) is the weighted average of the path lengths h(x) of the x sample in different isolated trees in the isolation forest, and c(n) is the average path length of the isolated trees containing the sample. Therefore, the larger the anomaly score s(x, n), the more abnormal it is, that is, the larger the first anomaly value, the more abnormal it is.
[0085] Furthermore, before the step of detecting the real-time link sample based on the preset first detection model and the second detection model to obtain the first abnormal value and the second abnormal value, the method includes:
[0086] Step B1, obtaining online samples within a preset time period before the current meeting to form an online sample set;
[0087] Step B2, inputting the online sample set into the initial detection model for training, and when the training result meets the end condition, stopping the training to obtain the second model parameters;
[0088] Step B3: input the second model parameters into the initial detection model to obtain a second detection model.
[0089] In this embodiment, online samples within a period of time before the current meeting of the communication link are obtained to form an online sample set, and the initial detection model is trained with the online sample set to obtain a second detection model. During the training process, the training is stopped when the training result meets the end condition, and the end condition is the same as the end condition in the training of the first detection model, that is, both are the end conditions for the training of the isolation forest model. After the training is completed, the second model parameters, such as the sample data set feature q2 and the feature splitting value p2, will be obtained. The historical sample set X is recursively constructed through the sample data set feature q1 and the feature splitting value p1, so as to establish an isolation tree and obtain an online isolation forest model.
[0090] Therefore, the specific process of detecting the real-time link sample through the second detection model to obtain the second abnormal value is:
[0091] The real-time link sample is input into the online isolation forest model to obtain F(h(x)) in the online isolation forest model, and the second outlier is calculated by the following sample anomaly score formula:
[0092] score line =δ1*s offline (x,n)+δ2*s line (x,n)……(3)
[0093] Among them, δ1 and δ2 are weighted coefficients of the above formula, δ1+δ2=1, δ1<δ2, soffline (x,n) is the anomaly scoring function of the offline isolation forest model, s line (x,n) is the anomaly scoring function of the online isolation forest model, and scoreline is the second anomaly value.
[0094] It should be noted that the outlier score value is between (0-1), and the larger the outlier value, the more abnormal the sample is.
[0095] Step S200, performing weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value;
[0096] In this embodiment, the first outlier value and the second outlier value are weighted to obtain a target outlier value, and the weighted formula is as follows:
[0097]
[0098] Among them, score(x) is the target outlier value, and φ1 and φ2 are the weighting coefficients of the above formula.
[0099] Step S300: If the target abnormal value is greater than the abnormal threshold, it is determined that there is an abnormality in the data link and an abnormality notification is issued.
[0100] In this embodiment, an abnormality threshold is obtained, and the abnormality threshold is set by the management personnel according to the detection requirements. When the target abnormality value is greater than the abnormality threshold, it can be determined that the data link is abnormal, and an abnormality notification is issued. The abnormality notification can be issued in the form of sound, light, signal, etc. If the target abnormality value is less than or equal to the abnormality threshold, it means that the current link is normal, and the link continues to be monitored.
[0101] The present application provides an abnormal link detection method, device, equipment and storage medium. Compared with the low accuracy of abnormal link detection in audio and video communication in the prior art, in the present application, the real-time link samples are detected based on the preset first detection model and the second detection model to obtain the first abnormal value and the second abnormal value respectively. The first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting; the first abnormal value and the second abnormal value are weighted and calculated to obtain the target abnormal value; if the target abnormal value is greater than the abnormal threshold, it is determined that the data link is abnormal, and an abnormal notification is issued. The relatively universal offline isolation forest model is trained using historical data, and the personalized online isolation forest model corresponding to the user is trained using the traffic data of a single user in the meeting, thereby obtaining a double isolation forest model. In the process of users participating in the meeting, the aforementioned trained double isolation forest model is used to jointly participate in abnormal identification, thereby ensuring the accuracy of abnormal identification.
[0102] Based on the first embodiment of the abnormal link detection method described above, the present application further provides a second embodiment, wherein the abnormal link detection method includes:
[0103] The second detection model includes a first detection sub-model based on a conference and a second detection sub-model based on a user. The online sample set includes a sending sample and a receiving sample. The initial detection model is trained based on the sending sample to obtain the first detection sub-model. The initial detection model is trained based on the receiving sample to obtain the second detection sub-model. Through the first detection sub-model and the second detection sub-model, an outlier based on the personality distribution of a single conference sample and an outlier based on the strong correlation detection of the sending user receiving end sample are obtained respectively. The two outliers are weighted and calculated with the first outlier to obtain the target outlier. The specific process is as follows:
[0104] For sending samples (i) , fs (i) Get the sent samples before the current meeting and train the online isolation forest model room , then the sample abnormality score is:
[0105] score room =∝1*s offline (x,n)+∝2*s room (x,n)
[0106] Where ∝1+∝2=1,∝1<∝2, s offline (x,n) is the anomaly scoring function of the offline isolation forest model, s room (x,n) is an anomaly scoring function based on the room online isolation forest model;
[0107] For the received sample r (i,j) ,fr (i,j) Get the received samples from the period before the current meeting and train the online isolated forest model room , obtain the received samples of the flow sent by user i, and train the online isolation forest model model user , then the sample abnormality score is:
[0108] score user =γ1*s offline (x,n)+γ2*s room (x,n)+γ3*s user (x,n)
[0109] Among them γ1+γ2+γ3=1, γ1<γ2<γ3, s offline (x,n) is the anomaly scoring function of the offline isolation forest model, s room (x,n) is an anomaly scoring function based on the online isolation forest model of the room; suser (x,n) is based on the anomaly scoring function of the online isolation forest model of the sending user.
[0110] Then the above formula (4) for calculating the target outlier value becomes:
[0111] score(x)=β1score offline (x,n1)+β2score room (x,n2)+β3score user (x,n3)
[0112] The target abnormal value score(x) is compared with the abnormal threshold. If the target abnormal value is greater than the abnormal threshold, it can be determined that the data link is abnormal, and an abnormal notification is issued.
[0113] In this embodiment, the correlation between sample data is fully considered, the universal distribution of sample data is detected through the offline isolation forest model, and the individual distribution of single conference samples and the strong correlation of single sending user receiving end samples are detected through the online model. The offline model and the online model are weighted for anomaly detection to improve the detection accuracy.
[0114] The present application further provides a third embodiment based on the first embodiment or the second embodiment of the abnormal link detection method described above. The abnormal link detection method includes:
[0115] If the target abnormal value is greater than the abnormal threshold, the real-time link sample is determined to be an abnormal sample, and the data link is abnormal. After the step of issuing an abnormal notification, the method includes:
[0116] Step S400, obtaining link characteristic information in the communication link;
[0117] Step S500: Based on the abnormal state of the link feature information, output an abnormal processing result corresponding to the abnormal state.
[0118] In this embodiment, upon receiving the notification of the abnormal detection, the sending link s is obtained. () 、fs () , the link feature information of fr(i,j), and based on the abnormal state of the link feature information, output the abnormal processing result corresponding to the abnormal state.
[0119] As an example, if the sending link s (i) , fs (i) If it is detected as abnormal and continues to be abnormal for N consecutive cycles, it means that the SFU Server connected to user i is not the best, and the scheduling system is notified to switch the SFU Server connected to user i across computer rooms;
[0120] As an example, if the sending link s (i) , fs (i) Normal. If the fr(i,j) streaming link is abnormal, it means that the cascade between SFUServers is abnormal. In this case, an alarm is issued to notify the operation and maintenance personnel to troubleshoot the problem.
[0121] As an example, if the fr(i,j) streaming link is normal, but the user streaming link r(i,j) is abnormal and the link remains abnormal for N cycles, it means that the SFU Server connected to the receiving user j is not the best, and the scheduling system is notified to switch the SFU Server connected to user j across computer rooms.
[0122] In this embodiment, when the abnormal notification is issued, the specific data transmission problem in the abnormal data link is issued, and the corresponding abnormal processing method or result is given, so as to improve the efficiency of abnormal link detection.
[0123] In a specific scenario, the abnormal link detection process is as follows:
[0124] a. Use offline historical data to train the isolation forest model offline ;
[0125] b. Let M represent the set of users in a conference, sample It means that at time t, user j receives the audio and video feature information sent by user i; for sample The real-time detection steps are as follows:
[0126] Step b1. Obtain the sample set sent and received by non-user i1 in the previous y cycles Training the meeting-based isolation forest modelroom;
[0127] Step b2. Obtain the sample set sent by user i1 and received by non-user j1 in the previous y cycles Training a model based on user isolation forest user ;
[0128] c. Calculate samples Outliers:
[0129] The samples are respectively passed through the model offline 、model room 、model user Calculate its outlier value and weight it to get the target outlier value:
[0130] score(x)=γ1score offline (x,n1)+γ1score room (x,n2)+γ1scoreuser (x,n3)
[0131] If the score is greater than the anomaly threshold ε, the sample is an anomaly sample.
[0132] The present application also provides an abnormal link detection device, the abnormal link detection device comprising: a memory, a processor, and a program stored in the memory for implementing the abnormal link detection method.
[0133] The memory is used to store a program for implementing the abnormal link detection method;
[0134] The processor is used to execute a program for implementing the abnormal link detection method to implement the steps of the abnormal link detection method described above.
[0135] The specific implementation of the abnormal link detection device of the present application is basically the same as the various embodiments of the abnormal link detection method described above, and will not be repeated here.
[0136] The present application also provides an abnormal link detection device, referring to Figure 4 , the abnormal link detection device comprises:
[0137] A detection module 10 is used to detect the real-time link sample based on a preset first detection model and a second detection model to obtain a first abnormal value and a second abnormal value respectively, wherein the first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting;
[0138] A calculation module 20, configured to perform weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value;
[0139] The judgment module 30 is used to determine that there is an abnormality in the data link and issue an abnormality notification if the target abnormality value is greater than the abnormality threshold.
[0140] The specific implementation of the abnormal link detection device of the present application is basically the same as the above-mentioned embodiments of the abnormal link detection method, and will not be repeated here.
[0141] An embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned abnormal link detection methods.
[0142] The specific implementation method of the storage medium of the present application is basically the same as the above-mentioned embodiments of the abnormal link detection method, and will not be repeated here.
[0143] An embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned abnormal link detection methods.
[0144] The specific implementation of the storage medium of the present application is basically the same as the above-mentioned embodiments of the abnormal link detection method, and will not be repeated here.
[0145] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0146] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0148] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for detecting abnormal links, characterized in that: The abnormal link detection method comprises: The real-time link samples are detected based on a preset first detection model and a second detection model to obtain a first abnormal value and a second abnormal value respectively, wherein the first detection model is determined based on historical data training of historical offline links, and the second detection model is determined based on online sample training of historical online links before the current meeting, the second detection model includes a first detection sub-model based on meetings and a second detection sub-model based on users, the online samples include sending link samples and receiving link samples, the first detection sub-model is determined based on sending sample training of sending links, and the second detection sub-model is determined based on receiving sample training of receiving links; Performing weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value; If the target abnormality value is greater than the abnormality threshold, it is determined that an abnormality exists in the data link, and an abnormality notification is issued, so as to schedule the SFU selective forwarding unit in the current conference based on the abnormality notification.
2. The abnormal link detection method according to claim 1, characterized in that: The step of detecting the real-time link sample based on the preset first detection model and the second detection model to obtain the first outlier value and the second outlier value respectively, wherein the first detection model is determined based on historical data training, and the second detection model is determined based on online sample training before the current meeting, includes: Obtain a historical sample set and an initial detection model; Training the initial detection model based on the historical sample set, and when the training result meets the end condition, stopping the training to obtain the first model parameter; The first model parameters are input into the initial detection model to obtain a first detection model.
3. The abnormal link detection method according to claim 1, characterized in that: Before the step of detecting the real-time link sample based on the preset first detection model and the second detection model to obtain the first abnormal value and the second abnormal value, the method includes: Obtain online samples within a preset time period before the current meeting to form an online sample set; Inputting the online sample set into the initial detection model for training, and when the training result meets the end condition, stopping the training to obtain the second model parameters; The second model parameters are input into the initial detection model to obtain a second detection model.
4. The abnormal link detection method according to claim 1, characterized in that: The step of performing weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value comprises: Obtaining preset weighting parameters; The first outlier value and the second outlier value are weightedly calculated based on a weighting parameter to obtain a target outlier value.
5. The abnormal link detection method according to claim 1, characterized in that: If the target abnormal value is greater than the abnormal threshold, determining that the data link is abnormal and issuing an abnormal notification step includes: Get the anomaly threshold; comparing the target outlier value with the outlier threshold; If the target abnormal value is greater than the abnormal threshold, the real-time link sample is determined to be an abnormal sample, an abnormality exists in the data link, and an abnormality notification is issued.
6. The abnormal link detection method according to claim 1, characterized in that: If the target abnormal value is greater than the abnormal threshold, the real-time link sample is determined to be an abnormal sample, and the data link is abnormal. After the step of issuing an abnormal notification, the method includes: Acquiring link characteristic information in a communication link; Based on the abnormal state of the link feature information, an abnormal processing result corresponding to the abnormal state is output.
7. The abnormal link detection method according to claim 1, characterized in that: The first detection model is an offline isolation forest model, and the second detection model is an online isolation forest model.
8. An abnormal link detection system, characterized in that: The abnormal link detection system comprises: A detection module, configured to detect real-time link samples based on a preset first detection model and a second detection model, and obtain a first abnormal value and a second abnormal value respectively, wherein the first detection model is determined based on historical data training of historical offline links, and the second detection model is determined based on online sample training of historical online links before the current meeting, the second detection model includes a first detection sub-model based on meetings and a second detection sub-model based on users, the online samples include sending link samples and receiving link samples, the first detection sub-model is determined based on sending sample training of the sending link, and the second detection sub-model is determined based on receiving sample training of the receiving link; A calculation module, configured to perform weighted calculation on the first outlier value and the second outlier value to obtain a target outlier value; The judgment module is used to determine that there is an abnormality in the data link if the target abnormality value is greater than the abnormality threshold, and issue an abnormality notification, so as to schedule the SFU selective forwarding unit in the current meeting based on the abnormality notification.
9. An abnormal link detection device, characterized in that: The abnormal link detection device comprises: a memory, a processor, and an abnormal link detection program stored in the memory and executable on the processor, wherein the abnormal link detection program is configured to implement the steps of the abnormal link detection method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: An abnormal link detection program is stored on the storage medium, and the abnormal link detection program is configured to implement the steps of the abnormal link detection method according to any one of claims 1 to 7.
