WorksPhysics and Astronomy
Kepler-404: A near-resonant pair of sub-Neptunes. Reinterpreting a false-positive signal with the novel detection method RIVERS.radon
Abstract
According to the current understanding of planet formation and evolution, (near)-resonant systems should be a common occurrence in nature. However, pairs of planets with period ratios close to commensurability are rarely observed. In this paper, we discuss how observational bias caused by transit timing variations (TTVs) can affect the detection of low signal-to-noise ratio (S/N) planets in transit surveys, playing a role in the lack of representation of these systems. We present an alternative detection method, RIVERS.radon, which overcomes the effect of TTVs on planet detectability by not relying on an exact periodic solution for the transit signal. It leverages 2D representations of the light curve and approximates the transits with a set of local periodic solutions with the use of 2D cross-correlation. We present an application of RIVERS.radon to the near-resonant system Kepler-404, showing that the signal of the false-positive candidate KOI-2768.03 belongs to the planet Kepler-404b and that it is in a near 5:4 resonance with its companion Kepler-404c, causing TTVs of amplitudes 117.64 and 110.09 minutes, respectively. With a photodynamical fit, we retrieve a pair of similar planets, respectively of radii and and of masses and . We find that these planets exhibit typical (near)-resonant features: their densities are lower than the bulk population of exoplanets, and their orbits are nearly coplanar. Interestingly, the planets are found outside the resonance but at a significant distance from the equilibrium point of the plane of the Hamiltonian, which is consistent with post-disk instability but somewhat at odds with the observed coplanarity.
Introduction
The transit method has proven to be the most successful method for the discovery of exoplanets so far. By continuously monitoring the stellar flux over time, it is possible to detect periodic dips in the brightness of the star, symptomatic of a planet transiting across the star along the observer’s line of sight. When these dips in flux are caused by a planet, it is possible to assess the relative size of the planet to the host star. Given that planets follow Keplerian orbits, the elapsed time between two successive transit events is constant and can be measured to infer the orbital period.
When a single transit signal is too faint relative to the noise, i.e. the signal-to-noise ratio (S/N) is too low, the periodic nature of the signal can be leveraged to enhance the S/N significantly. A notable example of this approach is the Box-fitting Least Squares (BLS) algorithm [30], which improves the detection of low-S/N single transit events by folding the light curve over a grid of trial periods, epochs, and durations and identifying periodic signals by effectively stacking all transits.
However, in multi-planetary systems, the assumption of strictly Keplerian orbits no longer holds, as mutual gravitational interactions between the planets induce perturbations [2]. The magnitude of these perturbations depends on the planetary masses and the system’s configuration, and is significantly amplified for (near)-resonant systems as the perturbative effects accumulate over time [42, 11] (Lithwick et al. 2012). This leads to quasi-periodic orbits, deviating from the Keplerian periodicity. Observationally, these deviations manifest as transit timing variations (TTVs).
Standard algorithms relying on the folding of the light curves at a fixed period are fundamentally limited when applied to systems exhibiting TTVs and often introduce biases. This can result in smeared transit signals [20], leading to inaccurate determination of the planetary parameters or, in other cases, a complete non-detection of the planetary signals or mistaking the signal for a false positive [33, 36]. Kane et al. [28] discuss in their work how the under-representation of planets with small radii and large TTVs in the Kepler dataset is consistent with an observational bias. The smearing effect is expected to be strongest when the TTVs have a periodicity comparable to or smaller than the observational baseline timescale, with an amplitude similar to or above the transit duration. This effect will be particularly strong for small (near)-resonant planets in transit surveys, as the transits of these planets are too weak to be detectable individually, possibly resulting in observational incompleteness.
This is particularly problematic as resonant systems are of strong scientific interest. Theoretical models and simulations suggest that resonance chain capture is a common occurrence during the formation of planetary systems [32, 47]. Observationally, we see that there is a pile-up of planet pairs near first-order mean motion resonances (MMRs), but systems that are exactly in resonance are less common ([19]). Instabilities in chains are capable of breaking the resonance state of a system ([41, 27]) and can explain the lack of representation of these resonant systems in our current population of exoplanetary systems. However, observational effects could also play an important role.
Resonant systems are able to provide unique insights into the formation and evolution history of planetary systems, granting better constraints on current models. Detecting planets with TTVs makes it possible to identify these systems and increase their representation. Additionally, as the gravitational interactions between the planets are encoded in the TTVs, it is possible to retrieve the mass of the interacting planets in some cases. This proves to be incredibly powerful as full characterisation of the planet’s mass and radius, thus density, is possible with a single method, while it would require the combined usage of multiple techniques to allow this in normal cases. Moreover, the dynamical signature of an interacting planet on another, transiting one makes it possible to infer its presence even if the geometry of its orbit prevents it from transiting. TTVs are indeed an additional rich source of information.
To address these challenges and leverage current instruments and available data (Kepler, TESS) and to be ready for coming opportunities (e.g. PLATO), it is important to develop detection methods that relax the strict assumption of periodic transits to mitigate systematic bias arising from periodic folding when applied to resonant systems. With this aim, several methods and algorithms have been developed ([7, 33, 36]). These approaches, used alone or combined, can enhance the sensitivity to detect dynamically active planets, allow accurate characterisation of the planetary system, and permit detailed dynamical studies through the initial measurement of the TTVs.
This paper introduces river diagrams in § 2 and describes in § 3 how to exploit them with a novel method. It then presents an application to a real system, Kepler-404, in § 4. Finally, a photodynamical analysis of the system is presented and discussed in § 5.
River diagram: a change of representation
As introduced in § 1, standard methods for low-S/N transit detection rely on the assumed periodicity of the transits. These methods usually work by fitting a periodic model, or equivalently, folding the light curve on a chosen period and fitting a single transit model. This is efficient, as the model is reduced to 4 parameters for simple box-shaped transits, being the period, epoch, duration, and depth of the transit. The number of parameters increases for more sophisticated transit models, but the assumption on the periodicity of the signal remains. Under the assumption of a box-shaped transit signal, uniform scatter, and uncorrelated noise, the S/N of a single transit event is estimated with
with being the number of data points in the transit, the depth of the transit and the standard deviation of the light curve. Folding the light curve on the exact period effectively increases the number of points in transit in the phase space, increasing the S/N. For transit events present in the light curve, the new S/N can be estimated with
which holds in the case of periodic transits within the cadence precision of the observation, as each transit perfectly aligns with the others when folded on the correct period.
However, in the quasi-periodic case, Equation (2) is no longer true. Indeed, there is not a single period that can express the time between all the transits, hence transits cannot be perfectly aligned, as portrayed in the top part of Figure 1. Consequently, folding the light curve on any period will lead to a smearing effect in the phase-folded light curve, visible on the bottom part of Figure 1. The resulting “transit” is less deep and wider ([20]). If the observation time encompasses a complete period of the perturbation, the reduced S/N in that case can be approximated ([33]):

Figure 1. Stacked transit plots for the periodic case on the left and quasi-periodic case on the right. The bottom plots show the corresponding phase-folded light curves, with the binned data in red. The quasi-periodic case clearly displays the smearing effect.
where is the duration of the transit and the amplitude of the TTVs. It shows that working with phase-folded light curves in the presence of TTVs is not efficient, as the resulting smearing leads to a wrong characterisation of the signal, or renders it undetectable, and additionally erases the dynamical signature of the planet interactions that could be exploited.
The proposed change of representation exploits the fact that TTVs are small compared with the orbital period: an average period can be found and subtracted from the transit times, so that only the perturbative component remains. By representing the light curve in a 2D form, as shown in the top part of Figure 1, with a folding period close to , the transits become vertically coherent, as visible in Figure 2. The right representation is the same image as the left, except that the flux is represented in pixel intensity. This representation is known as river plots or river diagrams ([8]). If the river diagram is created with a period that is close to , each transit will be in phase and close enough from one row to another to be shown as a vertical feature in the image. Identifying these transit tracks would be equivalent to extracting the individual transit times.

Figure 2. Stacked phase of the light curves with the corresponding river diagram. The S/N in the river diagram example was increased to emphasise the transit tracks.
RIVERS.radon
RIVERS.radon is a method inspired by the general Radon transform ([45]). The original Radon transform works by integrating the image intensity along straight lines over the whole image, parametrised by an angle and offset , mapping the image into a feature space. The transform enables the extraction of straight line features in images, and is especially suitable for feature extraction in noisy images ([43]). Copeland et al. (Copeland et al. [10]) discuss how features that are significantly shorter than the image dimension, or span the entire image but that have some curvature, can be hard to detect with this method. Additionally, the global projection erases local information such as the feature edges along the projection line. Finally, images with high levels of noise will amplify these problems. Thus, they adapted the Radon transform to be able to detect local features in images, by limiting the projection length, and adding a new parameter in the transform to preserve the positional information of the feature in the image.
This work presents an implementation of the localised Radon transform to work on river diagrams with the aim of identifying transit tracks and extracting individual transit times. Transit tracks span the entire river diagram on the vertical axis when the image is created on a period close to that of the planet. However, the TTVs translate to curvature in the transit tracks, hence the need for a localised approach, as the features are indeed not straight lines, but can still be well approximated locally with a set of shorter line segments. In other words, we assume that we can model successive transit times with a local periodic solution. The RIVERS.radon method relies on a bank of short oriented line kernels of fixed length and width. The local projection
of the image intensity along a line segment of a given orientation is measured with cross-correlation of the kernels with the river diagrams. A high correlation response indicates that a line of specific orientation at a given location of the river diagrams matches a feature, potentially being a transit track. A short summary of the method can be found in Algorithm 1, and a more detailed explanation in the following subsections.
The algorithm is publicly available1.
Algorithm 1 RIVERS.radon transit-track extraction
Require: river diagram , created from detrended, normalised light curve at folding period ; kernel length and width; number of orientations and angular range ; dilation window ; erosion window (with ); target signal-to-noise S/N.
Build oriented binary line kernels .
Pad with helical (phase-wrapped) boundary conditions (Eq. (6)).
for each orientation do
Compute local correlation and average .
Estimate local depth .
Threshold to binary map using from S/N (Eq. (14)).
Apply morphological cleaning: dilation then erosion , using helical padding on each input.
end for
Reconstruct confidence map .
Convert to a confidence time series and extract the transit-time sequence (Appendix).
Problem formulation
Let the river diagram created from a detrended and normalised light curve be represented as a 2D image , being the number of periods (rows) and the number of phase bins (columns). Each pixel corresponds to the observed flux at the period index in the phase bin index .
In this representation, for a folding period of the river diagram close enough to that of the planet, the successive transits of a planet form an approximately coherent track in the form of a sequence of pixels with lower-than-average intensity across rows. In the presence of TTVs, this track is generally not perfectly straight but remains locally well approximated by short line segments.
The objective of this method is therefore to detect the transit tracks in the image and to convert them into a sequence of estimated individual transit times.
To this end, we introduce a family of oriented binary kernels:
where each kernel corresponds to a line segment of fixed length and width and of a given orientation, as shown in Figure 3. Kernels of longer line lengths will be more efficient at retrieving signals from the ambient noise. However, they will be less sensitive to the local variations of the transit tracks caused by the TTVs. On the other hand, very short lines will precisely capture variations of the features, but are also more sensitive to false positives caused by local variations in the river diagram. The kernel width should be adapted to the ratio between the binning used to create the river diagram and the expected transit duration. If a transit track is expected to span multiple pixels of the river diagrams, the width of the kernel can be increased to enhance the cross-correlation response. Otherwise, the width should stay minimal so as not to mix the transit pixels with the noise, reducing the response. The number of orientations should be sufficient to uniformly span the chosen angular range. Finally, the angular range should be adapted to the expected maximum orientation of the transit tracks, which depends firstly on the precision of the folding period of the river diagram relative to the actual period of the planet, but also on the expected TTV amplitude of the transit tracks.

Figure 3. Example of a set of kernels used by RIVERS.radon.
Let
be the number of active elements in the kernel . A set of kernels is created to have an ensemble of lines going from plus or minus a chosen angle relative to the vertical axis. The kernels are constructed to be vertically symmetric. The width of the line can be changed but is also required to be symmetrical horizontally. Hence, kernels always have odd dimensions. This is an important condition as multiple operations used with this method do not preserve the image dimensions. For example, the output dimensions of the cross-correlation operation are:
where is the padding of the image in each dimension, the stride of the cross-correlation kernels and the dimensions of the kernel. For , we see that and if
where denotes the floor operation. The equality above is true only if are odd. We define the padding function Pad: such that:
where
This construction induces a helical topology, ensuring the continuity of transit tracks across phase boundaries. Indeed, a signal going out of bounds on the right side of the river diagram will start again on the next row below. Conversely, a signal starting on the left side originates from the previous row above. Thus, the helical padding ensures this logic is respected and allows a feature on the edges of the image to still have a strong cross-correlation response. In contrast, the constant padding ensures the response stays minimal out of bounds of the image. In practice, padding with the continuum value will cause the estimated depth (Equation 10) to vanish in these areas. The padding function preserves the image dimension.
Local Radon transform
For each kernel , we compute a local correlation response over the padded river diagram. We define the discrete correlation operation:
Using this definition the response map is given by
where . This quantity sums the pixels of the river diagram , i.e. the flux of the light curve, that match the position of a kernel centred on the position for an orientation . To obtain the average flux, we divide by the number of active kernel elements:
Since transits correspond to dips in flux, the transit tracks translate to lower-than-average structures in the image. Thus we can estimate the local depth by taking the difference from one
assuming the river diagrams are created from normalised flux. Collecting all orientations yields a cube of estimated depths.
Thresholding
The detection scores are thresholded into binary detections:
where is a target depth. As using a target S/N is more intuitive, we can estimate from a chosen S/N. Recalling Equation (2), we can isolate the expected transit depth:
where is the standard deviation of the river diagram . The target S/N is computed for an assumed number of transiting points, given by the number of activated pixels in a kernel of a specific orientation. It can be understood as a target averaged cross-correlation response threshold, normalised by the standard deviation of the input image. Thus, smaller kernels will have a higher false-positive rate than bigger kernels since a smaller number of pixels of the image is more likely to have an averaged cross-correlation response that passes the threshold due to the noise. In contrast, bigger kernels will have a lower false-positive rate, at the cost of a reduced sensitivity to the curvature of the signals.
Morphological cleaning
The binary maps may still contain isolated activations caused by local fluctuations or imperfect alignments. To improve spatial coherence, we apply a simple morphological cleaning step independently on each orientation channel.
First, we define the dilation maps of the padded binary maps . For a chosen dilation window , each binary map is padded with and the elements of the dilation maps are defined by the operation
which returns 1 if any element in the window is non-zero, effectively connecting nearby elements of along the phase direction and compensating for small discretisation errors or local interruptions of the track.
Second, we define the erosion maps of the padded dilation maps . For a chosen erosion window , each dilation map is padded with , the elements of the erosion maps are computed as
which returns 1 only if all pixels in the horizontal window are activated, effectively keeping local regions of the binary maps that are fully activated and discarding the others. A simple example of the morphological cleaning is visible in Figure 4. The cleaning is effective as long as .

Figure 4. Example of the cleaning operation. left: initial condition. middle: after the dilation operation with . right: after the erosion operation with .
Reconstruction
The cleaned padded binary detections , where the elements are created as , are projected back into image space. This is achieved by taking the cross-correlation of each binary map with its corresponding kernel and summing across orientations
The reconstructed image can be interpreted as a confidence map: large values indicate pixels that are repeatedly supported by multiple locally consistent line detections.
From mask to transit times
To extract transit times from the confidence map, we use the corresponding time matrix of the input river diagram and convert the confidence map into a confidence time series. Following that, we extract a sequence of estimated transit times. The first transit time is extracted from the maximum confidence pixel time location. The previous and next transit times are then extracted from the maximum confidence time in adjacent intervals, given by the folding period and a chosen tolerance window to account for the potential offset caused by the TTVs. If a new transit time is found, the next interval is computed from it; otherwise, it is computed from the last transit time found, stepping forward by one period. The process ends when both the start and end of the time series are reached. See Appendix § 7 for a detailed explanation.
It is important to note that these timings are proxies, and will be used as initial conditions for the following photodynamical fits. They do not carry formal uncertainties; however, the bin size used in the river diagram can be used as an inherited uncertainty.
Application of RIVERS.radon to the Kepler-404 light curve
Overview of the system
At the time of writing, Kepler-404 hosts two confirmed transiting planets, Kepler-404b and Kepler-404c [46], and a false positive, KOI-2768.03, flagged “Not Transit-Like” by the Kepler pipeline. The stellar properties can be found in Table 2.
| Kepler-404 (KIC 9008737) | ||
| Parameter | Value | Ref |
| [mag] | 15.228 | 1 |
| [mag] | 15.479 ± 0.126 | 1 |
| [mag] | 13.908 ± 0.027 | 1 |
| [mag] | 13.527 ± 0.032 | 1 |
| [K] | 5326 ± 60 | 2 |
| [Fe/H] [dex] | −0.032 ± 0.040 | 2 |
| [] | 3 | |
| [] | 0.870 ± 0.020 | 2 |
| [] | 0.813 ± 0.031 | 2 |
| [Gyr] | 4 ± 4 | 2 |
| [cm s] | 3 | |
| [] | 1.617 ± 0.188 | 2 |
Table 2. Stellar properties of Kepler-404.
The candidates’ status and periods are visible in Table 1. It is striking how close the period of Kepler-404b, days, is to that of the false positive days. Additionally, looking at the period ratio of Kepler-404b and Kepler-404c,
| Name | Status | Period [days] |
| Kepler-404b | confirmed | |
| Kepler-404c | confirmed | |
| KOI-2768.03 | false positive |
Table 1. Planetary candidates in the Kepler-404 system.
we see the planets are close to a 5:4 first-order mean motion resonance. These characteristics hint that the false positive may be worth investigating.
Notes. Status and orbital periods from the NASA Exoplanet Archive, retrieved at the time of writing.
Preparation of the light curve
The long-cadence PDCSAP raw time series is downloaded using the lightkurve package. Copies of the light curve are created for Kepler-404b and Kepler-404c. For each light curve, we remove the signal of the other planet (including the false-positive signal of KOI-2768.03 when removing Kepler-404b) by propagating the ephemerides, calculating the transit times, and removing the time-series points within a window of 1.5 times the transit duration centred on the transit time. The processing of the light curve is done in chunks. In each quarter, we identify gaps greater than 2.5 hours, and split the quarter at these gaps into chunks, ensuring the detrending is the least affected by edge effects near the gaps. Each chunk is detrended with a spline method, with a detrending timescale of 3 times the estimated transit duration of the corresponding planet based on its period and the stellar density. In this way, trends on timescales longer than the b-spline timescale will be removed, while leaving the transits untouched. The detrending follows an iterative process to mask potential outliers beyond 4 standard deviations of the median of the light curve. All chunks are then stitched together into a single light curve. Finally, river diagrams are created for each planet using its corresponding light curve and the archive period of the planet. The river diagrams are created with a bin size of 30 min, slightly above the 29.4 min long cadence of the Kepler light curve to ensure at least one point per bin. The empty pixels in the river diagrams (caused by gaps and missing quarters) are filled with ones, ensuring a low cross-correlation response.
Figure 5 shows the river diagrams of Kepler-404b and Kepler-404c, respectively. The transit tracks for both planets are visible thanks to the sufficiently high S/Ns of the transits. TTVs are noticeable in both diagrams, as the transit tracks are not straight lines but are curved. Inspecting the diagrams shows that the false-positive detection actually belongs to the same planetary signal as Kepler-404b. Indeed, due to the TTVs, one part of the signal was fitted with a periodic solution belonging to Kepler-404b, and another slightly different period retrieved another part of the signal. Finally, the transit tracks’ variations are anti-phase, which is expected for pairs of planets in first-order resonance ((Lithwick et al. 2012)).
Applying RIVERS.radon
Following the process explained in § 3, we forward the river diagram presented in Figure 5 to the RIVERS.radon method. A minimal set of RIVERS.radon parameters was chosen to assess the presence and shape of the TTVs: a line length equal to the river diagram height, 1 pixel wide, no morphological cleaning () and , 101 orientations spanning . The output of the method already displayed TTVs for both planets. Then, the kernel line width was increased to 3 pixels, adding morphological cleaning with and to reduce the false positives, and the orientation range was set to as the TTV track curvature does not exceed this value. The line length was incrementally reduced together with the to visually constrain the transit tracks as tightly as possible without flooding the signals with false positives. The final set of parameters for both river diagrams is: line length of 25 pixels, line width of 3 pixels, , 101 orientations spanning , dilation of , erosion of . The output of the method with the final set of parameters is shown in Figure 6.
Figure 5. Kepler-404b and Kepler-404c river diagrams, in linear colour scale, respectively from top to bottom. The periods used to create the river diagram are those of the corresponding planet found in the archive, visible in Table 1, and the bin size is 30 min. The left images are the full river diagrams, showing the phase in days on the horizontal axis and the period number on the vertical axis. The middle panels show a zoom on the transit tracks, and the right panels show the same zoom with the periodic solution found for the corresponding planet in orange and the ephemeris of the false positive KOI-2768.03 in red.
Figure 6. Output of the RIVERS.radon method using the river diagrams of Kepler-404b and Kepler-404c presented in Figure 5.
The deviation from the archive solutions is visible in Figure 7.
Figure 7. Deviation of the predicted transit times from those generated from the ephemerides in the archive for Kepler-404b and Kepler-404c.
References. (1) NASA Exoplanet Archive (https://exoplanetarchive.ipac.caltech.edu); (2) Eggenberger et al. [18]; (3) Berger et al. [5].
Characterisation of the planets
Fitting process
The characterisation of the planets is done in two steps following the process described in Section 2.5 of Leleu et al. [37]. First, we fit the proxy transit times retrieved by the RIVERS.radon method to gather orbital configurations and masses of both planets as approximate initial conditions that are used in a subsequent photodynamical fit. Both processes use the samsam algorithm (see Delisle et al. [17])2 to compute the posteriors and TTVFast (Deck et al. [12]) to generate the transit times of a given orbital configuration. For the photodynamical fit, each sampled orbital configuration, including masses, is used to generate a light curve model that is fitted to the Kepler-404 raw light curve. The generated transit times from the sample configuration are used to locate the mid-transit times in the modelled light curve where the transit of each planet is injected using the batman package [31]. Short-cadence data were used when available, and a super-sampling parameter set to 29.42 min was used for the long cadences. To prevent the fit from being affected by features introduced by detrending, the light-curve model is detrended together with the raw light curve by marginalising over the linear parameters (see Leleu et al. [37] for details)3.
Robustness criterion
Characterising robust masses and eccentricities with the TTV method via photodynamical fits can, in some cases, be hampered by a mass-eccentricity degeneracy, especially for near first-order resonances [6] (Lithwick et al. 2012). These degeneracies are not straightforward to notice, and different priors can lead to seemingly good convergence of the sampling. This is a known problem that has been investigated, e.g. by Hadden & Lithwick [25]; Leleu et al. [35] and Rosenqvist et al. (in prep.). Criteria can be used to verify the robustness of the fit, i.e. the dependence of the parameter posterior distributions on the priors. Posterior distributions that stay close to one another while being generated from different priors are a good sign that the degeneracy is mitigated. In this work, we propose to compare three different priors, namely default, high eccentricity, and high mass, summarised in Table 3. The high-mass prior uses a uniform distribution to sample higher masses, while the high-eccentricity prior applies the same logic on the prior distribution of the eccentricities. The default samples are the ones that will be used for the rest of the discussion, using the eccentricity distribution introduced in Kipping [29]. Hadden & Lithwick [25] proposed considering a mass estimate robust if the median of the posterior coming from the high-mass prior lies within the 0.16–0.84 quantiles of the posterior using the default prior. Leleu et al. [37] followed with a criterion , defined as:
| Prior | Mass | Eccentricity |
| Default | Log-uniform | -distribution |
| High eccentricity | Log-uniform | Uniform |
| High mass | Uniform | Log-uniform |
Table 3. Priors used for the photodynamical fits. Notes. Prior distributions of the planetary masses and eccentricities. The -distribution follows Kipping [29].
where and are respectively the minimum and maximum median between the default and high-mass (or high-eccentricity) posteriors, the median of the default posterior, and respectively the 0.16 and 0.84 quantiles of the default posterior. The authors proposed an arbitrary threshold set at , below which they deemed masses to be well constrained.
Resonant state
In the formalism of the second fundamental model of resonance (Henrard & Lemaitre [26]), it is possible to reduce the Hamiltonian of a two-planet system in first-order resonance, when nearly coplanar and of low eccentricity, to a one-degree-of-freedom model. Using the development of Leleu et al. [38], the Hamiltonian then reads:
For , the system possesses a single equilibrium point and no separatrix. There is a bifurcation located at , giving two separated equilibrium points for , one being encompassed within a separatrix. In this formalism, the phase space is resonant if and the system sits within the separatrix. Slow evolution usually brings systems into resonance during the system formation due to the planet-disk interaction via migration, following the existing resonant fixed points into the separatrix, indicated with the black line in Figure 9 [22]. Ataiee & Kley [3] showed that overstability can occur during the migration phase, throwing the system out of resonance, but the timescale of these events is much shorter than the disk lifetime, hence it is likely that systems undergoing such processes end up back in resonance. Conversely, for , slow dissipative mechanisms can bring a system out of resonance following the resonant fixed points of the separatrix. Tidal dissipation can bring the system out of strict resonance by dissipation in the inner planet [4, 16, 15] (Lithwick & Wu 2012). Systems far from equilibrium points usually originate from a stronger disruptive event in their formation history. Such events can involve dynamical instability and collisions [27, 21] or planetesimal scattering [9]. Hence, the resonant state of a system is indeed a convenient tool to infer some information about the formation history of the system [38].

Figure 9. Section of the plane of the Hamiltonian (Eq. (19)) with the separatrix, equilibrium points, and the position of the posteriors of the Kepler-404b and Kepler-404c pair of planets.
Kepler-404b and Kepler-404c
Following the fitting process presented in § 5.1, we retrieve the transit times with a photodynamical fit. Figure 8 displays in coloured points the proxy timings retrieved with the RIVERS.radon method, with the 30 min uncertainties inherited from the river diagrams. The black lines show the median of the photodynamical timings and the grey shaded area is the deviation of the fit. The bottom plot of Figure 8 shows the superimposed TTVs of both planets. The TTVs are in clear opposition of phase, with amplitudes of min and min, and periodicities of days and days, respectively for Kepler-404b and Kepler-404c. The sawtooth shape of the fit shows a slight chopping effect, caused by the conjunctions of the planets. This effect is valuable for better constraining the planetary masses. However, in this case, it is unclear whether the chopping here is constrained by the data or emerges from the modelling.
Figure 8. O-C plot of the RIVERS.radon proxy transit times in colour and corresponding photodynamical fit timings in black and grey, shown respectively for Kepler-404b and Kepler-404c. The bottom plot shows both fits superimposed, clearly displaying the opposition of phase of the TTVs of both planets.
Table B.1 shows the median and results of the photodynamical fit samples, with each column corresponding to one of the priors presented in Section 5.2. Figure 10 shows the posterior distribution of the masses of each planet for the different priors. The default and high-eccentricity priors agree closely with each other, while the high-mass prior yields, as expected, higher masses. Using the robustness criterion presented in Section 5.2, we compute the for both planets for both priors, and we get

Figure 10. Median and quantiles of the posterior distribution of the masses of each planet for the different priors.
The photodynamical fit converges to a pair of comparable planets, with similar masses, respectively for Kepler-404b and Kepler-404c of and , and very similar radii of and . These similarities in masses and radii suggest that this system has an architecture known as “peas in a pod” ([48]), where planets within the same system are similar in mass and radius, and usually spatially compact. This configuration has been observed to be even more pronounced in near-resonant systems ([24]).

Figure 11. Mass-radius plot of currently known exoplanets at the time of writing. The grey points come from the NASA Exoplanet Archive, the black points are from the PlanetS catalogue and the coloured areas and points show the archive and new characterisations of the pair of planets in the Kepler-404 system.
and for the high-eccentricity prior and and for the high-mass prior. As all values are below the threshold of for both priors, we conclude that the masses are robust to the mass-eccentricity degeneracy.
Figure 11 shows the mass-radius diagram of the currently known exoplanet population. The grey points are taken from the NASA Exoplanet Archive, and the black points are from the PlanetS catalogue ([44]). The previous radii and uncertainties from the archive solution are shown with the coloured area, while the masses and radii from the fit are visible in coloured scatter points. Both Kepler-404b and Kepler-404c sit on the upper edge of the bulk population, indicating that these planets seem to be less dense than their counterparts. This is in agreement with the work of Leleu et al. [34], which showed that resonant systems tend to be statistically less dense than non-resonant systems due to different formation pathways and histories.
The instantaneous periods are respectively days and days. We can estimate the mean period of each planet by integrating each sample forward for 20 000 days with TTVFast Deck et al. [12] to get the expected transit times from the given configuration of the sample, fitting these transit times with a linear ephemeris and measuring the slope. We obtain for Kepler-404b days and for Kepler-404c days. The ratio of the mean periods is , which is just below the 5:4 commensurability of 1.25. Near-resonant systems with a period ratio below the resonant one are not expected to originate from slow dissipative processes, such as tides. Using the mean periods and the resonance , we can compute the super-period and find it to be close to the periodicity of the TTVs themselves, as expected for a near-resonant system.
The inclinations of both planets are respectively and deg, with a minimal mutual inclination of deg. Low mutual inclinations (i.e. nearly coplanar orbits) are another feature expected for resonant pairs of planets [1, 34].
Figure 9 shows where each sample of the Kepler-404 pair of planets sits on the plane after computing the transformation leading to Equation (19). The samples sit in the region of the phase space with , next to the hyperbolic fixed point, close to the internal fixed point. Hence, the system is formally not in resonance as not a single sample is located within the separatrix.
Smearing effect
The archive solutions were obtained by folding the light curve on a linear ephemeris, thus they are affected by the TTV smearing. We can quantify that by comparing the archive values to our photodynamical fit, visible in Table 4.
| Parameter | Kepler-404b Archive | Kepler-404b This work | Kepler-404b Deviation | Kepler-404c Archive | Kepler-404c This work | Kepler-404c Deviation |
Table 4. Transit parameters of Kepler-404b and Kepler-404c from the archive and from this work.
For Kepler-404b, Table 4 shows that the radius ratio changes from in the archive to in our fit, a significant revision of , which is likely driven by the correction of the recovered transit depth when stacking the transits on the individual transit times, which removes the dilution caused by the smearing. For Kepler-404c, the radius ratio goes from to , the two values are consistent within , the estimation of the transit depth of the planet was somewhat less affected by the smearing. The impact parameters are from the archive against in our fit for Kepler-404b, this is a change. For Kepler-404c, the value goes from to , a difference. As these values lie away from the grazing regime, they are unlikely to affect the estimation of the radius ratio and planetary radii. Finally, the planetary radius changes from to for Kepler-404b, a change, and from to for Kepler-404c, a change. The small deviations are mainly due to the large upper uncertainty of the stellar radius, which propagates into the planetary radius in the archive solution. In addition, the stellar radius adopted in this work () is smaller than the archive one () and therefore scales down the retrieved planetary radius, partly counterbalancing the correction of the smearing. The characterisation of Kepler-404b was thus clearly affected by the smearing effect, as shown by the revision of its radius ratio, whereas for Kepler-404c the archive solution is too poorly constrained for a comparable statement to be made.
The correction of the smearing effect is also reflected in the stacked S/N that can be computed using Equation (2), giving S/N = 20.99 and S/N = 14.88 respectively for Kepler-404b and Kepler-404c. The previously found S/Ns at the time of writing were S/N = 9.10 for the confirmed signal of Kepler-404b, S/N = 12.70 for the false positive KOI-2768.03, and S/N = 8.30 for Kepler-404c.
Finally, we stress that the effect of the smearing on the characterisation of a planet based on a linear ephemeris is difficult to predict. The folded transit results from the true transit shape being spread over the residual phase offsets of the individual transits, which depend on the amplitude and periodicity of the TTVs, and on where the linear ephemeris intersects the TTV curve. The resulting distorted profile is then fitted by a transit model that will be affected by degeneracies between depth, duration, impact parameter and stellar density, so the bias does not systematically translate into a shallower transit, smaller radius or longer duration. The archive solutions of the Kepler-404 system at the time of writing illustrate this behaviour well: the estimated transit duration of KOI-2768.03 is 6.15 h, almost twice that of Kepler-404b (3.34 h), although the two ephemerides differ by only 4 min in period and capture a signal belonging to the same planet, while the transit duration of Kepler-404c is 1.25 h, roughly half the duration our fit yields (calculated around 2.7 h).
Discussion and conclusion
In this work, we highlight the detection bias caused by TTVs when using phase-folding algorithms on planets with low S/N. We present how the 2D representations known as river diagrams make it possible to display the planetary transit signal. With the case of Kepler-404, we show that the BLS solutions of Kepler-404b and Kepler-404c are indeed affected by the TTVs caused by their near-resonant configuration. We introduce the RIVERS.radon method, an algorithm that relies on river diagrams to extract the transit tracks from the image with the use of 2D cross-correlation. Applying this novel method to the river diagram of both planets, we successfully extract the approximate transit times, taking into account the TTVs of the planets. With the new individual proxy timings used to get initial conditions on the orbital parameters of the system, we characterise both planets using a photodynamical fit, correcting the bias on the radius of the planets due to the smearing effect of TTVs, and retrieve a complete characterisation of the system, including the planetary masses. The proximity of the ephemerides of Kepler-404b and KOI-2768.03, whose orbital periods differ by only 4 minutes, was a strong hint that these two signals were connected. A visual inspection of the river diagram of Kepler-404b in Figure 5 showed that both ephemerides intersect on the same transit track, each matching a different segment. The BLS solutions picked two local approximations of one quasi-periodic signal. The transit times resulting from the photodynamical fit closely follow the proxy timings of RIVERS.radon over the whole baseline with no apparent divergence, as shown in Figure 8. Additionally, a subsequent BLS search of the residual light curve, after removing the photodynamical model of both planets, yields no significant sigNotes. Archive values are from the NASA Exoplanet Archive solution, obtained from a linear-ephemeris fold. This work gives the median and of the default photodynamical fit.
nal at or near the KOI-2768.03 ephemeris. This confirms that the signal composed of the original Kepler-404b and KOI-2768.03 ephemerides is successfully explained by a single planet. Finally, stacking the transits on the photodynamical timings yields an S/N of 20.99, exceeding both original signals, respectively 9.10 and 12.70 for Kepler-404b and KOI-2768.03, as expected once the smearing effect on the stacking of the transits caused by the TTVs is corrected. The fits converge to a pair of similar planets, respectively for Kepler-404b and Kepler-404c, of radii and and of masses and . We show that according to the robustness criterion presented in § 5.2, our masses are robust to the mass-eccentricity degeneracy, and that the radius of Kepler-404b was underestimated due to the smearing effect caused by the TTVs. These similarities in masses and radii suggest that the system is of a type known as “peas in a pod”. With the new individual transit times, we retrieve TTVs in clear opposition of phase, with amplitude and period (TTVA, TTVP) of (117.64 min, 1095.5 days) and (110.09 min, 1098.9 days) for Kepler-404b and Kepler-404c, respectively. As expected for near-resonant planets, the super-period, days, is relatively close to the periodicity of the TTVs of the planets. Using these transit times, we compute new S/N values of 20.99 and 14.88. These S/N values are high enough for the planets to be detected despite the TTVs, yet the TTVs still caused the false-positive detection.
This system exhibits characteristics consistent with near-resonant systems. The low density of the planets is in agreement with the observed trend that resonant systems are often less dense than the bulk population [34]. The mutual inclination of the planets is low, which is also a trend observed in near-resonant pairs of planets [1, 34]. Although the period ratio, , is very close to the 5:4 commensurability of 1.25, the system is actually non-resonant. Slow physical processes usually bring systems out of resonance by reducing the eccentricities, e.g. tides (Lithwick & Wu 2012; Batygin & Morbidelli 2012; Delisle et al. 2012; Delisle & Laskar 2014). This feature indicates that the system may have undergone post-disk instability.
Figure 9 shows that the system is formally non-resonant, as all samples sit outside the separatrix, with . Typically, systems are either in resonance or at low eccentricities, but this system is observed out of resonance and relatively far away from the fixed points. Overstabilities are capable of breaking resonant chains during the migration phase of the formation of the system [23, 14]. However, as they occur during the migration phase, the system is brought back into resonance on a timescale usually shorter than the disk lifetime [3, 13]. Thus, while possible, it is unlikely that the overstability occurred right as the disk dissipated. Post-disk instabilities could explain the relatively large distance from the fixed points of the system.
However, this idea is somewhat at odds with the observed coplanarity of the system, as planet-planet scattering tends to increase the mutual inclination of the planets [34].
The RIVERS.radon method is complementary to other methods with the same aim, namely the QATS algorithm introduced in Carter & Agol [7] and the RIVERS.deep approach from Leleu et al. [33]. Both RIVERS approaches are used as first estimators for the initial conditions of the photodynamical fit and require an additional step to translate the solutions from the river-diagram space to the time domain. The RIVERS.radon method finds its strength in the use of a set of local periodic solutions to approximate the transit times, rendering the method capable of finding planetary signals with significant TTVs while reducing the risk of a genuine signal being confused with the background noise, at the cost of a non-negligible number of hyper-parameters to be fine-tuned to find the optimal solutions. On the other hand, RIVERS.deep is able to recover individual transits down to lower S/N, at the cost of interpretability, as it is a deep-learning model. Finally, QATS is more versatile, as it provides an automatic optimal stacked transit sequence optimising the S/N for a chosen range of parameters from the time series directly, at the cost of a greater sensitivity to the background noise as the algorithm retrieves candidates freely in a given tolerance range. Hence, these methods are complementary to one another and can be used alone or collectively according to the task, from a blind planet detection search to fine-tuning the individual transit times of a known planet.
Finally, this work shows the complexity involved in characterising (near-)resonant systems. Considerable efforts have been put towards improving our understanding of the formation and evolution of these systems through theoretical work. However, the constraints on theoretical models can be limited by the number of robustly characterised (near-)resonant systems available for comparison. The system of Kepler-404 is a good example of how such systems can be mischaracterised or simply missed due to the observational bias caused by the TTVs. Hence, a systematic characterisation of these systems is needed. Additionally, re-analysing transit-survey data, notably from Kepler and the TESS continuous viewing zones, is necessary to alleviate the TTV bias and to prepare for the upcoming PLATO mission.
Acknowledgements. This work has been carried out within the framework of the National Centre of Competence in Research Planets supported by the Swiss National Science Foundation and benefited from the seed-funding programme of the Technology Platform of Planets. The authors acknowledge the financial support of the SNSF. Y.E., M.R., A.L. acknowledge support of the Swiss National Science Foundation under grant number TMSGI2_211697.
Estimation of the transit times
The confidence map has the same dimensions as the input river diagram. It is a direct per-pixel confidence of a transit location. Because the river diagram can be created with flux but also with time, we also have a direct correspondence of time for each confidence map element. Let be the time map, where each pixel is the corresponding time value of the matching pixel of the river diagram, thus by extension the time value of the matching pixel of the confidence map . We define the continuous confidence function as:
In practice, the time series is discrete, with a sequence of times of cadence smaller than the river diagram bin size. Thus the confidence function is approximated as:
We extract the best candidate transit time with the highest confidence
Starting from we look backward and forward in the confidence time series to extend the transit-time sequence across successive periods within a given tolerance. The adjacent interval, for a given transit time , is given by
where is a tolerance accounting for the effect of TTVs. The corresponding best candidate transit time of the given interval is found with
If no direct adjacent candidate is found, the search is extended to multiple periods ahead, until a new candidate is found or the start or end of the time series is reached. Finally, we end up with the transit-time sequence , with the number of transits found.
Photodynamical fit posteriors
| Kepler-404b | |||
| Parameter | Default | High eccentricity | High mass |
| Fitted parameters | |||
| [deg] | |||
| [days] | |||
| [-1,1] | |||
| [-1,1] | |||
| [] | |||
| [] | |||
| [deg] | |||
| Derived parameters | |||
| [au] | |||
| [deg] | |||
| [] | |||
| [] | |||
| [] | |||
| [BJD] | |||
| S/N | 20.99 | ... | ... |
| Kepler-404c | |||
| Parameter | Default | High eccentricity | High mass |
| Fitted parameters | |||
| [deg] | |||
| [days] | |||
| [-1,1] | |||
| [-1,1] | |||
| [] | |||
| [] | |||
| [deg] | |||
| Derived parameters | |||
| [au] | |||
| [deg] | |||
| [] | |||
| [] | |||
| [] | |||
| [BJD] | |||
| S/N | 14.88 | ... | ... |
| Kepler-404 | |||
| Parameter | Default | High eccentricity | High mass |
| Fitted parameters | |||
| [] | |||
| [] | |||
| jitter [] | |||
| Limb darkening | |||
| Limb darkening |
Table B.1. Posteriors of the photodynamical fits of Kepler-404.
Notes. Median and percentiles of the photodynamical fit samples for the stellar and planetary parameters. Orbital elements are given at the reference epoch BKJD (BJD). Derived parameters are computed from the fitted parameters of each sample; is the first transit after . Each column corresponds to a different prior used for the fit, the first being the default one, used throughout the paper.
References
- [1]Agol, E., Dorn, C., Grimm, S. L., et al. 2021, PSJ, 2, 1
- [2]Agol, E., Steffen, J., Sari, R., & Clarkson, W. 2005, MNRAS, 359, 567
- [3]Ataiee, S. & Kley, W. 2021, A&A, 648, A69
- [4]Batygin, K. & Morbidelli, A. 2012, AJ, 145, 1
- [5]Berger, T. A., Huber, D., van Saders, J. L., et al. 2020, AJ, 159, 280
- [6]Boué, G., Oshagh, M., Montalto, M., & Santos, N. C. 2012, MNRAS, 422, L57
- [7]Carter, J. A. & Agol, E. 2013, ApJ, 765, 132
- [8]Carter, J. A., Agol, E., Chaplin, W. J., et al. 2012, Science, 337, 556
- [9]Chatterjee, S. & Ford, E. B. 2015, ApJ, 803, 33
- [10]Copeland, A. C., Ravichandran, G., & Trivedi, M. M. 1994, in Proceedings of the 1994 IEEE Conference on Computer Vision and Pattern Recognition, 664–667
- [11]Deck, K. M. & Agol, E. 2016, ApJ, 821, 96
- [12]Deck, K. M., Agol, E., Holman, M. J., & Nesvorny, D. 2014, ApJ, 787, 132
- [13]Deck, K. M. & Batygin, K. 2015, ApJ, 810, 119
- [14]Delisle, J.-B., Correia, A. C. M., & Laskar, J. 2015, A&A, 579, A128
- [15]Delisle, J.-B. & Laskar, J. 2014, A&A, 570, L7
- [16]Delisle, J.-B., Laskar, J., Correia, A. C. M., & Boué, G. 2012, A&A, 546, A71
- [17]Delisle, J.-B., Ségransan, D., Dumusque, X., et al. 2018, A&A, 614, A133
- [18]Eggenberger, P., Meynet, G., Maeder, A., et al. 2008, Ap&SS, 316, 43
- [19]Fabrycky, D. C., Lissauer, J. J., Ragozzine, D., et al. 2014, ApJ, 790, 146
- [20]García-Melendo, E. & López-Morales, M. 2011, MNRAS, 417, L16
- [21]Goldberg, M. & Batygin, K. 2022, AJ, 163, 201
- [22]Goldberg, M. & Batygin, K. 2023, ApJ, 948, 12
- [23]Goldreich, P. & Schlichting, H. E. 2014, AJ, 147, 32
- [24]Goyal, A. V., Dai, F., & Wang, S. 2023, ApJ, 955, 118
- [25]Hadden, S. & Lithwick, Y. 2017, AJ, 154, 5
- [26]Henrard, J. & Lemaître, A. 1983, Celestial Mechanics, 30, 197
- [27]Izidoro, A., Ogihara, M., Raymond, S. N., et al. 2017, MNRAS, 470, 1750
- [28]Kane, M., Ragozzine, D., Flowers, X., et al. 2019, AJ, 157, 171
- [29]Kipping, D. M. 2013, MNRAS, 434, L51
- [30]Kovács, G., Zucker, S., & Mazeh, T. 2002, A&A, 391, 369
- [31]Kreidberg, L. 2015, PASP, 127, 1161
- [32]Lee, M. H. & Peale, S. J. 2002, ApJ, 567, 596
- [33]Leleu, A., Chatel, G., Udry, S., et al. 2021, A&A, 655, A66
- [34]Leleu, A., Delisle, J.-B., Burn, R., et al. 2024a, A&A, 687, L1
- [35]Leleu, A., Delisle, J.-B., Delrez, L., et al. 2024b, A&A, 688, A211
- [36]Leleu, A., Delisle, J.-B., Mardling, R., et al. 2022, A&A, 661, A141
- [37]Leleu, A., Delisle, J.-B., Udry, S., et al. 2023, A&A, 669, A117
- [38]Leleu, A., Eyholzer, Y., Marques, S., et al. 2026, A&A, submitted
- [41]Mills, S. M., Fabrycky, D. C., Migaszewski, C., et al. 2016, Nature, 533, 509
- [42]Nesvorný, D. & Vokrouhlický, D. 2016, ApJ, 823, 72
- [43]Nir, G., Zackay, B., & Ofek, E. O. 2018, AJ, 156, 229
- [44]Parc, L., Bouchy, F., Venturini, J., Dorn, C., & Helled, R. 2024, A&A, 688, A59
- [45]Radon, J. J. 1986, IEEE Trans. Med. Imaging, 5, 170
- [46]Rowe, J. F., Bryson, S. T., Marcy, G. W., et al. 2014, ApJ, 784, 45
- [47]Terquem, C. & Papaloizou, J. C. B. 2007, ApJ, 654, 1110
- [48]Weiss, L. M., Marcy, G. W., Petigura, E. A., et al. 2018, AJ, 155, 48



