<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: eventhorizon-ai</title>
    <description>The latest articles on DEV Community by eventhorizon-ai (@eventhorizon-ai).</description>
    <link>https://dev.to/eventhorizon-ai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4025102%2Fa1807d4f-2982-4766-8871-7ea413455d4b.jpeg</url>
      <title>DEV Community: eventhorizon-ai</title>
      <link>https://dev.to/eventhorizon-ai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eventhorizon-ai"/>
    <language>en</language>
    <item>
      <title>I'm 14 and Spent 276 Days Building an AI Platform. Here's What I Learned</title>
      <dc:creator>eventhorizon-ai</dc:creator>
      <pubDate>Mon, 12 Oct 2026 18:55:47 +0000</pubDate>
      <link>https://dev.to/eventhorizon-ai/im-14-and-spent-276-days-building-an-ai-platform-heres-what-i-learned-11oj</link>
      <guid>https://dev.to/eventhorizon-ai/im-14-and-spent-276-days-building-an-ai-platform-heres-what-i-learned-11oj</guid>
      <description>&lt;p&gt;276 days ago, I started building EventHorizon.&lt;/p&gt;

&lt;p&gt;I wanted to create software that could solve real problems using machine learning. I started with more ambition than experience, and over time, I learned that building a model is only one part of building a useful product.&lt;/p&gt;

&lt;p&gt;Since then, I've experimented with demand forecasting, cryptocurrency prediction, validation tools, and customer outreach.&lt;/p&gt;

&lt;p&gt;Here's what I learned—including what didn't work.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Building the Models Was Only the Beginning
&lt;/h2&gt;

&lt;p&gt;One of my main projects became &lt;strong&gt;EventHorizon-AI&lt;/strong&gt;, a demand forecasting platform designed for small businesses.&lt;/p&gt;

&lt;p&gt;The idea was straightforward: help businesses make better decisions about how much stock to prepare or order by predicting future demand.&lt;/p&gt;

&lt;p&gt;I also experimented with short-term BTC/USDT price direction prediction.&lt;/p&gt;

&lt;p&gt;These projects had different goals, but they taught me the same lesson: a model that produces predictions isn't automatically useful.&lt;/p&gt;

&lt;p&gt;You need to understand what the numbers actually tell you, how the model was evaluated, and whether its predictions can create value in the real world.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Demand Forecasting: A Measurable Improvement
&lt;/h2&gt;

&lt;p&gt;For demand forecasting, I experimented with the M5 Walmart dataset.&lt;/p&gt;

&lt;p&gt;My model used features such as historical sales, lagged values, seasonality, prices, and promotions.&lt;/p&gt;

&lt;p&gt;The validation results were:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;WAPE&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Baseline&lt;/td&gt;
&lt;td&gt;44.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EventHorizon model&lt;/td&gt;
&lt;td&gt;31.03%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's approximately a &lt;strong&gt;30% reduction in WAPE relative to the baseline&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;WAPE, or Weighted Absolute Percentage Error, measures total absolute prediction error relative to total actual demand.&lt;/p&gt;

&lt;p&gt;This was an encouraging result. In my evaluation, the improvement appeared across all seven stores.&lt;/p&gt;

&lt;p&gt;However, &lt;strong&gt;a benchmark result is not the same as a successful deployment in a real business&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The M5 dataset provides a useful environment for experimentation, but it doesn't prove that the same performance will transfer to a particular bakery, florist, or other small business. Real-world validation is a separate challenge.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Cryptocurrency Prediction: Better Accuracy Wasn't Enough
&lt;/h2&gt;

&lt;p&gt;I also built a short-term BTC/USDT directional prediction system.&lt;/p&gt;

&lt;p&gt;The experiment used a Transformer-based architecture combined with a BiLSTM and cross-attention. It was trained on approximately 1.5 million samples, with predictions across multiple time horizons.&lt;/p&gt;

&lt;p&gt;In my evaluation, the model achieved around 60% directional accuracy, compared with a baseline of approximately 52%.&lt;/p&gt;

&lt;p&gt;At first glance, that looked promising. But there was a problem:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Statistical performance isn't the same as economic profitability.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once I considered transaction fees and execution-related costs, the apparent edge wasn't economically viable under the conditions I tested.&lt;/p&gt;

&lt;p&gt;That changed how I thought about machine learning projects.&lt;/p&gt;

&lt;p&gt;A model can outperform a baseline and still fail at the task that actually matters. The evaluation objective must reflect the intended use of the system.&lt;/p&gt;

&lt;p&gt;For a trading model, directional accuracy alone isn't enough. For a demand forecasting model, lower prediction error alone doesn't guarantee better business outcomes.&lt;/p&gt;

&lt;p&gt;The metric must connect to the real-world objective.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Validation Deserves Its Own Attention
&lt;/h2&gt;

&lt;p&gt;As I worked on these projects, I became increasingly interested in how to determine whether an apparent improvement was actually meaningful.&lt;/p&gt;

&lt;p&gt;I developed an honest-validation toolkit with utilities for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Walk-forward validation splits.&lt;/li&gt;
&lt;li&gt;Block bootstrap and gap bootstrap procedures.&lt;/li&gt;
&lt;li&gt;Permutation testing.&lt;/li&gt;
&lt;li&gt;WAPE and MASE evaluation metrics.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These tools helped me approach model evaluation more systematically.&lt;/p&gt;

&lt;p&gt;I learned to pay attention to temporal structure, possible information leakage, baseline selection, and the difference between an observed improvement and evidence that a model will generalize.&lt;/p&gt;

&lt;p&gt;A good metric alone isn't sufficient evidence. The evaluation process matters just as much as the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Building Something Useful Requires Talking to People
&lt;/h2&gt;

&lt;p&gt;Technical experiments were only one side of the project.&lt;/p&gt;

&lt;p&gt;I also started reaching out to small businesses, including bakeries, florists, and other potential customers. I wanted to understand how they made decisions about demand, inventory, and daily production.&lt;/p&gt;

&lt;p&gt;I learned that the challenge isn't simply building a prediction model. Businesses already have their own methods, experience, constraints, and sources of information.&lt;/p&gt;

&lt;p&gt;A technically interesting solution isn't automatically one that someone will adopt.&lt;/p&gt;

&lt;p&gt;My outreach hasn't produced a paying customer or a real pilot so far. That's an important part of the story, too.&lt;/p&gt;

&lt;p&gt;I still need to validate whether the platform can provide enough practical value for a business to use it. Better model metrics don't answer that question by themselves.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. What I Would Do Differently
&lt;/h2&gt;

&lt;p&gt;Looking back, I'd put even more emphasis on a few things from the beginning:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Define the baseline first.&lt;/strong&gt; A model's performance means little without a meaningful comparison.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design validation around the data.&lt;/strong&gt; Time-dependent data requires particular care with splits, leakage, and evaluation methodology.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate technical progress from product progress.&lt;/strong&gt; A better model doesn't necessarily mean a better product.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document limitations honestly.&lt;/strong&gt; Failed experiments and negative results can be as informative as successful ones.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Talk to potential users earlier.&lt;/strong&gt; It's possible to spend months solving a technically interesting problem without establishing that the proposed solution fits how people actually work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These lessons are changing how I approach my next experiments.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. What Comes Next
&lt;/h2&gt;

&lt;p&gt;I'm continuing to work on EventHorizon with a stronger focus on reliable evaluation, practical usefulness, and understanding where forecasting can genuinely help small businesses.&lt;/p&gt;

&lt;p&gt;I want to build systems that do more than produce impressive-looking numbers. I want to understand why they work, where they fail, and under which conditions their results can be trusted.&lt;/p&gt;

&lt;p&gt;There's still a lot to learn, both technically and commercially. And that's okay.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;I'm 14, and I spent 276 days building and experimenting with an AI platform.&lt;/p&gt;

&lt;p&gt;I haven't built a successful business yet. I haven't demonstrated that every model I've developed is useful in production. Some experiments showed promising results; others taught me why an apparently good result isn't enough.&lt;/p&gt;

&lt;p&gt;But I now have a much better understanding of model evaluation, time-series forecasting, statistical validation, and the gap between a working experiment and a useful product.&lt;/p&gt;

&lt;p&gt;For me, the biggest lesson has been this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Building a model is an engineering task. Determining whether you can trust it—and whether it solves a real problem—is a much bigger challenge.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I'm continuing to learn, experiment, and document what I find.&lt;/p&gt;

&lt;p&gt;If you're working on forecasting, machine learning validation, or independent software projects, I'd be interested to hear what you've learned from your own experiments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Explore EventHorizon
&lt;/h2&gt;

&lt;p&gt;If you'd like to explore the project or follow my work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/EventHorizon-ia/EventHorizon" rel="noopener noreferrer"&gt;https://github.com/EventHorizon-ia/EventHorizon&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm continuing to experiment with demand forecasting, model validation, and practical applications of machine learning. Feedback and technical discussions are welcome&lt;/p&gt;

</description>
      <category>ai</category>
      <category>buildinpublic</category>
      <category>machinelearning</category>
      <category>startup</category>
    </item>
    <item>
      <title>Lessons from building a Multi-Horizon Crypto Prediction System with Transformers</title>
      <dc:creator>eventhorizon-ai</dc:creator>
      <pubDate>Sat, 11 Jul 2026 14:24:31 +0000</pubDate>
      <link>https://dev.to/eventhorizon-ai/lessons-from-building-a-multi-horizon-crypto-prediction-system-with-transformers-1cio</link>
      <guid>https://dev.to/eventhorizon-ai/lessons-from-building-a-multi-horizon-crypto-prediction-system-with-transformers-1cio</guid>
      <description>&lt;p&gt;I started this project in January 2026 with a simple question: can a Transformer trained on technical indicators predict Bitcoin's direction better than a coin toss?&lt;/p&gt;

&lt;p&gt;By June, the system had processed over 87,000 training generations, survived three major architectural bugs, and taught me more about machine learning than any course could.&lt;/p&gt;

&lt;p&gt;This is not a "how to get rich with AI" post. This is the engineering story.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture Overview
&lt;/h2&gt;

&lt;p&gt;The system uses a hybrid Transformer + BiLSTM architecture:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Transformer:&lt;/strong&gt; 6 blocks, 8 attention heads. Same architecture that powers GPT and BERT, adapted for financial time series. The self-attention mechanism captures short-term patterns across different technical indicators.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BiLSTM:&lt;/strong&gt; 2-layer bidirectional LSTM. Handles long-range dependencies that the Transformer might miss — for example, regime changes that unfold over hours or days.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-attention layer:&lt;/strong&gt; Fuses the representations from both branches before feeding them to the prediction heads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10 specialized heads:&lt;/strong&gt; One per temporal horizon — from 5 seconds to 1 day. Each head has a different depth and regularization, reflecting the noise profile of its horizon.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The entire network is custom-built in &lt;code&gt;PyTorch&lt;/code&gt;. No &lt;code&gt;AutoML&lt;/code&gt;. No third-party trading libraries. Every tensor, every gradient, every loss function — implemented from scratch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Verification Pipeline
&lt;/h2&gt;

&lt;p&gt;Most crypto prediction systems show backtest results. Backtests lie.&lt;/p&gt;

&lt;p&gt;I built a verification pipeline that timestamps every prediction. When the target horizon elapses, the system compares the prediction against the real Binance price and logs the result. No cherry-picking. No deleted trades. The audit panel is public.&lt;/p&gt;

&lt;p&gt;This commitment to transparency became the project's core value. But it also exposed a bug that almost made me quit.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bug #1: Autocorrelation (The 96% Lie)
&lt;/h3&gt;

&lt;p&gt;I was getting 96% accuracy on 5-minute predictions. I celebrated. Then I looked at the raw data:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[0, 0, 0, 0, 0, 0, 0, 0, ... 300 zeros in a row ...]
[1, 1, 1, 1, 1, 1, 1, 1, ... 200 ones in a row ...]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No model produces results like this. The problem was temporal dependence: I was recording a "trade" every 2 seconds, then verifying all ~900 snapshots against the same market event. The model wasn't predicting price direction — it was just reflecting whether the market went up or down in that window.&lt;br&gt;
I fixed this with statistical subsampling:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;_FATOR_SUBSAMPLE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;       &lt;span class="c1"&gt;# 5s: record every tick
&lt;/span&gt;    &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="c1"&gt;# 1min: record every 5th tick
&lt;/span&gt;    &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="c1"&gt;# 5min: record every 25th tick
&lt;/span&gt;    &lt;span class="mi"&gt;1800&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# 30min: record every 150th tick (5 min)
&lt;/span&gt;    &lt;span class="mi"&gt;3600&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# 1h: record every 300th tick (10 min)
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Accuracy dropped from 96% to ~52%. It hurt. But now every trade in the history represents an independent decision by the model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bug #2: Look-Ahead Bias
&lt;/h3&gt;

&lt;p&gt;If you predict a 1-hour horizon, you should only receive the reward 1 hour later — not a second sooner. But my early implementation allowed future price information to leak into the training signal.&lt;br&gt;
The fix was a &lt;strong&gt;Delayed Reward Buffer&lt;/strong&gt;. Every prediction is stored with its timestamp. The reward is computed and applied only when the target horizon actually elapses. The model never sees the future during training.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bug #3: Gradient Truncation
&lt;/h3&gt;

&lt;p&gt;For weeks, my Transformer and LSTM weren't actually learning. The gradient from the loss function was stopping at the prediction heads — it never reached the backbone.&lt;br&gt;
I had to recompute the full forward pass during gradient computation, ensuring the error signal propagated through the entire network. My computer fans immediately spun up louder. The backbone was finally learning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current State
&lt;/h2&gt;

&lt;p&gt;After fixing these bugs and training on 365 days of Binance data with a T4 GPU:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;54.9%&lt;/strong&gt; average directional accuracy (5s–1h horizons)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;59.8%&lt;/strong&gt; on 1-hour predictions (best individual horizon)&lt;/li&gt;
&lt;li&gt;All metrics are publicly auditable against real Binance prices
These numbers won't make anyone rich overnight. But they're real. And in a market saturated with fake performance claims, real metrics are a differentiator.
## What I Learned
Building this system taught me three things that no course could:&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trust metrics, not feelings.&lt;/strong&gt; When accuracy is 96%, something is broken. When it's 53%, it might be working perfectly. The numbers tell the truth — if you let them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transparency compounds.&lt;/strong&gt; The audit panel was a burden to maintain at first. Now it's my strongest signal of credibility. In a market full of scams, showing your losses is more convincing than hiding them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Patience over hype.&lt;/strong&gt; The hardest bug (autocorrelation) took three days to diagnose and one line to fix. There is no shortcut.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub Repository: &lt;a href="https://github.com/EventHorizon-ia/EventHorizon" rel="noopener noreferrer"&gt;https://github.com/EventHorizon-ia/EventHorizon&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Public Audit Dashboard:
&lt;a href="https://eventhorizon-ia.github.io/trader-ai/dashboard-en.html" rel="noopener noreferrer"&gt;https://eventhorizon-ia.github.io/trader-ai/dashboard-en.html&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>python</category>
      <category>machinelearning</category>
      <category>cryptocurrency</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
