# When a narrow strip divides two retinal fluid pockets, nearby slices more often show them joining

In diabetic macular edema, fluid collects in the part of the retina responsible for central vision. Researchers who count or measure individual fluid pockets need to know which pockets are separate. Optical coherence tomography (OCT) builds a retinal image from a stack of cross-sections. A bright strip may divide two dark pockets on one section even when their interiors meet on the next. When the strip was narrow, we found a dark path joining the pockets on two consecutive nearby sections at 49 of 970 sites (5.1%). When it was wide, we found a path at 13 of 1,712 sites (0.8%). In some images the pockets met below the still-visible tip of the strip.

## Measuring the strip

[Pelosini and colleagues](https://pubmed.ncbi.nlm.nih.gov/20538987/) measured how much retinal tissue remained between fluid spaces in macular edema and related that measure to visual acuity, the ability to see fine detail. We asked whether the appearance of a particular strip could guide a search for a connection between the pockets on either side of it.

We used all 42 scan stacks, or volumes, with labeled fluid in the diabetic macular edema subset of [Huang and colleagues’ public retinal scans](https://doi.org/10.6084/m9.figshare.30582035). The volumes contained 21,135 sections from 37 eyes. The dataset authors selected clearly outlined lesions and provided [annotations](https://pmc.ncbi.nlm.nih.gov/articles/PMC12894698/) marking the pixels that contained fluid, without assigning them to individual cysts. We call each connected region of labeled fluid on one section a profile. Across the scans we found 18,430 instances of side-by-side profiles. Sampling every eighth section yielded 1,196 eligible bright strips between profiles. A straight-line search within four sections on either side detected 27 openings. At 108 sites we could follow a bright strip in both directions, and 1,061 sites remained unresolved.

The length of a strip along the depth of the retina gave little guidance. In a masked reading of 30 pairs of sites matched within eyes for strip width and contrast (brightness relative to the pockets), a divider remained visible throughout four sections in each direction at five of the shorter strips and five of the longer ones. We also compared the horizontal width of the strip at the sampled row of pixels with the shortest distance anywhere between the two profile edges. Among sites matched for horizontal width in ten additional eyes, the shortest distance was smaller at sites whose labeled pockets joined on nearby sections in only 53% of comparisons (ties counted as half; eyes weighted equally).

The straight-line search found more openings at narrow strips, where the line had less distance to cross. To compare strips of different widths on the same terms, we placed two points a fixed distance apart, one in each pocket, and allowed the path between them to bend. We required the path to lie inside the labeled fluid and to be dark in the original grayscale scan. The distinction mattered: in an exploratory reading of 14 sites chosen because their labels joined on neighboring sections, only three showed a clear dark connection on both sections.

## Strip width and nearby connections

We sampled every other section as a starting section and measured strip width along the sampled row. Of 5,180 sites with two profiles and a bright center, 3,184 in 41 volumes from 36 eyes had room for points 22 pixels apart. We followed the points for up to four sections in each direction. A detection required a continuous dark path between them on two consecutive sections on the same side of the starting section. We counted each site once and kept sites where tracking failed in the denominator. A site represents a pair of profiles on one section, so several sites can sample the same divider.

| Strip width on the starting section (pixels) | Sites | Sites with a detected path | Eyes with a detection / eyes sampled | Sites tracked through all eight neighboring sections |
|---|---:|---:|---:|---:|
| 3–5 | 970 | 49 (5.1%) | 17/33 | 242 (24.9%) |
| 6–7 | 502 | 10 (2.0%) | 7/35 | 75 (14.9%) |
| 8–16 | 1,712 | 13 (0.8%) | 7/36 | 89 (5.2%) |

We matched 826 sites in the narrowest group to sites in the widest group elsewhere in the same volume. We matched on strip contrast, the length over which the pocket edges faced each other, and pocket area. Giving each eye equal weight, we detected a path at 6.03% of narrow sites and 0.26% of their wide controls. The difference was 5.77 percentage points (95% interval from resampling eyes, 3.21 to 8.73). Narrow strips had more detections in 17 eyes; the other 13 tied. After we removed closely spaced sites without regard to the outcomes, 12 eyes favored narrow strips, 14 tied and one favored wide strips.

Wide sites were harder to track (table). To give narrow and wide sites the same opportunity for detection on the first two sections, we compared only directions in which both sites could be tracked through both sections. This left 980 matched search directions from 642 narrow sites in 28 eyes. Giving each eye equal weight, we detected paths on those two sections at 2.66% of narrow sites and 0.03% of wide controls. Requiring complete tracking through four sections in both directions left only ten matched eyes. Detection rates were 16.2% versus 8.9%, but the interval for the difference (−20.4 to 34.5 percentage points) allowed either group to have the higher rate.

When we also matched the sampling points for brightness and distance from the nearest fluid boundary on the starting section, the four-section search detected paths at 2.76% of narrow sites versus 0.13% of wide controls (27 eyes). In a separate check, we excluded sites where an equally dark path already existed on the starting section, even if it ran outside the labeled fluid. Detection rates were 5.50% versus 0.13% (27 eyes). Moving the points farther apart, to 30 pixels, also preserved the difference (4.33% versus 0.17%, 26 eyes).

## Connections visible in the original scans

We sampled one detection per eye and paired it with a separate control site in the same volume that could be tracked equally far. A single artificial intelligence reader saw randomized sets of grayscale images, each showing the two neighboring sections without the starting section, fluid labels, computed path or group assignment. The reader identified a continuous dark interior on both sections at 10 of 18 detected sites and one of 18 controls. A clear divider appeared on both sections at five controls and no detected sites. The other eight detections and 12 controls were unclear.

![Four retinal sites, each shown on the starting section and on two neighboring sections, with marks indicating the sampled locations.](results/width_examples.png)

Figure 1. In the top two rows the pockets meet below a bright projection. The strip was initially four pixels wide in one example and 16 pixels wide in the other. Three of the ten visually confirmed detections showed this geometry. The third row shows a control with a visible divider. In the bottom row the reader could not confirm the computed path. Triangles mark the two sampled columns and their common depth. The offset is the number of sections from the starting section; z is the starting section’s position in the volume and w is the strip width in pixels. Each row shows the first example in its category by randomized reading order. All use the same magnification and grayscale.

## Methods

### Selecting sites and placing the points

We used the grayscale scans and their fluid masks (images marking the labeled pixels). We sampled even-numbered starting sections beginning at section 2, counting from zero, with a four-section margin at the far end. On each image row we looked for adjacent runs of fluid from different profiles of at least 50 pixels each. We counted pixels as connected when they shared an edge. We required a gap of 3–16 columns and margins of 72 columns and 46 rows for tracking.

For each ordered pair of profiles we took the middle row that also met the following patch criteria. A 3 × 3 patch at the midpoint had to contain no labeled fluid, and a 3 × 3 patch centered four pixels inside each facing edge had to contain only fluid. The midpoint patch had to average at least eight gray levels brighter than the brighter fluid patch. Strip width was the horizontal gap on this row. To measure facing length, we counted consecutive rows through the sampled row that met the gap criteria, allowing the midpoint to move up to four columns per row. We placed the final sampling points 11 columns to either side of the midpoint. Each point and its eight neighbors had to lie inside its respective profile. We used pixels and section counts because the spatial units in the released image headers disagreed with the acquisition description.

### Following the pockets and detecting a path

To follow the points from one section to the next, we estimated how far two image windows had shifted. Each window was 63 rows high and 42 columns wide; one began 62 columns left of the midpoint and the other 20 columns right. We smoothed the windows with a 3 × 3 Gaussian kernel (a weighted local average) and searched eight pixels in each direction for the shift that best aligned the brightness patterns, measured by normalized correlation. Both correlations had to reach 0.55, neither shift could reach the search limit, and the shifts had to agree within three pixels on each axis. We moved both points by the rounded mean shift. If alignment failed or either 3 × 3 patch no longer lay entirely inside fluid, tracking stopped in that direction.

Within 21 columns and 18 rows of the shifted midpoint, we searched for a path of edge-sharing pixels between the two points. The full 3 × 3 patch around every path pixel had to lie within labeled fluid. Its mean brightness could exceed that of the brighter endpoint patch on that section by at most six gray levels. A site counted as a detection if any consecutive pair of neighboring sections in one direction met these criteria.

### Matching sites and reading images

For each narrow site, we used all wide controls in the same volume at least 16 sections or 32 columns away. Strip contrasts on the starting section had to agree within 12 gray levels. Facing lengths and areas of the smaller profile in each pair had to agree within a factor of two. We allowed reuse of controls. We averaged control outcomes for each narrow site, averaged the sites within each eye, then gave each eye equal weight. We calculated intervals from the middle 95% of 10,000 resampled means of the paired differences by eye. Eye identifiers link volumes, but no public key links fellow eyes to people. To remove closely spaced sites, we visited sites in random order and skipped any site within eight sections and 16 pixels on both image axes of a site already retained in that volume. For the closer match on point placement, we required agreement within one pixel for the smaller of the two endpoint-to-boundary distances and within eight gray levels for the brightness of the brighter endpoint.

For the grayscale reading, we sampled detections in random order within each eye until we found one with an eligible control. In the sampled direction the control had to retain both fluid patches through the same section offset as the detection. It had to lack a repeated path even when we required only fluid labels along the path. Among controls at least 16 sections or 40 columns away, we chose the closest match by adding three terms: the absolute width difference, the contrast difference divided by 12, and the absolute base-two logarithm of the ratio of smaller-profile areas. Marks on the borders of the two grayscale crops showed the sample positions. The reader scored a connection or a divider only if it could follow that feature on both sections.

## Interpretation

Before counting two retinal fluid pockets separately, a reader has particular reason to check nearby sections when the strip between them is narrow. Following the bright tissue alone can miss a connection: the tip can remain visible while the dark interiors meet around it.

A failed search usually left the anatomy unresolved. Allowing for unseen paths at incompletely tracked sites without a detection gives possible detection rates of 5.1–76.6% for narrow strips and 0.8–95.0% for wide strips. The width comparison comes from one collection selected for clearly visible lesions. Image resolution, grainy variation in brightness (speckle) and the placement of label boundaries affect both width and path detection. The grayscale reading checked detections without labels but provided no independent clinical assessment. A visible connection does not show whether fluid flows through it.

## References

1. Pelosini L, et al. [Optical coherence tomography may be used to predict visual acuity in patients with macular edema](https://doi.org/10.1167/iovs.09-4493). *Investigative Ophthalmology & Visual Science*. 2011;52:2741–2748.
2. Huang W, et al. [Comprehensive 3D Optical Coherence Tomography Dataset for AMD and DME](https://doi.org/10.1038/s41597-025-06497-1). *Scientific Data*. 2026;13:224. [Public image volumes and annotations](https://doi.org/10.6084/m9.figshare.30582035).
