Train running state recognition method and device, computer equipment and storage medium

Through regularization processing and illumination classification of train images, combined with appropriate image enhancement strategies, the problem of recognition accuracy in harsh environments is solved, accurate recognition under different lighting conditions is achieved, and the robustness of train operating status recognition is improved. sex and accuracy.

CN118609068APending Publication Date: 2024-09-06SHENZHEN PINGFANG SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410860792.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing technology is difficult to accurately identify the train operating status under harsh environmental conditions (such as low light, rainy days, foggy days, etc.), resulting in inaccurate or invalid data and reducing the accuracy of the image processing algorithm.

Method used

By regularizing the train image, obtaining the pixel illumination estimate, classifying the illumination, and selecting an appropriate image enhancement strategy according to the illumination type to enhance the image, thereby improving the clarity and readability of the image and ensuring that the Accurately identify train operating status under lighting conditions.

Benefits of technology

It achieves accurate identification of train operating status under different lighting conditions, improves the robustness and accuracy of identification, and enhances image processing capabilities in harsh environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609068A
    Figure CN118609068A
Patent Text Reader

Abstract

The invention relates to the technical field of railway transportation safety monitoring, and provides a train running state recognition method and device, computer equipment and a storage medium. According to the method, the train image is subjected to regularization processing, noise in the train image can be eliminated, the clear and smooth regularized image is obtained, the accurate pixel illuminance estimation value can be obtained, the accuracy of illuminance classification of the regularized image based on the pixel illuminance estimation value is improved, and the accuracy of classification of the illuminance of the train image based on the pixel illuminance estimation value is improved. And a basis is provided for subsequently selecting a proper image enhancement strategy. And finally, the regularized image is enhanced by using an image enhancement strategy corresponding to the illumination type of the train, so that the definition and readability of the image are improved, and the accuracy of identifying the running state of the train based on the enhanced image is improved. According to the method, the influence of different illumination conditions on the image quality is considered, and corresponding measures are taken for compensation, so that the train running state can be accurately identified under different illumination conditions, and the identification robustness is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of railway transportation safety monitoring, and in particular to a train operation status identification method, device, computer equipment and storage medium. Background Art

[0002] With the rapid development of rail transit, the demand for real-time monitoring and early warning of train operation status is growing. At present, the operation status of trains is usually monitored by sensors installed on trains. However, the performance of these sensors will be affected in certain harsh environmental conditions (such as low light, rainy days, foggy days, etc.), resulting in inaccurate data or even failure.

[0003] In recent years, image processing technology has been widely used in various monitoring systems. It can identify the running status of trains by analyzing the images captured by cameras. However, due to the limitations of camera performance, under complex and changing lighting conditions, the camera may not be able to capture clear, high-quality train images, resulting in blurring or loss of key information in the image, thereby reducing the accuracy of the image processing algorithm in identifying the running status of trains. Summary of the invention

[0004] In view of this, the present application provides a train running status identification method, device, computer equipment and storage medium, which can accurately identify the train running status under different lighting conditions.

[0005] A first aspect of the present application provides a method for identifying a train running state, the method comprising: Regularize the train image to obtain a regularized image; Obtaining an estimated value of pixel illumination of the regularized image; performing illumination classification on the regularized image based on the pixel illumination estimation value; Performing enhancement processing on the regularized image using an image enhancement strategy corresponding to the illumination type of the train to obtain an enhanced image; The running status of the train is identified based on the enhanced image.

[0006] Optionally, performing regularization processing on the train image to obtain a regularized image includes: dividing the train image into a plurality of first sub-block images; Input each first sub-block image into the norm classification model to obtain the corresponding regularized norm type; According to the regularization norm type, regularization processing is performed on the corresponding first sub-block image to obtain a processed image; The processed images are combined into a regularized image.

[0007] Optionally, obtaining the pixel illumination estimation value of the regularized image includes: extracting an illumination component of the regularized image; Performing multi-scale Gaussian filtering on the illumination component to obtain a Gaussian filtering value; An iteration initial value is calculated based on the Gaussian filter value; Iteratively updating the iteration initial value using a main clustering inference algorithm until a preset iteration stop condition is met; When the iteration stops, the final iteration value is output as the pixel illumination estimation value.

[0008] Optionally, the step of performing enhancement processing on the regularized image using an image enhancement strategy corresponding to the illumination type of the train to obtain an enhanced image includes: When the illumination type of the train is low illumination, performing brightness enhancement processing on the regularized image to obtain an enhanced image; When the illumination type of the train is normal illumination, the weather classification model is called to classify the regularized image to obtain the weather type, and the regularized image is enhanced according to the weather type to obtain an enhanced image.

[0009] Optionally, performing brightness enhancement processing on the regularized image to obtain an enhanced image includes: dividing the regularized image into a plurality of second sub-block images; Calculating the average Gaussian curvature of each second sub-block image; Selecting a corresponding Gaussian convolution kernel for each second sub-block image based on the average Gaussian curvature; Using the selected Gaussian convolution kernel to perform a convolution operation on the corresponding second sub-block image to obtain an illumination component; Obtaining a reflection component according to the illumination component; An enhanced image is obtained according to the illumination component and the corresponding reflection component.

[0010] Optionally, the performing enhancement processing on the regularized image according to the weather type includes: When the weather type is rainy, performing rain removal processing on the regularized image; When the weather type is foggy, defogging is performed on the regularized image.

[0011] Optionally, the method further includes: Monitoring and early warning are carried out according to the train running status.

[0012] A second aspect of the present application provides a train running status identification device, the device comprising: A processing module, used for performing regularization processing on the train image to obtain a regularized image; An acquisition module, used for acquiring a pixel illumination estimation value of the regularized image; A classification module, configured to perform illumination classification on the regularized image based on the pixel illumination estimation value; An enhancement module, used for performing enhancement processing on the regularized image using an image enhancement strategy corresponding to the illumination type of the train to obtain an enhanced image; The recognition module is used to recognize the running status of the train based on the enhanced image.

[0013] The third aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the train operation status identification method when executing the computer program.

[0014] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the train operation status identification method are implemented.

[0015] The train running status recognition method, device, computer equipment and storage medium provided in the embodiment of the present application can eliminate the noise in the train image by regularizing the train image, obtain a clear and smooth regularized image, and facilitate obtaining accurate pixel illumination estimation values. By obtaining the pixel illumination estimation value of the regularized image, the brightness distribution of different areas in the image is understood, and the illumination classification of the regularized image is performed based on the pixel illumination estimation value, which provides a basis for the subsequent selection of a suitable image enhancement strategy. Finally, the regularized image is enhanced using an image enhancement strategy corresponding to the illumination type of the train, which achieves targeted optimization of the regularized image, improves the clarity and readability of the image, and thus improves the accuracy of identifying the train running status based on the enhanced image. The present application takes into account the impact of different illumination conditions on image quality, and takes corresponding measures to compensate, so that the train running status can be accurately identified under different lighting conditions, and the robustness of the recognition is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flow chart of a train running status identification method shown in an embodiment of the present application; Figure 2 is a schematic diagram of an interface of a train running status identification system shown in an embodiment of the present application; Figure 3 It is a functional module diagram of a train running status identification device shown in an embodiment of the present application; Figure 4It is a structural diagram of a computer device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.

[0018] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0019] The train running status identification method provided in the embodiment of the present invention is executed by a computer device, and correspondingly, the train running status identification device runs in the computer device.

[0020] Figure 1 1 is a flow chart of a train running status identification method provided in Embodiment 1 of the present invention. The train running status identification method specifically includes the following steps.

[0021] S11, performing regularization processing on the train image to obtain a regularized image.

[0022] During the operation of the train, the train images captured by the camera may contain noise due to various reasons (such as lighting, weather, camera quality, etc.). Regularization can remove noise and blur in the image, improve the clarity and quality of the train image, which is crucial for subsequent pixel illumination estimation and illumination classification. The correct illumination component helps to enhance the image, thereby improving the accuracy of train operation status recognition.

[0023] In an optional implementation, performing regularization processing on the train image to obtain a regularized image includes: dividing the train image into a plurality of first sub-block images; Input each first sub-block image into the norm classification model to obtain the corresponding regularized norm type; According to the regularization norm type, regularization processing is performed on the corresponding first sub-block image to obtain a processed image; The processed images are combined into a regularized image.

[0024] In a complex operating environment, train images may be affected by various factors (such as shadows, reflections, occlusions, etc.), resulting in different characteristics (such as lighting, color, texture, etc.) in different regions of the train image. Splitting the train image into sub-blocks can better capture these local characteristics and perform targeted regularization.

[0025] The size of the sub-block can be determined based on the image resolution and computing resources. The selection of the sub-block size requires a trade-off between processing efficiency and image details. Larger sub-blocks can contain more image information, but may reduce the ability to capture local features; smaller sub-blocks can better capture local features, but will increase computational complexity. After determining the size of the sub-block, the train image can be segmented without overlap according to the specified sub-block size. That is, the train image is divided into multiple equal-sized sub-blocks from left to right and from top to bottom, thereby obtaining multiple first sub-block images.

[0026] The norm classification model is used to identify or classify the norm type of data. By collecting multiple train images under different illuminations, segmenting and annotating the collected train images, and using machine learning or deep learning to train based on the annotated images, a norm classification model is obtained. In image processing, the norm is usually used to describe the distribution or intensity of pixel values ​​in an image. The norm classification model can learn and identify the norm characteristics of different image regions, such as the L1 norm (sum of absolute values), the L2 norm (Euclidean distance), etc. Each first sub-block image is used as the input of the norm classification model and sent to the pre-trained norm classification model. The norm classification model analyzes the pixel value distribution of each first sub-block image and outputs the corresponding regularized norm type. According to the regularized norm type output by the norm classification model, the corresponding first sub-block image is regularized. The specific method of regularization depends on the norm type, and different regularization norm types correspond to different regularization processing strategies. The L1 norm is used to capture edge and texture information in the image. If the norm classification model identifies that a first sub-block image mainly has the characteristics of the L1 norm, it means that the first sub-block image contains more edge information, and the first sub-block image can be sharpened and filtered to highlight the edge information. The L2 norm is used to measure the similarity or difference between pixels. If the norm classification model identifies that a first sub-block image mainly has the characteristics of the L2 norm, it means that the first sub-block image is relatively smooth in pixel value, and the first sub-block image can be processed using a denoising algorithm based on the L2 norm (such as Wiener filtering) to reduce the influence of noise. The Total Variation norm type is used to measure the rate of change in an image, that is, the difference between adjacent pixels. If the norm classification model identifies that a first sub-block image has the characteristics of the Total Variation norm, it means that the first sub-block image contains more detail information, and the first sub-block image can be processed using a denoising algorithm based on Total Variation (such as Total Variation Denoising) to remove noise while maintaining the edges and details of the image.

[0027] The first sub-block image after regularization is reassembled into a complete regularized image by splicing or fusion. The regularized image will be used as input in the subsequent pixel illumination estimation and train running status recognition.

[0028] In the above optional implementation, by dividing the train image into a plurality of first sub-block images, the amount of calculation for a single processing can be reduced, thereby improving the efficiency of image processing, which helps to improve the efficiency of train running state recognition. By performing a separate regularization process on each first sub-block image, the local characteristics of the image can be optimized to improve the processing effect.

[0029] S12, obtaining pixel illumination estimation values ​​of the regularized image.

[0030] In train running status recognition, the pixel illumination estimation value of the regularized image is obtained to further understand the brightness distribution and lighting conditions of different regions in the regularized image. Illumination is one of the key factors of image quality, which directly affects the visibility and contrast of objects in the image, thereby affecting the accuracy of train running status recognition.

[0031] The pixel illumination estimation value reflects the lighting conditions of the external environment during the train's travel. The pixel illumination estimation value represents the estimated value of the light intensity or brightness received by each pixel in the image, that is, which areas in the image are brighter and which areas are darker.

[0032] The illumination estimation algorithm can be used to estimate the illumination of each pixel in the train image in combination with known lighting conditions (such as light source position, light source brightness, etc.) to obtain a pixel illumination estimation value.

[0033] In an optional implementation, obtaining the pixel illumination estimation value of the regularized image includes: extracting an illumination component of the regularized image; Performing multi-scale Gaussian filtering on the illumination component to obtain a Gaussian filtering value; An iteration initial value is calculated based on the Gaussian filter value; Iteratively updating the iteration initial value using a main clustering inference algorithm until a preset iteration stop condition is met; When the iteration stops, the final iteration value is output as the pixel illumination estimation value.

[0034] Before extracting the illumination component of the regularized image, the regularized image may be converted from the RGB color space to the HSV color space, and the illumination component may be extracted from the HSV color space. The illumination component of the regularized image may be extracted using a Retinex algorithm.

[0035] Perform multi-scale Gaussian filtering on the extracted illumination component. Multi-scale Gaussian filtering refers to performing Gaussian filtering on the image at different scales to obtain smoothing effects at different scales, thereby reducing noise and details. Assuming there are N Gaussian functions, each Gaussian function corresponds to a Gaussian scale, the illumination component is convolved with each Gaussian function to obtain an illumination image at the corresponding Gaussian scale. The illumination images at all Gaussian scales are weighted and calculated to obtain the Gaussian filter value.

[0036] The standard deviation is calculated based on the Gaussian filter value, and the iteration initial value is obtained based on the product of the standard deviation and the preset coefficient, and the preset coefficient is less than 1. The iteration initial value refers to the initial data or parameter value used when the main clustering inference algorithm starts iterating, and is the starting point of the iteration process.

[0037] The iteration initial value is iteratively updated using the main clustering inference algorithm. In each iteration, the algorithm updates the pixel illumination estimation value according to certain rules or optimization objectives. After each iteration, check whether the preset iteration stop condition is met. If the condition is met, the iteration is stopped; otherwise, the next iteration is continued. When the iteration stops, the final iteration value is output as the pixel illumination estimation value. The preset iteration stop condition can be that the number of iterations reaches the preset number of iterations, the iteration error is less than the error threshold, etc.

[0038] The above optional implementation method can more accurately estimate the pixel illumination value of the regularized image through multi-scale Gaussian filtering and iterative optimization algorithm, which helps to improve the accuracy of subsequent illumination classification and image enhancement processing. In addition, due to the use of multi-scale Gaussian filtering and iterative optimization algorithm, it can adapt to image processing requirements under different lighting conditions. Whether it is high illumination, normal illumination or low illumination, a relatively accurate pixel illumination estimation value can be obtained.

[0039] S13, performing illumination classification on the regularized image based on the pixel illumination estimation value.

[0040] Illumination classification is the process of classifying the lighting conditions in the regularized image based on the estimated pixel illumination values. Through illumination classification, the regularized image can be divided into different illumination types, for example, low illumination, normal illumination.

[0041] The illumination threshold T (for example, 60) is preset, and the pixel illumination estimation value is compared with the illumination threshold value, and the illumination condition of the train image is judged according to the comparison result. When the pixel illumination estimation value is less than the illumination threshold value, it is considered to be a low illumination image, otherwise, when the pixel illumination estimation value is greater than the illumination threshold value, it is considered to be a normal illumination image.

[0042] The above implementation method, by performing illumination classification on the regularized image, helps to subsequently select a suitable image enhancement strategy, avoids using the same enhancement algorithm for all images, and adaptively processes images under different lighting conditions, while also saving computing resources and time.

[0043] S14, using an image enhancement strategy corresponding to the illumination type of the train to perform enhancement processing on the regularized image to obtain an enhanced image.

[0044] Once the illumination type of the regularized image of the train is determined (such as low illumination or normal illumination), the image enhancement strategy corresponding to the illumination type can be used to enhance the image to improve the overall quality of the regularized image and improve the accuracy and efficiency of train running status recognition.

[0045] In an optional embodiment, when the illumination type of the train is low illumination, it indicates that the train is in a low illumination environment. Low illumination usually means insufficient light, so the collected train image is darker and the details may not be clear enough. Therefore, using the image enhancement strategy corresponding to the illumination type of the train to enhance the regularized image includes: performing brightness enhancement processing on the regularized image to improve the brightness and contrast of the image to facilitate better recognition of details in the image.

[0046] In an optional implementation, performing brightness enhancement processing on the regularized image to obtain an enhanced image includes: dividing the regularized image into a plurality of second sub-block images; Calculating the average Gaussian curvature of each second sub-block image; Selecting a corresponding Gaussian convolution kernel for each second sub-block image based on the average Gaussian curvature; Using the selected Gaussian convolution kernel to perform a convolution operation on the corresponding second sub-block image to obtain an illumination component; Obtaining a reflection component according to the illumination component; An enhanced image is obtained according to the illumination component and the corresponding reflection component.

[0047] The process of dividing the regularized image into a plurality of second sub-block images is the same as the process of dividing the train image into a plurality of first sub-block images. For the sake of brevity of the specification, this application will not be elaborated in detail here. For details, please refer to the process of dividing the train image into a plurality of first sub-block images and the process of dividing the regularized image into a plurality of second sub-block images.

[0048] Gaussian curvature is usually used to describe the curvature of a two-dimensional surface (a surface composed of image intensity). For each second sub-block image, the second-order derivative of the intensity of the second sub-block image is calculated to estimate the local Gaussian curvature. The average Gaussian curvature is the average of the Gaussian curvatures of all pixels in a sub-block.

[0049] Different Gaussian convolution kernels may have different sizes and standard deviations to adapt to the characteristics of different regions. The selected Gaussian convolution kernel is used to perform a convolution operation on the corresponding sub-block image to obtain an illumination component.

[0050] In an illumination model (such as Retinex theory), an image can be considered to be composed of an illumination component and a reflection component. The illumination component represents the effect of the light source on the image, while the reflection component represents the reflection property of the object surface, that is, the color and texture information of the object itself. After calculating the illumination component, the illumination component can be subtracted from the second sub-block image to obtain the reflection component, thereby separating the illumination component from the reflection component. Based on the product of the separated illumination component and reflection component, the enhanced image corresponding to the second sub-block image is obtained. The enhanced image corresponding to the second sub-block image is recombined into a complete enhanced image by splicing or fusion.

[0051] The above optional implementation, by dividing the regularized image into a plurality of second sub-block images, can apply the corresponding Gaussian convolution kernel according to the local characteristics of each second sub-block image, thereby achieving refined adjustment of different regions of the regularized image to adapt to the brightness, contrast, texture and other characteristics of different regions. By selecting a suitable Gaussian convolution kernel based on the average Gaussian curvature of each second sub-block image, the illumination component of the image can be accurately estimated and separated, which helps to better understand and process the lighting conditions of the image. By combining the illumination component and the reflection component, a more natural and realistic enhanced image can be obtained. Compared with the traditional global enhancement method, the present application can better retain the details and texture information of the image while avoiding problems such as over-enhancement or distortion.

[0052] In an optional embodiment, when the illumination type of the train is normal illumination, the use of an image enhancement strategy corresponding to the illumination type of the train to enhance the regularized image includes: calling a weather classification model to classify the regularized image to obtain the weather type, and enhancing the regularized image according to the weather type.

[0053] A dataset of foggy, rainy, snowy, and normal weather images with high definition can be constructed, and a weather classification model can be trained based on the image dataset using a ResNet network or a ResNeXt network. The regularized image is input into the trained weather classification model for classification to obtain the weather type, so as to further determine whether there is severe weather that affects the image quality.

[0054] Weather conditions have a significant impact on the quality and recognition performance of images, especially in bad weather such as rainy and foggy days. Raindrops or haze will reduce the clarity and contrast of the image, making it difficult to accurately extract and recognize train features. Therefore, it is necessary to perform specific enhancement processing on the regularized image according to the weather type.

[0055] In an optional implementation, the step of performing enhancement processing on the regularized image according to the weather type includes: When the weather type is rainy, performing rain removal processing on the regularized image; When the weather type is foggy, defogging is performed on the regularized image.

[0056] When the weather type is rainy, the image may contain a large number of raindrops, which will block some details of the train or track and affect the recognition accuracy. In order to remove the influence of raindrops on the image, a deraining algorithm can be used to remove rain from the regularized image. When the weather type is foggy, the image may contain a large amount of haze, which will reduce the contrast and distort the color of the image, thereby affecting the recognition and extraction of train features. In order to remove the influence of haze on the image, a defogging algorithm can be used to defog the regularized image. The process of deraining or defogging an image is a prior art and will not be elaborated in detail.

[0057] S15, identifying the running status of the train based on the enhanced image.

[0058] Features related to the running status of the train are extracted from the enhanced image, such as the shape, size, position, speed direction, etc. of the train. According to the specific application scenario and recognition requirements, different feature extraction methods can be selected to extract the features of the enhanced image.

[0059] Use a dataset with known train running status to train the classifier. The choice of classifier depends on the specific application scenario and the characteristics of the data. Common classifiers include support vector machine (SVM), decision tree, random forest, neural network, etc. During the training process, the extracted features are used as input and the train running status is used as output. The parameters of the classifier are adjusted through the optimization algorithm so that it can accurately identify the train running status. Use the validation set or test set to evaluate the performance of the trained classifier.

[0060] In practical applications, the trained classifier is applied to the enhanced image acquired in real time to identify the train running status in real time. In order to further improve the accuracy of identifying the train running status, multiple sensors (such as speed sensors, acceleration sensors, position sensors, temperature sensors, etc.) installed on the train or track are used to collect real-time data of the train running. The real-time data collected by the sensor is cleaned, calibrated and synchronized to ensure the consistency and accuracy of the data. The visual features related to the train running status extracted from the enhanced image (such as shape, size, position, speed direction, etc.) are spliced ​​into a feature vector with the physical features related to the train running status extracted from the sensor data (such as speed, acceleration, position, temperature, etc.) to obtain a combined feature. The combined feature is input into the trained classifier to identify the train running status in real time.

[0061] By combining enhanced images and multiple sensor data to jointly identify the train operation status, the advantages of different data sources can be fully utilized to provide more accurate and comprehensive train status information. Furthermore, in order to ensure the safe operation of the train, monitoring and early warning can be carried out according to the train operation status. The identified train operation status is compared and analyzed with the preset rules or thresholds. If the train operation status exceeds the preset rules or thresholds, the train may be in an abnormal or dangerous state. When it is determined that the train may be in an abnormal or dangerous state, the early warning mechanism will be triggered. The early warning can be in the form of sound alarms, flashing lights, information displays, such as Figure 2 The display interface shown is convenient for train drivers or relevant managers to timely understand the running status of the train and take corresponding management measures, which can not only improve management efficiency, but also optimize resource allocation and reduce resource waste.

[0062] After the early warning is triggered, some emergency measures can be automatically executed, such as deceleration, stopping, and initiating emergency braking, so as to avoid or reduce the occurrence of accidents and improve the safety of the train.

[0063] By identifying the train operation status in real time and conducting monitoring and early warning, it can be ensured that the train operation always remains within a safe and reliable range, avoiding abnormal or dangerous situations during train operation.

[0064] Figure 3 It is a structural diagram of a train running status identification device provided in an embodiment of the present invention.

[0065] In some embodiments, the train running state identification device 30 may include a plurality of functional modules composed of computer program segments. The computer programs of the various program segments in the train running state identification device 30 may be stored in a memory of a computer device and executed by at least one processor to perform (see Figure 1 Description) The function of identifying the train running status.

[0066] In this embodiment, the train running state identification device 30 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a processing module 301, an acquisition module 302, a classification module 303, an enhancement module 304, an identification module 305 and an early warning module 306. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0067] The processing module 301 is used to perform regularization processing on the train image to obtain a regularized image.

[0068] The acquisition module 302 is used to acquire the pixel illumination estimation value of the regularized image.

[0069] The classification module 303 is used to perform illumination classification on the regularized image based on the pixel illumination estimation value.

[0070] The enhancement module 304 is used to enhance the regularized image using an image enhancement strategy corresponding to the illumination type of the train to obtain an enhanced image.

[0071] The recognition module 305 is used to recognize the running status of the train based on the enhanced image.

[0072] The warning module 306 is used to monitor and warn according to the operating status.

[0073] It should be understood that the various variations and specific embodiments of the train running status identification method provided in the above-mentioned embodiment are also applicable to the train running status identification device in this embodiment. Through the detailed description of the aforementioned train running status identification method, technical personnel in this field can clearly know the implementation process of the train running status identification device in this embodiment. For the sake of brevity of the specification, it will not be described in detail here.

[0074] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, all or part of the steps of the train running status identification method are implemented.

[0075] See also Figure 4 FIG. 4 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. In a preferred embodiment of the present application, the computer device 4 includes a memory 41 , at least one processor 42 and at least one communication bus 43 .

[0076] Those skilled in the art should understand that Figure 4 The structure of the computer device shown does not constitute a limitation of the embodiments of the present application, and may be either a bus structure or a star structure. The computer device 4 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components.

[0077] In some embodiments, the computer device 4 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The computer device 4 may also include client devices, which include but are not limited to any electronic product that can interact with the client through a keyboard, mouse, remote control, touchpad, or voice control device, such as a personal computer, tablet computer, smart phone, digital camera, etc.

[0078] It should be noted that the computer device 4 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0079] In some embodiments, the memory 41 stores a computer program, and when the computer program is executed by the at least one processor 42, all or part of the steps in the train running state identification method as described above are implemented. The memory 41 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data. Further, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, and the like.

[0080] In some embodiments, the at least one processor 42 is the control core (Control Unit) of the computer device 4, and uses various interfaces and lines to connect various components of the entire computer device 4, and executes various functions and processes data of the computer device 4 by running or executing programs or modules stored in the memory 41, and calling data stored in the memory 41. For example, when the at least one processor 42 executes the computer program stored in the memory, it implements all or part of the steps of the train running state identification method described in the embodiment of the present application; or implements all or part of the functions of the train running state identification device. The at least one processor 42 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.

[0081] In some embodiments, the at least one communication bus 43 is configured to realize connection and communication between the memory 41 and the at least one processor 42, etc. Although not shown, the computer device 4 may also include a power supply (such as a battery) for powering each component. Preferably, the power supply may be logically connected to the at least one processor 42 through a power management device, so that the power management device can realize functions such as management of charging, discharging, and power consumption management. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The computer device 4 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0082] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.

[0083] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0084] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Claims

1. A method for identifying a train running state, characterized in that: The method comprises: Regularize the train image to obtain a regularized image; Obtaining an estimated value of pixel illumination of the regularized image; performing illumination classification on the regularized image based on the pixel illumination estimation value; Performing enhancement processing on the regularized image using an image enhancement strategy corresponding to the illumination type of the train to obtain an enhanced image; The running status of the train is identified based on the enhanced image.

2. The train running status identification method according to claim 1, characterized in that: The regularizing the train image to obtain the regularized image comprises: dividing the train image into a plurality of first sub-block images; Input each first sub-block image into the norm classification model to obtain the corresponding regularized norm type; According to the regularization norm type, regularization processing is performed on the corresponding first sub-block image to obtain a processed image; The processed images are combined into a regularized image.

3. The train running status identification method according to claim 1, characterized in that: The obtaining of the pixel illumination estimation value of the regularized image comprises: extracting an illumination component of the regularized image; Performing multi-scale Gaussian filtering on the illumination component to obtain a Gaussian filtering value; An iteration initial value is calculated based on the Gaussian filter value; Iteratively updating the iteration initial value using a main clustering inference algorithm until a preset iteration stop condition is met; When the iteration stops, the final iteration value is output as the pixel illumination estimation value.

4. The train running status identification method according to any one of claims 1 to 3, characterized in that: The step of performing enhancement processing on the regularized image using an image enhancement strategy corresponding to the illumination type of the train to obtain an enhanced image comprises: When the illumination type of the train is low illumination, performing brightness enhancement processing on the regularized image to obtain an enhanced image; When the illumination type of the train is normal illumination, the weather classification model is called to classify the regularized image to obtain the weather type, and the regularized image is enhanced according to the weather type to obtain an enhanced image.

5. The train running status identification method according to claim 4, characterized in that: The step of performing brightness enhancement processing on the regularized image to obtain an enhanced image comprises: dividing the regularized image into a plurality of second sub-block images; Calculating the average Gaussian curvature of each second sub-block image; Selecting a corresponding Gaussian convolution kernel for each second sub-block image based on the average Gaussian curvature; Using the selected Gaussian convolution kernel to perform a convolution operation on the corresponding second sub-block image to obtain an illumination component; Obtaining a reflection component according to the illumination component; An enhanced image is obtained according to the illumination component and the corresponding reflection component.

6. The train running status identification method according to claim 4, characterized in that: The step of performing enhancement processing on the regularized image according to the weather type comprises: When the weather type is rainy, performing rain removal processing on the regularized image; When the weather type is foggy, defogging is performed on the regularized image.

7. The train running status identification method according to claim 1, characterized in that: The method further comprises: Monitoring and early warning are carried out according to the train running status.

8. A train running status identification device, characterized in that: The device comprises: A processing module, used for performing regularization processing on the train image to obtain a regularized image; An acquisition module, used for acquiring a pixel illumination estimation value of the regularized image; A classification module, configured to perform illumination classification on the regularized image based on the pixel illumination estimation value; An enhancement module, used for performing enhancement processing on the regularized image using an image enhancement strategy corresponding to the illumination type of the train to obtain an enhanced image; The recognition module is used to recognize the running status of the train based on the enhanced image.

9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the train operation status identification method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the train running status identification method as described in any one of claims 1 to 7 are implemented.