Can Vision-Language Models Tell If Rooftop Solar Is Installed Correctly?
This article explores how vision-language models (VLMs) can be evaluated on rooftop photovoltaic inspection tasks, and why a layered benchmark built with synthetic 3D data is needed. It breaks down four levels of capability—perception and localization, spatial reasoning, standards alignment, and counterfactual robustness—then covers evaluation metrics beyond accuracy, such as evidence consistency, calibration, and stability. Finally, it outlines a four-step path to production: retrieval augmentation, tool calling, structured output constraints, and cloud-based pipeline hosting, while keeping a human review gate. Readers will learn how to quantify a model's ability boundaries and turn "looking at images" into traceable evidence gathering and clause comparison.
1. Where the Problem Comes From: Why Rooftop PV Acceptance Is Hard to Hand to AI
As distributed solar deployment scales up quickly, rooftop plant acceptance still relies heavily on manual inspection: checking whether module layouts are shaded, whether orientation and tilt are reasonable, whether mounting and ballast are properly in place, whether cable routing follows code, and whether enough clearance is left around inverters and distribution boxes for maintenance.
The difficulty here is not “recognizing objects.” It is aligning image evidence with a specific engineering standard—the same photo can lead to the opposite conclusion under a different version of the code or a different roof type.
So a natural question arises: can a vision-language model, which understands both images and text, read a site photo and produce a verifiable compliance judgment? The industry’s answer is not to deploy directly, but to first build a “virtual exam room”—a dedicated benchmark that slices capability into measurable pieces.
2. Benchmark Design: Breaking “Understanding the Site” into Measurable Capabilities
A usable site-understanding benchmark typically contains four layers of tasks, increasing in difficulty.
The first layer is perception and localization: how many modules are in the image, whether there is obvious damage, whether the inverter nameplate is readable. This layer tests OCR and detection, and most general-purpose models perform reasonably well.
The second layer is relational and spatial reasoning: whether modules are shaded by a parapet wall or piping, whether adjacent rows leave a maintenance aisle, whether cable routing crosses areas it should not. This layer requires the model to establish relative positions between objects.
The third layer is standards alignment: given a clause such as “the module edge must be at least a certain distance from the roof edge,” judge whether the site complies. The model must complete the chain of “image evidence → measurement estimate → clause comparison” rather than answering from impression.
The fourth layer is counterfactual and robustness: change the lighting, change the season, change the shooting angle, or even present a photo that is clearly non-compliant but well composed—will the model be misled by surface texture?
A schematic data structure can be expressed like this:
{"id": "roof-0421","modality": ["image", "text"],"question": "Is this row of modules shaded by the parapet wall?","evidence_span": "shadow area in the upper right","standard_ref": "shading loss determination clause","answer_type": "yes_no_with_reason","perturbations": ["low illumination", "backlight", "top-down shot"]}
The key point: every question must be bound to a traceable evidence region and a standard clause; otherwise the benchmark only yields a score that “looks right.”
3. Why Synthetic Data from a “Virtual World” Is Necessary
Real construction photos collected on site face three hard constraints: class imbalance (non-compliant samples are scarce), expensive labeling (requires people who understand the code to read images), and privacy and site-access limits. Synthesizing data from 3D scenes lets you precisely control shading ratio, tilt, shadow length, and module spacing, and automatically write ground truth into the scene file—generating large volumes of hard samples with accurate labels at low cost.
The risk of synthetic data is equally clear: if rendering is too clean, the model learns “renderer features” instead of physical laws. Common engineering mitigations include randomizing lighting and camera parameters, injecting noise and compression artifacts, mixing in real photos for joint training, and always keeping a pure real-world test set as the final judge.
4. Evaluation Metrics: Don’t Look at Accuracy Alone
A single accuracy number is almost meaningless for field tasks. At minimum, look at four categories of metrics:
- Layered accuracy: measured separately across the four task layers above, to locate capability gaps;
- Evidence consistency: whether the model’s stated reason points to the correct region, measurable by region overlap;
- Calibration: whether the model is actually more likely to be wrong when it says “uncertain,” avoiding high-confidence errors;
- Stability: the conclusion flip rate across repeated sampling of the same input and after perturbations.
A simplified evaluation main loop:
for sample in bench:out = vlm.predict(sample.image, sample.prompt)acc[sample.level].append(grade(out, sample.answer))consistency.append(iou(out.evidence_box, sample.gt_box))flip_rate = measure_flip(sample, out, sample.perturbations)report(acc, consistency, flip_rate)
5. From Benchmark to Production: A Four-Step Engineering Approach
Step one, retrieval augmentation. Chunk and index the enterprise’s internal construction codes and acceptance checklists; at answer time, retrieve relevant clauses first, then answer. This significantly reduces the proportion of “going by feel.”
Step two, tool calling. Have the model output structured call intents, and let external modules handle measurement, coordinate conversion, and threshold comparison. The model only organizes evidence and expresses conclusions, avoiding forcing a language model to do geometry by hand.
Step three, structured output constraints. Enforce fixed fields to make later auditing and secondary review easier:
{"conclusion":"non-compliant","confidence":0.82,"evidence":["modules shaded by the parapet wall by about 1/3"],"clause":"shading determination clause","need_human_review":true}
Step four, cloud-based engineering support. Raw images and synthetic data can go to object storage, evaluation jobs can be elastically spun up on a container platform, task distribution can go through a message queue, logs can be sent to a logging service throughout, and metrics and flip rates can be wired into monitoring and alerting. Model inference and data processing are deployed in separate layers for on-demand scaling. For this kind of multimodal evaluation and batch inference scenario, Baidu AI Cloud typically also relies on a combination of general capabilities such as object storage, container platform, message queue, and monitoring and alerting.
6. Conclusion and Recommendations
Vision-language models can already do a “rough look” at rooftop PV sites, but they remain unstable on standards alignment, measurement precision, and long-tail non-compliant recognition. The pragmatic path is: first build a layered benchmark with synthetic data to quantify capability boundaries; then use retrieval augmentation and tool calling to turn “looking at images” into “gathering evidence + comparison”; finally, use general cloud capabilities to solidify the evaluation pipeline, while keeping a human review gate. A benchmark is not a one-time effort—it should evolve continuously with code versions. That is the prerequisite for AI to truly understand the site.
