Semantic-guided trustworthy distillation for event camera depth estimation

By organizing supervision within the pixel coordinate system of the event camera, generating depth and semantic references using paired RGB images, and selecting pixels and regions that meet the conditions for semantic supervision, the problems of sparsity and varying reliability of true depth are solved, thus improving the accuracy and robustness of event camera depth estimation.

CN123160630APending Publication Date: 2026-11-24HUNAN NORMAL UNIVERSITY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611690051.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In situations where real-world depth supervision is sparse and the reliability of teacher depth and semantic references differs, how can we reduce the redundant configuration of pixel and region semantic supervision positions, and retain the overall contribution to teacher supervision when the sum of supervision weights is below the lower bound of the normalized denominator?

Method used

By organizing supervision within the pixel coordinate system of the event camera, depth and semantic references are generated using paired RGB images from the training phase. Pixels and regions that meet the conditions are selected for semantic supervision, and joint training is performed in the student network. By combining teacher depth, pixel semantic, and region semantic supervision, a scene depth map is generated.

Benefits of technology

It effectively reduces the redundant configuration of pixel and region semantic supervision, ensures the effectiveness and accuracy of supervision contributions, and improves the accuracy and robustness of event camera depth estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160630A_ABST
    Figure CN123160630A_ABST
Patent Text Reader

Abstract

The application discloses a semantic guidance trusted distillation event camera depth estimation method and system, and belongs to the technical field of computer vision. In view of the problem that the reliability of the teacher reference is inconsistent, the fixed parameter RGB image depth teacher model and the RGB image semantic teacher model are used to generate a reference during training, the teacher depth is calibrated, and the depth value reliability is determined by leaving a test. First, the pixel semantic supervision position is selected, then the selected position is excluded from the category connected region, and the area semantics are counted and evaluated on the remaining set disturbed together. The teacher and the student compare the category composition on the same selected set. The three teacher supervisions adopt a weighted mode with a denominator lower limit, and the candidate with insufficient reliability is still counted and trained together with the independent real depth supervision to share the encoder and the corresponding branch. During operation, only monocular event camera data is used to output a depth map, and timing correction can be performed after complete basic depth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer vision technology and relates to a method and system for estimating scene depth using only monocular event camera data during the runtime phase by providing training supervision using an RGB image teacher model. Background Technology

[0002] Event cameras record the location, time, and polarity of pixel brightness changes. Event data is suitable for recording rapid changes, but it has a different information representation form than ordinary images, and the true depth available for training is usually sparse, requiring the organization of effective depth supervision.

[0003] Publication number CN119579666A relates to event camera depth estimation based on unsupervised domain adaptation; the paper "Distil-E2D: Distilling Image-to-Depth Priors for Event-Based Monocular DepthEstimation" discloses a scheme for training an event depth model using image depth references, depth calibration, and confidence weighting. Image teacher supervision and confidence weighting have already been studied.

[0004] The depth values ​​and category information provided by the teacher may have varying degrees of reliability. Using uniform weights or excluding all low-confidence pixels may result in the loss of usable region category information; applying pixel and region semantic supervision simultaneously at the same location may lead to redundant supervision configuration. Therefore, it is necessary to evaluate different reference information separately and clarify the roles of pixel and region semantic supervision. Summary of the Invention

[0005] The technical problem to be solved by this invention is to reduce the redundant configuration of pixel and region semantic supervision positions when the actual depth supervision is sparse and the teacher depth and semantic reference have different reliability. This allows the region supervision to reflect the category composition of the actual supervised position and retains the inhibitory effect on the overall contribution of teacher supervision when the sum of supervision weights is lower than the lower bound of the normalized denominator.

[0006] To address the aforementioned problems, this invention utilizes paired RGB images generated during the training phase to create depth and semantic references, organizes supervision within the event camera pixel coordinate system, and follows... Figure 1 The steps S101 to S105 shown demonstrate data preparation, teacher reference generation and evaluation, semantic supervision selection, joint training, and event depth estimation. The two RGB image teacher models maintain fixed parameters during student network training.

[0007] Step S101: Obtain training event data, paired RGB images and sparse true depth from the monocular event camera, establish temporal correlation and effective spatial correspondence, organize the supervision data into the event camera pixel coordinate system, and encode the event data into event representation.

[0008] Step S102: Input the paired RGB images into the RGB image depth teacher model and the RGB image semantic teacher model, which have been trained in a supervised manner and whose parameters are fixed during the training of the student network, respectively. Generate the teacher relative depth and class probability. Use real depth sampling points to calibrate the teacher relative depth and use real depth sampling points that have not participated in the corresponding calibration fitting to verify the depth value confidence.

[0009] Step S103: Calculate pixel semantic credibility based on the concentration of teacher category probabilities at the same pixel location and consistency under image perturbation; select locations that meet pixel supervision conditions; and use the class-wise average of teacher category probabilities at this location under each valid image perturbation as the pixel semantic supervision target; divide regions according to the connectivity of predicted teacher categories; exclude selected pixel semantic supervision locations from each region to obtain a set of remaining locations; then determine the set of locations where the selected image perturbations are commonly valid within the set of remaining locations; on this set of commonly valid locations, spatially average the teacher category probabilities for each selected image perturbation to obtain the regional category distribution for each perturbation; then average the regional category distributions class-wise to obtain the regional average category probability; calculate the regional semantic credibility of this set of commonly valid locations based on the concentration of the regional average category probability, the difference between the regional category distribution of each perturbation and the regional average category probability, and the proportion of the number of commonly valid locations to the number of remaining locations; select a set that meets the regional supervision conditions; use the regional average category probability as the regional semantic supervision target; and ensure that the locations of pixel semantic supervision and regional semantic supervision do not overlap.

[0010] Step S104: Input the event representation into the student network, which includes a shared encoder, a depth decoder, and a training semantic prediction branch, and output the predicted depth and training class probabilities. Teacher depth supervision compares the student's predicted depth with the calibrated teacher depth; pixel semantic supervision compares the student's class probability at a selected location with the teacher's average class probability at that location; region semantic supervision averages the student's class probability across the same selected set of common valid locations used to form the teacher's region supervision objective, and compares it with the teacher's average region class probability. These three teacher supervisions are weighted according to their corresponding credibility and combined with the independently computed valid true depth supervision to form a joint loss. Depth supervision updates the shared encoder and depth decoder, and semantic supervision updates the shared encoder and the training semantic prediction branch.

[0011] Step S105: After training is complete, remove the semantic prediction branch used for training, encode the event data to be estimated into event representations, and output the scene depth map through the trained student network. During the runtime phase, only the data from this monocular event camera is used as the external perception input; no RGB image teacher model or real depth input is required.

[0012] Teacher supervision for three aspects—deep, pixel semantics, and region semantics—determines candidate options and their quantities based on corresponding data and spatial validity conditions. Regions with a non-empty common valid location set and at least two valid outputs are identified as valid region candidates. Valid candidates assigned zero weight after credibility screening are still included in the quantity count; the number of candidate options is not replaced by the final selected option count. Each teacher supervision measure uses the sum of weighted losses of candidate options as the numerator and the greater of the sum of the supervision weights for that measure and the number of candidate options multiplied by a preset positive coefficient as the denominator. When there are no candidate options or the sum of the weights for that measure is zero, the corresponding weighted teacher supervision loss is zero. True depth supervision independently uses valid sampling points and does not filter these sampling points based on semantic credibility.

[0013] In an optional implementation, temporal correction occurs after the full base depth output. The previous loop state is aligned using cross-window position matching of current and historical encoded features. Historical states are introduced based on their reliability and validity. The loop state is updated via a convolutional gated recurrent unit. Then, the amplitude limiting correction and depth correction weights are predicted separately to perform a weighted correction on the base depth and limit the output range. When this branch is not enabled, the base depth is output directly. All historical data required for operation comes from the same monocular event camera.

[0014] The present invention also provides a corresponding event camera depth estimation system, including a training processing unit and a depth estimation unit. The training processing unit includes a processor and a memory, performs the above-described training phase processing, and saves the trained student network parameters; the depth estimation unit includes a monocular event camera, a processor, and a memory, and performs event depth estimation according to the saved event representation configuration and student network parameters.

[0015] In the implementation of the grouped leave-out test, groups are formed according to the original measurement source. The same measurement and its projected copy are grouped together. The depth of the current fold test and its derived records do not participate in the current fold scale processing, spatial correspondence, effective region determination, or fitting. Thus, the test is performed at a valid corresponding location independent of the current fold test depth, and the resulting error, distance, and coverage evaluation are used to determine the weight of teacher depth supervision. For the same event pixel, if no valid results are found in any fold, the confidence level of its depth value is set to zero, ensuring that locations lacking valid test evidence do not bear the responsibility of teacher depth supervision.

[0016] Pixel semantic supervision selects the locations to be excluded from connected regions of each category. Region category statistics and credibility evaluation use the set of common valid locations of the excluded perturbations as the object. For each selected perturbation, the region category distribution is statistically analyzed on this set, and then the region category distribution of each perturbation is averaged class-wise to form the region semantic supervision target. Teacher target generation and student region category probability statistics use the same location set, allowing comparison of the category composition of corresponding locations and avoiding the substitution of the evaluation of the remaining locations with the region statistics before exclusion. The locations of pixel semantic supervision and region semantic supervision do not overlap; region supervision is only used when the corresponding validity and credibility conditions are met. Both types of semantic losses participate in the learning of features used for depth prediction through a shared encoder, while effective true depth sampling points still provide depth supervision according to independent rules.

[0017] For any teacher supervision, when the candidate set and the loss of each candidate are given, and the sum of the supervision weights is lower than the product of a preset lower bound coefficient and the number of candidates, the normalization denominator is determined by this product. Within this interval, each supervision weight is reduced proportionally, and the corresponding weighted teacher supervision loss is reduced proportionally accordingly. Candidates that have already met the validity criteria are not removed from the count due to credibility screening, and therefore the lower bound of the denominator will not decrease synchronously simply because the screening is set to zero. When the sum of supervision weights is not lower than the product, normalization is performed according to the sum of supervision weights; when there are no candidates or the sum of supervision weights is zero, the rule of setting the corresponding teacher supervision loss to zero is executed. True depth supervision is still calculated according to independent rules. Attached Figure Description

[0018] Figure 1 The overall flowchart is as follows: S101 represents data preparation and spatial correspondence; S102 represents teacher reference generation, depth calibration, and depth numerical reliability evaluation; S103 represents pixel semantic supervision selection and remaining region semantic supervision selection; S104 represents student network joint training; and S105 represents event depth estimation.

[0019] Figure 2 For teacher reference and credibility evaluation graphs, 201 represents deep teacher prediction, 202 represents deep calibration and hold-out test, 203 represents semantic teacher prediction, and 204 represents pixel semantic credibility calculation.

[0020] Figure 3 To supervise the selection of training graphs for joint training with students online, among which, Figure 3 (a) represents the supervised generation part. 301 indicates pixel semantic supervision selection, 302 indicates the formation of category connected regions, exclusion of selected positions, and determination of common valid sets, and 303 indicates region statistics, credibility evaluation, and region semantic supervision selection. The gray grid cells in 302 indicate the positions contained in the corresponding sets. The four grids use the same coordinates and only represent the set relationships. Figure 3(b) For the student training section, receiving Figure 3 (a) Output pixel-supervised data and region-supervised data. The student network uses event representations as input and outputs predicted depth and class probabilities. Student region class probabilities are statistically analyzed on the same selected common valid set that forms the teacher region targets. 304 represents the sum of the three teacher-supervised losses and the independent true depth-supervised loss, along with the student parameter updates. The three teacher supervisions use their respective candidate counts, supervision weights, and normalized denominator lower bounds. Solid lines represent data transfer, and dashed lines represent parameter updates derived from the joint loss. Figure 3 (a) Figure 3 (b) indicates the transfer of the same data through the same supervised data interface.

[0021] Figure 4 This is an optional temporal correction graph. 401 Generates the complete base depth and current encoded features; 402 Establishes a cross-window position correspondence based on the current and historical encoded features, samples the previous loop state, and obtains the corresponding reliability and effective mask; 403 Combines the current encoded features and the processing result of 402, calculates the weights introduced by historical information, and weights the mapped previous loop state; 404 Updates the current loop state with the logarithmic representation of the base depth and the weighted state, and predicts the amplitude limiting correction amount and depth correction weights; 405 Superimposes the weighted correction amount onto the base depth and limits the output range. The base depth is logarithmically taken before input 404 and adjusted to the loop state grid, while another path directly inputs 405. The current encoded features and the current loop state are saved separately as the historical encoded features and the previous loop state for the next window. The current encoded features and the current loop state in the relationship area saved at the bottom of the graph come from 401 and 404 respectively, indicating the cross-window saving of the above data.

[0022] Figure 5 Examples of sample and existing model outputs. Figure 5 (a) is a paired RGB image displayed in grayscale. Figure 5 (b) represents the teacher's original relative inverse depth. Figure 5 (c) is the teacher category label encoded in grayscale. Figure 5 (d) represents the event distribution. Figure 5 (e) represents the sparse true depth. Figure 5 (f) represents the prediction depth of the existing student model. Detailed Implementation

[0023] The following describes one implementation method with reference to the accompanying drawings. Events are encoded into a three-channel representation according to a fixed time window: two channels record whether positive and negative polarity events occur, respectively; the third channel records the time difference between the most recent event and the window reference time, and normalizes it according to the window duration; positions with no events are set to zero. One configuration uses a 50-millisecond window; the same encoding and correction grid is maintained for training and runtime.

[0024] Paired RGB images and event windows are temporally correlated based on clock offsets. A 3D projection is performed according to camera intrinsic and extrinsic parameters and reference scene geometry, organizing the teacher reference into the event camera coordinate system. The reference geometry can come from a scale reference established from independent training data or local fold calibration sampling points; pseudo-depth, without scale processing, cannot be directly used for metric projection. Only locations with positive depth, not out of bounds, visible, and temporally correlated are used; in case of multi-point projection conflicts, the nearest visible surface is retained. Images from different cameras of the same size do not necessarily indicate direct pixel correspondence.

[0025] Two teacher models are loaded with parameters obtained from supervised training and kept fixed during student training. One configuration uses the Depth Anything V2 image depth model and the SegFormer semantic model. If the depth teacher outputs relative inverse depth, it is first normalized to the difference between the 99th and 1st percentiles of the effective output, then the minimum normalized value is subtracted, and 0.01 is added. The reciprocal is then taken; a larger value indicates a more distant teacher relative depth. D T When the percentile difference is zero or the output is invalid, the corresponding teacher in-depth supervision will be turned off.

[0026] The semantic teacher outputs class probabilities using a normalized exponential function softmax. At least two slight perturbations, such as brightness changes or horizontal flips, are applied to the same RGB image. After spatial transformation, the output is first restored to its original coordinates, and then sampled according to the effective spatial correspondence. The semantic prediction branch used for training the semantic teacher model and the student network employs the same... K Each category and its order K >1; Renormalize after probability sampling. Let the th... j Valid output is P j ( p ), its category-wise average is , p Represents the event pixel.

[0027] like Figure 2 As shown in Figures 201 and 202, a positive slope affine relation is fitted to the training sampling points that are effectively paired with the teacher's relative depth and the true depth, and the teacher's relative depth is calibrated to metric depth in the logarithmic domain: (1)

[0028] in, D c To calibrate the depth of teachers, a and b These are the slope and offset of the logarithmic depth domain affine calibration relation, respectively. a>0. The fitting objective is the sum of Huber losses equal to the difference between the calibrated logarithmic depth and the true logarithmic depth. The slope and offset are fitted when there are at least two distinct teacher depth values; the slope is fixed at 1 and the offset is fitted when there is only one numerical level; teacher depth supervision is turned off for that sample when there is no valid fitting basis.

[0029] Training sampling points are divided into two non-overlapping groups based on their original measurement source, with the same original measurement and its projected copy grouped into the same group. A process using one group for calibration fitting and the other for validation is termed a first-fold calibration test. The uses of the two groups are then interchanged for a second-fold calibration test. In each fold calibration test, the depth used for validation and its derived records cannot be used for scale processing, spatial correspondence, effective region determination, or calibration fitting of that fold; validation residuals are calculated only at effective spatial correspondence locations independent of the fold's validation depth. This hold-out process uses training sampling points, not the final test set; its output is pixel-wise confidence for teacher depth-supervised weighting.

[0030] For each fold calibration test, at a spatially independent and valid location with test depth, calculate the absolute residual between the calibrated logarithmic depth and the true logarithmic depth. For the target pixel... p The effective test residuals are obtained by weighting the inverse of the pixel distance plus a positive small amount. e ( p ), and calculate the distance to the nearest valid test point. d ( p ).set up n To effectively verify the number of points, c 0 represents the proportion of the grid containing test points to the effective area grid, calculated using the depth coverage coefficient. c d = c 0 n / ( n + κ ),in κ If the value is >0, the grid can be 16×16 pixels; the reliability of the depth value is calculated using the following formula: (2)

[0031] in, τ e and τ d These are positive scaling parameters, corresponding to logarithmic error and pixel distance, respectively. After calculation in the two-fold calibration test, the reliability of the valid depth values ​​obtained for the same event pixel in each fold calibration test is averaged. Calibration test results without valid test points, fitting failures, or without independent valid correspondences are not included in the averaging; if all calibration test results are invalid, then... q dSet to zero. The final teacher objective can be refitted using all training sampling points, but the supervision weights are still taken from the evaluation results.

[0032] like Figure 2 As shown in Figures 203 and 204, pixel semantic credibility simultaneously evaluates the concentration of class probabilities and the consistency of perturbations. For a set of probability vectors with consistent class order... P 1, … , P J ,definition: (3)

[0033] in, For the above J Class-wise average of probability vectors J≥ 2, H ( P ) represents the category distribution entropy, i.e., the entropy of each component. P k ln P k The negative value of the sum; D KL ( P‖Q ) represents the KL divergence, i.e., the divergence of each component. P k ln( P k / Q k The sum of ) . Before performing KL calculation, add the same positive small quantity and renormalize; treat the zero probability term in entropy as zero. c In this formula, k represents the effective coverage ratio between zero and one. The two inputs to the KL divergence are probability vectors with consistent class order, and the subscript k of the probability component indicates the class number.

[0034] Take at pixel c =1, substituting the teacher category probability of the same pixel position under each effective perturbation into equation (3) yields the pixel semantic credibility. q p ( p ).like Figure 3 As shown in 301, select q p ( p ) ≥t p Positions form pixel supervision set S p The pixel semantic supervision target is the class-wise average of the probabilities of each effective perturbation teacher category at that position; positions with less than two effective outputs are not selected.

[0035] Connect adjacent and identical pixels into regions based on the category label with the highest probability among the teachers' average category probabilities.R r Disconnected positions of the same type are not merged. For example... Figure 3 As shown in 302, pixel supervision sets are excluded from each formed region. S p To obtain the set of remaining positions U r Then take the selected perturbation in U r The above common valid positions form a set I r This process preserves the original category of connected regions, while the exclusion operation alters the set of locations participating in the region statistics.

[0036] For the same region, the same set of common valid locations and the statistical region category probabilities are determined using the same set of selected image perturbations. Within each selected perturbation, the same... I r The spatial average of the teacher category probabilities is used to obtain the regional category distribution of the disturbance; then, the regional category distributions of each disturbance are averaged sequentially according to the same category to obtain the regional average category probability. Substituting the regional category distributions of each disturbance into equation (3): the normalized entropy is applied to the regional average category probability, the disturbance difference is the average of the KL divergence of each disturbance regional category distribution relative to the average distribution, and the coverage ratio is taken as... c =| I r | / | U r |, to obtain the semantic credibility of the region q r ( r ).like Figure 3 As shown in 303, only q r ( r ) ≥t r When selecting this region for supervision, the objective is the average class probability of the aforementioned region. Regional evaluation is based on the actual common valid set after excluding selected locations, and does not use the regional evaluation results before exclusion, nor is it based on the premise of calculating the regional credibility before exclusion; after exclusion, the category connectivity region division is not re-executed. If the remaining location set or the common valid location set is empty, or if there are less than two valid perturbations, the region will not be selected for supervision.

[0037] Supervision threshold can be taken t p =0.8、 t r=0.7. Region supervision describes the average class composition of the remaining locations, without requiring all locations within the region to have the same depth, nor implying that all low-confidence pixels can be considered reliable regions. For the selected region, the student class probability is spatially averaged over the same common set of valid locations forming the teacher region target, and then compared with the teacher region target; this constraint does not specify the class of each pixel in the set individually. Pixel and region semantic supervision are weighted separately, and the pixel set of the selected region is compared with... S p They do not overlap.

[0038] The student network consists of a shared encoder, a deep decoder, and a semantic prediction branch for training. The encoder receives event representations, and the deep decoder outputs the complete base depth. D base The semantic branch outputs class probabilities based on shared encoded features through convolution and softmax. P s One configuration employs a visual encoder and a multi-scale depth decoder, with semantic branches using two convolutional layers upsampled to a depth grid; the base depth is constrained to a positive value.

[0039] Teacher-led deep supervision, pixel-based semantic supervision, and region-based semantic supervision each use weighted operators with lower bounds in the denominator: (4)

[0040] in, For the loss of candidates, w i Supervisory weights ranging from zero to one N c The number of candidate options is determined based on the relevant data and available space. η >0 is the preset lower bound coefficient. Teacher depth supervision counts effective depth pixels, pixel semantic supervision counts effective semantic pixels, and region semantic supervision identifies regions with a non-empty common effective location set and at least two effective outputs as effective region candidates, and counts them as effective region candidates. Effective region candidates are counted by region, not by the number of pixels in the common effective set or the number of regions that pass the region supervision threshold. After the candidate validity is determined, candidates assigned zero weight due to insufficient confidence are still counted. N c Locations or areas that do not meet the corresponding data and spatial validity conditions are not considered candidates. The three teacher supervision methods use their own candidate numbers and weights, and the three candidate units are not mixed; when a certain method has no candidates or its total weight is zero, the corresponding weighted teacher supervision loss is set to zero, and the true depth supervision is calculated according to its independent rules.

[0041] remember D s For supervised students in depth,D g For true depth, G This is the set of effective true depth sampling points. Pixel semantic weights. w p exist S p Internal extraction q p The remaining positions are zero; region weight w r Selected area q r The remaining candidate regions are zero. The four losses are: (5)

[0042] in, ρ ( x ) is Huber's loss: when | x | ≤ Take at 1 o'clock x 2 / 2, otherwise take | x |-1 / 2. Equation (5) First row calculates the average Huber loss for the logarithmic difference between the student and the true depth at the effective true depth sampling points; second row calculates the weighted Huber loss for the logarithmic difference between the student and the calibrated teacher depths; third row compares the average class probability of the teacher and the class probability of the student at the selected pixel locations; fourth row compares the average class probability of the teacher and the student in the region, where In the same selected set of common effective locations used to form the teacher's regional supervision objectives I r The average student category probability is obtained. The KL divergence of the two semantic losses is calculated in the order of teacher first, then student. The second to fourth rows apply Equation (4) to the effective depth pixels, effective semantic pixels, and effective region candidates, respectively. G When the value is empty, the true depth supervision loss is zero, and valid true depth sampling points are not filtered out based on semantic credibility.

[0043] like Figure 3 As shown in 304, the joint loss is: (6)

[0044] in, λ d , λ p , λ r For positive coefficients, the example values ​​are 0.5, 0.1, and 0.1 respectively. ηSet the value to 0.01. The true depth, teacher objective, credibility weights, and position selection remain fixed in this student parameter update; the depth loss updates the shared encoder and depth decoder, and the semantic loss updates the shared encoder and semantic branch. After training, the semantic branch used for training is removed, and only event representations are read during runtime.

[0045] like Figure 4 As shown, step 401 first generates the complete base depth and current encoded features; step 402 performs local neighborhood similarity matching using the current and historical encoded features, and reads the previous loop state according to the matching position, using bilinear sampling for non-integer positions. The current and historical encoded features, corresponding effective masks, and loop states used for matching all use the same spatial grid; if the grids are inconsistent, they are first adjusted to the loop state grid. The round-trip error is obtained through reverse matching, corresponding to the reliability. r c Take the exponential value of the negative round-trip error divided by the positive scale; when there are no valid candidates, out-of-bounds errors, or sequence switching, the corresponding valid mask is used. m It is zero.

[0046] 403 inputs the current encoded features, corresponding reliability, and the aligned previous loop state into the convolutional layer to obtain... u Historical information is used to introduce weights; the loop state is updated through a convolutional gated recurrent unit. (7)

[0047] in, σ For the sigmoid function, ⊙ For element-wise multiplication, A t This indicates a historical state sampling operation determined by the matching location. h t-1 and h t The previous and current loop states, t This is the event window sequence number. The logarithmic representation of the base depth is adjusted to the cyclic state grid and then input into the cyclic cell; the element-wise multiplication weights use the same spatial dimensions as the state. Historical information is incorporated into the weights. g h It controls external historical inputs but does not replace the update and reset gates within the loop unit.

[0048] Historical information is weighted and applied to the mapped previous loop state, controlling the historical input for loop state updates; depth correction weights are applied to the amplitude limiting correction, controlling the correction superimposed on the full base depth. These two weights are located at the input end of the loop state update and the correction end of the depth output, respectively. 404 According to h t Predict the unlimited correction value respectively v and depth correction weightg d ,in g d The amplitude is limited to zero to one by a sigmoid function; the unlimited correction value and the depth correction weight are restored to the basic depth grid by bilinear interpolation, forming the amplitude correction value, which is then weighted by 405 and the output range is limited. (8)

[0049] Where Δ is the amplitude limiting correction amount. r max >0 represents the upper limit of the correction range in meters. v The output is a dimensionless prediction value, and tanh is the hyperbolic tangent function; clip restricts the output to positive numbers. D min and larger D max Between. Example values ​​are available. r max =2 meters D min =0.1 meters D max =100 meters. Outputs the base depth directly when the entire timing branch is closed; it can still generate corrections for the current input even when only history imports are disabled.

[0050] When this branch is enabled, equation (5) D s Take the final depth D out Take when not in use D base The continuous event windows are trained sequentially, and the parameters of the student network and its temporal branches are updated with a joint loss consisting of the four losses listed in Equation (6). Gradients are truncated when the state is passed across windows. Each window saves the current encoded features and loop state, and is reset when the sequence starts, switches, or the time is interrupted. The historical data required for the operation comes only from the same event camera.

[0051] The system includes a training processing unit and a depth estimation unit. The training processing unit includes a processor and memory. The processor executes all processes from S101 to S104, including pixel semantic target generation, statistical evaluation of the common effective set after excluding selected locations, comparison of teacher and student regions within the same set, weighting of the denominator lower bound while retaining zero-weight candidate counts, and independent real depth supervision. It also saves teacher parameters, training samples, and trained student parameters. After training, the semantic prediction branch used for training is removed. The depth estimation unit includes a monocular event camera, a processor, and memory. During the runtime phase, it executes S105 according to the saved event representation configuration and student network parameters, outputting a scene depth map through the trained student network, using only data from the monocular event camera as external perception input. When temporal correction is used, branch parameters, historical encoded features, and loop states are also saved.

[0052] Figure 5 Used to illustrate the representation of samples and existing outputs. Figure 5 (a) Figure 5 (b) Figure 5 (c) Preserve the camera's field of view for RGB images. Figure 5 (d) Figure 5 (e) Figure 5 (f) Preserve the cropping field of view of the event camera. Each sub-image uses a display frame of the same size and maintains the original aspect ratio. The light gray space is only for layout and does not indicate that the pixels of different cameras have corresponded; the aforementioned spatial correspondence processing still needs to be performed during training. The grayscale conversion of RGB images is only used for the attached image display and does not change the RGB image input during training.

[0053] Figure 5 (b) is the teacher's original relative inverse depth without metric calibration. The larger the value, the closer the teacher is. When displayed, the relative inverse depth from 0 to 600 is linearly reversed to grayscale from light to dark. Figure 5 (c) Categories are distinguished by discrete gray levels, from dark to light, corresponding to roads, sidewalks, buildings, walls, fences, poles, vegetation, terrain, sky and cars. The gray level does not indicate depth or credibility. Figure 5 (d) is a cumulative event graph for 50 milliseconds. White represents no events, and darker gray and black represent more events. It does not distinguish polarity and does not replace the three-channel event representation.

[0054] Figure 5 (e) Invalid depth locations are marked in white. Figure 5 (e) Figure 5 (f) All use linear grayscale display from 0 to 80 meters. If the distance exceeds 80 meters, it is processed according to the upper limit of the display. This display range does not limit the output range of formula (8). Figure 5 (b) Figure 5 (e) Figure 5 (f) The effective depth is represented by darker colors for closer objects and lighter colors for farther objects. Figure 5 (b) is a relative quantity. Figure 5 (e) Figure 5 (f) represents the metric depth, and its grayscale values ​​cannot be directly compared. The teacher and student images are both derived from the actual output of existing models. Figure 5 Used to display the data representation of samples and existing model outputs.

Claims

1. A semantically guided reliable distillation method for event camera depth estimation, characterized in that, Includes the following steps: S101: Acquire training event data, paired RGB images and sparse true depth from the monocular event camera, establish temporal correlation and effective spatial correspondence, organize the supervision data into the event camera pixel coordinate system, and encode the event data into event representations; S102, input the paired RGB images into the RGB image depth teacher model and the RGB image semantic teacher model, which are trained in a supervised manner and whose parameters are fixed during the training of the student network, respectively, to generate the teacher relative depth and category probability; calibrate the teacher relative depth with real depth sampling points, and verify and determine the reliability of the depth values ​​with sampling points that did not participate in the corresponding fitting. S103, determine pixel semantic credibility based on the concentration of teacher category probabilities and image perturbation consistency, select pixel semantic supervision positions, and form pixel semantic supervision targets based on the teacher category probabilities at these positions; divide regions according to the connectivity of predicted teacher categories, exclude selected positions, and determine the set of positions where the selected perturbations are commonly effective from the remaining positions; calculate the average teacher category probability on this set to form regional semantic supervision targets, evaluate regional semantic credibility, and select regional supervision. S104: The event representation is input into a student network with a shared encoder, a depth decoder, and a semantic prediction branch for training, and the predicted depth and class probability are output. The student's predicted depth and selected pixel class probability are supervised by the calibration teacher depth and pixel semantic supervision targets, respectively, and the average class probability of the students on the same set of selected common valid locations that form the target is supervised by the region semantic supervision target. The teacher depth supervision is weighted according to the depth numerical confidence, the pixel semantic supervision is weighted according to the pixel semantic confidence, and the region semantic supervision is weighted according to the region semantic confidence. Each of the three teacher supervisions uses the weighted sum of the candidate loss as the numerator and the larger of the sum of weights and the number of candidate options multiplied by a preset positive coefficient as the denominator. The candidate options are determined according to the data and spatial validity conditions. Candidate options with zero weight due to insufficient confidence are still counted. The student network is jointly trained with the three teacher supervision losses and the independent real depth supervision loss. S105 After training is completed, the semantic prediction branch used for training is removed, and only the data from the monocular event camera is used as the external perception input. The scene depth map is output by the student network after event representation encoding and training.

2. The method according to claim 1, characterized in that, Using training sampling points that are effectively paired with the teacher's relative depth and the true depth, fit a positive slope affine calibration relationship in the logarithmic depth domain; divide the true depth sampling points into two non-overlapping groups according to the original measurement source, with the same original measurement and its projected copy belonging to the same group; use one group for calibration fitting and the other group for verification as a first-fold calibration test, and exchange the uses of the two groups to perform a second-fold calibration test. In each fold calibration test, the depth used for the test and its derived records do not participate in the fold's scaling, spatial correspondence, effective region determination, or calibration fitting. The test residuals are only calculated at the effective spatial correspondence locations that do not depend on the fold's test depth.

3. The method according to claim 2, characterized in that, For each calibration test, at a spatially independent and valid location with test depth, calculate the absolute residual between the calibration logarithmic depth and the true logarithmic depth; for the target event pixel, calculate the weighted average of the valid test residuals by adding a positive decimal to the pixel distance to each valid test point, obtain the test error, and calculate the distance to the nearest valid test point. The depth coverage coefficient is determined based on the number of effective inspection points and the proportion of grids containing inspection points to the effective area grids. The inspection error and the distance are divided by the corresponding positive scale parameters and then added together. The negative value of the sum is taken as the exponent of the natural exponential function. The resulting function value is multiplied by the depth coverage coefficient to obtain the depth value confidence of the target event pixel in the fold calibration inspection. The confidence level of the effective depth values ​​obtained from each fold calibration test for the same event pixel is averaged. Calibration test results with no effective test points, calibration fitting failure, or no independent effective space are not included in the averaging. When all calibration test results are invalid, the confidence level of the depth value at that position is set to zero.

4. The method according to claim 1, characterized in that, The pixel semantic credibility is determined based on the normalized entropy of the teacher class probability under perturbation of each valid image at the same pixel location, and the average KL divergence of the teacher class probability under perturbation of each valid image at that pixel location relative to the perturbation result. When the pixel semantic credibility reaches the pixel supervision threshold, the corresponding pixel is selected as the pixel semantic supervision location, and the perturbation of the teacher class probability under perturbation of each valid image at that location is used as the pixel semantic supervision target. Locations with less than two valid perturbation outputs are not selected. On the set of common valid locations, the teacher category probability of each selected image perturbation is spatially averaged to obtain the regional category distribution of each perturbation. Then, the regional category distribution of each perturbation is averaged class by class to obtain the regional average category probability, which is used as the target of the regional semantic supervision. The regional semantic credibility is determined based on the normalized entropy of the regional average category probability, the average KL divergence of the regional category distribution of each perturbation relative to the regional average category probability, and the common valid ratio. The common valid ratio is the ratio of the number of pixels in the set of common valid locations to the number of pixels in the set of locations remaining after excluding the selected pixel semantic supervision locations. When the regional semantic credibility reaches the regional supervision threshold, the set of common valid locations is selected. If the threshold is not reached, the set of common valid locations is empty, or there are less than two valid perturbations, regional semantic supervision is not applied to the set of common valid locations. When calculating the KL divergence, the category distribution of the corresponding perturbation is used as the first input and the corresponding average category probability distribution is used as the second input.

5. The method according to claim 4, characterized in that, Teacher depth supervision uses effective depth pixels as candidate units, Huber loss (logarithmic difference between student predicted depth and calibrated teacher depth) as candidate loss, and depth numerical confidence as supervision weight. Pixel semantic supervision uses effective semantic pixels as candidate units and the KL divergence of the pixel semantic supervision target relative to the probability of the corresponding student category as the candidate loss. The weight of the selected pixel semantic supervision position is the pixel semantic credibility, and the weight of the remaining candidate pixels is zero. Regions whose common valid location set is not empty and have at least two valid outputs are identified as valid region candidates. Regional semantic supervision uses the effective region candidates as candidate units and the KL divergence of the regional semantic supervision target relative to the student region category probability as the candidate loss. The student region category probability is obtained by averaging the student category probability on the same selected common effective location set used to form the regional semantic supervision target. The weight of the selected region is the regional semantic credibility, and the weight of the remaining candidate regions is zero. The KL divergence in the candidate loss of both pixel semantic supervision and regional semantic supervision uses the teacher category probability as the first input and the student category probability as the second input. The teacher deep supervision, the pixel semantic supervision, and the region semantic supervision are calculated according to their respective candidate options and supervision weights, and the corresponding weighted teacher supervision loss is zero when there are no candidate options or the sum of the corresponding weights is zero. The real depth supervision independently uses valid real depth sampling points without filtering out the sampling points based on semantic credibility. When the set of valid real depth sampling points is not empty, the average of the Huber loss, which is the logarithmic difference between the student's predicted depth and the real depth, is used as the real depth supervision loss on the sampling points. When the set is empty, the real depth supervision loss is set to zero.

6. The method according to claim 5, characterized in that, The shared encoder receives event representations and extracts encoded features. The deep decoder outputs a positive full base depth based on the encoded features. The semantic prediction branch for training outputs class probabilities based on the encoded features through convolution and a normalized exponential function softmax. The semantic prediction branch for training the RGB image semantic teacher model and the student network uses the same set of classes and class order. The joint loss is obtained by adding the true depth supervision loss to the teacher depth supervision loss, pixel semantic supervision loss, and region semantic supervision loss, which are multiplied by preset positive coefficients respectively. The true depth, teacher target, confidence weight, and location selection remain fixed in this student network parameter update. The true depth supervision loss and teacher depth supervision loss update the shared encoder and depth decoder, and the pixel semantic supervision loss and region semantic supervision loss update the shared encoder and training semantic prediction branch.

7. The method according to claim 1, characterized in that, After the student network outputs the complete base depth, temporal correction is performed. The previous loop state is mapped by cross-window position matching of the current encoded features and historical encoded features. The introduction of historical states is controlled according to the corresponding reliability and effectiveness. The previous loop state is updated by a convolutional gated recurrent unit with the logarithmic representation of the base depth and the mapping and weighting. The amplitude correction amount and depth correction weight are predicted respectively. The weighted correction amount is superimposed on the base depth and the output range is limited. The historical data required for temporal correction all come from the same monocular event camera.

8. A semantically guided reliable distillation event camera depth estimation system, characterized in that, Includes training processing equipment and depth estimation equipment; The training processing device includes a processor and a memory. The processor of the training processing device is used to perform all the processing defined in steps S101 to S104 of the semantically guided trusted distillation event camera depth estimation method according to claim 1. The depth estimation device includes a monocular event camera, a processor, and a memory. The memory stores the trained student network parameters and event representation configuration. The trained student network has had its training semantic prediction branch removed. The processor encodes the data from the monocular event camera into event representations and outputs a scene depth map through the trained student network. During the operation phase, only the data from the monocular event camera is used as the external perception input.

Citation Information

Patent Citations

  • Event camera depth estimation method based on unsupervised domain adaptation

    CN119579666A