Abnormal water transport event recognition method and monitoring system based on deep learning

Through the autocorrelation semantic recognition and image block processing of deep learning technology, the problem of noise interference in water transportation monitoring images is solved, the recognition accuracy of abnormal events is improved, and more efficient noise removal and abnormal event monitoring are achieved.

CN118411654BActive Publication Date: 2024-10-11贵州道坦坦科技股份有限公司
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410875568.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-11
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

Noise interference often exists in water transportation monitoring images, which affects the accuracy of identifying abnormal events. Traditional denoising methods are difficult to deal with complex noise, especially in water transportation monitoring scenarios.

Method used

A water transportation abnormal event recognition method based on deep learning is used to identify and denoise the noisy image blocks in the image through autocorrelation semantic recognition and image block processing, and improve the image quality to support the accurate identification of abnormal events.

Benefits of technology

It improves the accuracy and denoising effect of noise recognition in water transportation monitoring images, enhances the accuracy and reliability of abnormal events, and improves the automation level of water transportation safety monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411654B_ABST
    Figure CN118411654B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and monitoring system for identifying abnormal events in water transport based on deep learning. Through autocorrelation semantic recognition, the confidence of each image block being confirmed as a noise image block is obtained, which can improve the accuracy of identifying the noise image block in the target water transport monitoring image. Further, based on the confidence of the image block currently wandering to being identified as a noise image block, the image block matrix, and the target reference image block, the confidence of the noise image block of the image block currently wandering to being the target reference image block can be determined, and the target image block in the target water transport monitoring image is restored to the corresponding target reference image block, and a denoised image of the target water transport monitoring image can be obtained to improve the accuracy of denoising, thereby making the abnormal events obtained based on the denoised image recognition more accurate and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to but is not limited to the field of deep learning technology, and in particular to a method and monitoring system for identifying abnormal water transport events based on deep learning. Background Art

[0002] In the field of water transport monitoring, accurate identification of abnormal events is of great significance for ensuring water transportation safety. However, due to the influence of various factors such as environment and equipment, there is often noise interference in monitoring images. These noises not only affect the clarity of the image, but also bring challenges to the identification of abnormal events. Therefore, how to effectively remove noise in images and improve image quality has become an urgent problem to be solved in the field of water transport monitoring. Traditional image denoising methods mainly rely on filter technology, such as median filter, Gaussian filter, etc. Although these methods can remove noise to a certain extent, due to the lack of in-depth understanding of image content and contextual relationships, it is often difficult to handle complex noise situations, especially for the noise in water transport monitoring images. Its diversity and uncertainty make the effect of traditional methods limited. In recent years, with the rapid development of machine learning technology, especially the application of deep learning in the field of image processing, new ideas have been provided for image denoising. By training the neural network model, the noise distribution and characteristics in the image can be learned, so as to achieve accurate noise removal. However, due to the special scene characteristics and noise types of water transport monitoring images, inaccurate denoising may occur, which affects the accuracy of abnormal event recognition. Summary of the invention

[0003] In view of this, the embodiments of the present disclosure at least provide a method and a monitoring system for identifying abnormal water transport events based on deep learning. The technical solution of the embodiments of the present disclosure is implemented as follows:

[0004] On the one hand, the present disclosure provides a method for identifying abnormal water transport events based on deep learning, the method comprising: obtaining an image block matrix of a target water transport monitoring image, the target water transport monitoring image comprising a plurality of image blocks; performing autocorrelation semantic recognition on the image block matrix to obtain the confidence that each image block is confirmed to be a noise image block; wandering the plurality of image blocks one by one, obtaining a target reference image block corresponding to the image block currently wandered to, and determining the current wandering image block in the target water transport monitoring image based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block matrix, and the target reference image block. The method comprises the steps of: determining a target image block from among the multiple image blocks based on the confidence that each image block in the target water transport monitoring image is a noise image block of the reference image block, wherein the confidence that the target image block is a noise image block of the target reference image block is greater than the confidence that the remaining image blocks in the multiple image blocks are noise image blocks of the corresponding reference image blocks; restoring the target image block in the target water transport monitoring image to the corresponding target reference image block to obtain a denoised image of the target water transport monitoring image; and identifying abnormal water transport events based on the denoised image.

[0005] On the other hand, the present disclosure provides a monitoring system, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the steps in the above method when executing the program.

[0006] The present disclosure includes at least the following technical effects: the embodiments of the present disclosure obtain the confidence that each image block is confirmed to be a noise image block through autocorrelation semantic recognition, which can improve the accuracy of identifying the noise image block in the target water transport monitoring image. Furthermore, based on the confidence that the image block currently wandered to is identified as a noise image block, the image block matrix, and the target reference image block, the confidence that the image block currently wandered to is the noise image block of the target reference image block can be determined, and the target image block in the target water transport monitoring image is restored to the corresponding target reference image block, and a denoised image of the target water transport monitoring image can be obtained to improve the accuracy of denoising, thereby making the abnormal events obtained based on the denoised image recognition more accurate and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 A schematic diagram of the implementation flow of a method for identifying abnormal water transport events based on deep learning provided in an embodiment of the present disclosure.

[0008] Figure 2 A hardware entity schematic diagram of a monitoring system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0009] The present disclosure provides a method for identifying abnormal water transport events based on deep learning, which can be executed by a processor of a monitoring system. The monitoring system can refer to a server, a laptop, a tablet computer, a desktop computer, a mobile device (such as a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other devices with data processing capabilities.

[0010] Figure 1 A schematic diagram of the implementation flow of a method for identifying abnormal water transport events based on deep learning provided in an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the method includes:

[0011] Step S1, obtaining an image block matrix of a target water transport monitoring image, where the target water transport monitoring image includes a plurality of image blocks.

[0012] In the disclosed embodiment, step S1 pre-processes the target water transport monitoring image. Specifically, the monitoring system obtains a target monitoring image containing a water transport scene, and this image may come from a monitoring camera of a dock, a waterway or other water transport area. Since the monitoring camera usually captures a large range of scenes, directly processing the entire image may result in excessive consumption of computing resources and low efficiency. Therefore, the monitoring system performs block processing on this target monitoring image. During the block processing process, the monitoring system divides the target water transport monitoring image into multiple smaller image blocks. The size of these image blocks can be adjusted according to the needs of the actual application, and can usually be determined according to factors such as the resolution of the monitoring camera, the size of the object in the image, and the limitation of computing resources. For example, if the monitoring camera captures a busy waterway scene and needs to identify abnormal events between ships, the size of the image block can be set to a size that can contain a complete ship. After the block processing, the monitoring system obtains a matrix composed of multiple image blocks, that is, an image block matrix. Each element in this matrix is ​​an image block, and they are arranged according to their positional relationship in the original image. For example, if the original image is an 800×600 pixel image and the size of each image patch is 100×100 pixels, then the image patch matrix will be an 8×6 matrix where each element is a 100×100 pixel image patch.

[0013] By obtaining the image block matrix of the target water transport monitoring image, the monitoring system lays the foundation for subsequent steps such as autocorrelation semantic recognition, noise image block recognition, and abnormal event recognition. This block processing method not only improves computational efficiency, but also helps to more accurately locate and process noise and abnormal events in the image.

[0014] Step S2, performing autocorrelation semantic recognition on the image block matrix to obtain the confidence level of each image block being confirmed as a noise image block.

[0015] In the disclosed embodiment, step S2 performs autocorrelation semantic recognition on the image block matrix, which is also called context semantic recognition, in order to identify which image blocks in the image block matrix may be noise image blocks and give corresponding confidence. In actual operation, the monitoring system analyzes the contextual relationship between each image block and its surrounding blocks. This is because in water transport monitoring images, adjacent image blocks often have similar semantic content, such as continuous ships, water surfaces or shore facilities. If the content of an image block is significantly different from the content of its surrounding blocks, then this image block is likely to be a noise image block. In order to perform this context semantic recognition, the monitoring system can use a machine learning method, such as training a convolutional neural network (CNN) model. This model learns how to extract the features of image blocks and compare the similarity of these features with the features of surrounding blocks. Specifically, for each image block in the image block matrix, the model extracts its feature vector and compares it with the feature vectors of the surrounding blocks. If the difference exceeds a certain threshold, then the image block is considered to be a noise image block and is given a higher confidence.

[0016] For example, suppose there is a water transport monitoring image block matrix, in which one image block shows a water surface, while the blocks around it all show ships. Since the content of this water surface block is significantly different from the surrounding ship blocks, it is likely to be a noise image block. Through contextual semantic recognition, the monitoring system calculates the confidence that this water surface block is a noise image block and marks it out. After obtaining the confidence that each image block is confirmed to be a noise image block, the monitoring system can enter the subsequent steps to further process and analyze the noise image blocks to improve the accuracy and efficiency of identifying abnormal events in water transport.

[0017] Step S3, walk through multiple image blocks one by one, obtain the target reference image block corresponding to the image block currently walked to, and determine the confidence of the image block currently walked to in the target water transport monitoring image as the noise image block of the target reference image block based on the confidence that the image block currently walked to is confirmed to be a noise image block, the image block matrix, and the target reference image block.

[0018] In the disclosed embodiment, step S3 performs a walk analysis on multiple image blocks in the image block matrix one by one to further determine whether each image block is a noise image block, and calculates its confidence as a noise image block. When executing step S3, the monitoring system walks on each image block in the image block matrix one by one. For the image block currently walked to, the monitoring system first determines its corresponding target reference image block. The reference image block is a candidate image block, which can be various representative scene image blocks collected based on a priori scenes and prepared in advance as reference images. The number of these image blocks is preferably multiple and is stored in a reference image block library. In or, in other possible implementations, the reference image block can be an adjacent block of the current image block, because in the water transport monitoring image, there is often a contextual relationship between adjacent blocks, and this relationship helps to more accurately determine whether the current block is noise. For example, assuming that the image block currently walked to shows a part of a ship, then its target reference image block may be other parts of the ship or an adjacent water surface block. The system will determine whether the current block is abnormal based on the content of these reference blocks. The target reference image block is the selected reference image block.

[0019] Next, the monitoring system determines the confidence of the current image block as the noise image block of the target reference image block based on the confidence that the current image block is confirmed to be a noise image block (this confidence has been calculated in step S2), the image block matrix and the target reference image block. This step usually involves comparing and analyzing the features of the image blocks.

[0020] Specifically, the monitoring system can extract the feature vectors of the current image block and the target reference image block, and calculate the similarity between them. The feature vector can include a variety of information such as color, texture, shape, etc., which can be extracted through a machine learning model (such as a convolutional neural network). If the feature vector of the current image block is significantly different from that of the target reference image block, and the confidence that the current image block is identified as noise in step S2 is high, then the system will consider the current image block to be a noise image block of the target reference image block and assign a higher confidence. In this way, the monitoring system can more accurately identify noise image blocks in complex water transport monitoring images and provide more valuable information for subsequent abnormal event identification.

[0021] Step S4, based on the confidence of each image block in the target water transport monitoring image as a noise image block of the reference image block, determine the target image block among multiple image blocks, and the confidence of the noise image block of the target image block as the target reference image block is greater than the confidence of the noise image blocks of the remaining image blocks in the multiple image blocks as the corresponding reference image blocks.

[0022] In the disclosed embodiment, step S4 further determines which image blocks are target image blocks based on the confidence of each image block as a noise image block of the reference image block calculated in step S3. Target image blocks refer to those image blocks that are most likely to be identified as noise, that is, their confidence as noise image blocks is greater than that of other image blocks. Specifically, the monitoring system traverses all image blocks and checks their respective confidences as noise image blocks of a certain reference image block. These confidences are calculated in step S3 by comparing the features, contextual relationships and other factors of the current image block and the reference image block. Then, the monitoring system sorts the image blocks according to these confidences. The basis for sorting is the confidence level of each image block as a noise image block. The higher the confidence level, the higher the image block is sorted. This is because a high confidence level means that the image block is more likely to be noise.

[0023] Then, the monitoring system selects one or more image blocks with the highest confidence from these sorted image blocks as target image blocks. These target image blocks are the image blocks that are identified as having the highest possibility of noise in the current water transport monitoring image. For example, suppose that a part of the water transport monitoring image is blurred or distorted due to camera shaking or light changes. These areas are divided into multiple image blocks, and in step S3, the confidence of these image blocks as noise image blocks of the surrounding clear image blocks is calculated. In step S4, the monitoring system sorts these image blocks according to these confidences, and selects several image blocks with the highest confidence as target image blocks. These target image blocks are the areas that need to be focused on and processed in the subsequent denoising process.

[0024] Through the processing of step S4, the monitoring system can accurately identify the noise image blocks in the water transport monitoring image and provide clearer and more accurate image data for subsequent abnormal event identification.

[0025] Step S5, restoring the target image blocks in the target water transport monitoring image into corresponding target reference image blocks to obtain a denoised image of the target water transport monitoring image.

[0026] In the disclosed embodiment, step S5 is a key step of denoising the target water transport monitoring image containing noise. In this step, the monitoring system restores the target image blocks (i.e., the noise image blocks) determined in step S4 into corresponding target reference image blocks, thereby obtaining a denoised version of the target water transport monitoring image. Specifically, after the monitoring system determines the target image blocks, it will start looking for target reference image blocks corresponding to these target image blocks. The target reference image blocks are usually image blocks that are adjacent to the target image blocks and have similar contents, and the relationship between them often presents a certain contextual continuity in the water transport monitoring image. For example, if the target image block is a partially blurred area of ​​a ship, then its target reference image block may be other clear areas of the ship or adjacent similar ship areas.

[0027] Once the target reference image blocks are determined, the monitoring system uses the content of these reference blocks to restore the target image blocks. The specific implementation of the restoration process can be selected according to different application scenarios and requirements. A common method is to use image restoration techniques, such as sample-based image restoration or deep learning-based image restoration algorithms. These techniques can generate content similar to the target image blocks by analyzing the features and texture information of the target reference image blocks, thereby replacing the noise part.

[0028] Taking the image restoration algorithm based on deep learning as an example, the monitoring system can train a convolutional neural network (CNN) model to learn how to predict and generate the content of the target image block based on the content of the target reference image block. During the training process, it learns to extract useful features and information from a large number of image pairs with noise and corresponding clear content. Then, in step S5, the model receives the target image block and the target reference image block as input, and outputs a predicted denoised image block. This predicted image block will be used to replace the original target image block, thereby completing the denoising process. Alternatively, the target image block is directly replaced with the target reference block. Through the processing of step S5, the monitoring system can effectively remove noise interference in the water transport monitoring image, improve the clarity and quality of the image, and help to more accurately identify and judge the occurrence of abnormal events. For example, in abnormal events such as ship collisions and cargo leaks, clear monitoring images can help staff quickly locate the problem and take appropriate measures to deal with it.

[0029] Step S6, identifying abnormal events in water transport based on the denoised image to obtain abnormal event identification results.

[0030] In the disclosed embodiment, step S6 uses the denoised image obtained by processing in step S5 to identify abnormal events in water transport. This process can be carried out with the help of machine learning models, especially deep learning models, such as convolutional neural networks (CNNs), to perform efficient feature extraction and classification. The process of abnormal identification can be completed using general technologies.

[0031] Specifically, the monitoring system can input the denoised image into a pre-trained convolutional neural network model. This model has been trained on a large amount of water transport monitoring image data with abnormal events annotated, so it has learned to extract key features related to abnormal events from the image. These features may include dynamic information such as the position, speed, and heading of the ship, or static information such as the status of the cargo and the fluctuation of the water surface.

[0032] Once the denoised image is input into the convolutional neural network, the model will perform convolution and pooling operations on the image layer by layer to extract multi-level features in the image. These features are converted into feature vectors as input to the subsequent classifier. Next, the monitoring system uses a classifier (such as a support vector machine, random forest, or logistic regression) to classify the feature vector. The goal of the classifier is to determine whether an abnormal event has occurred in the denoised image and the type of abnormal event based on the content of the feature vector. For example, the classifier can determine whether there are abnormal situations such as ship collisions, cargo leaks, and abnormal fluctuations in the water surface in the image.

[0033] For example, suppose that the denoised image shows two ships approaching and colliding. The convolutional neural network will extract features related to the position, speed, heading, etc. of the ships, and convert these features into feature vectors. Then, the classifier will determine the abnormal event of ship collision in the image based on these feature vectors, and output the corresponding recognition results. Through the processing of step S6, the monitoring system can realize efficient and accurate recognition of abnormal events in water transport monitoring images. This is of great significance for improving the level of automation of water transport safety monitoring and reducing errors caused by human intervention.

[0034] In a feasible implementation scheme, the method further includes:

[0035] Step S100, based on the confidence that the currently visited image block is confirmed to be a noise image block, the currently visited image block and the preset shielding matrix are eccentrically adjusted to obtain a mild shielding characterization vector corresponding to the currently visited image block.

[0036] In the disclosed embodiment, step S100 aims to reduce the impact of the noise image block on the subsequent denoising and abnormal event identification process by means of soft shielding. First, the monitoring system evaluates the image block currently wandering to determine the confidence that it is identified as a noise image block. This confidence is calculated by autocorrelation semantic recognition in step S2, which reflects the possibility that the current image block is noise.

[0037] Next, the monitoring system uses a preset shielding matrix to perform soft shielding on the current image block. This shielding matrix is ​​a matrix of the same size as the image block matrix, and its element values ​​are preset to shield potential noise effects in subsequent processing. Usually, the element values ​​of the shielding matrix are set to a small positive number (such as 0.1), so that the weight of the noisy image block can be reduced during the weighted operation.

[0038] In step S100, the monitoring system performs eccentric adjustment, i.e., weighted operation, on the current image block and the preset shielding matrix according to the confidence that the current image block is identified as noise. Specifically, the monitoring system multiplies each pixel value of the current image block with the element value of the shielding matrix at the corresponding position, and uses the product as the new pixel value, thereby obtaining a mild shielding representation vector corresponding to the current image block. This mild shielding representation vector is actually a feature representation of a soft shield, which masks the noise image blocks that may appear in the image block matrix in a more refined way. Specifically, if the current image block is likely to be identified as noise (i.e., the confidence is close to 1), then its corresponding pixel value in the mild shielding representation vector will be closer to the element value in the shielding matrix, thereby shielding the influence of the image block to a greater extent in subsequent processing. Conversely, if the current image block is unlikely to be noise (i.e., the confidence is close to 0), then its corresponding pixel value in the mild shielding representation vector will be closer to the pixel value of the original image block, retaining more information. For example, suppose that the image block currently moved to is a partially blurred water surface area, and the confidence level for being identified as noise is 0.8. In step S100, the monitoring system performs a weighted operation on this image block and a preset shielding matrix. If the element value of the shielding matrix is ​​0.1, then after the weighted operation, the pixel value of the blurred water surface area will be reduced (for example, an area with an original pixel value of 200 may become 20 after weighting), thereby reducing its impact in subsequent denoising processing. For other image blocks with lower confidence levels, such as clear ship areas, their pixel values ​​change less after weighted operations, retaining more detail information. In this way, step S100 effectively reduces the impact of noisy image blocks on subsequent processing and improves the accuracy of denoising and abnormal event identification.

[0039] S3, based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block matrix, and the target reference image block, determining the confidence that the image block currently wandered to in the target water transport monitoring image is a noise image block of the target reference image block, including:

[0040] Step S31, based on the mild masking characterization vector, the image block matrix, and the target reference image block, determine the confidence of the noise image block that the image block currently wandered to in the target water transport monitoring image is the target reference image block.

[0041] In the disclosed embodiment, step S31 determines the confidence of the current wandered image block as the noise image block of the target reference image block based on the mild masking characterization vector, the image block matrix and the target reference image block. This step helps the monitoring system to more accurately identify and process the noise image block, thereby improving the accuracy of the entire abnormal event recognition.

[0042] Specifically, when executing step S31, the monitoring system obtains a mild shielding characterization vector. This vector is obtained by weighting the confidence that the current image block is identified as noise and the preset shielding matrix in step S100. It masks possible noise image blocks in a soft way, reducing the impact of noise on subsequent processing. Next, the monitoring system combines the image block matrix and the target reference image block for further analysis. The image block matrix contains all the block information of the entire water transport monitoring image, and the target reference image block is the reference object of the current image block in the context, usually an adjacent or similar image block.

[0043] In step S31, the monitoring system compares the similarity of the current image block (which has been processed by mild masking of the representation vector) with the target reference image block in terms of features, texture, color, etc. This comparison can be achieved through various machine learning algorithms or models, such as convolutional neural networks (CNNs). CNNs can extract deep features of image blocks and calculate the similarity between these features.

[0044] Specifically, the monitoring system inputs the current image block and the target reference image block into the pre-trained CNN model and extracts their feature vectors. Then, the monitoring system calculates the similarity score between the two feature vectors, which reflects the similarity between the current image block and the target reference image block.

[0045] In addition, the monitoring system also considers the position information of the current image block in the image block matrix and its contextual relationship with the surrounding blocks. This information helps to more comprehensively evaluate whether the current image block is the noise of the target reference image block. Finally, based on the above analysis, the monitoring system gives a confidence value, indicating the possibility that the current image block is the noise image block of the target reference image block. This confidence value is the result of a combination of multiple factors such as the mild shielding characterization vector, the feature similarity score, and the contextual relationship. For example, suppose that the current image block shows a partially blurred area of ​​a ship, and the target reference image block is an adjacent clear ship area. In step S31, the monitoring system first reduces the weight of the blurred area by the mild shielding characterization vector, then extracts the feature vectors of the blurred area and the clear area, and calculates the similarity score between them. Since there are significant differences in features between the blurred area and the clear area, the similarity score will be lower. At the same time, considering the position of the blurred area in the image block matrix and its contextual relationship with the surrounding clear areas, the monitoring system gives a higher confidence value, indicating that the current image block is likely to be the noise of the target reference image block.

[0046] In this way, step S31 can more accurately identify the noisy image blocks in the water transport monitoring image and provide more valuable information for subsequent denoising and abnormal event identification.

[0047] In a feasible implementation scheme, in step S100, based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block currently wandered to and the preset shielding matrix are eccentrically adjusted to obtain a mild shielding characterization vector corresponding to the image block currently wandered to, including:

[0048] Step S101: The confidence level of the image block currently wandered to being confirmed as a noise image block is used as the eccentricity coefficient of the preset shielding matrix.

[0049] In step S101 of the disclosed embodiment, the monitoring system uses the confidence that the image block currently wandered to is confirmed to be a noise image block as the eccentricity coefficient of the preset shielding matrix. The eccentricity coefficient represents the weight assigned to the corresponding variable, so as to adjust the strength of the shielding matrix, thereby realizing soft shielding of the noise image block. Specifically, when the monitoring system traverses the image block matrix, it will perform noise identification for each image block currently wandered to. In step S2, the monitoring system calculates the confidence that the image block is confirmed to be a noise image block through the autocorrelation semantic recognition (context semantic recognition) method. This confidence is a value between 0 and 1, reflecting the possibility that the image block is noise.

[0050] In step S101, the monitoring system uses this confidence as the eccentricity coefficient of the preset shielding matrix. The preset shielding matrix is ​​a tool for reducing the impact of noise, and its element value is usually set to a small positive number (such as 0.1), representing the basic shielding strength of noise. However, different image blocks may have different noise levels, so they need to be shielded to different degrees.

[0051] By using the noise confidence of the current image block as the eccentricity coefficient, the monitoring system can adjust the strength of the shielding matrix according to the actual situation. Specifically, if the noise confidence of the current image block is high (close to 1), it means that the image block is likely to be noise, so it should be shielded more strongly. At this time, the eccentricity coefficient (i.e., noise confidence) will also be close to 1, causing the shielding matrix to play a greater role in the weighted operation, thereby reducing the weight of the current image block in subsequent processing.

[0052] On the contrary, if the noise confidence of the current image block is low (close to 0), it means that the image block is unlikely to be noise, so it should be given weaker shielding or no shielding. At this time, the eccentricity coefficient will also be close to 0, resulting in a weakened effect of the shielding matrix in the weighted operation, thereby retaining most of the information of the current image block.

[0053] For example, suppose that the image block currently wandered to is a partially blurred ship area, and the confidence level of its confirmation as a noise image block is 0.8. In step S101, the monitoring system uses this confidence level of 0.8 as the eccentricity coefficient of the preset shielding matrix. If the element value of the preset shielding matrix is ​​0.1, then in the weighted operation, the actual shielding strength of the current image block will become (0.1×0.8 = 0.08). This means that the pixel value of the blurred ship area will be reduced to 8% of the original value in subsequent processing, thereby achieving effective shielding of noise. In this way, step S101 can dynamically adjust the strength of the shielding matrix according to the noise level of the current image block, providing clearer and more accurate image data for subsequent abnormal event identification.

[0054] Step S102, determining the eccentricity coefficient of the image block currently wandered to according to the confidence that the image block currently wandered to is confirmed to be a noise image block.

[0055] Specifically, in the context of step S100, the monitoring system first performs noise identification on each image block in the image block matrix through autocorrelation semantic recognition, and calculates the confidence that each image block is confirmed as a noise image block. This confidence is a value between 0 and 1, which reflects the possibility that the image block is noise. Step S102 is executed immediately afterwards, and its core task is to determine the eccentricity coefficient of the current image block based on this confidence. In fact, in this scenario, the eccentricity coefficient of the current image block is equivalent to the confidence that it is confirmed as noise. This is because the confidence itself represents the possibility that the image block is noise, and therefore can be used directly as an eccentricity coefficient.

[0056] For example, suppose that the image block currently wandered to shows a blurred water surface area, which is confirmed as a noise image block with a confidence of 0.7 in step S2. In step S102, the monitoring system directly uses this confidence of 0.7 as the eccentricity coefficient of the current image block. This eccentricity coefficient will be used in the subsequent step S103 to perform weighted processing on the current image block, thereby achieving soft shielding of noise. Specifically, if the preset shielding matrix element value is 0.1 (for basic shielding noise), then in step S103, each pixel value in the current image block will be multiplied by 0.1 and 0.7 (i.e., weighted summation), and the result will be used as the new pixel value. In this way, the pixel value of the blurred water surface area will be reduced to 7% of the original value (i.e., 0.1 multiplied by 0.7), thereby reducing its impact in the subsequent denoising and abnormal event recognition process. By determining the eccentricity coefficient of the current image block in step S102, the monitoring system can perform personalized shielding processing according to the noise level of each image block, thereby improving the accuracy of denoising and further improving the performance of the entire water transport abnormal event recognition system.

[0057] Step S103, according to the eccentricity coefficient of the preset shielding matrix and the eccentricity coefficient of the image block currently wandered to, the eccentricity of the image block currently wandered to and the preset shielding matrix are adjusted to obtain a mild shielding characterization vector corresponding to the image block currently wandered to.

[0058] In the embodiment of the present disclosure, step S103 implements the eccentric adjustment of the currently wandered image block and the preset shielding matrix, thereby generating a mild shielding characterization vector. The purpose of this step is to reduce the impact of the noisy image block on subsequent processing and improve the accuracy of denoising and abnormal event recognition.

[0059] In step S103, the monitoring system obtains two key eccentricity coefficients: one is the eccentricity coefficient of the preset shielding matrix, and the other is the eccentricity coefficient of the current image block. Next, the monitoring system performs eccentricity adjustment on the current image block and the preset shielding matrix. This process is essentially a weighted summation operation.

[0060] Through this process, the monitoring system is actually performing soft masking on the current image block. Specifically, if the noise confidence of the current image block is high (i.e., the eccentricity coefficient is close to 1), then the pixel value in the corresponding mild masking representation vector will be significantly reduced, thereby reducing the impact of the image block in subsequent processing; conversely, if the noise confidence is low (i.e., the eccentricity coefficient is close to 0), the pixel value changes less, retaining more original information.

[0061] Through the processing of step S103, the monitoring system obtains a mild shielding characterization vector, which masks possible noise image blocks in a soft way, thereby improving the accuracy of subsequent denoising and abnormal event recognition.

[0062] In a feasible implementation scheme, step S2, performing autocorrelation semantic recognition on the image block matrix to obtain the confidence level of each image block being confirmed as a noise image block, includes:

[0063] Step S21, for each image block in the image block matrix, determine a context state representation vector corresponding to each image block.

[0064] In step S21 of the disclosed embodiment, the monitoring system determines the context state representation vector for each image block in the image block matrix to capture the contextual relationship between the current image block and its surrounding blocks. Specifically, when the monitoring system traverses the image block matrix, for each currently examined image block, it first determines the four adjacent blocks above, below, left and right of the image block. These four adjacent blocks together constitute the local context environment of the current image block. Next, the monitoring system extracts the feature information of each adjacent block, which may include multiple attributes such as color, texture, brightness, and shape.

[0065] For example, suppose the image block currently under investigation shows a part of a ship. In this scenario, the upper block may show the sky or water surface, the lower block may show the water surface or other ships, and the left and right blocks may show adjacent ships or water surfaces. The monitoring system extracts feature information of these four adjacent blocks, such as the color and texture of the sky, the fluctuation and reflection of the water surface, and the outline and color of the ship.

[0066] After extracting the feature information of adjacent blocks, the monitoring system integrates the feature information to form a context state representation vector. This vector contains the comprehensive feature information of the surrounding environment of the current image block, and can reflect the relationship between the current image block and its context environment. Specifically, the context state representation vector may be a multidimensional vector, and each dimension corresponds to a certain characteristic attribute of an adjacent block. For example, the first dimension may represent the color feature of the upper block, the second dimension represents the texture feature of the lower block, and so on. Through the processing of step S21, the monitoring system can generate a corresponding context state representation vector for each image block, and this vector will serve as an important basis for determining whether the image block is a noise image block in subsequent steps. This feature extraction method based on contextual relationships helps to more accurately identify noise image blocks and improve the performance of the entire abnormal event recognition system.

[0067] Step S22: determining an image block representation vector corresponding to each image block based on the context state representation vector corresponding to each image block.

[0068] In the disclosed embodiment, step S22 is a key step, which further determines the image block representation vector of each image block based on the context state representation vector corresponding to each image block. This representation vector combines the feature information of the image block itself and the context information of its surrounding environment, and provides an important basis for the subsequent judgment of whether the image block is a noise image block. In step S21, the monitoring system has determined the corresponding context state representation vector for each image block in the image block matrix. This vector contains the feature information of the surrounding environment of the current image block, such as the color, texture, brightness and other features of the four adjacent blocks above, below, left and right. Next, in step S22, the monitoring system uses these context state representation vectors, combined with the feature information of the current image block itself, to determine the image block representation vector of each image block. This representation vector not only contains the features of the current image block itself, but also incorporates the context information of its surrounding environment, forming a more comprehensive and integrated description.

[0069] Specifically, the monitoring system extracts the feature information of the current image block itself. This feature information may include the color distribution, texture pattern, shape outline, etc. of the image block. Then, the monitoring system fuses this feature information with the context state representation vector obtained in step S21. The fusion method may be to splice the two vectors, or to merge them into a new vector through a feature fusion algorithm.

[0070] For example, suppose that the image block currently under investigation shows a part of a ship. In step S21, the monitoring system has extracted the context state representation vector of the surrounding environment of the image block, including the feature information of the sky, the water surface and the adjacent ships. In step S22, the monitoring system further extracts the feature information of the ship image block itself, such as the outline and color of the ship. Then, the monitoring system fuses these feature information with the context state representation vector to form a new image block representation vector. This vector contains both the feature information of the ship itself and the context information of the surrounding environment, such as the color of the sky, the fluctuation of the water surface, etc. Through the processing of step S22, the monitoring system generates a comprehensive representation vector for each image block containing its own features and context information. This representation vector will serve as an important basis for determining whether the image block is a noise image block in the subsequent steps. This feature fusion method based on context information helps to improve the accuracy of noise image block recognition, thereby improving the performance of the entire water transport abnormal event recognition system.

[0071] Step S23, based on the image block characterization vector corresponding to each image block, determine the confidence level of each image block being confirmed as a noise image block.

[0072] In the disclosed embodiment, step S23 determines the confidence level of each image block being identified as a noise image block based on the image block characterization vector corresponding to each image block. The purpose of this step is to more accurately identify the noise area in the image and provide strong support for subsequent denoising and abnormal event identification.

[0073] In step S23, the monitoring system obtains the image block representation vector corresponding to each image block. This representation vector is generated in step S22, and it integrates the feature information of the image block itself and the contextual information of its surrounding environment. Specifically, this representation vector may contain multiple features such as color, texture, shape, and the distribution and changes of these features in the image block and its surrounding area. Next, the monitoring system uses a pre-trained machine learning model (such as support vector machine, random forest, neural network, etc.) to analyze and judge the image block representation vector. During the training process, this model has learned the distribution law of noisy image blocks and normal image blocks in the feature space, so it can judge whether an image block belongs to noise based on the input representation vector.

[0074] Taking neural networks as an example, the monitoring system uses the image block representation vector as the input of the neural network, and finally obtains an output value through calculation and transmission of multiple layers of neurons. This output value is the confidence that the image block is identified as a noise image block, which reflects the possibility that the system believes that the image block is noise. Usually, the confidence value ranges from 0 to 1, and the closer the value is to 1, the more likely the image block is noise. In practical applications, the monitoring system can set a threshold to determine whether an image block is considered noise. For example, if the confidence of an image block exceeds 0.8, the system will consider the image block to be noise and perform special processing on it in subsequent processing (such as denoising, shielding, etc.).

[0075] For example, suppose that in a water transport monitoring image, there is an image block showing a blurred water surface area. In step S22, the monitoring system generates a characterization vector for the image block, which includes its color, texture and other features as well as contextual information of the surrounding environment. Then, in step S23, the monitoring system inputs this characterization vector into a pre-trained neural network model for analysis. Since there are significant differences in features between the blurred water surface area and the surrounding clear area, the neural network model will output a higher confidence value (such as 0.9), indicating that the image block is very likely to be noise. Based on this confidence value, the monitoring system performs denoising or shielding operations on the image block in subsequent processing to improve the clarity and quality of the entire image.

[0076] Through the processing of step S23, the monitoring system can accurately identify the noise area in the image and provide strong support for subsequent denoising and abnormal event identification.

[0077] In other feasible implementation schemes of step S3, step S3, based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block matrix, and the target reference image block, determines the confidence that the image block currently wandered to in the target water transport monitoring image is a noise image block of the target reference image block, including:

[0078] Step S31 ′: based on the image block matrix and the confidence that the image block currently visited is confirmed to be a noise image block, determine the first potential representation vector corresponding to the image block currently visited.

[0079] In the disclosed embodiment, step S31' determines the first potential representation vector corresponding to the image block based on the image block matrix and the confidence that the image block currently wandered to is confirmed as noise. This first potential representation vector can be regarded as a hidden state feature, which captures the intrinsic properties of the image block and its contextual relationship with the surrounding environment. In this step, the monitoring system focuses on the position of the image block currently wandered to in the image block matrix and its contextual relationship. Since each image block in the water transport monitoring image is not isolated, there is mutual dependence and association between them, and this contextual relationship is crucial for determining whether the image block is noise. Next, the monitoring system considers the confidence that the current image block is confirmed as noise. This confidence is calculated by autocorrelation semantic recognition in the previous step, which reflects the possibility that the image block is noise. The level of confidence will directly affect the generation of the first potential representation vector in the subsequent steps. Then, the monitoring system uses a machine learning model (such as a deep neural network, a hidden Markov model, etc.) to generate the first potential representation vector. This model has been trained with a large amount of labeled data and has learned to extract useful feature information from image blocks. In step S31', the model will accept the position information, contextual relationship and noise confidence of the current image block as input, and output a corresponding first potential representation vector.

[0080] Specifically, the model can first extract features from the current image block and its surrounding blocks, which may include color, texture, shape, etc. Then, the model will combine these features with the noise confidence, and generate a first potential representation vector containing rich information through calculation and transmission of multi-layer neural networks. This vector not only captures the characteristics of the current image block itself, but also incorporates its contextual relationship with the surrounding environment and the information of noise confidence.

[0081] For example, suppose that the current image block shows a blurred water surface area, and the confidence level for confirming it as noise is 0.8. In step S31', the monitoring system first identifies the position of the image block in the image block matrix, and extracts the feature information of the surrounding blocks (such as clear ships or the sky). Then, combined with the noise confidence level of 0.8, this information is input into a pre-trained deep neural network model. The model calculates and transmits through multiple layers of neurons, and finally outputs a first potential representation vector, which contains the hidden state features of the blurred water surface area, such as contrast with the surrounding clear areas, position information, etc.

[0082] Through the processing of step S31', the monitoring system can generate a first latent representation vector containing rich information, which provides strong support for determining whether the current image block is a noise image block of the target reference image block in the subsequent step. This latent state feature extraction method based on contextual relationship and noise confidence helps to improve the accuracy of noise image block recognition.

[0083] Step S32': determining a second latent representation vector corresponding to the image block currently visited based on the first latent representation vector and the image block currently visited.

[0084] In the disclosed embodiment, step S32' is a key step to further refine the feature representation of the image block currently wandered to. In this step, the monitoring system determines a more in-depth second potential representation vector based on the first potential representation vector generated in step S31' and the information of the image block currently wandered to. In step S31', the monitoring system has generated a first potential representation vector based on the position of the current image block in the image block matrix, the contextual relationship, and the confidence level confirmed as noise. This vector captures the hidden state characteristics of the image block and provides an important basis for subsequent recognition. Next, in step S32', the monitoring system combines the first potential representation vector with the original features of the current image block itself. These original features may include pixel values, color distribution, texture patterns, etc. of the image block. By fusing the first potential representation vector with the original features, the monitoring system can generate a more comprehensive and detailed second potential representation vector. In specific implementation, the monitoring system can use a variety of methods to fuse the first potential representation vector and the original features. A common method is to use feature concatenation or feature fusion technology. For example, the monitoring system may concatenate the first latent representation vector and the original feature vector to form a longer vector; or, the monitoring system may use some fusion function (such as weighted summation, multi-layer perceptron, etc.) to fuse the two vectors together to generate a new vector.

[0085] By combining the first latent representation vector and the original features, the monitoring system can capture more detailed information of the image blocks. For example, when judging whether a blurred water surface area is noise, the monitoring system can not only consider the contextual relationship between the area and the surrounding environment (through the first latent representation vector), but also consider the color, texture and other characteristics of the area itself (through the original features). This comprehensive consideration helps to improve the accuracy of noise image block recognition.

[0086] For example, assuming that the current image block shows a blurred water surface area, its first potential characterization vector already contains hidden state features such as the contrast and position information between the area and the surrounding clear areas. In step S32', the monitoring system merges this first potential characterization vector with the original features of the water surface area (such as color distribution, texture pattern, etc.). In specific implementation, the monitoring system can use feature splicing technology to splice the two vectors together to form a new second potential characterization vector. This vector contains both the hidden state features of the blurred water surface area and its own original features, providing more comprehensive and detailed information for subsequent noise image block recognition.

[0087] Step S33', based on the image block currently visited, the second potential representation vector corresponding to the image block currently visited, and the target reference image block, determine the confidence of the noise image block that the image block currently visited in the target water transport monitoring image is the target reference image block.

[0088] In step S33' of the disclosed embodiment, the monitoring system will comprehensively consider the information of the current image block, its corresponding second latent representation vector, and the target reference image block to make an accurate judgment. In step S32', the monitoring system has generated a second latent representation vector based on the current image block and the first latent representation vector. This vector combines the hidden state features and original features of the current image block, providing an important basis for subsequent noise judgment. In step S33', the monitoring system obtains the information of the target reference image block. The target reference image block is usually an adjacent or similar block of the current image block, and there is a certain contextual relationship between them. Then, the monitoring system compares and analyzes the information of the current image block, its corresponding second latent representation vector, and the target reference image block.

[0089] Specifically, the monitoring system can use a certain similarity measurement method (such as cosine similarity, Euclidean distance, etc.) to calculate the similarity between the second potential representation vector of the current image block and the feature vector of the target reference image block. If the similarity is low, it means that there is a large difference in the characteristics between the current image block and the target reference image block, and the current image block is likely to be noise. At this time, the monitoring system gives a comprehensive noise confidence value based on the degree of difference and the confidence that the current image block is confirmed as noise calculated in step S2. In addition, the monitoring system can also use machine learning models (such as classifiers, regression models, etc.) to make noise judgments. In this case, the monitoring system takes the second potential representation vector of the current image block and the feature vector of the target reference image block as input, and outputs a probability value indicating that the current image block is noise. This probability value is actually the noise confidence, which reflects the possibility that the system believes that the current image block is noise.

[0090] For example, suppose that the image block currently moved to shows a blurred water surface area, and its second latent characterization vector already contains the comprehensive feature information of the area. The target reference image block is an adjacent clear ship area. In step S33', the monitoring system calculates the similarity between the second latent characterization vector of the blurred water surface area and the feature vector of the clear ship area. Since there are significant differences in features between the blurred water surface area and the clear ship area (such as color, texture, etc.), the similarity will be low. At the same time, considering that the blurred water surface area calculated in step S2 is confirmed to be noise with a high confidence level (such as 0.8), the monitoring system gives a higher noise confidence value (such as 0.9), indicating that the image block currently moved to is likely to be a noise image block of the target reference image block.

[0091] Through the processing of step S33', the monitoring system can accurately determine whether the image block currently moved to is a noise image block of the target reference image block, and give a corresponding confidence value.

[0092] In a feasible implementation scheme, step S31', based on the image block matrix and the confidence that the image block currently wandered to is confirmed to be a noise image block, determines the first potential representation vector corresponding to the image block currently wandered to, including:

[0093] Step S31'1, based on the confidence that the currently visited image block is confirmed to be a noise image block, the currently visited image block and the preset shielding matrix are eccentrically adjusted to obtain a mild shielding characterization vector corresponding to the currently visited image block.

[0094] In the actual scenario of water transport abnormal event recognition, step S31'1 is an important preprocessing step, which weights the image blocks and the preset shielding matrix by adjusting the eccentricity, combined with the confidence that the current wandered image block is confirmed as noise, to obtain a mild shielding representation vector. This step aims to reduce the impact of the noisy image block on subsequent processing and improve the accuracy of abnormal event recognition.

[0095] Specifically, in this step, the monitoring system obtains the confidence that the current image block is confirmed as noise. This confidence is calculated by the previous autocorrelation semantic recognition step, which reflects the possibility that the current image block is noise. For example, if the current image block is a blurred water surface area, after autocorrelation semantic recognition, the monitoring system can give a higher noise confidence, such as 0.8. Next, the monitoring system uses this noise confidence to adjust the current image block and the preset shielding matrix. The preset shielding matrix is ​​a tool for reducing the impact of noise, and its element value is usually small, such as 0.1. In this step, the monitoring system uses the noise confidence as a weight to perform a weighted operation on the preset shielding matrix. Specifically, each element value in the preset shielding matrix is ​​multiplied by the noise confidence. For example, if the noise confidence is 0.8, the weighted shielding matrix element value will become 0.08 (0.1 multiplied by 0.8). Then, the monitoring system applies the weighted shielding matrix to the current image block for eccentricity adjustment. This process is actually a weighted summation operation. Specifically, each pixel value in the current image block is multiplied by the element value of the corresponding position in the weighted masking matrix to obtain a new pixel value. The vector composed of this new pixel value is the mild masking representation vector of the current image block. This vector masks possible noise in a soft way and reduces the impact of noise on subsequent processing.

[0096] Continuing with the above example, suppose there is a point with a pixel value of 200 in the current image block, and the element value of the corresponding position in the weighted shielding matrix is ​​0.08. Then, after the eccentricity adjustment, the new pixel value of this pixel will become 16 (200 multiplied by 0.08). In this way, the pixel value of the blurred water surface area is significantly reduced, thereby reducing its impact in subsequent processing.

[0097] Through the processing of step S31'1, the monitoring system obtains a mild shielding characterization vector, which not only reduces the impact of noise, but also retains most of the useful information of the image block, which provides a more accurate and reliable data basis for determining whether the current image block is noise in the subsequent steps.

[0098] Step S31'2: determining a first potential representation vector corresponding to the image block currently visited based on the mildly shielded representation vector corresponding to the image block currently visited and the image block matrix.

[0099] In the disclosed embodiment, step S31'2 is based on the mild shielding characterization vector obtained in the previous step S31'1 and the information of the entire image block matrix, and extracts a deeper and potentially meaningful feature vector through processing by a machine learning model, thereby providing an important basis for subsequent determination of whether the image block is noise.

[0100] Specifically, in step S31'2, the monitoring system obtains the mild shielding characterization vector corresponding to the image block currently wandering to. This vector is generated by eccentric adjustment in step S31'1, which masks possible noise in a soft way and reduces the impact of noise on subsequent processing. The mild shielding characterization vector not only contains the original information of the current image block, but also incorporates the weight of the noise confidence, so that the system can identify noise more accurately. Next, the monitoring system combines this mild shielding characterization vector with the information of the image block matrix. The image block matrix contains all the block information of the entire water transport monitoring image, which reflects the spatial relationship and contextual environment between the image blocks. By combining the mild shielding characterization vector of the current image block with the image block matrix, the monitoring system can more comprehensively understand the position and contextual relationship of the current image block in the entire image. Then, the monitoring system uses a pre-trained machine learning model to process the input that combines the mild shielding characterization vector and the image block matrix information. This machine learning model can be a deep neural network, such as a convolutional neural network (CNN) or a recurrent neural network (RNN). The model has been trained with a large amount of labeled data and has learned to extract useful features from the input data. In the current step, the model accepts the mildly masked representation vector and the image block matrix as input, and finally outputs a first potential representation vector through calculation and transmission of a multi-layer neural network.

[0101] This first latent representation vector is a more in-depth description of the current image block. It not only contains the feature information of the image block itself, but also incorporates its position information and contextual relationship in the image block matrix. This vector captures the hidden state characteristics of the current image block, providing an important basis for subsequent judgment of whether the image block is noise.

[0102] For example, assuming that the image block currently moved to shows a blurred water surface area, a mild shielding characterization vector is obtained after processing in step S31'1. This vector reduces the pixel value of the blurred area, thereby reducing its impact in subsequent processing. In step S31'2, the monitoring system combines this mild shielding characterization vector with the image block matrix and inputs it into a pre-trained deep neural network model. The model will extract feature information such as the contrast and position relationship between the blurred area and the surrounding clear area, and generate a first latent characterization vector. This vector will serve as an important basis for determining whether the blurred area is noise in subsequent steps. Through the processing of step S31'2, the monitoring system can generate a first latent characterization vector containing rich information for the image block currently moved to, providing strong support for subsequent noise identification and abnormal event detection.

[0103] In a feasible implementation scheme, the method further includes:

[0104] Step S2a, determining a reference image block set corresponding to the image block currently wandered to, where the reference image block set includes one or more reference image blocks.

[0105] In the disclosed embodiment, step S2a determines a set of reference image blocks corresponding to the image block currently wandered to. The purpose of this step is to more accurately determine whether the current image block is the noise of the target reference image block in the future, and to provide an important reference for abnormal event identification. Specifically, in step S2a, the monitoring system searches for and determines one or more reference image blocks in the surrounding or similar areas of the image block currently wandered to, forming a set of reference image blocks. These reference image blocks are usually blocks adjacent to the current image block or having similar features, and they are considered to be potential reference objects of the current image block.

[0106] For example, suppose that the image block currently wandered to shows a part of a ship. In this case, the reference image block set may include other parts of the ship (such as the bow, stern, hull, etc.), adjacent ships or water surface areas. These areas are adjacent to the current image block in position or similar in content, so they are selected as reference objects. When determining the reference image block set, the monitoring system can use some feature matching or similarity calculation methods. For example, it can extract the color, texture, shape and other features of the current image block, and search for blocks with similar features in the surrounding area. In addition, the monitoring system can also consider the spatial relationship between image blocks, such as adjacent positions, distances, etc., to determine which blocks are more likely to become reference objects. Of course, based on the content of the aforementioned step S3, a reference image block set can also be selected from the pre-prepared reference image block library, and the selection method is, for example, to select reference image blocks with similar features (such as a closer distance in the feature space). It can be determined specifically according to actual needs, and this application does not limit this.

[0107] Once the reference image block set is determined, the monitoring system can perform subsequent processing and analysis. For example, in step S2b, the monitoring system calculates the confidence of the current image block as the noise of the reference image block for each reference image block in the set. In step S2c, the monitoring system selects the reference image block with the highest confidence as the target reference image block, so as to more accurately determine whether the current image block is noise.

[0108] Through the processing of step S2a, the monitoring system can determine a suitable reference image block set for the image block currently wandering to, providing strong support for subsequent abnormal event recognition.

[0109] Step S2b, for any reference image block among one or more reference image blocks, based on the confidence that the image block currently visited is confirmed to be a noise image block, the image block matrix, and any reference image block, determine the confidence that the image block currently visited in the target water transport monitoring image is a noise image block of any reference image block.

[0110] In the disclosed embodiment, step S2b is used to calculate the confidence of the current image block as a noise image block of any reference image block. This step combines the noise confidence of the current image block, the overall information of the image block matrix, and the specific reference image block content, so as to more accurately evaluate the relationship between the current image block and the reference image block.

[0111] Specifically, in step S2b, the monitoring system focuses on the image block currently wandering to, which has been preliminarily identified as a possible noise image block and assigned a noise confidence. This confidence reflects the possibility that the current image block is noise. Next, the monitoring system selects a reference image block from the reference image block set determined in step S2a. Reference image blocks are usually image blocks that are adjacent or similar to the current image block, and they are considered to be potential reference objects for the current image block. Then, the monitoring system extracts feature information of the current image block and the reference image block. This feature information may include multiple attributes such as color, texture, shape, etc., which can reflect the specific content of the image block. The method of extracting features can be implemented through machine learning models (such as convolutional neural networks), which have been trained with a large amount of labeled data and can accurately extract useful features from images.

[0112] After obtaining the feature information of the current image block and the reference image block, the monitoring system compares the similarity or difference between the two image blocks. This comparison process can be achieved by calculating the distance or similarity measure between the feature vectors, such as Euclidean distance, cosine similarity, etc. If the similarity between the two image blocks is low (i.e., the difference is large), and the noise confidence of the current image block is high, then the system will consider that the current image block is more likely to be the noise of the reference image block.

[0113] To quantify this possibility, the monitoring system gives a confidence value. This confidence value is calculated based on multiple factors such as the noise confidence of the current image block, feature similarity, and possible contextual relationships. It reflects the system's confidence that the current image block is the noise of the reference image block.

[0114] For example, suppose that the image block currently moved to shows a blurred water surface area, and its confidence in being confirmed as noise is 0.8. One of the reference image blocks in the reference image block set is a clear ship area. The monitoring system extracts the feature information of the two image blocks and calculates the similarity between them. Since there are significant differences in features between the blurred water surface area and the clear ship area (such as color, texture, etc.), the similarity will be low. Combined with the noise confidence of the current image block of 0.8, the monitoring system gives a higher noise confidence value (such as 0.9), indicating that the current blurred water surface area is more likely to be the noise of the clear ship area. Through the processing of step S2b, the monitoring system can calculate a noise confidence value for the current image block and each reference image block, and these values ​​will serve as an important basis for determining the target reference image block in subsequent steps. This method based on feature comparison and confidence calculation helps to improve the accuracy and reliability of noise identification.

[0115] Step S2c: taking the reference image block with the highest confidence among the one or more reference image blocks as the target reference image block corresponding to the image block currently wandered to.

[0116] In the disclosed embodiment, step S2c selects the one with the highest confidence from a series of reference image blocks as the target reference image block of the image block currently wandered to. This step is based on the noise confidence corresponding to each reference image block calculated in the previous step S2b, ensuring that the selected target reference image block is the most likely noise source of the current image block.

[0117] Specifically, in step S2c, the monitoring system reviews the noise confidence values ​​calculated for each reference image block in step S2b. These confidence values ​​reflect the possibility that the image block currently wandered to is the noise of the corresponding reference image block. These values ​​are calculated based on the characteristics of the current image block, the noise confidence, and the characteristics of the reference image block. Next, the monitoring system compares these confidence values ​​and finds the maximum value. The reference image block corresponding to this maximum value is considered to be the target reference image block of the current image block. This is because the reference image block has the largest difference in features from the current image block, and the noise confidence of the current image block is also high, so it is most likely to be the source of noise for the current image block. For example, assuming that the image block currently wandered to shows a blurred water surface area, after processing in step S2b, the monitoring system calculates the noise confidence values ​​of the image block and several reference image blocks. These reference image blocks include a clear ship area, an adjacent blurred water surface area, and a sky area. The calculation results show that the noise confidence of the current image block as a clear ship area is the highest, which is 0.9; while the noise confidence of the adjacent blurred water surface area is 0.7, and the noise confidence of the sky area is only 0.2.

[0118] In this case, the monitoring system selects the clear ship area as the target reference image block for the current blurred water area. This is because the clear ship area has the largest difference in features (such as color, texture, etc.) from the current image block, and the noise confidence of the current image block is also high (0.9), so it is most likely to be the source of noise in the current image block.

[0119] Through the processing of step S2c, the monitoring system can accurately determine the target reference image block corresponding to the current image block, providing strong support for the subsequent abnormal event recognition. This selection method based on noise confidence helps to improve the accuracy and efficiency of recognition, thereby better serving the application needs of the water transport monitoring system.

[0120] In a feasible implementation scheme, step S2c, taking the reference image block with the highest confidence among one or more reference image blocks as the target reference image block corresponding to the image block currently wandered to, includes:

[0121] Step S2c1, determining a first reference image block and a second reference image block in one or more reference image blocks, the confidence of the first reference image block is greater than the confidence of the remaining reference image blocks in the one or more reference image blocks, and the confidence of the second reference image block is greater than the confidence of the remaining reference image blocks in the one or more reference image blocks except the first reference image block.

[0122] In step S2c1 of the disclosed embodiment, the monitoring system needs to identify the two blocks with the highest confidence from a series of reference image blocks, namely the first reference image block and the second reference image block. These two blocks will serve as important references for subsequent judgment of whether the image block currently wandered to is the noise of the target reference image block. Specifically, in step S2c1, the monitoring system reviews the noise confidence value calculated for each reference image block in step S2b. These confidence values ​​are calculated based on the characteristics of the image block currently wandered to, the noise confidence, and the characteristics of the reference image block, and they reflect the possibility of the current image block being the noise of the corresponding reference image block. Then, the monitoring system sorts these confidence values ​​to find the maximum and second largest values. The reference image block corresponding to the maximum value is determined as the first reference image block, and its confidence is higher than all other blocks in the reference image block set, which means that the image block currently wandered to has the greatest possibility of being the noise of the block. The reference image block corresponding to the second largest value is determined as the second reference image block, and its confidence is higher than all other blocks except the first reference image block, indicating that the current image block may also be the noise of this block, but its possibility is slightly lower than that of the first reference image block.

[0123] For example, assuming that the current image block is a blurred water surface area, in step S2b, the monitoring system has calculated the noise confidence values ​​of the image block and several reference image blocks. These reference image blocks include a clear ship area, an adjacent blurred water surface area, and a sky area. The calculation results show that the current image block has the highest noise confidence of 0.9 as a clear ship area; while the noise confidence of the adjacent blurred water surface area is 0.7; and the noise confidence of the sky area is only 0.2. In this case, the monitoring system determines the clear ship area as the first reference image block because it has the highest confidence (0.9), which exceeds all other reference image blocks. At the same time, the adjacent blurred water surface area is determined as the second reference image block because its confidence is the second highest (0.7), which is higher than other blocks except the first reference image block.

[0124] Through the processing of step S2c1, the monitoring system can accurately identify the two reference image blocks with the highest confidence, which provides an important basis for the subsequent determination of the target reference image blocks. This helps to improve the accuracy and reliability of abnormal event identification, thereby better serving the application needs of the water transport monitoring system.

[0125] Step S2c2: If the difference between the confidence of the first reference image block and the confidence of the second reference image block is not less than a preset reference value, the first reference image block is determined as the target reference image block corresponding to the currently wandered image block.

[0126] In the disclosed embodiment, step S2c2 is a key decision step for determining the target reference image block. In this step, the monitoring system compares the confidence of the first reference image block and the second reference image block, and makes a final decision based on the relationship between their difference and the preset reference value.

[0127] Specifically, in step S2c1, the monitoring system has determined the first reference image block with the highest confidence and the second reference image block with the second highest confidence. In step S2c2, the monitoring system calculates the difference in confidence between the two reference image blocks, that is, the confidence of the first reference image block minus the confidence of the second reference image block. This difference reflects the difference in the possibility of the two blocks being the noise of the image block currently wandering to. Next, the monitoring system compares this difference with a preset reference value. The preset reference value is a threshold set according to the actual application scenario and requirements, which is used to determine whether the confidence of the first reference image block is significantly higher than that of the second reference image block. If the confidence difference is not less than the preset reference value, it means that the possibility of the first reference image block being the noise of the current image block is much greater than that of the second reference image block, so the monitoring system determines the first reference image block as the target reference image block corresponding to the image block currently wandering to.

[0128] For example, continuing with the previous example, assume that the confidence of the first reference image segment (clear ship area) is 0.9, and the confidence of the second reference image segment (adjacent blurred water surface area) is 0.7. The preset reference value is 0.1. In this case, the confidence difference is 0.2 (0.9-0.7), which is not less than the preset reference value 0.1. Therefore, the monitoring system determines the clear ship area as the target reference image segment of the current blurred water surface area.

[0129] Through the processing of step S2c2, the monitoring system can ensure that the first reference image block is selected as the target reference image block only when the confidence of the first reference image block is significantly higher than that of other blocks. This decision-making method helps to improve the accuracy and reliability of abnormal event identification and reduce the possibility of misjudgment. At the same time, the introduction of preset reference values ​​also makes the decision-making process more flexible and controllable, and can be adjusted and optimized according to the needs of actual application scenarios.

[0130] In a feasible implementation scheme, the method further includes:

[0131] Step S1000, if the difference between the confidence of the first reference image block and the confidence of the second reference image block is less than a preset reference value, the basic confidence of the first reference image block is determined based on the frequency of existence of the first reference image block in the target water transport monitoring image, and the basic confidence of the second reference image block is determined based on the frequency of existence of the second reference image block in the target water transport monitoring image, and the basic confidence of any reference image block is positively correlated with the frequency of existence of any reference image block in the target water transport monitoring image.

[0132] In the embodiment of the present disclosure, when the confidence difference between the first reference image block and the second reference image block is not enough to make a direct decision (i.e., their confidence difference is less than a preset reference value), step S1000 provides a more detailed analysis method to determine the final target reference image block. This step mainly adjusts the basic confidence of the reference image block based on the frequency of its presence in the target water transport monitoring image, thereby more accurately reflecting its possibility of being a noise source.

[0133] Specifically, in step S1000, the monitoring system checks whether the confidence difference between the first reference image block and the second reference image block is less than a preset reference value. If the difference is less than the preset value, it means that the confidences of the two blocks are relatively close, and it is difficult to make a decision directly based on the confidence level. At this point, the monitoring system needs to introduce additional information to assist in the judgment. Next, the monitoring system analyzes the frequency of existence of each reference image block in the target water transport monitoring image. The "existence frequency" here refers to the number of image blocks in the entire monitoring image that are similar to the current reference image block (that is, the distance between the feature vectors in the vector space is less than a certain distance threshold). By calculating this similarity and setting a threshold, the monitoring system can regard multiple similar image blocks as different instances of the same reference image block, thereby counting the frequency of existence of the reference image block in the entire monitoring image.

[0134] For example, assuming that the first reference image block is a clear ship area, the monitoring system searches for other ship areas similar to this area in the target water transport monitoring image and regards them as different instances of the first reference image block. By counting the number of these instances, the monitoring system can obtain the frequency of the first reference image block in the monitoring image. Similarly, the monitoring system will also perform a similar analysis on the second reference image block to determine its frequency of existence in the monitoring image.

[0135] Once the frequency of each reference image block is obtained, the monitoring system will adjust its basic confidence according to these frequencies. Specifically, a reference image block with a higher frequency usually means that it is more common or important in the monitoring image, so its basic confidence will be increased accordingly. On the contrary, the basic confidence of a reference image block with a lower frequency will be relatively low.

[0136] In this way, the monitoring system can more comprehensively evaluate the possibility of each reference image block being a noise source. Even if the initial confidence of two blocks is relatively close, by considering the frequency of their presence in the monitoring image, the monitoring system can more accurately determine which block is more likely to be the noise source of the current image block. For example, if the first reference image block (clear ship area) exists multiple times in the monitoring image, and the second reference image block (adjacent blurred water surface area) only appears once, the system can increase the basic confidence of the first reference image block, while the basic confidence of the second reference image block remains unchanged or slightly reduced. In this way, in the subsequent steps, the monitoring system is more likely to select the first reference image block as the target reference image block.

[0137] Through the processing of step S1000, the monitoring system can make more accurate decisions by considering the frequency of existence of reference image blocks in the monitoring image when the confidence difference is not significant, thereby improving the accuracy and reliability of abnormal event identification.

[0138] Step S2000: Determine the reference image block with the largest basic confidence between the first reference image block and the second reference image block as the target reference image block corresponding to the currently wandered image block.

[0139] In the embodiment of the present disclosure, after the system adjusts the basic confidence of the first reference image block and the second reference image block through step S1000, step S2000 becomes a key step to determine the final target reference image block. In this step, the monitoring system compares the basic confidence of the two reference image blocks, and determines the reference image block with the largest basic confidence as the target reference image block corresponding to the image block currently wandering to. Specifically, in step S2000, the monitoring system reviews the basic confidence of the first reference image block and the second reference image block calculated in step S1000. These two basic confidence values ​​have been adjusted according to the frequency of the reference image blocks in the target water transport monitoring image, so as to more accurately reflect their possibility as noise sources. Then, the monitoring system directly compares the size of the two basic confidence values. Since the basic confidence is positively correlated with the frequency of the reference image blocks in the monitoring image, the reference image block with a higher basic confidence usually means that it is more common or important in the monitoring image, and is more likely to be the noise source of the image block currently wandering to. During the comparison process, if the basic confidence of the first reference image block is greater than the basic confidence of the second reference image block, the monitoring system determines the first reference image block as the target reference image block corresponding to the image block currently wandered to. On the contrary, if the basic confidence of the second reference image block is higher, it will be selected as the target reference image block.

[0140] For example, suppose that the image block currently being moved to is a blurred water surface area. In step S1000, the monitoring system calculates that the basic confidence of the first reference image block (clear ship area) is 0.85, while the basic confidence of the second reference image block (adjacent blurred water surface area) is 0.75. Since the basic confidence of the first reference image block is higher, the monitoring system will determine the clear ship area as the target reference image block of the current blurred water surface area in step S2000. Through the processing of step S2000, the monitoring system can accurately select the reference image block that is most likely to be the source of the noise of the image block currently being moved to as the target reference image block based on the adjusted basic confidence value. This decision-making process not only takes into account the initial confidence of the reference image blocks, but also incorporates their frequency of existence in the monitoring image, thereby improving the accuracy and reliability of abnormal event identification.

[0141] In a feasible implementation scheme, for any reference image block of the first reference image block and the second reference image block, the confidence of any reference image block is corrected, including:

[0142] Step S1001, when the image block type of any reference image block is the first image block type, correct the basic confidence of any reference image block to obtain the corrected confidence of any reference image block, and the error between the corrected confidence of any reference image block and the basic confidence of any reference image block is the first error.

[0143] In the disclosed embodiment, when the type of the reference image block belongs to a specific important or critical area, the monitoring system will usually make additional corrections to its basic confidence to more accurately reflect its possibility as a noise source. Step S1001 is designed for this situation, and it describes in detail how to correct its basic confidence when the reference image block belongs to the first image block type. Specifically, in step S1001, the monitoring system determines whether the reference image block currently being processed belongs to the first image block type. The first image block type is usually defined based on actual application scenarios and requirements, and they may include some particularly important or critical areas in the monitoring image, such as key traffic arteries, important ships or facilities, etc. Once it is determined that the reference image block belongs to the first image block type, the monitoring system will correct its basic confidence. The purpose of the correction is to adjust its confidence as a noise source based on the particularity or importance of the image block of this type. This correction is usually based on certain rules or strategies, such as adding a certain confidence value to reflect the importance of the image block of this type in the recognition process.

[0144] The corrected confidence is called the corrected confidence. There is a certain error between it and the original basic confidence, which is called the first error. The size of the first error depends on the correction rule or strategy. Usually, it is larger than the error when processing other types of image blocks to reflect the special status of the first image block type in the recognition process.

[0145] For example, suppose that in a water transport monitoring system, a critical ship area is defined as the first image block type. When the system encounters a reference image block that belongs to the critical ship area, the monitoring system will execute step S1001. Assuming that the basic confidence of the reference image block is 0.8 (indicating that the system believes that it has an 80% chance of being noise), since it belongs to the critical ship area, the monitoring system can increase its confidence value, such as increasing it by 0.1, then the corrected confidence becomes 0.9. The 0.1 here is the first error, which reflects the system's consideration of the particularity of the critical ship area. Through the processing of step S1001, the monitoring system can more accurately evaluate the possibility of the reference image block belonging to the first image block type as a noise source, thereby improving the accuracy and reliability of abnormal event identification.

[0146] Step S1002, when the image block type of any reference image block is the second image block type, the basic confidence of any reference image block is corrected to obtain the corrected confidence of any reference image block, the error between the corrected confidence of any reference image block and the basic confidence of any reference image block is the second error, and the first error is greater than the second error.

[0147] In the disclosed embodiment, when the reference image block belongs to the second image block category, the monitoring system makes appropriate corrections to the basic confidence according to the characteristics of this category to more accurately reflect its possibility as a noise source. Step S1002 describes this process in detail, and points out the error between the corrected confidence and the basic confidence, i.e., the second error, and emphasizes that this error is usually smaller than the first error when processing the first image block category. Specifically, in step S1002, the monitoring system determines whether the reference image block currently being processed belongs to the second image block category. The second image block category usually includes those areas that are relatively common in the monitoring image but are slightly less important than the first image block category. For example, in water transport monitoring, the second image block category may include ordinary water surface areas, ships in non-critical areas, etc. Once it is determined that the reference image block belongs to the second image block category, the monitoring system corrects its basic confidence according to certain rules or strategies. This correction usually does not adjust the confidence value as much as the first image block category, because the importance of the second image block category is relatively low. The purpose of the correction may be only to fine-tune the confidence to more accurately reflect the possibility of this type of image block as a noise source. The corrected confidence is called the corrected confidence, and the error between it and the basic confidence is called the second error. Since the second image block type is less important, the second error is usually smaller than the first error when processing the first image block type. This reflects the system's differentiated treatment of different types of image blocks during the recognition process. For example, assume that in a water transport monitoring system, the ordinary water surface area is defined as the second image block type. When the system encounters a reference image block belonging to the ordinary water surface area, it can execute step S1002. Assume that the basic confidence of the reference image block is 0.7 (indicating that the system believes that it has a 70% chance of being noise). Since it belongs to the ordinary water surface area, the monitoring system may only fine-tune it, such as increasing the confidence value by 0.05, and the corrected confidence becomes 0.75. The 0.05 here is the second error, which is smaller than the first error when processing the critical ship area (the first image block type). Through the processing of step S1002, the monitoring system can perform differentiated processing on image block types of different importance while maintaining a certain accuracy, thereby improving the efficiency and accuracy of the entire abnormal event recognition system.

[0148] Step S2000, determining the reference image block with the largest basic confidence in the first reference image block and the second reference image block as the target reference image block corresponding to the image block currently wandered to, includes:

[0149] Step S2001: Determine the reference image block with the largest corrected confidence between the first reference image block and the second reference image block as the target reference image block corresponding to the currently wandered image block.

[0150] In the disclosed embodiment, after the system corrects the confidence of the first reference image block and the second reference image block, step S2001 becomes a key step in determining the final target reference image block. In this step, the monitoring system compares the corrected confidences of the two reference image blocks and selects the one with the largest corrected confidence as the target reference image block corresponding to the image block currently wandered to.

[0151] Specifically, in step S2001, the monitoring system reviews the revised confidences of the first reference image block and the second reference image block calculated in steps S1001 and S1002. These revised confidences are obtained by appropriately adjusting the basic confidences after considering the importance of the image block types, and can more accurately reflect the possibility of different types of image blocks as noise sources. Then, the monitoring system directly compares the two revised confidence values. Since the revised confidences have been adjusted according to the importance of the image block types, this comparison process can more accurately reflect which reference image block is more likely to be the noise source of the currently wandered image block.

[0152] If the corrected confidence of the first reference image block is greater than the corrected confidence of the second reference image block, the monitoring system determines the first reference image block as the target reference image block corresponding to the image block currently wandered to. On the contrary, if the corrected confidence of the second reference image block is higher, it will be selected as the target reference image block. For example, suppose that the image block currently wandered to is a blurred water surface area. In the previous step, the monitoring system has determined that the first reference image block is a clear ship area (belonging to the first image block type), and its basic confidence is 0.8, which becomes 0.9 after correction (the confidence value is increased by 0.1). The second reference image block is another adjacent blurred water surface area (belonging to the second image block type), and its basic confidence is 0.7, which becomes 0.75 after fine-tuning (the confidence value is increased by 0.05). In step S2001, the monitoring system compares these two corrected confidence values. Since 0.9 (the corrected confidence of the first reference image block) is greater than 0.75 (the corrected confidence of the second reference image block), the system determines the clear ship area as the target reference image block of the current blurred water surface area.

[0153] Through the processing of step S2001, the monitoring system can accurately select the reference image block that is most likely to be the source of the noise of the current wandering image block as the target reference image block based on the corrected confidence value. This decision-making process not only considers the importance of the image block type, but also improves the accuracy and reliability of recognition by correcting the confidence value.

[0154] In a possible implementation scheme, a denoised image of a target water transport monitoring image is obtained based on an image denoising neural network, and the method further includes a debugging process of the image denoising neural network, including:

[0155] Step ST1, obtaining an image learning sample, the image learning sample includes a sample image block matrix of the image sample and an image sample label of the image sample, and the image sample includes a plurality of sample image blocks.

[0156] In step ST1, the monitoring system collects and prepares a series of image learning samples for training the image denoising neural network. These samples usually include two parts: noisy image samples (i.e., the original images that need to be denoised) and corresponding clear image samples (i.e., the target images that should be restored after denoising, also called image sample labels). Specifically, for each image sample, the monitoring system first divides it into multiple small image blocks. The size of these image blocks can be adjusted according to actual needs to balance computational efficiency and denoising effect. All image blocks of each image sample are organized into a matrix according to their positional relationship in the original image, namely the sample image block matrix. This matrix contains all the local information of the image sample and is the basic data for neural network learning and denoising.

[0157] At the same time, for each noisy image sample, the monitoring system also needs to obtain the corresponding clear image sample label. These labels are known, noise-free clear images, which should be consistent with the noisy image samples in content, except that the noise part is removed. The label image will also be divided into the same image blocks as the noisy image, so as to correspond and compare with the sample image block matrix.

[0158] By obtaining such image learning samples, the monitoring system can provide sufficient data support for subsequent neural network training. These samples not only contain images of various noise types and degrees, but also provide clear denoising targets, which helps the neural network learn effective denoising methods and strategies.

[0159] For example, suppose that in water transport monitoring, the monitoring system captures a series of ship monitoring images with blur, distortion and other noise. In order to train the image denoising neural network, the monitoring system selects a part of these images as image samples. For each image sample, the monitoring system divides it into multiple 100×100 pixel image blocks and organizes them into a sample image block matrix. At the same time, the monitoring system finds the clear and noise-free ship monitoring image corresponding to each noisy image sample as a label, and also divides it into the same image blocks. With these samples and labels, the monitoring system can start training the image denoising neural network so that it can learn to recover clear ship monitoring images from noisy images.

[0160] Step ST2: Based on the initial image denoising neural network, autocorrelation semantic recognition is performed on the sample image block matrix to obtain the confidence level of each sample image block being confirmed as a noise image block.

[0161] In the training process of the image denoising neural network, step ST2 uses the initial neural network model to perform autocorrelation semantic recognition on the sample image block matrix to determine the possibility of each sample image block as noise. In step ST2, the monitoring system loads the pre-prepared initial image denoising neural network model. This model is usually an initialized but not fully trained neural network, which has a certain denoising ability, but needs to be further optimized through subsequent training processes.

[0162] Next, the monitoring system passes the sample image block matrix obtained in step ST1 as input data to the initial neural network model. The sample image block matrix contains multiple noisy image blocks, which are the objects of neural network learning and denoising.

[0163] Once the sample image block matrix is ​​input, the initial neural network model will begin to perform autocorrelation semantic recognition on it. This process is actually the neural network trying to understand the content and context of each image block and determine whether it contains noise. To achieve this, the neural network will use its internal convolutional layer, pooling layer, fully connected layer and other structures to perform multi-level feature extraction and transformation on the input image block.

[0164] During the feature extraction process, the neural network will focus on the color, texture, shape and other features of the image blocks, and try to identify noise-related patterns from them. These patterns may include blur, distortion, abnormal colors, etc., which are typical manifestations of noise in images. Through multi-level feature extraction and transformation, the neural network will eventually output a confidence value for each sample image block. This confidence value reflects the probability that the neural network believes that the image block is noise. Specifically, if the neural network believes that an image block contains obvious noise features, then the confidence value it outputs will be higher; conversely, if the image block is clearer and the noise features are not obvious, the confidence value will be lower.

[0165] For example, suppose that in water transport monitoring, the monitoring system captures a ship monitoring image with a blurred area and uses it as part of the sample image block matrix. In step ST2, the initial image denoising neural network receives the image block of the blurred area as input. Through multiple layers of convolution and pooling operations, the neural network extracts the color, texture and other features of the image block and determines whether it contains noise-related patterns. Since the blurred area is an obvious manifestation of noise, the neural network will output a higher confidence value (for example, 0.8) for the image block, indicating that it believes that the image block is more likely to be noise.

[0166] Step ST3, walk through multiple sample image blocks one by one, obtain the target candidate sample image block corresponding to the sample image block currently walked to, and determine the confidence that the sample image block currently walked to is a noise image block of the target candidate sample image block based on the confidence that the sample image block currently walked to is confirmed to be a noise image block, the sample image block matrix, and the target candidate sample image block.

[0167] During the training process of the image denoising neural network, step ST3 processes multiple sample image blocks one by one to determine the possibility of each sample image block being a target candidate sample image block noise. In step ST3, the monitoring system walks through the sample image block matrix obtained in step ST2 one by one. This means that the system will traverse each image block in the sample image block matrix one by one in a certain order (such as from left to right, from top to bottom). For the sample image block currently walked to, the monitoring system first determines its corresponding target candidate sample image block. The target candidate sample image block generally refers to the possible corresponding part of the current image block in the clear image, that is, the target state that should be restored after denoising. In practical applications, the target candidate sample image block may be obtained by finding similar areas in the sample image label or by neural network prediction. Next, the monitoring system determines the confidence that the current image block is the target candidate image block noise based on the confidence that the current sample image block is confirmed as noise (this confidence is obtained through autocorrelation semantic recognition in step ST2), the overall information of the sample image block matrix, and the content of the target candidate sample image block.

[0168] In the process of determining the confidence, the monitoring system considers multiple factors. First, the noise confidence of the current image block is an important indicator, which reflects the possibility that the image block contains noise. Secondly, the sample image block matrix provides spatial relationships and contextual information between image blocks, which helps to more accurately determine whether the current image block is the noise of the target candidate image block. Finally, the content of the target candidate image block is also an important basis for judgment. By comparing with the current image block, the monitoring system can evaluate the similarity and difference between them.

[0169] Specifically, the monitoring system can use a similarity measurement method (such as cosine similarity, Euclidean distance, etc.) to calculate the similarity between the current image block and the target candidate image block. If the similarity is low (i.e., the difference is large) and the noise confidence of the current image block is high, then the system will consider that the current image block is more likely to be the noise of the target candidate image block and give a higher confidence value.

[0170] For example, suppose that in water transport monitoring, the monitoring system captures a ship monitoring image with a blurred area and uses it as part of the sample image block matrix. In step ST3, when the system wanders to a blurred ship area image block, it will first determine the possible corresponding part of the area in the clear image (i.e., the target candidate image block). Then, the monitoring system compares the similarity between the current blurred area and the target candidate area, and combines the noise confidence of the current blurred area (assuming it is 0.8) to comprehensively judge the possibility that the current blurred area is the noise of the target candidate area. If the similarity is low and the noise confidence is high, the monitoring system will give a higher confidence value (such as 0.9), indicating that the current blurred area is more likely to be the noise of the target candidate area.

[0171] Step ST4, based on the confidence of each sample image block in the image sample as a noise image block of the target candidate sample image block, determine the target sample image block from multiple sample image blocks, the confidence of the target sample image block as the noise image block of the target candidate sample image block is greater than the confidence of the remaining sample image blocks in the multiple sample image blocks as the noise image blocks of the corresponding candidate sample image blocks.

[0172] In the training process of the image denoising neural network, step ST4 is a key step, which involves selecting the noise image block with the highest confidence from multiple sample image blocks as the target sample image block. This step is crucial for the subsequent neural network training because it ensures that the neural network can focus on those image areas that are most likely to be noise.

[0173] In step ST4, the monitoring system reviews the confidence of each sample image block as the target candidate sample image block noise calculated in step ST3. These confidence values ​​reflect the possibility that the system believes that each sample image block is noise, and are calculated based on the characteristics of the sample image block itself, its relationship with the surrounding blocks, and the content of the target candidate sample image block. Next, the monitoring system compares and sorts these confidence values ​​to determine which sample image block has the highest confidence. The sample image block corresponding to the highest confidence value is the target sample image block. It indicates that in the current sample image, this image block is most likely to be noise and needs to be focused on and processed by the neural network.

[0174] For example, suppose that in water transport monitoring, the monitoring system captures a ship monitoring image with multiple noise areas and divides it into multiple sample image blocks. In step ST3, the monitoring system has calculated the confidence of each sample image block as a target candidate sample image block noise. For example, a blurred ship area block may have a confidence of 0.9, while another blurred water surface area block may have a confidence of 0.7, and the confidence of other clear area blocks is lower.

[0175] In step ST4, the monitoring system compares these confidence values ​​and determines that the blurred ship area block (confidence is 0.9) is the target sample image block. This is because it has the highest confidence, indicating that it is most likely to be noise and needs to be focused on and processed by the neural network in subsequent training. Through the processing of step ST4, the monitoring system can accurately identify the image block that is most likely to be noise in the current sample image, and use it as the target sample image block for subsequent neural network training. This helps to improve the denoising ability of the neural network, enabling it to better deal with noise problems in actual monitoring images.

[0176] Step ST5, restoring the target sample image blocks in the target water transport monitoring image into corresponding target candidate sample image blocks to obtain a denoised image of the image sample.

[0177] During the training process of the image denoising neural network, step ST5 restores the identified target sample image blocks (i.e., the image blocks confirmed to have the highest probability of noise) into their corresponding target candidate sample image blocks, thereby obtaining a version of the image sample with noise removed, i.e., the denoised image.

[0178] In step ST5, the monitoring system determines the target sample image block in the target water transport monitoring image. This block is obtained in step ST4 by comparing the noise confidence of each sample image block, and it represents the area in the current image that is most likely to be noisy. Next, the monitoring system uses the image denoising neural network (this network has been initialized and trained in the previous step) to try to restore the target sample image block to its corresponding target candidate sample image block. The target candidate sample image block is usually a clear, noise-free image area, which represents the state of the target sample image block after noise removal.

[0179] To achieve this process, the monitoring system passes the target sample image block as input data to the denoising neural network. The neural network uses its internal multi-layer structure and parameters to extract features, transform and reconstruct the input image block to remove the noise and restore clear image content. This process may involve operations such as convolution, pooling, and deconvolution, depending on the architecture and training method of the neural network. Through the processing of the neural network, the monitoring system will eventually obtain a restored image block, that is, the target candidate sample image block. This block should be visually clearer and the noise is effectively removed or reduced. Then, the monitoring system replaces this restored image block with the corresponding position in the original target water transport monitoring image to obtain a denoised version of the entire image sample. For example, suppose that in water transport monitoring, the monitoring system captures a monitoring image with a blurred ship area and uses it as the target water transport monitoring image. In the previous step, the monitoring system has identified the blurred ship area as the target sample image block. In step ST5, the monitoring system passes this blurred area as input to the denoising neural network. The neural network attempts to restore the blurred area to a clear ship image through its internal calculations and transformations. Finally, the monitoring system obtains a restored clear ship image block and replaces it with the corresponding position in the original monitoring image, thus obtaining a monitoring image sample with the blurred noise removed.

[0180] Step ST6, with the purpose of reducing the error between the denoised image of the image sample and the image sample label, the initial image denoising neural network is debugged until a preset debugging cutoff condition is reached to obtain the image denoising neural network.

[0181] During the training process of the image denoising neural network, step ST6 adjusts and optimizes the parameters of the neural network according to the error between the denoised image and the label image to improve its denoising performance.

[0182] In step ST6, the monitoring system compares the difference or error between the denoised image obtained in step ST5 and the original image sample label. This error reflects the accuracy of the neural network in removing noise and restoring a clear image. Generally, the error can be measured by calculating the pixel-level difference (such as mean square error MSE) or structural similarity (such as SSIM index) between the denoised image and the label image. Next, in order to reduce this error and improve the denoising performance of the neural network, the monitoring system debugs the initial image denoising neural network. The debugging process usually includes a back propagation algorithm and a gradient descent optimization method. Specifically, the monitoring system calculates the gradient of the error with respect to the parameters of the neural network (that is, the sensitivity of the error to parameter changes), and then updates the weights and bias parameters of the neural network based on this gradient information. This process is iterated multiple times, and each iteration adjusts the parameters of the neural network in the direction of reducing the error.

[0183] During the debugging process, the monitoring system will also monitor some performance indicators, such as the error on the validation set, the trend of training loss and validation loss, etc. These indicators help to determine whether the training status of the neural network is good, and whether there are problems such as overfitting or underfitting. If the performance indicators reach the preset debugging cutoff conditions (such as the validation error does not decrease for multiple consecutive iterations), the monitoring system will stop debugging and use the neural network model at this time as the final image denoising neural network.

[0184] For example, suppose that in an embodiment of the present disclosure, the monitoring system captures a series of noisy ship monitoring images and prepares corresponding clear images as labels. In step ST6, the monitoring system uses the initial image denoising neural network to process the noisy image to obtain a denoised image. Then, the monitoring system calculates the mean square error MSE between the denoised image and the label image. If the MSE is found to be large, it means that the denoising performance of the neural network needs to be improved, and the monitoring system will start the debugging process. By updating the parameters of the neural network through multiple iterations, the monitoring system gradually reduces the MSE value until the error on the verification set reaches the preset cutoff condition (such as the MSE no longer decreases for 5 consecutive iterations). At this point, the monitoring system stops debugging and saves the current neural network model as the final image denoising neural network for subsequent water transport monitoring image denoising tasks.

[0185] The embodiment of the present disclosure also provides a monitoring system, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented. Figure 2 A hardware entity diagram of a monitoring system provided by an embodiment of the present disclosure, such as Figure 2 As shown, the hardware entity of the monitoring system 1000 includes: a processor 1001 and a memory 1002, wherein the memory 1002 stores a computer program that can be run on the processor 1001, and the processor 1001 implements the steps in the method of any of the above embodiments when executing the program.

[0186] The above description is only an implementation mode of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure.

Claims

1. A method for identifying abnormal water transport events, characterized in that: The method comprises: Acquire an image block matrix of a target water transport monitoring image, wherein the target water transport monitoring image includes a plurality of image blocks; Performing autocorrelation semantic recognition on the image block matrix to obtain the confidence level of each image block being confirmed as a noise image block; Walk through the multiple image blocks one by one, obtain the target reference image block corresponding to the image block currently walked to, and determine the confidence of the image block currently walked to in the target water transport monitoring image as the noise image block of the target reference image block based on the confidence that the image block currently walked to is confirmed to be a noise image block, the image block matrix, and the target reference image block; wherein the target reference image block is a candidate image block; According to the confidence of each image block in the target water transport monitoring image being a noise image block of a reference image block, a target image block is determined to be obtained from the multiple image blocks, and the confidence of the noise image block of the target image block being a target reference image block is greater than the confidence of the noise image blocks of the remaining image blocks in the multiple image blocks being corresponding reference image blocks; Restoring the target image blocks in the target water transport monitoring image into corresponding target reference image blocks to obtain a denoised image of the target water transport monitoring image; Performing water transport abnormal event recognition based on the denoised image to obtain abnormal event recognition results; The method further comprises: Based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block currently wandered to and the preset shielding matrix are eccentrically adjusted to obtain a mild shielding characterization vector corresponding to the image block currently wandered to; the preset shielding matrix is ​​a matrix of the same size as the image block matrix, and its element values ​​are preset to shield potential noise influences in subsequent processing; the confidence that the image block currently wandered to in the target water transport monitoring image is a noise image block of the target reference image block is determined based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block matrix, and the target reference image block, including: Based on the mild masking characterization vector, the image block matrix, and the target reference image block, determine the confidence that the image block currently wandered to in the target water transport monitoring image is a noise image block of the target reference image block; Based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block currently wandered to and the preset shielding matrix are eccentrically adjusted to obtain a mild shielding characterization vector corresponding to the image block currently wandered to, including: The confidence level that the image block currently wandered to is confirmed to be a noise image block is used as the eccentricity coefficient of the preset shielding matrix; Determining an eccentricity coefficient of the image block currently wandered to according to the confidence that the image block currently wandered to is confirmed to be a noise image block; According to the eccentricity coefficient of the preset shielding matrix and the eccentricity coefficient of the image block currently wandered to, the image block currently wandered to and the preset shielding matrix are eccentrically adjusted to obtain a mild shielding characterization vector corresponding to the image block currently wandered to; The performing of autocorrelation semantic recognition on the image block matrix to obtain the confidence level of each image block being confirmed as a noise image block includes: For each image block in the image block matrix, determining a context state representation vector corresponding to each image block; Determine the image block representation vector corresponding to each image block based on the context state representation vector corresponding to each image block; Determining, based on the image block representation vector corresponding to each image block, the confidence that each image block is confirmed to be a noise image block; The step of determining the confidence that the image block currently wandered to is a noise image block based on the confidence that the image block currently wandered to in the target water transport monitoring image is a noise image block of the target reference image block includes: Determine a first potential representation vector corresponding to the image block currently wandered to based on the image block matrix and the confidence that the image block currently wandered to is confirmed to be a noise image block; Determine, based on the first potential representation vector and the image block currently wandered to, a second potential representation vector corresponding to the image block currently wandered to; Based on the image block currently visited, the second potential representation vector corresponding to the image block currently visited, and the target reference image block, determine the confidence that the image block currently visited in the target water transport monitoring image is a noise image block of the target reference image block.

2. The method according to claim 1, characterized in that The determining, based on the image block matrix and the confidence that the currently wandered image block is confirmed to be a noise image block, a first potential representation vector corresponding to the currently wandered image block comprises: Based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block currently wandered to and the preset shielding matrix are eccentrically adjusted to obtain a mild shielding characterization vector corresponding to the image block currently wandered to; Based on the mildly masked representation vector corresponding to the image block currently wandered to and the image block matrix, a first potential representation vector corresponding to the image block currently wandered to is determined.

3. The method according to claim 1, characterized in that The method further comprises: Determine a reference image block set corresponding to the currently wandered image block, wherein the reference image block set includes one or more reference image blocks; For any reference image block among the one or more reference image blocks, determine the confidence that the image block currently wandered to in the target water transport monitoring image is a noise image block of any reference image block based on the confidence that the image block currently wandered to is confirmed to be a noise image block, the image block matrix, and the any reference image block; The reference image block with the highest confidence among the one or more reference image blocks is used as the target reference image block corresponding to the image block currently wandered to.

4. The method according to claim 3, characterized in that The step of taking the reference image block with the largest confidence among the one or more reference image blocks as the target reference image block corresponding to the currently wandered image block includes: Determining a first reference image block and a second reference image block from the one or more reference image blocks, wherein the confidence of the first reference image block is greater than the confidence of the remaining reference image blocks from the one or more reference image blocks, and the confidence of the second reference image block is greater than the confidence of the remaining reference image blocks from the one or more reference image blocks except the first reference image block; If the difference between the confidence of the first reference image block and the confidence of the second reference image block is not less than a preset reference value, determining the first reference image block as the target reference image block corresponding to the currently wandered image block; The method further comprises: If the difference between the confidence of the first reference image block and the confidence of the second reference image block is less than a preset reference value, the basic confidence of the first reference image block is determined based on the frequency of existence of the first reference image block in the target water transport monitoring image, and the basic confidence of the second reference image block is determined based on the frequency of existence of the second reference image block in the target water transport monitoring image, and the basic confidence of any reference image block is positively correlated with the frequency of existence of any reference image block in the target water transport monitoring image; The reference image block with the largest basic confidence among the first reference image block and the second reference image block is determined as the target reference image block corresponding to the image block currently wandered to.

5. The method according to claim 4, characterized in that For any one of the first reference image block and the second reference image block, the method further includes correcting the confidence of the any one of the reference image blocks, including: When the image block type of any one of the reference image blocks is the first image block type, correcting the basic confidence of any one of the reference image blocks to obtain a corrected confidence of any one of the reference image blocks, and an error between the corrected confidence of any one of the reference image blocks and the basic confidence of any one of the reference image blocks is a first error; When the image block type of any one of the reference image blocks is the second image block type, correcting the basic confidence of any one of the reference image blocks to obtain a corrected confidence of any one of the reference image blocks, an error between the corrected confidence of any one of the reference image blocks and the basic confidence of any one of the reference image blocks is a second error, and the first error is greater than the second error; The step of determining the reference image block having the largest basic confidence in the first reference image block and the second reference image block as the target reference image block corresponding to the currently wandered image block includes: The reference image block with the largest corrected confidence among the first reference image block and the second reference image block is determined as the target reference image block corresponding to the image block currently wandered to.

6. The method according to claim 1, characterized in that The denoised image of the target water transport monitoring image is obtained based on an image denoising neural network. The method also includes a debugging process of the image denoising neural network, including: Acquire an image learning sample, wherein the image learning sample includes a sample image block matrix of the image sample and an image sample label of the image sample, wherein the image sample includes a plurality of sample image blocks; Based on the initial image denoising neural network, the sample image block matrix is ​​subjected to autocorrelation semantic recognition to obtain the confidence level of each sample image block being confirmed as a noise image block; Walk the multiple sample image blocks one by one, obtain the target candidate sample image block corresponding to the sample image block currently walked to, and determine the confidence that the sample image block currently walked to is the noise image block of the target candidate sample image block based on the confidence that the sample image block currently walked to is confirmed to be a noise image block, the sample image block matrix, and the target candidate sample image block; According to the confidence that each sample image block in the image sample is a noise image block of a target candidate sample image block, a target sample image block is determined to be obtained from the multiple sample image blocks, and the confidence that the target sample image block is a noise image block of a target candidate sample image block is greater than the confidence that the remaining sample image blocks in the multiple sample image blocks are noise image blocks of the corresponding candidate sample image blocks; Restoring the target sample image blocks in the target water transport monitoring image into corresponding target candidate sample image blocks to obtain a denoised image of the image sample; With the purpose of reducing the error between the denoised image of the image sample and the image sample label, the initial image denoising neural network is debugged until a preset debugging cutoff condition is reached to obtain the image denoising neural network.

7. A monitoring system, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps in the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Anti-countermeasure attack camera source recognition method based on local smooth projection

    CN111738274A

  • Image denoising method and model, computer readable storage medium and terminal equipment

    CN115311149A

  • Medical image processing method and system based on artificial intelligence algorithm

    CN117522817A

  • Miter gate welding quality detection method and system based on machine vision

    CN118037741A

  • Image adaptive noise reduction method and device thereof

    US20220051368A1