Nirmaan AI

"Chat. Design. Verify. Build safer."

Hackman XShipped October 27, 2026#general#ai#infra#climate
Visit Repo
Nirmaan AI banner

About

## The problem it solves

Planning a house in India means answering several questions at once:

  • Layout: how many floors and rooms, and where they go on the plot.
  • Cost: will it fit the budget at real rates, not a contractor's rough guess?
  • Safety: is the structure sound, and how will it behave in an earthquake in this seismic zone?
  • Regulation: does it meet fire-safety, height and building-code rules?
  • Long-term cost: what will repainting, waterproofing and replacements cost over 30 years?

Today these are answered by hand, across separate tools: a sketch for the layout, a spreadsheet for the cost, and code books that only engineers can read. CAD software is hard to learn, and AI chatbots answer confidently with nothing checking that the answer is physically or financially valid. As a result, most homeowners decide on a ₹50 lakh+ investment based on guesswork.

✅ What people can use it for

  • Homeowners: design a house by just typing ("add 2 bedrooms on floor 1", "build it in Mysuru"). You see the 3D model, the cost and the risks update instantly, before you pay an architect or a contractor.
  • Budget checks: every change is priced from the official Karnataka PWD Schedule of Rates 2023-24, line by line (cement bags, steel in kg, flooring, fittings), each with its SR item code. You can check a contractor's quote against government rates.
  • Choosing a site: mark the plot on a satellite map or use GPS. The app pulls the official seismic zone, design wind speed, 3 years of measured climate, elevation and the local earthquake history, and refuses a plot that overlaps an existing building.
  • Safety checks: it runs an IS 1893:2016 seismic analysis on your actual floors and walls, adds an ML structural-risk score, and warns when a design needs an engineer's dynamic analysis.
  • Quick what-ifs: "What if I add a floor?", "Brick or AAC block?", "Is roof insulation worth it?" Each gets an answer in seconds instead of days.
  • Generate a design (Pro): describe "3BHK on two floors with parking, budget 60 lakh". It searches hundreds of layouts and returns the best one that fits the budget and passes the code checks, ready to edit.
  • Lifetime cost (Pro): a maintenance schedule (CPWD), component replacements, energy performance of the walls and roof (Eco-Niwas Samhita) and rainwater-harvesting potential, so you can compare designs on 30-year cost, not just build cost.
  • Students and small builders: learn and explore how codes, loads and costs interact, with every number linked to its official source.

🛡️ How it makes things easier and safer

  • The AI can't be talked into an unsafe building. Gemini only translates your words. Fixed engineering checks for budget, structure, compliance and placement approve or refuse every change, so the same request always gives the same verified result.
  • Official data, not made-up numbers. Rates come from KPWD, seismic zones from IS 1893 and BMTPC, wind from IS 875, and climate from ERA5. Placeholder values are clearly marked.
  • No expertise or setup needed. Plain language, live 3D and the map replace code books, spreadsheets and CAD.
  • Mistakes are caught early. Overhanging floors, over-budget changes, too many rooms per floor and occupied plots are flagged before any money is spent.
  • Honest about its limits. It flags estimates outside their valid range, shows soil data as indicative only (a site test is still needed), and is a planning aid, not a replacement for a structural engineer.

## Challenges we ran into

📄 1. Turning a 326-page government PDF into reliable data

The official Karnataka PWD Schedule of Rates is only published as a PDF. Text extraction scrambled the table columns. For example, a sand relation came out as 397A – 0.76 when the printed page says 0.397A, which would have made costs off by 1000×.

Fix: we parsed all 1,175 items and 906 materials with pypdf and regular expressions, but used that data only for search. The ~40 rates and the quantity formulas the estimator actually uses were checked by hand against the rendered pages. Each value stores its page number and whether it's verified.

🧱 2. The official data had gaps, and some formulas went negative

  • Cement, steel and sand rates, and the regional cost loading, are in Vol 1, which we didn't have. Vol 2 only refers to them.
  • The 4-storey quantity formulas are valid only up to 100 m², and beyond that they give negative amounts of steel.
  • Pricing finished masonry and plaster items on top of the quantity formulas counted the cement and sand twice.

Fix: missing rates are clearly labelled placeholders in the UI. Buildings of 3 or more storeys use the 2-storey formula and are flagged "approximate". Finished items are used only for what the formulas exclude (flooring, sanitary fittings, waterproofing). Until Vol 1 is entered, an interim regional premium based on seismic zone, soil and wind stands in for the regional loading.

🗺️ 3. Detecting existing buildings on the satellite map

We wanted to refuse a house placed on top of an existing building, but: - The OpenStreetMap vector tiles merge many buildings into one MultiPolygon, so we couldn't test or hide individual buildings. - The same building appears in neighbouring tiles. - Outlines only load when zoomed in, so a click from far out always came back as "empty land". - Redrawing the buildings on every map idle event caused an infinite render loop. - Esri zoom-19 imagery showed black squares in parts of Karnataka.

Fix: we split the MultiPolygons back into single buildings, removed duplicates using a coordinate key, and redraw only when the set of buildings changes. Clicks from far out zoom in first and ask again, and plot-versus-building overlap uses our own polygon test. Satellite imagery is capped at zoom 18 and stretched beyond it.

🌍 4. Seismic risk calibrated for the wrong country

The standard HAZUS damage curves are calibrated for US design accelerations of 0.3 g and above. Karnataka's zones are 0.10 to 0.16 g, so every building scored "no risk", and the ML model learned nothing.

Fix: we rescaled the capacity thresholds to India's IS 1893 range, keeping the lognormal fragility shape, and added wind and load irregularity as secondary terms. We also found that the 2025 revision of IS 1893 was withdrawn in March 2026, so the analysis follows the 2016 edition, which is in force.

🤖 5. Keeping the AI from making things up

Gemini would happily invent room sizes and sometimes claimed it had "changed the building" when answering a question. The google-generativeai SDK was also deprecated, and the API returned 429/503 errors under load.

Fix:

- Gemini only outputs a structured action. Fixed checks decide everything else. - The prompt forbids invented sizes, and the app asks the user instead. - We call the REST API directly with retries, and a rule-based parser takes over whenever Gemini fails, so the app works with no API key at all.

📍 6. The server can't see your GPS

"Use my current location" arrives at the backend, but only the browser can read GPS.

Fix: a clientAction: "request_geolocation" field in the chat response. The frontend asks for permission and posts the coordinates back. Place search goes through OpenStreetMap Nominatim, whose usage policy allows 1 request per second. We serialise, space out and cache those calls, and fall back to the nearest district when the service is offline.

🧪 7. Editing an AI design without touching the user's building

The generated design had to be editable with all the normal tools without affecting the user's real building.

Fix: two workspaces, main and draft, chosen per request with an X-Workspace header through middleware. The same endpoints work on either, and "Apply" swaps the draft in.

🔁 8. Training and serving drift, and fragile demos

Fix: feature building lives in one shared file, model/features.py, used by both training and the backend. Every model call falls back in order: the official bill of quantities first, then the ML model, then a formula. A missing model file can never crash a demo. The backend tests (44 passing) mock Gemini and the climate lookup so they run offline.

Screenshots

Nirmaan AI screenshot 1Nirmaan AI screenshot 2

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.