<?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 Berlin Brown on Medium]]></title>
        <description><![CDATA[Stories by Berlin Brown on Medium]]></description>
        <link>https://medium.com/@berlin.brown?source=rss-bded72fd54e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6enKY_3XTTNSB8PM</url>
            <title>Stories by Berlin Brown on Medium</title>
            <link>https://medium.com/@berlin.brown?source=rss-bded72fd54e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 08:58:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@berlin.brown/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[Exploring HTM -Hierarchical Temporal Memory (HTM) machine learning framework and Java]]></title>
            <link>https://medium.com/@berlin.brown/exploring-htm-and-java-67a675dd4700?source=rss-bded72fd54e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/67a675dd4700</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[gpt-5]]></category>
            <category><![CDATA[htm]]></category>
            <dc:creator><![CDATA[Berlin Brown]]></dc:creator>
            <pubDate>Sat, 19 Sep 2026 11:15:43 GMT</pubDate>
            <atom:updated>2026-09-19T17:05:02.234Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*GAm69TJQEAzpTcZAHrQp5w.png" /><figcaption>Unrelated — Random Fractal</figcaption></figure><p>One area of artificial intelligence that has fascinated me over the years is Jeff Hawkins’s work at Numenta — from NuPIC and Hierarchical Temporal Memory to his more recent work with Monty and the Thousand Brains Project.</p><p>Many software engineers are fascinated by the possibilities of artificial intelligence. Over the years, that interest has taken many forms: genetic programming, artificial life, statistical machine learning and, more recently, generative AI built with large language models.</p><p>Modern LLMs are based on transformer neural networks. Although neural networks were loosely inspired by the brain, they do not attempt to reproduce the brain in a biologically faithful way. Hawkins’s research takes a different approach. It asks whether understanding the structure and operation of the neocortex can lead to fundamentally different forms of machine intelligence.</p><h3>Hierarchical Temporal Memory</h3><p>HTM stands for <strong>Hierarchical Temporal Memory</strong>. It is a theory and computational framework inspired by the structure of the neocortex.</p><p>HTM systems learn continuously from streams of data. Rather than being trained once on a fixed dataset, an HTM model can learn changing temporal patterns as they arrive. Its computational model includes neuron-like cells, sparse distributed representations and connections that form as the system learns sequences. HTM has been applied particularly to anomaly detection. After learning the normal patterns in a data stream, the system can recognize when a new input does not match what it expected.</p><h3>Monty and the Thousand Brains Project</h3><p>Monty and the Thousand Brains Project extend these ideas even further. The Thousand Brains Theory proposes that intelligence does not depend on a single central model of the world. Instead, many cortical columns learn complementary models using reference frames. These columns can independently recognize parts of an object or situation and then reach a broader conclusion through a process resembling voting.</p><p>Monty is an experimental framework for exploring and testing these ideas computationally, particularly through sensorimotor learning. The goal is not simply to process a large static dataset, but to learn through movement, observation and continued interaction with an environment.</p><p>Today’s LLMs are extraordinarily sophisticated, but they learn and operate very differently from biological brains. I find Monty interesting because it explores whether a system can become more adaptive by learning through interaction in a way that may be closer to how brains build models of the world.</p><h3>Why I Used Java</h3><p>As part of exploring these concepts, I used an AI language model to help refactor a Java implementation of HTM. Why Java? I wanted to examine HTM through an object-oriented language that I already understand well. Java makes it easier for me to inspect the relationships among cells, columns, connections, sequences and predictions as concrete objects.</p><p>The project builds with Maven and includes unit tests. It also contains a Java Swing visualizer that demonstrates several of the core concepts.</p><p>I built and tested the project with:</p><ul><li>OpenJDK 25.0.2 LTS</li><li>Apache Maven 3.9.12</li></ul><p>Compile and run the visualizer with:</p><pre>mvn compile exec:java@visualizer</pre><h3>Understanding the Visualizer</h3><p>The visualizer simulates a room thermostat producing 24 hourly temperature readings each day:</p><pre>12 AM 64°F → 1 AM 63°F → ... → Noon 76°F → ... → 11 PM 65°F → next day</pre><p>Suppose the paused screen displays:</p><pre>Thermostat input: Day 2 · 6 PM · 73°F<br>Previous guess:    6 PM · 73°F (plus internal column IDs)<br>Next sensor guess: 7 PM · 71°F (plus internal column IDs)<br>Anomaly:           0.000</pre><p>This tells us several things. Before receiving the current input, the model predicted a temperature of 73°F at 6 PM. The thermostat then reported exactly that value. Having correctly recognized the current point in the sequence, the model now predicts that the next reading will be 71°F at 7 PM.</p><p>An anomaly score of 0.000 means that the current input was completely expected based on the sequence the model had learned.</p><p>If the thermostat suddenly reported a highly unusual temperature, the anomaly score would increase. The model would not need a human-written rule defining the temperature as unusual. It would recognize the reading as anomalous because it did not match the learned temporal pattern.</p><p>That is what makes HTM particularly interesting to me: prediction and anomaly detection emerge from learning sequences rather than from manually programming every possible condition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*dbc05HasSgKmyDz00UhVvw.png" /><figcaption>HTM.Java Swing GUI Example</figcaption></figure><h3>Recommended Reading</h3><p>For anyone interested in the ideas behind this work, I recommend Jeff Hawkins’s books:</p><ul><li><em>On Intelligence</em></li><li><em>A Thousand Brains: A New Theory of Intelligence</em>, with a foreword by Richard Dawkins</li></ul><p>The following resources provide more information about HTM and the Thousand Brains Project:</p><ul><li><a href="https://arxiv.org/abs/1512.05463">Continuous Online Sequence Learning with an Unsupervised Neural Network Model</a></li><li><a href="https://thousandbrains.org/">Thousand Brains Project</a></li></ul><p>HTM and Monty have not replaced transformers or become the dominant direction in artificial intelligence. They represent a different research path — one based on the possibility that understanding how the brain learns may reveal capabilities that current AI systems still lack.</p><p>For me, implementing and visualizing these ideas in Java makes the research more concrete. Instead of only reading descriptions of cells, columns, sequences and predictions, I can inspect the objects, run the tests and watch the model learn.</p><p>Htm.java code is available at:</p><p><a href="https://github.com/berlinbrown/htm.java">https://github.com/berlinbrown/htm.java</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67a675dd4700" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>