A video doorbell network optimization and fault self-recovery system
Through video frame signature generation and verification, combined with dynamic adjustment of network status, the problem of data damage or loss in the video doorbell network is solved, real-time repair and network optimization are achieved, and network stability and video transmission quality are improved.
Patent Information
- Application Number
- CN202410926360.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing technologies in critical infrastructure and high-availability commercial applications cannot respond to video doorbell network failures in a timely manner, resulting in data damage or loss, and traditional systems cannot effectively adapt to rapid changes in network conditions, resulting in a decline in video streaming and data transmission quality.
The video frame signature generation module is used to generate an integrity signature based on the frame content feature encoding. The video frame signature verification module performs signature comparison, determines the error type and selects repair measures, and dynamically adjusts the forward error correction parameters and packet size based on the network status to optimize Network resource usage.
It achieves real-time error detection and response, reduces the need for data retransmission, improves network resource utilization, and ensures the stability of network connections and the smoothness of video transmission.
Smart Images

Figure CN118487919B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fault self-repair, and in particular to a video doorbell network optimization and fault self-recovery system. Background Art
[0002] The field of fault self-repair technology involves the development and implementation of systems, networks, or applications to automatically diagnose problems and restore normal operations when a fault occurs. This technology typically includes fault detection, problem diagnosis, decision support systems, and automatic execution of repair measures. Its purpose is to reduce system downtime and improve system reliability and efficiency. Fault self-repair technology is particularly important in a variety of scenarios, such as critical infrastructure, large-scale data centers, and commercial applications that require high availability. By using artificial intelligence, machine learning algorithms, and complex event processing systems, fault self-repair systems can predict potential failures, respond to abnormal conditions in real time, and restore services without human intervention.
[0003] The video doorbell network optimization and fault self-recovery system mainly refers to the use of fault self-repair technology to enhance the network performance and stability of the video doorbell. This system is designed to automatically detect and solve problems in the network connection of the video doorbell device, ensuring smooth and reliable communication of the doorbell system. Its main uses include optimizing the data transmission process, reducing the latency of the video stream, improving the image quality, and quickly restoring services when a network failure occurs. This is critical to ensure that users can receive and view the video of visitors in front of the door in a timely manner, especially in security monitoring and home automation systems.
[0004] Existing technologies rely on manual intervention or restrictive automatic repair strategies, which may fail to respond to data corruption or loss in a timely manner. Especially in critical infrastructure and high-availability business applications, system downtime or data inconsistency may lead to serious consequences. For example, when a large-scale data center encounters a network failure, delayed discovery and repair may cause a large amount of data to be inaccessible or damaged, affecting service continuity and customer trust. In addition, traditional systems are usually unable to effectively adapt to rapid changes in network conditions, resulting in reduced quality of video streaming and data transmission, especially when the network is congested or unstable. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings in the prior art and to propose a video doorbell network optimization and fault self-recovery system.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: A video doorbell network optimization and fault self-recovery system comprises:
[0007] S1: The video frame signature generation module calculates the color distribution, edge information, and texture features of each video frame based on the frame content feature encoding, establishes a composite signature in combination with the hash value, generates frame signature data, and creates integrity signature information before the video frame is sent based on the frame signature data;
[0008] S2: The video frame signature verification module recalculates the signature of the received video frame based on the integrity signature information, compares it with the signature of the sending end, records the unmatched frame information, and establishes the signature comparison result;
[0009] S3: The network fault repair request module determines the error type as data corruption or data loss based on the signature comparison result, selects to resend the request or apply forward error correction technology for local repair, calls additional redundant data, establishes retransmission or repair instructions, executes data packet retransmission or local error repair, and generates a repaired video frame;
[0010] S4: The network status dynamic adjustment module creates adjustment parameters based on the data integrity of the repaired video frame, combined with bandwidth changes, packet loss rate, and delay indicators, adjusts the parameters of forward error correction and the size of the data packet, optimizes the use of network resources, and obtains network optimization results.
[0011] As a further solution of the present invention, the step of obtaining the integrity signature information is specifically as follows:
[0012] S111: Collect the original color data of each video frame, extract the color frequency by the color histogram method, and use the normalized color frequency formula:
[0013]
[0014] Calculate the normalized frequency of each color and obtain a normalized color frequency array;
[0015] in, represents the normalized frequency of the color, It’s the color The number of occurrences, is the total number of pixels, is the coefficient for weighting color frequency, is the normalized offset, is the standard deviation of color frequencies;
[0016] S112: Analyze the edge information of the video frame, apply the Sobel operator to perform edge detection, and use the edge strength formula:
[0017]
[0018] Counting pixels The edge strength of the edge is obtained to obtain the edge strength matrix;
[0019] in, Represents pixel The edge strength, , Respectively represent and The gradient of the direction, , It corresponds to and Gradient weighting factor;
[0020] S113: Extract texture features of the video frame, use the gray level co-occurrence matrix, calculate the texture contrast, and use the texture contrast formula:
[0021]
[0022] Calculate the texture complexity of the entire image and generate a texture contrast value;
[0023] Where T represents the contrast of texture features, is the co-occurrence probability of gray levels i and j, Enhanced contrast sensitivity to differences, Used for normalization calculation;
[0024] S114: Combining the normalized color frequency array, the edge intensity matrix and the texture contrast value, a characteristic formula is used:
[0025]
[0026] Generate frame signature data to establish integrity signature information before sending the video frame;
[0027] Among them, H represents the integrity signature information, Represents the element-by-element multiplication of an array, and hash is a hash function used to generate a unique identifier. is the normalization parameter for the overall feature weighting.
[0028] As a further solution of the present invention, the step of obtaining the signature comparison result is specifically as follows:
[0029] S211: Based on the integrity signature information, after receiving the video frame data through the receiving end, extract the normalized color frequency array, edge intensity matrix and texture contrast value, and use the signature calculation formula:
[0030]
[0031] Calculate and obtain the recalculated signature data;
[0032] in, Represents the recalculated signature data, are the normalized color frequency array, edge intensity matrix, and texture contrast value of the receiving end video frame, respectively. is the tuning constant added for each feature, is the normalization constant, is the adjustment parameter;
[0033] S212: Compare the recalculated signature data with the signature of the sender, using the difference measurement formula:
[0034]
[0035] Calculate the difference between the signatures of the sender and the receiver to generate signature difference data;
[0036] in, Represents the signature difference data, is the normalization factor of the difference measure;
[0037] S213: Identify unmatched frames according to the signature difference data, and use a logical screening formula:
[0038]
[0039] Generate signature comparison results;
[0040] Among them, R represents the signature comparison result, is the frame index, is the signature difference of each frame, is the decision threshold.
[0041] As a further solution of the present invention, the step of acquiring the repaired video frame is specifically as follows:
[0042] S311: Based on the signature comparison result, determine the error type, use a decision algorithm to determine whether it is data damage or data loss, and apply the error judgment formula:
[0043]
[0044] Calculate the wrong decision index and generate the wrong type decision data;
[0045] in, represents the wrong decision indicator, Represents the signature difference, , The effect of regulatory dissimilarity on erroneous decisions;
[0046] S312: According to the error type decision data, a matching recovery strategy is selected, using a selection function formula:
[0047]
[0048] Calculate recovery strategy output and generate recovery strategy decision data;
[0049] in,, Is the recovery strategy selection function, which makes decisions based on the error type Perform calculations, , To adjust the parameters;
[0050] S313: Execute retransmission of data packets or local error repair, depending on the recovery strategy decision data, using the operation execution function:
[0051]
[0052] Calculate operation execution data and generate operation execution data;
[0053] in, Based on decision The operations performed, Represent the instruction codes for retransmission and repair respectively;
[0054] S314: According to the error type decision data, the recovery strategy decision data and the operation execution data, a completion state formula is used:
[0055]
[0056] Calculate the state of the restored video frame and generate the restored video frame;
[0057] Among them, F(r) represents the state of the restored video frame, Indicates the status of data after repair or retransmission.
[0058] As a further solution of the present invention, the step of obtaining the adjustment parameter is specifically as follows:
[0059] S411: Analyze the data integrity of the repaired video frame, collect current network performance indicators, and use the formula:
[0060]
[0061] Calculate the network status index and generate network status data;
[0062] in, Indicates network status data, They refer to bandwidth change, packet loss rate and delay respectively. To adjust the weight;
[0063] S412: Create adjustment parameters according to the network status data to optimize the parameters of forward error correction and the size of the data packet, using the formula:
[0064]
[0065] calculating current forward error correction parameters and generating adjusted forward error correction parameters;
[0066] in, represents the adjusted forward error correction parameter, is the coefficient, based on the sensitivity and response range of the actual network management system;
[0067] S413: Using the adjusted forward error correction parameter to adjust the data packet size, the formula is:
[0068]
[0069] Calculate the adjusted packet size and create adjustment parameters;
[0070] Where S represents the adjusted packet size. , is the adjustment factor.
[0071] As a further solution of the present invention, the steps of obtaining the network optimization results are specifically as follows:
[0072] S421: Analyze the adjustment parameters, evaluate the impact on network performance, and use the performance evaluation formula:
[0073] .
[0074] Calculate the current network performance index and generate network performance evaluation results;
[0075] in, Indicates the network performance evaluation result, , is the weight coefficient for performance measurement, is the weight coefficient of the redundant data rate, is the packet size, is the forward error correction parameter, is the redundant data rate;
[0076] S422: According to the network performance evaluation result, it is determined whether it is necessary to iteratively optimize the network configuration, using a decision formula:
[0077]
[0078] Evaluate the need for network configuration adjustment and generate network adjustment decision results;
[0079] in, Represents the network adjustment decision result, is the decision sensitivity adjustment parameter, is the performance interval parameter, is the decision adjustment parameter;
[0080] S423: According to the network adjustment decision result, adjust the network configuration, adjust the bandwidth allocation and the data packet sending interval, and use the adjustment formula:
[0081]
[0082] Perform network configuration adjustments and generate network optimization results;
[0083] in, Expressed as network optimization results, , It is to adjust the strategy parameters.
[0084] Compared with the prior art, the advantages and positive effects of the present invention are:
[0085] In the present invention, by recalculating the signature of the received video frame and comparing it with the signature of the sender, any damage or loss of data during transmission can be quickly identified, and then corresponding repair measures can be initiated. The real-time error detection and response mechanism reduces the need for complete data retransmission by applying forward error correction technology or calling redundant data for local repair, thereby improving the effective use of network resources. By dynamically adjusting the parameters of forward error correction and the size of the data packet, the overall network performance is optimized based on the current state of the network, such as bandwidth changes and packet loss rate, to ensure the stability of the network connection and the smoothness of video transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 is a system flow chart of the present invention;
[0087] Figure 2 This is a flow chart of the steps for obtaining integrity signature information of the present invention;
[0088] Figure 3 Flow chart of the steps for obtaining the signature comparison result of the present invention;
[0089] Figure 4 A flowchart of the steps of obtaining the video frame repaired by the present invention;
[0090] Figure 5 A flow chart of the acquisition steps of adjusting parameters of the present invention;
[0091] Figure 6 The present invention is a flowchart of the steps for obtaining network optimization results. DETAILED DESCRIPTION
[0092] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0093] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined. Embodiment 1
[0094] See also Figure 1 , a video doorbell network optimization and fault self-recovery system includes:
[0095] S1: The video frame signature generation module calculates the color distribution, edge information, and texture features of each video frame based on the frame content feature encoding, combines the hash value to establish a composite signature, generates frame signature data, and creates integrity signature information before the video frame is sent based on the frame signature data;
[0096] S2: The video frame signature verification module recalculates the signature of the received video frame based on the integrity signature information, compares it with the signature of the sender, records the mismatched frame information, and establishes the signature comparison result;
[0097] S3: The network fault repair request module determines the error type as data corruption or data loss based on the signature comparison result, selects to resend the request or apply forward error correction technology for local repair, calls additional redundant data, establishes retransmission or repair instructions, executes data packet retransmission or local error repair, and generates a repaired video frame;
[0098] S4: The network status dynamic adjustment module creates adjustment parameters based on the data integrity of the repaired video frames, combined with bandwidth changes, packet loss rate, and delay indicators, adjusts the parameters of forward error correction and the size of data packets, optimizes the use of network resources, and obtains network optimization results.
[0099] The frame signature data specifically includes color coding, edge coding, and texture coding. The signature comparison results include frame matching status and difference identification. The retransmission or repair instructions specifically refer to error type determination and data repair strategy. The network optimization results include resource allocation efficiency, connection stability, and transmission delay optimization.
[0100] See also Figure 2 , the specific steps for obtaining integrity signature information are:
[0101] S111: Collect the original color data of each video frame, extract the color frequency by the color histogram method, and use the normalized color frequency formula:
[0102]
[0103] Calculate the normalized frequency of each color and obtain a normalized color frequency array;
[0104] in, represents the normalized frequency of the color, It’s the color The number of occurrences, is the total number of pixels, is the coefficient for weighting color frequency, is the normalized offset, is the standard deviation of color frequencies;
[0105] S112: Analyze the edge information of the video frame, apply the Sobel operator to perform edge detection, and use the edge strength formula:
[0106]
[0107] Counting pixels The edge strength of the edge is obtained to obtain the edge strength matrix;
[0108] in, Represents pixel The edge strength, , Respectively represent and The gradient of the direction, , It corresponds to and Gradient weighting factor;
[0109] S113: Take the texture features of the video frame, use the gray level co-occurrence matrix, calculate the texture contrast, and use the texture contrast formula:
[0110]
[0111] Calculate the texture complexity of the entire image and generate a texture contrast value;
[0112] Where T represents the contrast of texture features, is the co-occurrence probability of gray levels i and j, Enhanced contrast sensitivity to differences, Used for normalization calculation;
[0113] S114: Combine the normalized color frequency array, edge intensity matrix and texture contrast value, and use the characteristic formula:
[0114]
[0115] Generate frame signature data to establish integrity signature information before sending the video frame;
[0116] Among them, H represents the integrity signature information, Represents the element-by-element multiplication of an array, and hash is a hash function used to generate a unique identifier. is the normalization parameter for the overall feature weighting.
[0117] Detailed explanation and derivation of the formula for step 1:
[0118] formula:
[0119]
[0120] Parameter explanation:
[0121] : Normalized frequency of color
[0122] : The number of times color i appears
[0123] : Total number of pixels
[0124] : The coefficient of weighted color frequency, adjusts the influence of standard deviation, and is set to 0.5 to weaken the influence of noise
[0125] : Normalized offset, set to 1 to avoid zero denominator
[0126] : Standard deviation of color frequencies
[0127] Calculation example:
[0128] Assume that for a certain color i:
[0129]
[0130]
[0131] (squared difference of color frequencies)
[0132] Calculation process:
[0133] calculate
[0134] Insert numbers into the formula:
[0135] Result interpretation:
[0136] Normalized color frequency is about 0.154, which means the color accounts for the total pixels . This ratio helps to understand the importance of color in an image.
[0137] Detailed explanation and derivation of the formula for step 2:
[0138] formula:
[0139]
[0140] Parameter explanation:
[0141] : Pixels Edge Strength
[0142] : The image is in x and Directional gradient
[0143] : Gradient weighting coefficient, set to 1, simplified to the balanced influence
[0144] Calculation example:
[0145] Assume that for a certain pixel, the degree value is:
[0146]
[0147]
[0148] Calculation process:
[0149]
[0150] Result interpretation:
[0151] Edge Strength The value is 25, and a higher value indicates that the point is a significant edge area in the image.
[0152] Detailed explanation and derivation of the formula for step 3:
[0153] formula:
[0154]
[0155] Parameter explanation:
[0156] : Contrast of texture features
[0157] : Grayscale The probability of co-occurrence with j
[0158] : An index that emphasizes the difference, set to 2 to enhance the contrast effect
[0159] : Normalization constant, ensuring the sum is 1, set to the sum of the total probabilities
[0160] Calculation example:
[0161] Assume that for gray level 0 and gray level 1, the co-occurrence probability is:
[0162]
[0163] Calculation process:
[0164]
[0165] Result interpretation:
[0166] Texture Contrast It is 0.05, which indicates that the contrast between the two gray levels in the image is not very significant and it is a relatively smooth texture area.
[0167] See also Figure 3 , the specific steps for obtaining the signature comparison results are:
[0168] S211: Based on the integrity signature information, after receiving the video frame data through the receiving end, extract the normalized color frequency array, edge intensity matrix and texture contrast value, and use the signature calculation formula:
[0169]
[0170] Calculate and obtain the recalculated signature data;
[0171] in, Represents the recalculated signature data, are the normalized color frequency array, edge intensity matrix, and texture contrast value of the receiving end video frame, respectively. is the tuning constant added for each feature, is the normalization constant, is the adjustment parameter;
[0172] S212: Compare the recalculated signature data with the signature of the sender, using the difference measurement formula:
[0173]
[0174] Calculate the difference between the signatures of the sender and the receiver to generate signature difference data;
[0175] in, Represents the signature difference data, is the normalization factor of the difference measure;
[0176] S213: Identify unmatched frames according to the signature difference data, and use a logical screening formula:
[0177]
[0178] Generate signature comparison results;
[0179] Among them, R represents the signature comparison result, is the frame index, is the signature difference of each frame, is the decision threshold.
[0180] Formula derivation and example of step 1
[0181] formula:
[0182]
[0183] Parameter details:
[0184] : The normalized color frequency array of the receiving end video frame, obtained by extracting the color frequency through the color histogram method and then normalizing it
[0185] : Color frequency adjustment constant, assuming a value of 0.1, to increase flexibility
[0186] : The edge strength matrix of the video frame at the receiving end is obtained after edge detection using the Sobel operator
[0187] : Edge strength adjustment constant, assumed to be 0.1, used to increase flexibility
[0188] : Texture contrast value of the video frame at the receiving end, calculated using the gray-level co-occurrence matrix (GLCM)
[0189] : Texture contrast adjustment constant, assumed to be 0.1, to increase flexibility
[0190] : Normalization constant, assumed to be 0.1, used for overall feature weighting
[0191] : Normalization adjustment parameter, assuming a value of 0.1, used to increase flexibility
[0192] Example derivation:
[0193] Assume the following specific values:
[0194]
[0195]
[0196]
[0197]
[0198]
[0199]
[0200]
[0201]
[0202] The calculation process is as follows:
[0203] The adjusted edge strength matrix:
[0204] Adjusted texture contrast:
[0205] Compute the product:
[0206]
[0207] Calculate the denominator:
[0208]
[0209] Final calculation:
[0210]
[0211] The result is calculated through the hash function to calculate the final signature .
[0212] Formula derivation and example of step 2
[0213] formula:
[0214]
[0215] Parameter details:
[0216] : Difference of signatures
[0217] : The integrity signature information of the sender, obtained through the calculation process in step 1
[0218] The integrity signature information recalculated by the receiving end is obtained through the calculation process in step 1
[0219] : Normalization factor of difference metric, assumed to be 1.0, used to reduce measurement error
[0220] Example derivation:
[0221] Assume the following specific values:
[0222]
[0223]
[0224] The calculation process is as follows:
[0225] Calculate the difference:
[0226]
[0227] Compute the sum of squares:
[0228]
[0229] Calculate the square root:
[0230] Finally, the signature difference .
[0231] Formula derivation and example of step 3
[0232] formula:
[0233]
[0234] Parameter details:
[0235] : The final signature comparison result, including the indexes of all mismatched frames
[0236] : frame index
[0237] : The signature difference of each frame, obtained through the calculation process in step 2
[0238] : Judgment threshold, assuming a value of 0.02, used to decide when to consider a mismatch
[0239] Example derivation:
[0240] Assume the following specific values:
[0241] Signature difference per frame:
[0242] Decision threshold:
[0243] The calculation process is as follows:
[0244] Filter the frame indexes whose difference is greater than the threshold:
[0245] Finally, the signature comparison result , indicating that there is a mismatch between the 2nd and 4th frames.
[0246] See also Figure 4 , the specific steps for obtaining the repaired video frame are:
[0247] S311: Based on the signature comparison result, determine the error type, use a decision algorithm to determine whether it is data damage or data loss, and apply the error judgment formula:
[0248]
[0249] Calculate the wrong decision index and generate the wrong type decision data;
[0250] in, represents the wrong decision indicator, Represents the signature difference, , The effect of regulatory dissimilarity on erroneous decisions;
[0251] S312: According to the error type decision data, a matching recovery strategy is selected, using the selection function formula:
[0252]
[0253] Calculate recovery strategy output and generate recovery strategy decision data;
[0254] in, Is the recovery strategy selection function, which makes decisions based on the error type Perform calculations, , To adjust the parameters;
[0255] S313: Execute retransmission of data packets or local error repair, depending on the recovery strategy decision data, using the operation execution function:
[0256]
[0257] Calculate operation execution data and generate operation execution data;
[0258] in, Based on decision The operations performed, Represent the instruction codes for retransmission and repair respectively;
[0259] S314: Based on the error type decision data, the recovery strategy decision data and the operation execution data, a completion state formula is used:
[0260]
[0261] Calculate the state of the restored video frame and generate the restored video frame;
[0262] Among them, F(r) represents the state of the restored video frame, Indicates the status of data after repair or retransmission.
[0263] Formula analysis and derivation of step 1:
[0264] formula:
[0265]
[0266] Parameter explanation:
[0267] : Error decision indicator used to distinguish between data corruption or data loss.
[0268] : The difference data of signature comparison is obtained from the signature comparison result of the previous step.
[0269] : Tuning parameter used to fine-tune the sensitivity to wrong decisions.
[0270] Parameter settings and examples:
[0271] Assume that in a particular situation, the difference , the adjustment parameters are set as follows:
[0272]
[0273]
[0274]
[0275]
[0276] Calculation process:
[0277]
[0278]
[0279]
[0280]
[0281]
[0282] This error decision indicator The set threshold can be used to identify the error type.
[0283] Formula analysis and derivation of step 2:
[0284] formula:
[0285]
[0286] Parameter explanation:
[0287] : Error type decision data.
[0288] : Adjustment parameters.
[0289] Parameter settings and examples:
[0290] Assumptions ,
[0291]
[0292]
[0293]
[0294] Calculation process:
[0295]
[0296] This value represents the probability of selecting a recovery strategy, which decides whether to request retransmission or perform local error repair based on the threshold.
[0297] Formula analysis and derivation of step 3:
[0298] formula:
[0299]
[0300] Parameter explanation:
[0301] : Decision instructions obtained from recovery strategy decision data.
[0302] : They are the retransmission and repair operation instructions respectively.
[0303] Parameter settings and examples:
[0304] Assumptions (obtained from step 2),
[0305]
[0306]
[0307] Calculation process:
[0308]
[0309] This result It represents the result of the operation performed based on the decision parameters, and represents a weighted retransmission and repair operation instruction.
[0310] Formula analysis and derivation of step 4:
[0311] formula:
[0312]
[0313] Parameter explanation:
[0314] : The result of the operation execution data.
[0315] Parameter settings and examples:
[0316] Assumptions (obtained from step 3)
[0317] Calculation process:
[0318]
[0319] Here It needs to be calculated according to the specific hash function. Indicates the final state of the repaired video frame, ensuring data integrity and correctness.
[0320] See also Figure 5 , the specific steps for obtaining the adjustment parameters are:
[0321] S411: Analyze the data integrity of the repaired video frame and collect the current network performance indicators using the formula:
[0322]
[0323] Calculate the network status index and generate network status data;
[0324] in, Indicates network status data, They refer to bandwidth change, packet loss rate and delay respectively. To adjust the weight;
[0325] S412: Create adjustment parameters based on the network status data to optimize the parameters of forward error correction and the size of the data packet, using the formula:
[0326]
[0327] calculating current forward error correction parameters and generating adjusted forward error correction parameters;
[0328] in, represents the adjusted forward error correction parameter, is the coefficient, based on the sensitivity and response range of the actual network management system;
[0329] S413: Adjust packet size using adjusted forward error correction parameters, using the formula:
[0330]
[0331] Calculate the adjusted packet size and create adjustment parameters;
[0332] Where S represents the adjusted packet size. , is the adjustment factor.
[0333] Detailed explanation and derivation of the formula for step 1
[0334] formula:
[0335]
[0336] Parameter explanation:
[0337] : Bandwidth change (Mbps), assuming
[0338] : Packet loss rate (%), assuming
[0339] : Delay (ms), assuming
[0340] : Weight factor, set to To balance the impact of various indicators
[0341] Calculation process:
[0342] Bandwidth impact calculation:
[0343] Packet loss rate affects calculation:
[0344] Delay affects calculation:
[0345] Synthetic Network Status Index:
[0346] Result interpretation:
[0347] Calculated It is a comprehensive network status index. A higher value reflects that the network status is mainly driven by high bandwidth values, indicating the performance of the network under high transmission capacity.
[0348] Detailed explanation and derivation of the formula for step 2
[0349] formula:
[0350]
[0351] Parameter settings:
[0352] : coefficient, set to , based on the sensitivity and response range of actual network management systems
[0353] : Network status index from step 1
[0354] Calculation process:
[0355] Molecular computing: (For simplicity, only the form is calculated here, the actual value is very large)
[0356] Denominator calculation:
[0357] Complete formula calculation:
[0358] Result interpretation:
[0359] Calculated The value is used to adjust the forward error correction parameters. The formula takes into account the dynamic adjustment of the error correction parameters due to significant growth in the network status index.
[0360] Detailed explanation and derivation of the formula for step 3
[0361] formula:
[0362]
[0363] Parameter settings:
[0364] : Adjustment factor, set to , based on the typical range of network packet size adjustments
[0365] : Adjustment parameters from step 2
[0366] Calculation process:
[0367] Packet resizing calculation:
[0368] Result interpretation:
[0369] Calculated Indicates the packet size adjusted according to network conditions to adapt to network load and performance requirements to optimize transmission efficiency.
[0370] See also Figure 6 , the specific steps for obtaining network optimization results are:
[0371] S421: Analyze and adjust parameters to evaluate the impact on network performance, using the performance evaluation formula:
[0372] .
[0373] Calculate the current network performance index and generate network performance evaluation results;
[0374] in, Indicates the network performance evaluation result, , is the weight coefficient for performance measurement, is the weight coefficient of the redundant data rate, is the packet size, is the forward error correction parameter, is the redundant data rate;
[0375] S422: Based on the network performance evaluation result, it is determined whether it is necessary to iteratively optimize the network configuration, using the decision formula:
[0376]
[0377] Evaluate the need for network configuration adjustment and generate network adjustment decision results;
[0378] in, Represents the network adjustment decision result, is the decision sensitivity adjustment parameter, is the performance interval parameter, is the decision adjustment parameter;
[0379] S423: According to the network adjustment decision result, the network configuration is adjusted to adjust the bandwidth allocation and the packet sending interval, using the adjustment formula:
[0380]
[0381] Perform network configuration adjustments and generate network optimization results;
[0382] in, Expressed as network optimization results, , It is to adjust the strategy parameters.
[0383] formula:
[0384]
[0385] Parameter explanation and calculation method:
[0386] : The network performance evaluation result is an index that comprehensively evaluates network performance.
[0387] : Weight coefficient for measuring the impact of packet size on network performance, assumed to be 0.5.
[0388] : Packet size, obtained from the previous parameter adjustment step, assumed to be 1500 bytes.
[0389] : The weight coefficient that measures the impact of the forward error correction parameters on network performance, assumed to be 0.3.
[0390] : Forward error correction parameter, obtained from the previous parameter adjustment step, assumed to be 2.
[0391] : The weight coefficient that measures the impact of redundant data rate on network performance, assumed to be 0.2.
[0392] : Redundant data rate, assumed to be 0.05.
[0393] Calculation process:
[0394] First calculate :
[0395]
[0396] Then calculate :
[0397]
[0398] Then calculate :
[0399]
[0400] Finally, the above calculation results are summarized:
[0401]
[0402] Result interpretation:
[0403] It represents the current network performance index, which comprehensively evaluates the impact of data packet size, forward error correction parameters and redundant data rate on network performance. The specific value of 0.8937 reflects the performance level of the current network.
[0404] formula:
[0405]
[0406] Parameter explanation and calculation method:
[0407] : Network adjustment decision output, determining whether the network configuration needs to be adjusted.
[0408] : Decision sensitivity adjustment parameter, assumed to be 1.0.
[0409] : Performance threshold parameter, assumed to be 0.5.
[0410] : Decision adjustment parameter, assumed to be 0.
[0411] : The network performance evaluation result calculated from step 1 is assumed to be 0.8937.
[0412] Calculation process:
[0413] First calculate :
[0414]
[0415] Then calculate the exponential part:
[0416]
[0417] Finally, the decision result is calculated:
[0418]
[0419] Result interpretation:
[0420] Indicates the decision output of network configuration adjustment. The specific value 0.5744 indicates that the current network configuration needs to be adjusted.
[0421] formula:
[0422]
[0423] Perform network configuration adjustments to generate final network optimization results .
[0424] Parameter explanation and calculation method:
[0425] : The final state after the network configuration is adjusted.
[0426] : Adjust the strategy parameters, assuming it is 10.
[0427] : Adjust the strategy parameters, assuming it is 5.
[0428] : The network adjustment decision result calculated from step 2 is assumed to be 0.5744.
[0429] Calculation process:
[0430] First calculate :
[0431]
[0432] Then calculate :
[0433]
[0434] Finally, the above calculation results are summarized:
[0435]
[0436]
[0437] Result interpretation:
[0438] Indicates the final state of the network configuration after adjustment. The specific value 6.478 indicates the result of the adjusted network configuration.
[0439] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A video doorbell network optimization and fault self-recovery system, It is characterized in that The system comprises: The video frame signature generation module calculates the color distribution, edge information, and texture features of each video frame based on the frame content feature encoding, establishes a composite signature in combination with the hash value, generates frame signature data, and creates integrity signature information before the video frame is sent based on the frame signature data; The video frame signature verification module recalculates the signature of the received video frame based on the integrity signature information, compares it with the signature of the sending end, records the unmatched frame information, and establishes the signature comparison result; The network fault repair request module determines the error type as data corruption or data loss based on the signature comparison result, selects to resend the request or applies forward error correction technology for local repair, calls additional redundant data, establishes retransmission or repair instructions, executes retransmission of data packets or local error repair, and generates a repaired video frame; The network status dynamic adjustment module creates adjustment parameters based on the data integrity of the repaired video frame, combined with bandwidth changes, packet loss rate, and delay indicators, adjusts the parameters of forward error correction and the size of the data packet, optimizes the use of network resources, and obtains network optimization results.
2. According to claim 1, the video doorbell network optimization and fault self-recovery system, It is characterized in that The steps for obtaining the integrity signature information are specifically as follows: Collect the original color data of each video frame, extract the color frequency through the color histogram method, and use the normalized color frequency formula: ; Calculate the normalized frequency of each color and obtain a normalized color frequency array; in, represents the normalized frequency of the color, It’s the color The number of occurrences, is the total number of pixels, is the coefficient for weighting color frequency, is the normalized offset, is the standard deviation of color frequencies; Analyze the edge information of the video frame, apply the Sobel operator for edge detection, and use the edge strength formula: ; Counting pixels The edge strength of the edge is obtained to obtain the edge strength matrix; in, Represents pixel The edge strength, , Respectively represent and The gradient of the direction, , It corresponds to and Gradient weighting factor; Extract the texture features of the video frame, use the gray level co-occurrence matrix, calculate the texture contrast, and use the texture contrast formula: ; Calculate the texture complexity of the entire image and generate a texture contrast value; Where T represents the contrast of texture features, is the co-occurrence probability of gray levels i and j, Enhanced contrast sensitivity to differences, Used for normalization calculations; Combining the normalized color frequency array, the edge intensity matrix and the texture contrast value, a characteristic formula is used: ; Generate frame signature data to establish integrity signature information before sending the video frame; Among them, H represents the integrity signature information, Represents the element-by-element multiplication of an array, and hash is a hash function used to generate a unique identifier. is the normalization parameter for the overall feature weighting.
3. According to claim 2, the video doorbell network optimization and fault self-recovery system, It is characterized in that The steps for obtaining the signature comparison result are specifically as follows: Based on the integrity signature information, after receiving the video frame data through the receiving end, the normalized color frequency array, edge intensity matrix and texture contrast value are extracted, and the signature calculation formula is used: ; Calculate and obtain the recalculated signature data; in, Represents the recalculated signature data, are the normalized color frequency array, edge intensity matrix, and texture contrast value of the receiving end video frame, respectively. is the tuning constant added for each feature, is the normalization constant, is the adjustment parameter; Compare the recalculated signature data with the sender's signature, using the difference measurement formula: ; Calculate the difference between the signatures of the sender and the receiver to generate signature difference data; in, Represents the signature difference data, is the normalization factor of the difference measure; According to the signature difference data, unmatched frames are identified and a logical screening formula is used: ; Generate signature comparison results; Among them, R represents the signature comparison result, is the frame index, is the signature difference of each frame, is the decision threshold.
4. According to claim 3, the video doorbell network optimization and fault self-recovery system, It is characterized in that The steps of obtaining the repaired video frame are specifically as follows: Based on the signature comparison result, the error type is determined, and a decision algorithm is used to determine whether it is data corruption or data loss. The error judgment formula is applied: ; Calculate the wrong decision index and generate the wrong type decision data; in, represents the wrong decision indicator, Represents the signature difference, , The effect of regulatory dissimilarity on erroneous decisions; According to the error type decision data, a matching recovery strategy is selected, using the selection function formula: ; Calculate recovery strategy output and generate recovery strategy decision data; in, Is the recovery strategy selection function, which makes decisions based on the error type Perform calculations, , To adjust the parameters; Perform packet retransmission or local error repair, depending on the recovery strategy decision data, using the operation execution function: ; Calculate operation execution data and generate operation execution data; in, Based on decision The operations performed, Represent the instruction codes for retransmission and repair respectively; According to the error type decision data, the recovery strategy decision data and the operation execution data, a completion state formula is adopted: ; Calculate the state of the restored video frame and generate the restored video frame; Among them, F(r) represents the state of the restored video frame, Indicates the status of data after repair or retransmission.
5. According to the video doorbell network optimization and fault self-recovery system of claim 4, It is characterized in that The steps for obtaining the adjustment parameters are specifically as follows: Analyze the data integrity of the repaired video frame, collect the current network performance indicators, and use the formula: ; Calculate the network status index and generate network status data; in, Indicates network status data, They refer to bandwidth change, packet loss rate and delay respectively. To adjust the weight; According to the network status data, adjustment parameters are created to optimize the parameters of forward error correction and the size of the data packet, using the formula: ; calculating current forward error correction parameters and generating adjusted forward error correction parameters; in, represents the adjusted forward error correction parameter, is the coefficient, based on the sensitivity and response range of the actual network management system; The adjusted packet size using the adjusted forward error correction parameters is given by the formula: ; Calculate the adjusted packet size and create adjustment parameters; Where S represents the adjusted packet size. , is the adjustment factor.
6. The video doorbell network optimization and fault self-recovery system according to claim 5, It is characterized in that The steps for obtaining the network optimization results are specifically as follows: Analyze the adjustment parameters, evaluate the impact on network performance, and use the performance evaluation formula: . ; Calculate the current network performance index and generate network performance evaluation results; in, Indicates the network performance evaluation result, , is the weight coefficient for performance measurement, is the weight coefficient of the redundant data rate, is the packet size, is the forward error correction parameter, is the redundant data rate; According to the network performance evaluation results, it is decided whether it is necessary to iteratively optimize the network configuration, using the decision formula: ; Evaluate the need for network configuration adjustment and generate network adjustment decision results; in, Represents the network adjustment decision result, is the decision sensitivity adjustment parameter, is the performance interval parameter, is the decision adjustment parameter; According to the network adjustment decision result, the network configuration is adjusted to adjust the bandwidth allocation and the packet sending interval, and the adjustment formula is adopted: ; Perform network configuration adjustments and generate network optimization results; in, Expressed as network optimization results, , It is to adjust the strategy parameters.
Citation Information
Patent Citations
Automatic backup and recovery video key management method and system
CN114124373A
Unstructured data self-repairing method based on block chain
CN114237987A
Video transmission method and device based on forward error correction and computer storage medium
CN114900698A
Video identification method with repair function based on digital watermark
CN1561090A
KR20190058834A
