eduardofrafre.com / lab

Lab notebook · Santa Catarina, Brazil

Questions about living things, worked out in software.

Science projects, filed by area.

ECOarea 1

Ecology & biodiversity

Where species are recorded, and where nobody has looked.

BioFrontier SC

Question

Where in Santa Catarina has nobody looked yet?

Biodiversity records cluster along roads, around universities and wherever somebody already went. An empty patch on the map can mean nothing lives there, or that nobody has been.

Result

An open hexbin atlas of where nobody has looked yet. It ranks biodiversity survey gaps across the state, so a student or a lab can find the places most likely to hold something unrecorded.

occurrence records
69,290
species
7,616
localities ranked
2,396
Method

Records from GBIF and iNaturalist are deduplicated across sources and binned into H3 cells. Each cell gets a frontier score from survey effort, observer count and habitat, measured as native forest cover from MapBiomas. People in the field can send observations back, and a record counts once two others independently agree on it.

Read the scores as a hypothesis. The weights come from first principles and have not been calibrated against expert judgement, so the ranking says more than any single number. Each location shows whether weak, moderate or strong evidence stands behind it.

Wantedresearchers who know SC

Help calibrate the frontier score, or add observations in the atlas.

Built with Next.js · TypeScript · H3 · Leaflet · Supabase

Santa Catarina drawn as 5,852 hexagonal cells. Surveyed cells glow blue, densest along the coast; much of the interior is empty outlines.Santa Catarina drawn as 5,852 hexagonal cells. Surveyed cells glow blue, densest along the coast; much of the interior is empty outlines.
Plate 1. Santa Catarina in 5,852 cells, from the atlas's own data. unsurveyed -> most records

Hidden Lineages

Question

Which fish in the south are two species under one name?

A DNA barcode works like a species fingerprint. When animals with the same name carry two clearly different fingerprints, the name may be hiding a species nobody has described.

Result

Seven fish whose public barcodes split into separate groups, each with the evidence behind it and a map of where each group was collected. Candidates for a specialist to examine, not new species.

DNA barcodes read
6,336
names split
74
fish candidates
7
Method

Every public barcode from the three southern states is grouped by BOLD's clusters (BINs). Names split across groups they dominate are kept; mislabelled records and names that share a cluster are set aside. ASAP, an independent method, then checks for a real gap between the groups.

Read these as questions. One gene can mislead, the data are thin, and how often the method raises a false alarm is not yet measured.

Built with Python · ASAP · BOLD v5 API

Paraná, Santa Catarina and Rio Grande do Sul in outline, with a grey dot at every site where a usable DNA barcode was collected. The sites of the seven candidate fish stand out in blue, most of them in Paraná and along the coast.Paraná, Santa Catarina and Rio Grande do Sul in outline, with a grey dot at every site where a usable DNA barcode was collected. The sites of the seven candidate fish stand out in blue, most of them in Paraná and along the coast.
Plate 2. Every site in PR, SC and RS with a usable barcode; the candidates' sites in blue.
AGRarea 2

Agriculture

Measuring a crop closely enough to act before it is lost.

Integrated Hydroponics Farm System

Question

Can a hydroponic farm catch a problem before it costs a harvest?

In hydroponics the nutrient solution is the soil. When its conductivity or pH drifts, the plants feel it long before anyone sees it.

Result

Continuous monitoring from the sensor on the tank to the screen in the grower's hand. EC, pH, temperature and humidity are read constantly, so a problem is caught early. Presented at Latin.science, Latinoware 2025, and published in the proceedings by the Brazilian Computer Society.

  1. 01

    Controller

    C++ · ESP32 · PlatformIO

    Reads the sensors and publishes over MQTT.

    Source
  2. 02

    Ingestion

    Python · MQTT · MongoDB

    Persists the stream of readings as it arrives.

    Source
  3. 03

    API

    NestJS · Prisma · DDD

    The back end, built on clean architecture.

    Source
  4. 04

    App

    React · React Query · Tailwind

    The grower's view of the farm.

    Source
  5. 05

    Infrastructure

    Docker · Compose · Shell

    Brings the whole system up in one step.

    Source
Fig. 1. The system as five repositories, sensor to screen.

The lab is open. If you work on any of these questions, write.