【把注意力拿回來】戒掉演算法綁架:用 Telegram + AI 雙模式看片,30 秒抓完 1 小時長片與 K 線重點[Reclaiming Attention] Breaking Free From Algorithms: Dual-Mode Video & K-Line Chart AI Parsing in 30 Seconds
演算法最擅長偷走你的專注力:本想查一個觀念,卻連滑 2 小時短影音。我把「看片」交給機器人先過濾,自己只看關鍵結論與標好價位的 K 線截圖,把注意力拿回來。
Algorithms are designed to steal your attention. I offloaded video screening to an AI pipeline—handling Shorts, long-form transcripts, and K-line chart screenshots—so I only spend attention on what matters.
在開發過程中,我遇到了幾個關鍵挑戰:第一是「幻覺問題」,AI 有時會誤認 K 線上的數字。我透過引入 OCR(光學字元辨識)預處理來修正,先用 Tesseract 或 Google Vision API 提取硬性數字,再交給 LLM 做邏輯推理。第二是「成本控制」,長影片若全量傳送影格給 Gemini 會導致 API 費用飆升。我優化了抽樣策略:動態偵測畫面中的圖表區域,只有當圖表出現顯著變化(如切換週期、畫線動作)時才觸發高解析度分析。這讓單次分析成本降低了 80%,同時保持了 95% 以上的資訊準確度。
常見問題與進階應用
[object Object]
[object Object]
[object Object]
01 // Dual-Mode Parsing: Why Text Summaries Are Insufficient
Most AI summarizers rely heavily on closed captions (CC). However, in professional scenarios, this approach fails for two reasons: First, short-form content (Reels/TikTok) lacks structured captions, and forced Speech-to-Text (STT) loses vital visual context. Second, in quant trading or financial analysis, speakers often say 'look at this support level' or 'enter at this moving average cross.' Without visual context, the text is useless. My solution utilizes a 'Dual-Mode' architecture:
Mode Type
Technical Path
Use Case
Core Value
Semantic Context
Whisper v3 + GPT-4o Text Analysis
Long speeches, Podcasts, Earnings calls
Captures logical chains and arguments
Visual Multimodal
ffmpeg Frame Extraction + Gemini 1.5 Pro
K-line charts, Tutorials, Reels
Identifies price levels and visual dynamics
02 // Engineering Implementation: From ffmpeg to Vision AI
To achieve precise financial K-line extraction, I developed an automated pipeline. Upon receiving a link, the Telegram Bot triggers yt-dlp for stream parsing. For financial content, ffmpeg captures keyframes every 15-30 seconds, using image algorithms to filter out redundant frames with less than 5% variance. These frames are then processed by Gemini 1.5 Pro Vision with a specific prompt: 'Identify all support and resistance price levels and correlate them with video timestamps.' The output isn't just text; it's a series of annotated K-line screenshots with clickable YouTube timestamp links (e.g., t=120s), drastically increasing decision-making speed.
03 // Business Deployment: Enterprise FDE Strategy
As an FDE (Forward Deployed Engineer), I've deployed this logic within investment research and marketing departments. The enterprise pain point is clear: junior analysts spend 4 hours daily watching competitor videos or market reports, yielding only minimal summaries. By deploying this private Telegram + AI system, we transform 'viewing' into a 'structured database.' Marketing teams use it to deconstruct the visual pacing of viral TikToks, while research teams monitor hundreds of analysts, converting their insights into backtestable trading signals. This is no longer a personal tool; it's an 'institutional attention lever.'
04 // Real-world Pitfalls and Performance Optimization
During development, I encountered several key challenges: First, 'hallucinations,' where the AI misread K-line numbers. I corrected this by introducing OCR preprocessing (Tesseract or Google Vision API) to extract hard numbers before passing them to the LLM for logical reasoning. Second, 'cost control'—sending every frame of a long video to Gemini would skyrocket API fees. I optimized the sampling strategy: dynamically detecting chart regions and only triggering high-res analysis when significant changes (e.g., timeframe shifts, drawing actions) occur. This reduced per-analysis costs by 80% while maintaining over 95% accuracy.