Low-light semantic segmentation model training method, semantic segmentation method and device

By using a combination of image enhancement model and semantic segmentation model under low-light conditions, combined with the ghostNet neural network, the problem of insufficient semantic segmentation accuracy in low-light scenes is solved and the segmentation accuracy and efficiency are improved.

CN113723231BActive Publication Date: 2024-09-17NANJING UNIV OF POSTS & TELECOMM
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110940177.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2024-09-17
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

It is difficult for the existing technology to achieve the accuracy of semantic segmentation in low-light scenes, especially in low-light conditions such as at night, where the robustness of semantic algorithms is insufficient.

Method used

By obtaining the low-light image data set, using the image enhancement model for image enhancement processing, combined with the semantic segmentation model, a total loss function is established to adjust the semantic segmentation model, the ghostNet neural network model is used, and the autoencoding structure with jump links is used. Image brightness adjustment, reducing the number of parameters and computational complexity.

Benefits of technology

It improves the semantic segmentation accuracy in low-light scenes, reduces the total number of parameters and computational complexity of the Ghost module, improves segmentation efficiency, and obtains more image details through the image enhancement model to enhance segmentation accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113723231B
    Figure CN113723231B
Patent Text Reader

Abstract

The present invention discloses a low-light semantic segmentation model training method, a semantic segmentation method and a device. The low-light semantic segmentation model training method comprises: obtaining an image data set under low light; performing enhancement processing on the acquired image data respectively through an image enhancement model to obtain an enhanced image data set and an enhanced image loss function; performing semantic segmentation on the acquired enhanced image data respectively through a semantic segmentation model to obtain a semantic segmentation image data set and a semantic segmentation loss function; obtaining a total loss function according to the enhanced image loss function and the semantic segmentation loss function; adjusting the semantic segmentation model according to the total loss function to obtain a low-light semantic segmentation model. The present invention is used to obtain accurate segmentation accuracy in low-light scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to image processing and semantic segmentation technology, and in particular to a low-light semantic segmentation model training method, a semantic segmentation method and a semantic segmentation device. Background Art

[0002] Semantic segmentation provides the control system of the car with semantic information about the driving environment, helping the driving system to make driving decisions, and is crucial for applications such as autonomous driving and geological surveys. Currently, the semantic algorithms for urban street scenes used for autonomous driving can only work in ideal scenes with sufficient lighting, and are not very robust for other scenes, especially when dealing with low-light scenes such as nighttime, where it is difficult to obtain accurate semantic segmentation results. Summary of the invention

[0003] Purpose of the invention: In order to overcome the deficiencies of the prior art, the present invention provides a low-light semantic segmentation model training method, a semantic segmentation method and a device to improve the accuracy of semantic segmentation in low-light scenes.

[0004] Technical solution: In a first aspect, a training method for a low-light semantic segmentation model according to the present invention comprises:

[0005] Acquire a low-light image dataset; perform enhancement processing on the acquired image data through an image enhancement model to obtain an enhanced image dataset and an enhanced image loss function; perform semantic segmentation on the acquired enhanced image data through a semantic segmentation model to obtain a semantic segmentation image dataset and a semantic segmentation loss function; obtain a total loss function based on the enhanced image loss function and the semantic segmentation loss function; adjust the semantic segmentation model based on the total loss function to obtain a low-light semantic segmentation model.

[0006] Optionally, the low-light image dataset is acquired based on a Cityscapes dataset.

[0007] Optionally, the function of the image enhancement model is expressed as:

[0008]

[0009] in, Represents the normal image output after image enhancement, I L represents the low-light image, f(*) represents the mapping function for image brightness adjustment, where the Sigmod activation function is used, and θ is the network parameter of the enhanced network.

[0010] Optionally, the enhanced image loss function is expressed as:

[0011]

[0012] Where N represents the total number of pixels in the input image, and They represent the output pixel results of the network and the label pixels at the corresponding positions respectively, θ is the network parameter of the enhanced network, and β is set to 0.1 during the training process.

[0013] Optionally, the semantic segmentation model is obtained based on training of a ghostNet neural network model.

[0014] Optionally, the semantic segmentation loss function is expressed as:

[0015]

[0016] Among them, y i represents the pre-softmax probability belonging to class i, and e is a constant.

[0017] Optionally, the total loss function is obtained by cascading training of an enhanced image loss function and a semantic segmentation loss function.

[0018] Optionally, the total loss function is expressed as:

[0019] L=β D L D +β S L S (4)

[0020] Where L represents the total loss function of the entire network, L D and L S represents the loss function of the enhancement network and the segmentation network, β S and β D Represents the weight of the loss function.

[0021] In a second aspect, a low-light semantic segmentation method is provided, the method comprising:

[0022] Acquire a source image, perform image enhancement on the source image through an image enhancement model to obtain an enhanced source image; perform semantic segmentation on the enhanced source image through a low-light semantic segmentation model to obtain segmentation accuracy, wherein the low-light semantic segmentation model is trained by the method described in any one of the first aspects.

[0023] In a third aspect, a low-light semantic segmentation device is provided, the device comprising:

[0024] An enhancement unit is used to perform image enhancement on a source image through an image enhancement model to obtain an enhanced source image; a segmentation unit is used to perform semantic segmentation on the enhanced source image through a low-light semantic segmentation model to obtain segmentation accuracy, wherein the low-light semantic segmentation model is trained by the method described in any one of the third aspects.

[0025] Beneficial effects: The present invention adjusts the semantic segmentation model according to the total loss function, takes into account the enhanced image loss, and improves the segmentation accuracy; and establishes a semantic segmentation model based on the ghostNet neural network model, the total number of parameters and the computational complexity required in the Ghost module have been reduced, and the efficiency of segmentation has been improved; and the image enhancement model uses an autoencoder structure with jump links to enhance image brightness, which is conducive to obtaining more image details. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 Schematic diagram of the training method of the low-light semantic segmentation model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0028] Embodiment 1:

[0029] like Figure 1 As shown, the present invention relates to a low-light semantic segmentation model training method, comprising:

[0030] The Cityscapes dataset is selected as the main dataset for the experiment. First, the Gamma value of the image is adjusted, that is, the image is inversely Gamma transformed. Gamma transformation is an image operation that nonlinearly adjusts the grayscale value of the image input, which can make the grayscale value of the image before the transformation and the grayscale value of the image after the transformation have an exponential nonlinear relationship, as shown in formula (1):

[0031]

[0032] Among them I in I out Represent the input and output images, β represents the Gamma value, and α represents the transformation coefficient. After the Gamma transformation, in order to obtain a better low-light effect of the image, the PS tool is also used to adjust the brightness and contrast of the Cityscapes street view image after the Gamma transformation, so that the final manually adjusted low-light street view data is visually as similar as possible to the actual low-light dark scene to obtain a low-light street view with good visual effects. In this way, on the basis of the original data set containing street view images in normal weather and corresponding semantic segmentation labels, new corresponding low-light images are generated. Each set of data contains three pictures, namely low-light city street view images, normal daytime city street view images and semantic segmentation labels. The original images and segmentation labels of these data sets are all from the Cityscapes data set.

[0033] The acquired low-light image is enhanced using an autoencoder structure with skip connections. The encoder dimensionality reduction can effectively reduce the number of parameters and obtain representative features of the image. The decoder achieves the denoising effect, as shown in formula (2):

[0034]

[0035] In formula (2), Represents the normal image output after image enhancement, I L represents the low-light image, f(*) represents the mapping function for image brightness adjustment, where the Sigmod activation function is used, and θ is the network parameter of the enhanced network.

[0036] When acquiring a normal image, the image enhancement network structure will be lost. In the training of the enhanced network structure, the mean absolute error (MAE) and the second normal form regularization term (L2 error) are used to calculate the total error of the enhanced network, as shown in formula (3):

[0037]

[0038] N represents the total number of pixels in the input image, and They represent the output pixel results of the network and the label pixels at the corresponding positions respectively; the L2 regular term can prevent the network from overfitting and improve the convergence speed of the network. β is set to 0.1 during the training process.

[0039] GhostNet is selected as the semantic segmentation network. As a lightweight network, GhostNet uses a series of simple linear operations on the convolution layer to generate more feature maps. Compared with ordinary convolutional neural networks, the total number of parameters and computational complexity required in the Ghost module have been reduced without changing the size of the output feature map. In order to improve efficiency, all convolutions in the module are replaced by pointwise convolutions.

[0040] The loss function of semantic segmentation adopts the cross entropy loss function of softmax. For each pixel in the image, its calculation process includes two steps. Its mathematical expression is shown in formula (4) (5):

[0041]

[0042] Formula (4), y irepresents the pre-softmax probability of belonging to class i, and e is a constant. First, the softmax is calculated for the output of the last layer of the cascade segmentation network to obtain the probability that each pixel belongs to a certain class, and then the cross entropy loss L is calculated for the predicted probability vector. Each pixel is treated as a sample to calculate the cross entropy loss and the average is taken as the final segmentation network loss L. s .

[0043] The final total loss function can be obtained by jointly training the losses of the two networks through a cascade network. Its mathematical expression is shown in formula (6):

[0044] L=β D L D +β S L S (6)

[0045] Where L represents the total loss function of the entire network, L D represents the enhanced image loss function, L S represents the semantic segmentation loss function, β S represents the weight of the semantic segmentation loss function, β D Represents the weight of the enhanced image loss function.

[0046] According to the total loss function, the semantic segmentation model based on the ghostNet neural network model is adjusted to obtain a low-light semantic segmentation model.

[0047] Embodiment 2:

[0048] A low-light semantic segmentation method, the method comprising:

[0049] Acquire a source image, and perform image enhancement on the source image through an image enhancement model to obtain an enhanced source image;

[0050] The enhanced source image is semantically segmented by a low-light semantic segmentation model to obtain the segmentation accuracy.

[0051] The low-light semantic segmentation model is trained by the method described in any one of Example 1.

[0052] Embodiment 3:

[0053] A low-light semantic segmentation device, the device comprising:

[0054] An enhancement unit, used for performing image enhancement on a source image through an image enhancement model to obtain an enhanced source image;

[0055] A segmentation unit is used to perform semantic segmentation on the enhanced source image through a low-light semantic segmentation model to obtain a segmentation accuracy.

[0056] The low-light semantic segmentation model is trained by the method described in any one of Example 1.

[0057] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A training method for a low-light semantic segmentation model, characterized in that: The method comprises: Get a dataset of low-light images; Through the image enhancement model, the acquired image data are enhanced respectively to obtain an enhanced image data set and an enhanced image loss function; Through the semantic segmentation model, semantic segmentation is performed on the acquired enhanced image data to obtain a semantic segmentation image dataset and a semantic segmentation loss function; According to the enhanced image loss function and the semantic segmentation loss function, the total loss function is obtained; Adjusting the semantic segmentation model according to the total loss function to obtain a low-light semantic segmentation model; The function of the image enhancement model is expressed as: in, Represents the normal image output after image enhancement, I L represents a low-light image, f(*) represents the mapping function for image brightness adjustment, specifically the Sigmod activation function, and θ is the network parameter of the enhancement network; The enhanced image loss function is expressed as: Where N represents the total number of pixels in the input image, and They represent the output pixel results of the network and the label pixels at the corresponding positions, θ is the network parameter of the enhanced network, and β is set to 0.1 during the training process; The semantic segmentation model is obtained based on the training of the ghostNet neural network model, and all convolutions in the ghostNet neural network model are replaced by pointwise convolutions; The semantic segmentation loss function is expressed as: Among them, y i represents the pre-softmax probability belonging to class i, and e is a constant; The total loss function is obtained by cascading training of the enhanced image loss function and the semantic segmentation loss function; The total loss function is expressed as: L=β D L D +b S L S (4) Where L represents the total loss function of the entire network, L D represents the enhanced image loss function, L S represents the semantic segmentation loss function, β S represents the weight of the semantic segmentation loss function, β D Represents the weight of the enhanced image loss function.

2. The training method for the low-light semantic segmentation model according to claim 1, characterized in that: The low-light image dataset is acquired based on the Cityscapes dataset.

3. A low-light semantic segmentation method, characterized in that: The method comprises: Acquire a source image, and perform image enhancement on the source image through an image enhancement model to obtain an enhanced source image; The enhanced source image is semantically segmented by a low-light semantic segmentation model to obtain the segmentation accuracy. The low-light semantic segmentation model is trained by the method described in any one of claims 1-2.

4. A low-light semantic segmentation device, characterized in that: The device comprises: An enhancement unit, used for performing image enhancement on a source image through an image enhancement model to obtain an enhanced source image; A segmentation unit is used to perform semantic segmentation on the enhanced source image through a low-light semantic segmentation model to obtain a segmentation accuracy. The low-light semantic segmentation model is trained by the method described in any one of claims 1-2.

Citation Information

Patent Citations

  • Image Semantic Segmentation Method Based on Deep Full Convolutional Network and Conditional Random Field

    AU2020103901A4

  • A low-light image scene understanding method

    CN109410129A

  • Semantic segmentation network training and image processing methods and devices

    CN111507343A

  • Remote sensing image lightweight semantic segmentation method based on edge decoupling

    CN113159051A

  • End to End Network Model for High Resolution Image Segmentation

    US20200218961A1