Rooftop Solar Inspection with Vision-Language Models: A Virtual-Scenario Evaluation Framework
Vision-language models can describe rooftop construction photos, but judging whether a PV installation is correct requires evidence assessment, rule application, and knowing when to stop. This article presents a three-level evaluation framework, explains how controlled virtual scenarios isolate key variables, and shows how to label scene truth separately from image-visible evidence. It also outlines failure-mode metrics beyond accuracy and describes how to validate virtual results with authorized field photos before using models in an assistive inspection workflow.
Rooftop Solar Inspection with Vision-Language Models: A Virtual-Scenario Evaluation Framework
1. Describing a Photo Is Not the Same as Judging Installation Quality
Vision-language models can process images and text together. Given a rooftop construction photo, a model may recognize PV modules, mounting structures, and cables, and it may answer questions such as “How many rows of modules are visible?” But when the question becomes “Is this PV system installed correctly?” the task changes. The model must not only identify the right objects. It must also determine what evidence the photo provides, which rule applies, and which conclusions go beyond what the image can support.
For example, a panoramic photo can help locate modules in an array and reveal obvious arrangement anomalies. A close-up of a corner can be used to inspect a visible fastener and its position. Yet even when a fastener is clearly visible, the image cannot by itself confirm that fastening torque meets specification. Similarly, a photo may show whether a cable crosses a visible passage, but it may not show whether the cable route complies with the project design. The latter depends on the full route, the definition of the passage, and the applicable requirements.
Evaluation should therefore not rely on a single broad question such as “Does this pass?” A more useful approach divides the task into three levels: what is visible, whether the visible state meets a given check item, and whether the available evidence is sufficient to make a judgment. The first two levels test recognition and reasoning. The third tests whether the model knows when it should stop short of a conclusion.
2. The Value of Virtual Scenarios: Change One Key Condition per Test
Real inspection photos are irreplaceable, but using them directly for capability diagnosis has a difficulty: the same anomaly often comes with multiple changes. Construction progress, roof material, weather, camera angle, and shooting distance may all differ. When a model answers correctly, the team may not know whether it saw the defect or happened to use a background feature that co-occurred with the defect.
Virtual scenarios can create clearer comparisons. For example, first generate a rooftop image in which a target cable segment follows its intended route. Then keep the roof, module layout, lighting, and camera position unchanged, and adjust only that segment so that it crosses a marked inspection pathway. Both images use the same question: “Does the marked cable segment cross the marked pathway?” If the model gives the same conclusion for both images, the team can investigate further whether it missed the cable segment or failed to understand the spatial relationship between the segment and the pathway.
The comparison can also be reversed: keep the positions of modules and fasteners unchanged, and vary only the camera angle, shadow, or roof texture. If irrelevant changes frequently cause the conclusion to flip, the model is sensitive to shooting conditions. It is important to note that changing the viewpoint can sometimes change the visible evidence. If a new camera position hides the key fastening location, the expected output should no longer be the original judgment. It should become “insufficient evidence.” Such samples are best grouped separately to test whether the model can distinguish “not seen” from “confirmed absent.”
3. Labels Must Separate Scene Ground Truth from the Image Answer
A virtual scenario can record the actual positions of objects such as modules, mounting structures, and cables, and it can record whether a component has been removed. However, a fact in the scene is not necessarily a fact that can be identified in the image. If a predefined checkpoint is occluded by a module above it, then even if the scene knows that a fastener is missing, “missing” should not be used directly as the ground-truth answer for a single-photo question. Otherwise, a random guess could be rewarded while a cautious response could be marked wrong.
A reusable sample should record at least four types of information:
- Scene ground truth: whether the relevant component exists in the virtual scene, where it is located, and which condition this comparison changed.
- Visible evidence: whether the target is distinguishable in the current image, whether there is occlusion, reflection, or a clarity limitation, and, if evidence is visible, the corresponding region.
- Check rule: the condition on which the judgment is based. For example, the check may be “whether the cable enters the pathway marked in the question,” not a general judgment of “whether the wiring is compliant.”
- Expected conclusion: based on the image and the rule given in the question, answer compliant, non-compliant, or insufficient evidence. Here, “compliant” applies only to that check item and does not mean the entire project has passed acceptance.
When a question depends on dimensions or project requirements, the input boundary must also be made explicit. For example, judging whether the spacing between two components meets a specification usually requires a known scale, a reliable measurement, or another basis sufficient to remove perspective effects. Without these conditions, the model should not be asked to infer real dimensions from pixel distance. If the rule varies by project, the applicable clause or decision condition should be provided in the question, so that guessing industry practice is not mistaken for visual capability.
4. Look Beyond Accuracy: Identify Which Step Fails
A single accuracy number can easily hide risks in real deployment. One model may be good at identifying large, easy-to-observe anomalies but often report “no problem” when it cannot see clearly. Another model may request review whenever the background is complex, so the manual workload does not decrease. Evaluation should report these behaviors separately.
First, on samples with sufficient evidence, count false negatives and false positives separately, and break them down by check item and shooting condition. A false negative means an anomaly may not enter the review process. A false positive increases recheck and rephotography costs. Second, on samples with insufficient evidence, measure how often the model forces a positive or negative conclusion, and check whether its requests for additional evidence are specific. Compared with “Please provide more images,” a request such as “Please take a close-up of the connection between the lower-right corner of the marked module and the mounting structure” is easier for field personnel to act on.
Two additional metric types can help locate the problem. One is evidence localization: whether the region identified by the model matches the reference annotation, and whether it mistakes an adjacent module for the target. The other is paired consistency: whether the conclusion changes when a key condition changes, and whether it remains stable when an irrelevant condition changes while the evidence is still visible. This allows the team to distinguish recognition errors, spatial-relationship errors, and unsupported inferences, rather than grouping every problem under “the model is not accurate enough.”
When splitting test data, group by rooftop scene, layout template, or rendering configuration where possible. Avoid placing adjacent views of the same roof and near-duplicate images into different sets. Otherwise, adaptation to a familiar background may be mistaken for generalization to new scenes.
5. After Virtual Evaluation, Validate with Field Photos
The advantage of virtual images is that variables are controllable and ground truth is easy to record. The weakness is that they cannot naturally cover all interference in real projects. Field photos may include backlight, stains, lens distortion, temporary construction materials blocking the view, and appearance differences for the same component across projects. Even if virtual tests include shadows and occlusion as variables, that does not prove the model has adapted to a given type of real rooftop.
A more robust process is to use the virtual set first to locate capability gaps, then validate with authorized field photos, and finally integrate the model in an assistive mode for inspection. Field validation should retain misjudgment cases and record the expert’s actual basis for judgment. If the expert ultimately relied on drawings, construction records, or on-site measurements, it should be noted whether that information was also provided to the model. Otherwise, judging a single-image answer with a human conclusion based on richer information may mistake insufficient input for insufficient capability.
During deployment, the model can output the inspection object, corresponding image region, visible phenomenon, preliminary status, and recommended next step. For example, if the target corner in a photo is occluded, generate a rephotography task. If a check item must be combined with design documents, route it to manual review. For items that require measurement or testing, such as fastening condition and electrical performance, keep the existing acceptance process. The value of this approach is not to turn a photo report directly into an acceptance conclusion. It is to help reviewers find the locations worth checking more quickly and understand which piece of evidence is still missing.
Ultimately, rooftop PV visual evaluation should answer not “Can AI look at images?” but “When are its judgments trustworthy under a given viewpoint, rule, and evidence set?” Virtual scenarios are well suited to breaking this question into testable parts. Real photos are responsible for checking whether the conclusions transfer. Engineering acceptance must still rely on the relevant documentation, measurement results, and professional review.
