<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Baaz on Medium]]></title>
        <description><![CDATA[Stories by Baaz on Medium]]></description>
        <link>https://medium.com/@laxman.sharma_38047?source=rss-02b6e97dfc38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qkYXeNibkNmA3A98NoJ-gQ.png</url>
            <title>Stories by Baaz on Medium</title>
            <link>https://medium.com/@laxman.sharma_38047?source=rss-02b6e97dfc38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:25:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laxman.sharma_38047/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Use of AI in Computer Vision]]></title>
            <link>https://medium.com/@laxman.sharma_38047/the-use-of-ai-in-computer-vision-331d29f1382e?source=rss-02b6e97dfc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/331d29f1382e</guid>
            <dc:creator><![CDATA[Baaz]]></dc:creator>
            <pubDate>Sun, 06 Sep 2026 09:00:32 GMT</pubDate>
            <atom:updated>2026-09-06T09:00:32.036Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>AI turned computer vision from a set of hand-written rules into systems that learn what images mean. Convolutional neural networks read local detail like cracks and scratches, vision transformers read the whole scene at once, and hybrids of the two now run live inspection, medical imaging, and self-driving perception on hardware small enough to sit beside the camera.</strong></p><p>For most of their history, cameras were very good at capturing and completely hopeless at understanding. A sensor could record millions of pixels a second without having the faintest idea what any of them meant. Early machine vision tried to close that gap with rules written by hand — edge filters, brightness thresholds, template matching — and those rules worked beautifully right up until a light moved, a part was rotated, or a supplier changed the finish on a component. AI replaced that brittle rulebook with something that learns. This guide walks through what actually changed: how convolutional networks and vision transformers see differently, where each one earns its place, how these models are used today on production lines, in hospitals, and inside vehicles, and what it takes to run them on real hardware with real latency budgets. It also covers the parts nobody puts in a demo — the data problems, the failure modes, and the limits worth planning around before you commit to a build.</p><h3>Why Rule-Based Vision Kept Breaking</h3><p>Traditional machine vision ran on explicit instructions. An engineer would describe a defect mathematically — a dark line thinner than four pixels, a blob above a certain area, a contour that fails to match a reference shape — and the system applied that description to every frame. Sobel edge filters, morphological operations, and geometric template matching were the workhorses, and on a fixed line under fixed lighting they were fast, cheap, and completely predictable.</p><p>The trouble is that the real world refuses to hold still. Move a lamp and the threshold that separated a scratch from a shadow no longer separates anything. Change a surface from matte to gloss and the edge detector starts flagging reflections as cracks. Introduce a second product variant and the template stops matching. Every one of those breaks needed a human to go back in, re-tune the parameters, and hope nothing else shifted in the process.</p><p>That fragility is the real reason older vision projects had a reputation for stalling after the pilot. The system did not fail because the maths was wrong. It failed because a rule written for one set of conditions cannot generalise to conditions it never saw, and factories, hospitals, and roads are nothing but conditions nobody saw.</p><p>Deep learning changed the shape of the problem. Instead of describing what a defect looks like, you show the model examples and let it work out which visual patterns separate good from bad. The description becomes learned rather than written, which means it can carry nuance no engineer would have thought to encode — and, more importantly, it can be improved by adding data rather than by rewriting logic.</p><h3>AI Vision on the Factory Floor</h3><p>Manufacturing was one of the first places deep learning vision paid for itself, largely because the value is easy to measure. A missed defect has a known cost, and so does a false reject.</p><p>CNN backbones such as ResNet variants and the YOLO detector family handle the high-throughput end of the work. They inspect printed circuit boards for missing or misaligned components, check automotive weld points for porosity and spatter, and scan silicon wafers for particle contamination, often at hundreds of frames per second. They run comfortably on embedded accelerators bolted to the line, which matters when the alternative is streaming raw video to a server room.</p><p>Transformer and hierarchical attention models such as Swin take on the problems where a defect is not a local blemish at all. Misalignment across a wide assembly, a texture that drifts across a composite panel, a subassembly that is individually fine but wrong in relation to its neighbours- these are relational faults, and a model that only ever looks at small neighbourhoods struggles to describe them.</p><p>Beyond inspection, vision now drives movement. Autonomous mobile robots in warehouses use visual SLAM (simultaneous localisation and mapping) to build a map of the building while tracking their own position inside it, then layer detection and segmentation on top to see pallets, people, and obstacles that were not there yesterday. That combination is what let logistics operators drop the magnetic tape and painted guide lines older AGVs depended on.</p><p>The common thread is that vision stopped being a camera bolted to a rule engine and became a sensor that produces meaning. A well-built line today does not just ask whether a part passed. It records what was wrong, where, and how often, which quietly turns quality control into a data source for process engineering.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=331d29f1382e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Temporal Reasoning in Suprflo]]></title>
            <link>https://medium.com/@laxman.sharma_38047/introducing-temporal-reasoning-in-suprflo-ba6b02c12c75?source=rss-02b6e97dfc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba6b02c12c75</guid>
            <category><![CDATA[ai-agent-memory]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-persistent-memory]]></category>
            <dc:creator><![CDATA[Baaz]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 05:00:19 GMT</pubDate>
            <atom:updated>2026-08-13T05:00:19.406Z</atom:updated>
            <content:encoded><![CDATA[<p>Temporal reasoning in <a href="https://suprflo.com/">Suprflo</a> teaches an agent’s memory to track not only what is true but when it was true. Every fact carries a validity window — a valid_from and a valid_to — so when reality changes, the new fact is written with a fresh start date and the old one is closed rather than deleted. That lets an agent answer ‘where does the user work now?’ with the current answer while still being able to reconstruct what it believed six months ago. The result is memory that stays coherent over long, multi-session histories instead of holding two contradictory facts at once, which is exactly the failure that shows up in production as an assistant that forgets a change or repeats stale information.</p><p>Long-running agents rarely fail because they forget. They fail because they remember everything in the same tense. A user’s old job, their current role, and a trip they are only planning all sit in memory as if they were equally true right now, so when the agent is asked a simple question it retrieves the wrong version of reality. Fixing that needs more than better search — it needs memory that understands time. Today we are turning on temporal reasoning across <a href="https://suprflo.com/">Suprflo</a>, our memory layer for AI agents. Instead of storing a flat pile of facts, <a href="https://suprflo.com/">Suprflo</a> now records when each fact became true and when it stopped being true, and uses that to keep an agent’s beliefs current without throwing away its history. This post explains the problem, how <a href="https://suprflo.com/">Suprflo</a> models time under the hood, and what it changes for anyone building agents that have to remember correctly over months.</p><h3>Why Memory Without Time Breaks</h3><p>Most memory systems store facts as if they were permanent. “User prefers almond milk” goes in once and stays retrievable forever, ranked by how semantically similar it is to whatever the user asks next. That works right up until the fact changes.</p><p>The moment a user says “I switched to oat milk after an allergy,” a timeless store has a problem. It now holds two facts — almond and oat — that are both plausible, both relevant, and directly contradictory. Pure semantic retrieval has no principled way to pick, so it surfaces whichever embedding happens to score higher. The agent recommends the thing the user is now allergic to, and the failure looks like carelessness rather than a missing model of time.</p><p>This is not an edge case. Jobs change, addresses change, medications change, project status changes, preferences change. Any agent meant to remember a person or a process across months will accumulate facts that were true once and are not true now. Without a notion of when each fact held, the system cannot tell a current belief from a historical one — and that is the single most common way long-term memory goes wrong.</p><h3>What Temporal Reasoning Adds</h3><p>Temporal reasoning gives every memory a place on a timeline instead of a single flat existence. A fact is no longer just “true” — it is true over an interval, with a beginning and, when reality moves on, an end.</p><p>Concretely, <a href="https://suprflo.com/">Suprflo</a> attaches a validity window to each fact: a valid_from marking when it became true and a valid_to marking when it stopped. A current fact has an open valid_to. A superseded fact gets its valid_to closed at the moment the new fact begins. Nothing is destroyed — the old belief is retired, not erased — so the agent can answer “what is true now?” and “what did we believe in April?” from the same record.</p><ul><li>When a fact became true — the valid_from timestamp, drawn from the conversation rather than the write time.</li><li>When a fact stopped being true — the valid_to, left open while the fact still holds and closed the instant it is superseded.</li><li>Whether a fact is current or historical — derived directly from the window, so retrieval can prefer what holds now without discarding the past.</li><li>How a fact evolved — the closed windows form an audit trail, letting the agent reconstruct the state of the world at any earlier point.</li></ul><p>The distinction that makes this bi-temporal rather than merely timestamped is that <a href="https://suprflo.com/">Suprflo</a> separates when something was true in the world from when <a href="https://suprflo.com/">Suprflo</a> learned it. A user can mention in August that they changed jobs back in April — the fact is valid from April even though it was ingested in August. Keeping those two clocks apart is what lets the memory stay honest about history.</p><h3>How Suprflo Models Time Under the Hood</h3><p><a href="https://suprflo.com/">Suprflo</a> processes every incoming turn through a deterministic pipeline rather than dumping raw text into a vector store. Temporal reasoning lives inside that pipeline, so time is handled at write time, when the system has the most context, instead of being guessed at read time.</p><ol><li>Ingest — the raw turn is vaulted verbatim, so the original source is always recoverable no matter what is extracted from it.</li><li>Extract facts — the system pulls discrete, checkable facts out of the turn, each with the time information stated or implied in the conversation.</li><li>Entity linking — facts are attached to the entities they describe, so “her employer” and “the company she joined” resolve to the same thing.</li><li>Semantic deduplication — near-identical facts are collapsed so the store does not fill with restatements of the same thing.</li><li>Bi-temporal write — each fact is written with its validity window, and any prior fact it supersedes has its valid_to closed rather than being overwritten.</li><li>Reflection queue — higher-order consolidation runs asynchronously, keeping the write path fast while longer-running reasoning happens in the background.</li></ol><p>The subtle step is the bi-temporal write. When a new fact arrives that conflicts with an existing one, <a href="https://suprflo.com/">Suprflo</a> does not blindly replace it and does not blindly keep both. Near-duplicate or competing facts go through LLM adjudication, which decides whether the new fact is an update to the old one — in which case the old window is closed and the new one opened — or genuinely independent information that should coexist. That judgment is the difference between a memory that evolves cleanly and one that either loses history or contradicts itself.</p><h3>A Concrete Walkthrough</h3><p>Take the milk example end to end. In February the user says they prefer almond milk. <a href="https://suprflo.com/">Suprflo</a> writes a fact with valid_from set to February and valid_to left open — it is currently true.</p><p>In April the user mentions an allergy and a switch to oat milk. The new fact conflicts with the old one, so adjudication recognizes it as an update rather than a separate preference. <a href="https://suprflo.com/">Suprflo</a> opens a new fact — oat milk, valid_from April — and closes the almond fact by setting its valid_to to April. The almond preference is not deleted, it is marked as having ended.</p><p>Now the queries resolve the way a person would expect. “What milk does the user prefer?” returns oat, because that is the fact whose window is still open. “Has the user ever preferred almond milk?” returns yes, correctly dated to February through April, because the closed window is still there to read. One store answers both the present-tense and the historical question without contradiction — which a flat, timeless store simply cannot do.</p><h3>Why This Matters for Benchmarks and Production</h3><p>Temporal reasoning is not a cosmetic feature — it is the mechanism behind the memory behaviors that hard benchmarks actually test. Update consistency, temporal recall, and event ordering all reduce to the same question: does the system know when each fact was true? A memory that models validity windows can answer those, and one that stores flat facts cannot.</p><p>That is why we treat time as a first-class part of the architecture rather than a post-hoc filter. <a href="https://suprflo.com/">Suprflo</a> currently scores 75.8% on BEAM 100K — the deliberately unsaturated benchmark whose hardest categories are temporal reasoning and event ordering — alongside 92.1% on LoCoMo and 93.1% on LongMemEval. BEAM stays the sternest test precisely because it stresses the time dimension the most, which is exactly where a bi-temporal model earns its keep.</p><p>In production the payoff is simpler to state. An agent backed by temporal memory stops recommending the thing a user dropped, stops citing a role they left, and stops treating a planned trip as one already taken. It can also explain itself — because the history is intact, you can ask not just what the agent believes but when it started believing it, which matters enormously for debugging and trust.</p><p>Sources &amp; further reading</p><ul><li><a href="https://mem0.ai/blog/introducing-temporal-reasoning-in-mem0">Mem0 — Introducing temporal reasoning in Mem0</a></li><li><a href="https://baazportfolio-git-seo-geo-optimization-rubensavio.vercel.app/blog/beam-memory-benchmark-for-ai-agents">Why BEAM is a good memory benchmark for AI agents</a></li></ul><h3>Where Temporal Reasoning Still Has Limits</h3><p>Modeling time helps enormously, but it is not magic, and it is worth being honest about the edges:</p><ul><li>Ambiguous dates — when a user says “a while ago” or “last summer,” the valid_from is only as precise as the language allows, so some windows are approximate rather than exact.</li><li>Adjudication is a judgment call — deciding whether a new fact updates an old one or stands alongside it is inherently a reasoning task, and hard cases can be gotten wrong in either direction.</li><li>Implicit endings — facts often stop being true without anyone announcing it, so a window may stay open longer than reality warrants until something newer supersedes it.</li><li>Cost and latency — maintaining windows, running adjudication, and keeping history all add work, so temporal reasoning is a trade you make deliberately for correctness, not a free upgrade.</li></ul><p>None of these undo the value — an approximate window that knows a fact ended still beats a flat store that thinks it is permanently current. But they are the reasons temporal memory is a system to tune against real traces, not a switch you flip once and forget.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba6b02c12c75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Choose the Right Dataset Format for Your ML Project]]></title>
            <link>https://medium.com/@laxman.sharma_38047/how-to-choose-the-right-dataset-format-for-your-ml-project-cb974b1085a2?source=rss-02b6e97dfc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb974b1085a2</guid>
            <dc:creator><![CDATA[Baaz]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 11:10:23 GMT</pubDate>
            <atom:updated>2026-08-04T11:10:23.754Z</atom:updated>
            <content:encoded><![CDATA[<p>Choose your dataset format by working backwards from the model and framework you’ll train with: match the format to the task (detection, segmentation, classification, or robot learning), then to the tooling that reads it natively, then to your scale. COCO JSON is the safe default for detection and instance segmentation, YOLO for real-time detectors, PNG masks for semantic segmentation, and LeRobot/RLDS for robot-learning-and keep a versioned source of truth you can convert from, so the format never locks you in.</p><p>A dataset format sounds like a boring, late-stage detail-until a mismatched one costs you a week of conversion scripts, a silent label-drop bug, or a training run that quietly ignores half your annotations. The format is the contract between your labeled data and your training code: it decides what information is preserved (boxes, masks, keypoints, attributes, tracks), how splits are expressed, and which frameworks can read it without custom tooling. This guide walks through the formats that actually matter in computer vision and ML, how to choose by task and framework, the trade-offs of each, and how to avoid lock-in by keeping a convertible source of truth. Baaz has delivered datasets across detection, segmentation, keypoints, and robot-learning formats through our managed annotation service, <a href="https://payana.ai/">Payana </a>(payana.ai). This is the decision framework we use with clients before a single image is labeled.</p><h3>Why the Dataset Format Matters More Than Teams Expect</h3><p>A format is not just a file layout-it is a decision about what gets preserved. A bounding-box format silently discards the pixel-accurate masks you paid for. A classification format has nowhere to put object locations. A format without an attribute field drops the truncated/occluded flags a tracking model needs. Choose wrong and you either re-annotate or lose signal.</p><p>The second cost is tooling friction. Every hour spent writing and debugging a converter is an hour not spent training. Frameworks read some formats natively and choke on others, and a subtly wrong converter (off-by-one class indices, unnormalized coordinates, RGB-vs-index mask confusion) fails silently-your model just trains on garbage and you find out at validation.</p><p>The third is reproducibility. If your split lives in a spreadsheet or a one-off script rather than in the dataset itself, next quarter’s retrain is not comparable to this quarter’s. A good format carries its train/valid/test split with it.</p><h3>How Do You Choose a Format for Your Task?</h3><p>Start from the task, because the task dictates what information the format must carry. Getting this right eliminates most candidates immediately:</p><ul><li>Object detection — COCO JSON or YOLO. Use YOLO if you’re training a YOLO-family model — COCO if you want the broadest tooling compatibility.</li><li>Instance segmentation — COCO JSON (polygon or RLE masks). It carries per-object masks and categories in one file.</li><li>Semantic segmentation — PNG index masks alongside the images. Every framework can read them, and there’s no ambiguity about pixel classes.</li><li>Image classification — class-per-folder directories or a simple CSV. Anything heavier is over-engineering.</li><li>Pose / keypoints — COCO keypoints schema, which encodes skeletons per object per image.</li><li>Robot learning — LeRobot or RLDS / Open X-Embodiment, which structure data as episodes of observations and actions rather than independent frames.</li></ul><h3>Match the Format to Your Framework and Scale</h3><p>Once the task narrows the field, let your framework break the tie. Detectron2 and MMDetection read COCO natively. The Ultralytics YOLO stack expects YOLO txt + data.yaml. TensorFlow object-detection pipelines favor TFRecord. PyTorch is format-agnostic but happiest with COCO via standard dataset classes. Pick the format your training code already understands and you delete an entire class of conversion bugs.</p><p>Scale is the other axis. A few thousand images? Plain JSON, XML, or PNG masks on disk are fine, and their human-readability is a feature. Millions of images with GPU-bound throughput? A sharded binary format like TFRecord (or WebDataset / Parquet) keeps the input pipeline from starving the GPU. Don’t reach for sharded binaries before you need them-you trade away debuggability for I/O you may not be bottlenecked on.</p><p>Sources &amp; further reading</p><ul><li><a href="https://cocodataset.org/#format-data">COCO — Data format specification</a></li><li><a href="https://www.tensorflow.org/tutorials/load_data/tfrecord">TensorFlow — TFRecord and tf.train.Example</a></li><li><a href="https://robotics-transformer-x.github.io/">Open X-Embodiment / RLDS — robot-learning datasets</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb974b1085a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>