Skip to main content
Proceedings of the National Academy of Sciences of the United States of America logoLink to Proceedings of the National Academy of Sciences of the United States of America
. 2021 Jul 26;118(31):e2103605118. doi: 10.1073/pnas.2103605118

Imperfect comb construction reveals the architectural abilities of honeybees

Michael L Smith a,b,c,1, Nils Napp d, Kirstin H Petersen d
PMCID: PMC8346884  PMID: 34312229

Significance

Honeybees are renowned for constructing perfect hexagonal lattices, but this paper showcases them as similarly skilled architects when fitting perfect lattices is impossible. Using automated image analysis, we quantified building challenges that bees face during natural construction and the methods they use to solve them. We found that workers preemptively change their building behavior in constrained geometries to make space for larger hexagonal cells, that irregular cell shapes come in regular combinations, and that bees change both tilt, size, and number of walls to meet different building challenges. Model comparisons, serving as upper and lower bounds for the efficacy of honeybees as building agents, showed that workers perform remarkably well given their lack of global sensing and central planning.

Keywords: collective behavior, nest construction, spatial structure, optimization, superorganism

Abstract

Honeybees are renowned for their perfectly hexagonal honeycomb, hailed as the pinnacle of biological architecture for its ability to maximize storage area while minimizing building material. However, in natural nests, workers must regularly transition between different cell sizes, merge inconsistent combs, and optimize construction in constrained geometries. These spatial obstacles pose challenges to workers building perfect hexagons, but it is unknown to what extent workers act as architects versus simple automatons during these irregular building scenarios. Using automated image analysis to extract the irregularities in natural comb building, we show that some building configurations are more difficult for the bees than others, and that workers overcome these challenges using a combination of building techniques, such as: intermediate-sized cells, regular motifs of irregular shapes, and gradual modifications of cell tilt. Remarkably, by anticipating these building challenges, workers achieve high-quality merges using limited local sensing, on par with analytical models that require global optimization. Unlike automatons building perfectly replicated hexagons, these building irregularities showcase the active role that workers take in shaping their nest and the true architectural abilities of honeybees.


Honeycomb is hailed as the pinnacle of biological architecture for its ability to maximize storage area while minimizing building material (14). In the 4th century, Pappus of Alexandria marveled at the “geometrical foresight” of the bees, while Darwin dubbed it “the most wonderful of all known instincts” (5, 6). To build a single cell, multiple bees must deposit, mold, and shape the precious wax; given that an unsupervised collective builds the structure, it is unknown whether each bee possess architectural abilities, or if they act as simple automatons (712).

Since the 1600s, hexagons were known to be a mathematically optimal solution, with examples such as stacked cylindrical columns, surface-minimizing soap bubbles, or rare geological features (1316). This abiotic perspective led to work suggesting that perfect hexagons were mere byproducts of the wax properties [(17, 18); but see ref. 19)], despite other organisms, like wasps, which build hexagons using paper (20, 21), or stingless bees that build spiraling hexagonal sheets (22). A fascination with perfect hexagons and modeling how they could be built, however, neglects key aspects of their natural history.

Perfectly identical hexagons are awe inspiring, but it does not reflect the full building repertoire of honeybees, nor the challenges they face. First, workers build cells with different-diameter sizes: small-diameter cells for rearing workers and large-diameter cells for rearing drones, the male reproductives (23, 24). Workers switch to building drone cells once the colony is capable of reproduction (25, 26), but both cell sizes can be built within the same plane of comb. Second, workers start building comb in multiple locations simultaneously (e.g., arrows in Fig. 1A). Eventually, these independent pieces will be merged into a single comb, and workers must reconcile the differing combination of cell sizes (worker-to-drone, drone-to-drone, and worker-to-worker) and alignments. This is especially relevant in natural nest building, where workers must conform to the space and surfaces available (27).

Fig. 1.

Fig. 1.

An example of naturally built honeycomb, with arrows showing the five locations where workers had simultaneously initiated building; full sample sizes listed below (A). Bees build two types of comb: small-celled worker comb (B, i) and large-celled drone comb (B, ii). Histograms of cell areas (B, iii) and wall lengths (B, iv) show that the two cell types form distinct distributions (worker cells, red; drone cells, blue); the shaded areas in (B, iii) encompass 99.9% CI (shown also in CF, ii). Worker comb: n = 11 colonies, 25 comb images, 43 instances, and 4,414 cells; drone comb: n = 11 colonies, 25 images, 39 instances, and 2,586 cells. Bees face two key challenges during comb building: transitioning from worker to drone-sized cells in a continuous piece of comb (C) and merging independent pieces of comb (DF) (boxes in A; Insets in CF, i). Histogram of cell areas across the transition/merge (gray in CF, i) as compared to perfect worker and drone cells (red and blue, respectively; random subsets from B, iii). Bees adjust cell areas (CF, ii) and wall lengths (CF, iii) as they build across the transition/merge (vertical dotted line in CF, iiii). Worker-to-drone cell transition: n = 7 colonies, 8 comb images, 17 instances, and 1,619 cells. Worker-to-drone cell merge: n = 9 colonies, 13 comb images, 24 instances, and 2,819 cells; drone-to-drone cell merge: n = 5 colonies, 13 comb images, 15 instances, and 2,309 cells; worker-to-worker cell merge: n = 8 colonies, 13 comb images, 23 instances, and 5,273 cells. Instances are defined as independent areas of interest (e.g., one comb image may have two instances of worker-to-worker cell merging). The black line and shading in CF, ii and iii show mean ± SD and the data point colors denote number of walls in CF, ii.

While these challenges have long been recognized (7, 2731), rigorous study is limited because measuring cells is notoriously tedious. In 1911, Vogt obtained over 4,000 comb measurements, but he specifically avoided nonuniform cells and sampled only three combs (28). Hepburn and Whiffler assessed cell shapes in 64 merged combs, but they did not measure a single cell area or wall length, instead classifying the entire comb as a “success” or “failure” based on whether a single cell was nonhexagonal (30). Of course, a single nonhexagonal cell does not render an entire comb or the cell itself useless but reiterates the need to measure what the bees build on a per-cell basis.

Instead of investigating perfect hexagons, here we focus on natural comb building (i.e., comb built without wire supports or embossed wax foundation) and the challenges workers face as they build, transition, and merge cells. To address the tediousness of measuring individual cells, we developed an automated image analysis method for identifying the center, vertices, and wall-lengths for each cell, including nonhexagonal cells. This method allowed us to focus on construction under imperfect scenarios, especially cell-size transitions and merging cells.

We first characterized the natural variation in cell types built without impediment. As expected, these “perfect” cells were highly consistent and matched previous measurements of cell sizes in Apis mellifera ligustica (23) (worker cells, n = 4,414: cell area 25.7 ± 0.9 mm2, wall length 3.2 ± 0.1 mm, wall-to-wall length 5.4 ± 0.2 mm, and cell angles 120.0 ± 2.5°; drone cells, n = 2,586: cell area 37.5 ± 1.5 mm2, wall length 3.8 ± 0.2 mm, wall-to-wall length 6.6 ± 0.2 mm, and cell angles 120.0 ± 3.2°; mean ± SD, Fig. 1 A and B and SI Appendix, Fig. S1). For all metrics other than cell angles, worker cells were smaller than drone cells; shaded boxes in Fig. 1 B, iii encompass 99.9% of cell areas, with no overlap (99.9 CI, worker cells: 22.5 to 29.6 mm2; drone cells: 32.0 to 44.8 mm2). The same red- and blue-shaded boxes are transposed and plotted in Fig. 1 CF, ii to show the distribution of these perfect cell areas.

To transition between the two different cell sizes within a single plane of comb, workers built intermediate-sized cells as they approached the transition by gradually increasing wall lengths (Fig. 1 C, iiii). The idea of bees using intermediate-sized cells to perform worker-to-drone cell transitions was first proposed 200+ years ago (7); here we provide a quantitative description of this process and show that (1) workers do not have two fixed cell sizes, and (2) workers preemptively modify cells to accommodate the larger cells. Therefore, while drone cells are the first visible reproductive investment (24, 25), these intermediate-sized cells are their architectural precursors.

Nest construction is a distributed process, and combs initiated in separate locations (arrows in Fig. 1A) must be merged to optimize space and structural stability. Merging can occur between any combination of cell types: worker cell with drone cell, drone cell with drone cell, or worker cell with worker cell (Fig. 1 A and CF, i).

When merging worker and drone cells, the bees built intermediate-sized cells along the merge line by gradually increasing the wall lengths (Fig. 1 D, iiii). This building behavior was similar to the worker-to-drone cell transition but with more variation at the merge line (Fig. 1 C, ii and iii versus D, ii and iii).

During a drone-to-drone cell merge, workers increased the distribution of cell areas (Fig. 1 E, i) but preferentially shifted toward smaller cells (Fig. 1 E, i and ii). The mean wall length decreases at the merge and variation increases (Fig. 1 E, iii). This drop indicates that when merging two pieces of drone comb, the cells are already at the upper limit of cell area, and the workers prefer to build smaller cells, which can still be used for rearing workers despite being surrounded by drone cells. Therefore, even when building reproductive cells, workers still use nonreproductive cells as an architectural contingency plan.

Workers do regulate the proportion of drone cells in the colony (32), and unlike when merging drone cells, we did not find that the workers used reproductive cells to accommodate the worker-to-worker cell merge. Here too, the distribution of cell areas increases at the merge line, and wall lengths become more variable (Fig. 1 F, iiii). However, unlike the drone-to-drone cell merge, during a worker-to-worker cell merge, the variation is equally distributed, with workers choosing to deviate both above and below their typical worker-sized cells (Fig. 1 F, ii and iii versus E, ii and iii).

All the adjustments that workers made during comb transitions and merging occurred over an area 1 to 2 cells wide within 10 to 15 mm of either side of the transition/merge (Fig. 1 CF, i and ii). Given that a worker’s tarsi-to-tarsi span can easily cover 2 to 3 cells (hind leg: 8 mm; wall-to-wall cell length: 5.4 to 6.6 mm; SI Appendix, Fig. S1), workers likely use physical contact with the growing comb to determine which building techniques to employ.

Comparing transitions (Fig. 1C) and merging (Fig. 1 DF) shows the difficulty of uniting independent pieces of comb and also an additional building technique. Given the distribution of “perfect” cell areas (Fig. 1B), only 7 of 1,619 cells (0.4%) fell outside of these bounds during the worker-to-drone cell transition as compared to 63 of 2,819 cells (2.2%) during a worker-to-drone cell merge (generalized linear mixed-effects models [GLMM]; P = 0.001). We found similar rates of these deviant cell sizes during the other merging types (drone-to-drone cell: 64 of 2,309 cells, 2.8%; worker-to-worker cell: 109 of 5,273 cells, 2.1%; GLMM + pairwise comparisons: merging drone-to-drone versus worker-to-worker versus worker-to-drone, P > 0.05, not significant; worker-to-drone cell transitions versus each of the three merge types, P < 0.005). Therefore, the irregular-sized cells are a result of having to merge combs, not of merging combs with different cell sizes. Although some of these cells are still viable for brood rearing or honey storage, there is an upper limit of cell size for rearing drones (33), and miniscule cells are often filled with wax (SI Appendix, Fig. S2). Presumably, the selective pressure to build a nest quickly and simultaneously (34) outweighs the cost of the unusable cells that occur during comb merging.

In addition to building irregular-sized cells, the bees also built irregular shapes. Across all instances of comb transition and merging, 4.4% of the cells were nonhexagonal (n = 21 combs; total cells: 12,020; nonhexagonal cells: 534; color denotes number of walls in Fig. 1 CF, ii and Fig. 2A). As expected, the bees built a mix of 4-, 5-, 7-, 8-, and 9-sided cells (30), but the bees preferentially built 5- and 7-sided cells, which together accounted for 92.7% of the nonhexagonal cells (4-sided cells: 31, 5.8%; 5-sided cells: 233, 43.6%; 7-sided cells: 262, 49.1%; 8-sided cells: 7, 1.3%; 9-sided cells: 1, 0.2%; Fig. 2B).

Fig. 2.

Fig. 2.

An example of honeycomb with cell centers marked and colored by number of walls (hexagons marked with small orange dots). Note that the analysis does not include cells within 20 mm of the outer perimeter due to image distortion and edge effects (A). Proportion of irregular-shaped cells, across comb transitions and merging (black bars denote 95% CI; B). Frequency of irregular-shape pairs (C), triplet clusters (D), and triplet lines (E). In C through E, the black dashes show the expected incidence when each cell type is picked independently according to its frequency of occurrence. The error bars show the full range of expected incidences following 10,000 random samples, with replacement. The gray horizontal line shows expected incidence for a uniform distribution (full combinatorial sets shown in SI Appendix, Fig. S3).

In our dataset, we observed 5- and 7-sided cells that were often paired, and 4-sided cells wedged between two 7-sided cells (Fig. 2A). Even after taking into account the incidence of irregular shapes, we still found a higher frequency of 5–7 and 4–7 pairs and an under-representation of 7–7, 5–5, and 4–5 pairs (P < 0.0001; Fig. 2C). We also found an over-representation of certain triplet combinations, such as 4–7–7 triplet clusters and linear sequences of 5–7–5 and 7–5–7 sided cells (P < 0.0001; Fig. 2 D and E) as well as under-representations, such as 7–7–7 and 5–5–5 triplet clusters and linear sequences of 5–7–7 and 5–5–7–sided cells (P < 0.0001; Fig. 2 D and E). This shows that bees not only have a preference for certain types of irregular shapes but also combinations of those irregular shapes. Curiously, this same motif, pentagons paired with heptagons, is found in graphene grain boundaries, where two sheets of hexagonal carbon lattice are merged (3538). In graphene, these defects increase the material’s strength (35, 38), but whether these same benefits exist for honeycomb is unknown. This structural parallel marks a striking example of geometric convergence between molecular forces and collective nest building.

The difficulty of merging comb also depends on the cell’s relative position and tilt. Presumably, it is easier for the bees to merge two pieces of comb when the respective cell tilts are aligned because then the walls and vertices will not collide (see model with full parameter sweep for cell tilt and cell offset in SI Appendix, Fig. S5). To test this hypothesis, we first calculated the cell tilt for each hexagonal cell (Fig. 3A), binned each instance into quartiles based on the difference in cell tilt, and then plotted the proportion of nonhexagonal cells across the transition/merge (Fig. 3B). For comb transitions, all instances fell into the first quartile, showing that bees do not change the cell tilt as they transition from building worker- to drone-sized cells (Fig. 3B). When merging combs, however, the two pieces of comb are built independently, and so the difference in cell tilt can be greater. Across all types of cell merging, as the difference in cell tilt increases, so too does the proportion of nonhexagonal cells (Fig. 3B). Indeed, when the difference in cell tilt is the largest (fourth quartile), over 60% of the cells at the merge line are nonhexagonal, highlighting the importance of cell tilt during a merge.

Fig. 3.

Fig. 3.

Two examples of natural honeycomb, with each cell colored by its tilt, and black boxes showing instances of merged comb (Left box, small tilt difference; Right box, large tilt difference; dotted vertical line denotes merge line; scale at right denotes tilt angle, A). The proportion of nonhexagonal cells across all comb transitions and merging, binned according to the relative difference in cell tilt (see hexagonal shapes; line colors match quartiles). When the difference in cell tilt is small (first quartile), workers build few nonhexagonal cells, but as the difference in cell tilt increases, so too does the proportion of nonhexagonal cells (B). Cell tilt for each hexagonal cell across four instances of worker-to-worker cell merging (one example from each quartile). Note how the cell tilt gradually changes across the merge (dotted vertical line; C).

Given that cells with similar tilts are easier to merge (i.e., require fewer nonhexagonal cells), we investigated whether bees adjust cell tilt to facilitate comb merging. In Fig. 3C, we plotted the cell tilt for each individual cell in four examples of worker-to-worker cell merging (total instances of worker-to-worker cell merging: 23). Remarkably, the data indicate that bees leverage the fact that combs with similar cell tilt are easier to merge—and they gradually change the cell tilt across the merge line to match the two independent pieces of comb (e.g., first quartile, Fig. 3C). Even when the difference in cell tilt was large, the bees built hexagonal cells at the merge line with intermediate cell tilt, thereby splitting the difference between the two pieces of comb (e.g., third quartile, Fig. 3C). The bees effectively “roll” the hexagonal cells into the gap when merging combs. If the tilt difference is small, these rolling cells can maintain their hexagonal shape, but when the tilt difference is large, the bees use nonhexagonal shapes to merge the combs.

Finally, to determine to what extent we could capture different aspects of the bee’s building behavior, we built two merge strategy models of differing complexity. The first model is purposefully static to show the limitations of a rigid merging strategy. In this “naïve model” only hexagonal cells are built, but they are allowed to overlap at the merge line by a small area, epsilon (Fig. 4 A and B). As epsilon increases, wasted space decreases, but to perform as well as the bees, cells would need to overlap between 8 and 16 mm2; 30 to 60% of a worker cell (Fig. 4D).

Fig. 4.

Fig. 4.

Example of a merge line (red) between worker (Left) and drone (Right) cells. The dots mark cell centers, and the lines mark the basis vectors for each coordinate system used for hexagonal tiling (A). Illustration of the naïve model, with blue cells tiled from the Left side toward the merge line. The blue-shaded cells are added (overlap up to epsilon permitted, indicated by orange arrows), cells outlined in blue are not added, and gray shading marks unused space (B). Illustration of the global model, with red dots indicating added cell centers based on leftover area after hexagonal tiling (C, i). Output from the Voronoi tessellation based on the cell centers (blue dots), with five-sided cells shaded in pink and seven-sided cells in yellow (C, ii). Wasted area per merge line length, where wasted area is defined as cells that are outside of the lower and upper bounds of worker and drone cell areas, respectively (22 to 45 mm2; Fig. 1 B, iii) (i.e., cells too small or large to be used for brood rearing). Results from bees merging comb at Left, naïve model at Center with varying amounts of overlap permitted (epsilon), and global model at Right. For each merge instance, the models were initialized with the parameters observed in the natural comb. Color denotes merged cell types (D). The proportion of nonhexagonal cells built by the global model (Left) and the bees (Right) during comb merging. The vertical dotted line denotes merge line (E). Number of irregular cells per merge line length for the bees (x-axis) versus the global model (y-axis). The dotted line denotes 1:1 relationship and color denotes merged cell types. The points above the dotted line show instances where the workers built fewer irregular cells than the global model (and vice versa). Note that points fall on both sides of the dotted line (F). Cells built by the model (Left) and the bees (Right) during a worker-to-drone cell merge (model results for drone-to-drone cell and worker-to-worker cell merge in SI Appendix, Fig. S7). The black line and shading shows mean ± SD and data point colors denote number of walls (G).

In the second model (the “global model”), hexagons are replicated until they reach the merge line without overlap. The leftover space is then used to compute a number of additional cells, after which all cell positions are optimized using virtual springs with rest lengths defined by the original comb. Finally, the new comb is computed as a Voronoi partition of the cell centers (Fig. 4 A and C, i and ii). Note that the model only optimizes the location of the cell centers, not the cell shapes. Nevertheless, the global model shows many similarities to the bees: nonhexagonal cells are built and at similar rates (Fig. 4E); merging instances that are difficult for the bees (i.e., required more irregular shapes) are also difficult for the model (Fig. 4F); when merging worker and drone cells, intermediate-sized hexagons are built, along with paired 5- and 7-sided cells (Fig. 4 C, ii and G). Unlike the bees, the global model builds irregular cells that are within the bounds of worker- and drone-sized cells (red and blue shading in Fig. 4G), so little space is wasted (Fig. 4D). This is likely the result of being able to adjust the cell centers along the entire merge line simultaneously, unlike the bees, whose wax cells are fixed once built.

The two models serve as an upper and lower bound for the efficacy of honeybees as building agents. Workers outperform the naïve model by using irregular cell shapes, sizes, and tilts but underperform relative to the global model, likely because workers must optimize cells within constrained geometries. When faced with building tasks more complex than simple repetitive hexagons, both the global model and the bees arrive at similar strategies, including intermediate-sized cells and motifs of irregular shapes.

This rich repertoire of building behaviors suggests that there are cognitive processes behind the comb-building behavior of honeybees, not just hardwired instinct (12). While it is possible that self-organizing processes still play a role, future models must take into account the variety of cell shapes and sizes, not just the famously repeatable hexagons. By focusing on the challenges that are relevant to the honeybee’s natural history, at a per-cell basis, we show how architectural problems are overcome and the active role that workers take in shaping their nest.

Materials and Methods

Natural Comb Building.

All experiments were performed using colonies of the Western honeybee, A. m. ligustica, headed by naturally mated queens sourced from Ithaca, NY, United States. On 6 July 2017, we provided empty wooden frames to seven honeybee colonies. The wooden frames (48 × 23 cm) provided space for the workers to build comb. None of the frames contained any embossed wax comb foundation or wire supports, so the workers were free to choose where, how much, and what type of comb to build. To promote comb building, we simulated a nectar flow by providing each colony with a 2-L 50:50 (vol:vol) sucrose solution feeder. Colonies were left undisturbed, except on July 13, 16, and 19, when we noted where the bees had begun to build on each frame. If a frame was filled with comb, we removed that frame from the colony. All frames were removed from the colonies by 25 July 2017. The frames were then cleared of any stored nectar and brood by separate colonies by placing the combs atop the inner cover of the colony. Once cleaned, frames were brought indoors for safekeeping until they were photographed.

These seven colonies built 18 frames of comb. To further supplement the dataset, we added five additional frames of comb that were built by workers in colonies under similar conditions (natural comb built upon empty frames without wax foundation or supporting wires). The total dataset, therefore, includes 23 frames of comb, which originated from 12 colonies.

Each comb, however, is double sided, so to maximize the diversity and number of building challenges (see Identifying Areas of Interest), we photographed 13 of the frames of comb from both sides. The other 10 frames were photographed from one side only (the side to be photographed was selected at random). All 36 comb images were used across all analyses and can be viewed at the online digital repository AUrora (https://dx.doi.org/10.35099/aurora-58). To get the most cells per challenge type, we used images from both sides of the same comb in some instances and controlled for this in our statistical analyses, see Extracting Cell Metrics and Data Analysis. Worker-to-drone cell transition: 8 frames of comb, 0 photographed from both sides, 8 comb images total; worker-to-drone cell merge: 11 frames of comb, 2 photographed from both sides, 13 comb images total; drone-to-drone cell merge: 10 frames of comb, 3 photographed from both sides, 13 comb images total; worker-to-worker cell merge: 10 frames of comb, 3 photographed from both sides, 13 comb images total. We did not directly test how irregular cells on one side of the comb may increase or decrease the incidence of irregular cells on the opposite side.

Photography Setup.

To obtain high-quality images of the comb in a two-dimensional planar arrangement, we used a Canon EOS Rebel t6i camera (24.2 Megapixel CMOS APS-C sensor) with a long focal-length macro lens (100 mm f/2.8), controlled lighting, and a black felt background. The camera was mounted on a tripod 5 m from the comb to avoid distortion at the edges of the image. At this distance and camera resolution, 1 mm = 13.18 pixels.

Identifying Areas of Interest.

In each photograph, we identified areas of interest, which fell into three types: “perfect comb,” “transitions,” and “merging.” A given comb could have multiple instances of these three types of comb building areas of interest. “Perfect comb” is defined as areas of repeated worker- or drone-sized cells, more than 30 mm from the edges of the wooden frame, and more than 20 mm away from the edges of the comb, transitions, or merging areas. “Perfect comb” cells were used to establish the variation in worker- and drone-sized cells when workers have no barriers to building comb (i.e., no need to attach comb to a substrate or fit differently sized cells together).

“Transitions” are defined as locations where workers transition from building worker-sized cells to drone-sized cells (see also ref. 2). For these areas of interest, we selected 30 mm on either side of the transition, which encompasses five to six worker-sized cells or four to five drone-sized cells. We picked transition areas manually to ensure that the 30-mm area on either side of the transition would not overlap with the edges of the comb or other areas of interest. “Transition” cells were used to determine how cells varied as the workers shifted from building worker-sized cells to building drone-sized cells (i.e., when workers fit different sized hexagons into a single comb).

“Merging” is defined as locations where workers merge two pieces of comb into one. Merging occurs because workers build comb simultaneously on different parts of the substrate, eventually joining them into a single plane of comb (z-plane alignment). For these areas of interest, we selected 30 mm on either side of the merge line, as was done for transitions. Instances of merging were further classified by the type of combs that are being merged: worker-to-drone cells, drone-to-drone cells, and worker-to-worker cells. Merging cells were used to determine how workers join cells that may differ in size, position, and tilt.

Automated Image Analysis of Comb Cells.

To automatically detect individual cells and their vertices from the images, we first found the center of each cell by applying Adaptive Gaussian thresholding followed by Laplacian of the Gaussian blob detection. Then, the adjacent cell centers were connected by a line, and the gradient magnitude was calculated for all pixels along this line. The location of maximum gradient difference defined the center of the cell wall. Perpendicular lines were then drawn from the center of each cell wall, and where these lines intersect defined the vertices of the cell. The vertices were then connected to form the cell. To confirm that the cell centers and vertices matched the individual cells in the comb image, each image was visually inspected with the results overlaid and corrected, if necessary.

Extracting Cell Metrics and Data Analysis.

For each cell, we extracted the following metrics: wall lengths, wall-to-wall length, interior cell angles, cell areas, and cell tilt. Wall lengths were calculated as the distance between each vertex and its subsequent vertex. Wall-to-wall lengths (short diagonal) were calculated as the distance between the 0 to 2nd, 1 to 3rd, and 2 to 4th vertex. Cell angles (interior angle) were calculated for each vertex relative to its two neighboring vertices. Cell areas were calculated as the sum of the triangles that were formed by each pair of neighboring vertices and the center of the cell. Cell tilt (i.e., the orientation of the cell relative to the x-y plane) was calculated using the Kabasch Algorithm. For each hexagonal cell, we calculated the optimal rotation for a perfect, similarly sized, reference hexagon to align with the observed data and used that rotation angle as the cell tilt. All data processing and visualizations were done using the Python programming language (Python Software Foundation, version 3.6).

Statistical analyses were performed in R version 4.0.2 (39), with the packages stats, lme4, and emmeans (3941). To test whether irregular cells varied depending on the type of comb-building challenge, we used GLMM with colony ID, frame number, and comb side as nested random factors. A null model was compared to a model containing the type of comb-building challenge as an explanatory variable (i.e., transition and three merge types). The best-fit model was determined using likelihood ratio tests (42). Pairwise comparisons with a Tukey adjustment were then used to determine which, if any, classifications were significantly different from one another (worker-to-drone cell transition, worker-to-drone cell merge, drone-to-drone cell merge, and worker-to-worker cell merge).

To test whether workers were building combinations of irregular cells (“motifs”), we first calculated the expected incidence of irregular pairs and triplets using the multinomial distribution, assuming independent sampling. We then tested whether the observed frequency was significantly different from the expected frequency using the prop.test and binom.test functions in the stats package (39), with a Bonferroni correction for repeated measures. To visualize the range of expected incidences, we randomly sampled irregular cells (with replacement) and recalculated expected incidences based on this random sample. Error bars shown in Fig. 2 CE and SI Appendix, Fig. S3 show the full range of expected values based on 10,000 iterations.

Models of Comb Merging.

To model merge regions, we approached the problem from the perspective of merging two, perfectly regular, hexagonal tilings. For each observed merge line, we fitted a perfect tiling to each side (outside of the transition region) by defining an origin and two nonorthogonal basis vectors for how cell centers should be placed in space. We fitted these three points (six parameters) to the observed data using nonlinear least squares for a patch of seven cells. After fitting the parameters, the two basis vectors were 30 degrees apart, and their length corresponded to the intercell spacing for the particular type of comb. Each merge line produced two such coordinate systems (Fig. 4A), which then allowed us to predict cell centers and vertices for regularly spaced cells. We used these observed coordinate systems to test two merge strategies of different complexity.

Naïve Model.

The first model was purely local and did not attempt to construct any nonideal cells. For each merge region, we filled the space with candidate cells until they intersected with the merge line (i.e., when the predicted cell would have vertices on either side of the merge line) (SI Appendix, Fig. S4). We built a set of these intersecting cells for each region and then iteratively added them in. They were allowed to be added only if they did not intersect any existing cells by more than epsilon. For each merge line, we performed this procedure in both set orders and then picked the one that resulted in more area covered by cells. When epsilon = 0, the result is a partial covering of space with perfect cells that do not intersect at all. As epsilon increases, more space is covered, but the cells have overlap.

The naive model can further be used as an indicator of the difficulty of merging particular combs given the rotation of the cells on either side, the horizontal and vertical displacement, and the orientation of the merge line. SI Appendix, Fig. S5 shows an example sweep over two of these parameters. With zero offset and perfect angular alignment, all space can be divided up into the preferred area distribution. With any angular difference, the potential for wasted space becomes significantly more difficult; however, the model indicates that the most difficult situation is when the combs are misaligned in a particular horizontal range, independent of the epsilon.

Global Optimization Model.

The second model used global optimization to find a complete covering of space with possibly deformed cells. The approach has four steps (SI Appendix, Fig. S6):

  • 1)

    The procedure starts with the output from the naive model above with (epsilon = 0) to find areas that could not be covered with perfectly regular cells. We then divided the leftover area by the area of a perfect cell to find the number, N, of additional cells that needed to be placed. Since the perfect cells on either side of the merge line could have different areas, we computed the number of added cells for both sides and then averaged and rounded the result.

  • 2)

    We then iteratively added N cell centers by finding the points in the noncovered area that were maximally distant from all previously placed cell centers. We picked the furthest one and repeated this procedure N times. This gave us the right number of candidate cells and reasonable initial locations for optimization.

  • 3)

    We optimized cell placement by placing virtual springs between adjacent cell centers where the rest lengths initially corresponded to the spacing in the perfectly regular comb. For springs that connected added points, the connection could be ambiguous, and we resolved these situations by triangulating the point sets with edges and choosing edge combinations that were closest to regular comb center-center distances. In merge areas, this could produce cell centers that were over (more than six) or under (less than six) connected. Springs that connected centers from different regions used the average length, as did cells that were placed in the second step and did not have an obvious rest length. We then adjusted the position of cell centers that were +/− 1.5 cell lengths from the merge line by finding the minimum energy configuration of the system using sequential least squares optimization. Finally, we computed the new comb as the Voronoi partition produced by these adjusted cell centers.

Supplementary Material

Supplementary File

Acknowledgments

We thank Bryan Howard Zhao, Minze Mo, and Minyang Yang for their work on the automated image analysis tool as part of their M.Eng. design project, Jonna Chen for help marking comb images, Erika Mudrak for statistical consulting, and Iain Couzin, Ian Etheredge, Jacob Graving, Ben Koger, Vivek Sridhar, and Cissy Ballen for helpful input. This work was supported by the Simons Foundation Postdoctoral Fellowship of the Life Sciences Research Foundation (M.L.S.), the NSF (No. 1600775, No. 1739671, No. 1846340, and No. 2042411), the Deutsche Forschungsgemeinschaft (German Research Foundation) under Germany’s Excellence Strategy EXC 2117-422037984, the Packard Fellowship for Science and Engineering, and GETTYLABS.

Footnotes

The authors declare no competing interest.

This article is a PNAS Direct Submission.

See online for related content such as Commentaries.

This article contains supporting information online at https://www.pnas.org/lookup/suppl/doi:10.1073/pnas.2103605118/-/DCSupplemental.

Data Availability

Images of the combs used in this study can be found at Auburn University’s open access online repository, AUrora: https://dx.doi.org/10.35099/aurora-58 (43). All other study data are included in the article and/or SI Appendix.

References

  • 1.Ribbands C. R., The Behaviour and Social Life of Honeybees (Bee Research Association, London, UK, 1953). [Google Scholar]
  • 2.Hepburn H. R., Pirk C. W. W., Duangphakdee O., Honeybee Nests: Composition, Structure, Function (Springer-Verlag, Berlin, DE, 2014). [Google Scholar]
  • 3.Goss D., et al., Bioinspired honeycomb core design: An experimental study of the role of corner radius, coping and interface. Biomimetics (Basel) 5, 1–24 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Smith M. L., “Nest structure: Honey bees” in Encyclopedia of Social Insects, Starr C. K., Ed. (Springer, Nature, CH, 2020), pp. 1–7. [Google Scholar]
  • 5.Thompson D. W., On Growth and Form (Cambridge University Press, Cambridge, UK, 1942). [Google Scholar]
  • 6.Darwin C., On the Origin of Species by Means of Natural Selection (John Murray, London, UK, ed. 1, 1859). [Google Scholar]
  • 7.Huber F., Nouvelles Observations sur les Abeilles, New Observations Upon Bees (trans. C. P. Dadant, American Bee Journal, Hamilton, IL, ed. 2, 1814/1926).
  • 8.Casteel D. B., The Manipulation of the Wax Scales of the Honey Bee (United States Department of Agriculture, 1912), vol. 161, pp. 1–13. [Google Scholar]
  • 9.Lindauer M., Ein Beitrag zur Frage der Arbeitsteilung im Bienenstaat. Z. Vgl. Physiol. 34, 299–345 (1952). [Google Scholar]
  • 10.Weiss K., Über den Zuckerverbrauch und die Beanspruchung der Bienen bei der Wachserzeugung. Z. Bienenforsch 8, 106–124 (1965). [Google Scholar]
  • 11.Nazzi F., The hexagonal shape of the honeycomb cells depends on the construction behavior of bees. Sci. Rep. 6, 28341 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Gallo V., Chittka L., Cognitive aspects of comb-building in the honeybee? Front. Psychol. 9, 900 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Kepler J., Strena seu de Nive Sexangula (The Six-Cornered Snowflake, Frankfurt, DE, 1611). [Google Scholar]
  • 14.Tomkeieff S. I., The basalt lavas of the Giant’s Causeway district of Northern Ireland. Bull. Volcanol. 6, 89–143 (1940). [Google Scholar]
  • 15.Hales T. C., The honeycomb conjecture. Discrete Comput. Geom. 25, 1–22 (2001). [Google Scholar]
  • 16.Mughal A., Libertiny T., Schröder-Turk G. E., How bees and foams respond to curved confinement: Level set boundary representations in the Surface Evolver. Colloids Surf. A Physicochem. Eng. Asp. 534, 94–104 (2017). [Google Scholar]
  • 17.Pirk C. W. W., Hepburn H. R., Radloff S. E., Tautz J., Honeybee combs: Construction through a liquid equilibrium process? Naturwissenschaften 91, 350–353 (2004). [DOI] [PubMed] [Google Scholar]
  • 18.Karihaloo B. L., Zhang K., Wang J., Honeybee combs: How the circular cells transform into rounded hexagons. J. R. Soc. Interface 10, 20130299 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Bauer D., Bienefeld K., Hexagonal comb cells of honeybees are not produced via a liquid equilibrium process. Naturwissenschaften 100, 45–49 (2013). [DOI] [PubMed] [Google Scholar]
  • 20.West-Eberhard M. J., “The Social Biology of Polistine Wasps,” Thesis, University of Michigan, Ann Arbor, MI (1969).
  • 21.Downing H. A., Jeanne R. L., Intra- and interspecific variation in nest architecture in the paper wasp. Insectes Soc. 33, 422–443 (1986). [Google Scholar]
  • 22.Oldroyd B. P., Pratt S. C., Comb architecture of the eusocial bees arises from simple rules used during cell building. Adv. Insect Physiol. 49, 101–122 (2015). [Google Scholar]
  • 23.Martin H., Lindauer M., Sinnesphysiologische Leistungen beim Wabenbau der Honigbiene. Z. Vgl. Physiol. 53, 372–404 (1966). [Google Scholar]
  • 24.Boes K. E., Honeybee colony drone production and maintenance in accordance with environmental factors: An interplay of queen and worker decisions. Insectes Soc. 57, 1–9 (2010). [Google Scholar]
  • 25.Smith M. L., Ostwald M. M., Seeley T. D., Honey bee sociometry: Tracking honey bee colonies and their nest contents from colony founding until death. Insectes Soc. 63, 553–563 (2016). [Google Scholar]
  • 26.Smith M. L., Ostwald M. M., Loftus J. C., Seeley T. D., A critical number of workers in a honeybee colony triggers investment in reproduction. Naturwissenschaften 101, 783–790 (2014). [DOI] [PubMed] [Google Scholar]
  • 27.Seeley T. D., Morse R. A., The nest of the honey bee (Apis mellifera L.). Insectes Soc. 23, 495–512 (1976). [Google Scholar]
  • 28.Vogt H., Geometrie und Ökonomie der Bienenzelle (Trewendt und Granier, Breslau, PO, 1911). [Google Scholar]
  • 29.Darchen R., Quelques régulations sociales dans la construction chez les Abeilles. Insectes Soc. 1, 219–228 (1954). [PubMed] [Google Scholar]
  • 30.Hepburn H. R., Whiffler L. A., Construction defects define pattern and method in comb building by honeybees. Apidologie (Celle) 22, 381–388 (1991). [Google Scholar]
  • 31.Pratt S. C., Gravity-independent orientation of honeycomb cells. Naturwissenschaften 87, 33–35 (2000). [DOI] [PubMed] [Google Scholar]
  • 32.Pratt S. C., Decentralized control of drone comb construction in honey bee colonies. Behav. Ecol. Sociobiol. 42, 193–205 (1998). [Google Scholar]
  • 33.Hepburn H. R., Comb construction by the African honeybee, Apis mellifera adansonii. J. Entomol. Soc. South. Afr. 46, 87–101 (1983). [Google Scholar]
  • 34.Seeley T. D., Visscher P. K., Survival of honeybees in cold climates: The critical timing of colony growth and reproduction. Ecol. Entomol. 10, 81–88 (1985). [Google Scholar]
  • 35.Grantab R., Shenoy V. B., Ruoff R. S., Anomalous strength characteristics of tilt grain boundaries in graphene. Science 330, 946–948 (2010). [DOI] [PubMed] [Google Scholar]
  • 36.Malola S., Häkkinen H., Koskinen P., Structural, chemical, and dynamical trends in graphene grain boundaries. Phys. Rev. B Condens. Matter Mater. Phys. 81, 1–6 (2010). [Google Scholar]
  • 37.Huang P. Y., et al., Grains and grain boundaries in single-layer graphene atomic patchwork quilts. Nature 469, 389–392 (2011). [DOI] [PubMed] [Google Scholar]
  • 38.Wei Y., et al., The nature of strength enhancement and weakening by pentagon-heptagon defects in graphene. Nat. Mater. 11, 759–763 (2012). [DOI] [PubMed] [Google Scholar]
  • 39.R Core Team , R: A Language and Environment for Statistical Computing (R Core Team, Vienna, 2020). [Google Scholar]
  • 40.Bates D., Mächler M., Bolker B. M., Walker S. C., Fitting linear mixed-effects models using lme4. J. Stat. Softw. 67, 1–48 (2015). [Google Scholar]
  • 41.Lenth R. V., emmeans: Estimated Marginal Means, Aka Least-Squares Means. R Package v 1.5.5-1 (2021). https://CRAN.R-project.org/package=emmeans. Accessed 17 June 2021.
  • 42.Lewis F., Butler A., Gilbert L., A unified approach to model selection using the likelihood ratio test. Methods Ecol. Evol. 2, 155–162 (2011). [Google Scholar]
  • 43.Smith M. L., Images of natural comb. Auburn University Scholarly Repository. 10.35099/aurora-58. Deposited 10 April 2021. [DOI]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary File

Data Availability Statement

Images of the combs used in this study can be found at Auburn University’s open access online repository, AUrora: https://dx.doi.org/10.35099/aurora-58 (43). All other study data are included in the article and/or SI Appendix.


Articles from Proceedings of the National Academy of Sciences of the United States of America are provided here courtesy of National Academy of Sciences

RESOURCES