funding-trend-forecaster

Predict funding trend shifts using NLP analysis of grant abstracts from NIH, NSF, and Horizon Europe

3,891 stars

Best use case

funding-trend-forecaster is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Predict funding trend shifts using NLP analysis of grant abstracts from NIH, NSF, and Horizon Europe

Teams using funding-trend-forecaster should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/funding-trend-forecaster/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aipoch-ai/funding-trend-forecaster/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/funding-trend-forecaster/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How funding-trend-forecaster Compares

Feature / Agentfunding-trend-forecasterStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Predict funding trend shifts using NLP analysis of grant abstracts from NIH, NSF, and Horizon Europe

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Skill: Funding Trend Forecaster

**ID:** 200  
**Version:** 1.0.0  
**Author:** OpenClaw Agent  
**License:** MIT

---

## Overview

Funding Trend Forecaster is an intelligent analysis tool that uses Natural Language Processing (NLP) technology to analyze awarded project abstracts from major global research funding agencies (NIH, NSF, Horizon Europe) and predict funding preference shift trends for the next 3-5 years.

## Features

- **Multi-source Data Collection**: Automatically fetches awarded project data from NIH, NSF, Horizon Europe
- **NLP Deep Analysis**: Uses advanced text mining techniques to extract topics, keywords, and research trends
- **Trend Prediction Model**: Predicts funding direction changes based on time series analysis and topic modeling
- **Visualized Reports**: Generates charts and trend reports for intuitive display of analysis results
- **Field Segmentation**: Categorized analysis by medicine, engineering, natural sciences, and other fields

## Installation

```bash
# Enter skill directory
cd skills/funding-trend-forecaster

# Install dependencies
pip install -r requirements.txt

# Download NLTK data
python -c "import nltk; nltk.download('punkt'); nltk.download('stopwords'); nltk.download('wordnet')"
```

## Dependencies

```
requests>=2.28.0
beautifulsoup4>=4.11.0
pandas>=1.5.0
numpy>=1.23.0
scikit-learn>=1.1.0
textblob>=0.17.1
nltk>=3.7
matplotlib>=3.6.0
seaborn>=0.12.0
wordcloud>=1.8.0
python-dateutil>=2.8.0
```

## Usage

### Command Line Interface

```bash
# Run full analysis workflow
python scripts/main.py --analyze-all --output report.json

# Analyze specific agency only
python scripts/main.py --source nih --months 6

# Generate visualization report
python scripts/main.py --visualize --input data.json --output charts/

# View trend forecast
python scripts/main.py --forecast --years 5 --output forecast.json
```

### API Call

```python
from scripts.main import FundingTrendForecaster

# Initialize forecaster
forecaster = FundingTrendForecaster()

# Collect data
forecaster.collect_data(sources=['nih', 'nsf', 'horizon_europe'], months=6)

# Execute analysis
results = forecaster.analyze_trends()

# Generate forecast
forecast = forecaster.predict_trends(years=5)

# Export report
forecaster.export_report(output_path='report.pdf', format='pdf')
```

## Parameters

| Parameter | Type | Default | Required | Description |
|-----------|------|---------|----------|-------------|
| `--analyze-all` | flag | false | No | Run full analysis workflow on all sources |
| `--source` | string | - | No | Specific agency to analyze (nih, nsf, horizon_europe) |
| `--months` | int | 6 | No | Number of months of historical data to analyze |
| `--years` | int | 5 | No | Years ahead for trend prediction |
| `--visualize` | flag | false | No | Generate visualization charts |
| `--forecast` | flag | false | No | Generate trend forecast |
| `--input`, `-i` | string | - | No | Input data file path (for visualization/forecast) |
| `--output`, `-o` | string | - | No | Output file path |
| `--config` | string | config.json | No | Path to configuration file |

## Data Sources

| Agency | Data Source URL | Update Frequency |
|------|-----------|---------|
| NIH | https://reporter.nih.gov/ | Daily |
| NSF | https://www.nsf.gov/awardsearch/ | Daily |
| Horizon Europe | https://ec.europa.eu/info/funding-tenders/opportunities/ | Weekly |

## Configuration

Create `config.json` file to customize analysis parameters:

```json
{
  "sources": {
    "nih": {
      "enabled": true,
      "base_url": "https://reporter.nih.gov/",
      "max_results": 1000
    },
    "nsf": {
      "enabled": true,
      "base_url": "https://www.nsf.gov/awardsearch/",
      "max_results": 1000
    },
    "horizon_europe": {
      "enabled": true,
      "base_url": "https://ec.europa.eu/info/funding-tenders/",
      "max_results": 500
    }
  },
  "nlp": {
    "language": "en",
    "min_word_length": 3,
    "max_topics": 20,
    "stop_words": ["research", "study", "project"]
  },
  "forecast": {
    "method": "lda_trend",
    "confidence_level": 0.95,
    "years_ahead": 5
  }
}
```

## Output Format

### JSON Report Structure

```json
{
  "metadata": {
    "generated_at": "2024-01-15T10:30:00Z",
    "data_period": "2023-07-01 to 2024-01-01",
    "sources": ["nih", "nsf", "horizon_europe"],
    "total_projects": 15420
  },
  "trend_analysis": {
    "top_keywords": [
      {"term": "artificial intelligence", "frequency": 342, "growth": 0.45},
      {"term": "climate change", "frequency": 298, "growth": 0.32}
    ],
    "emerging_topics": [
      {"topic": "Large Language Models", "projects": 89, "trend": "rising"},
      {"topic": "Carbon Capture", "projects": 156, "trend": "stable"}
    ],
    "funding_shifts": {
      "increasing": ["AI/ML", "Climate Tech", "Quantum Computing"],
      "decreasing": ["Traditional Materials", "Fossil Fuels Research"]
    }
  },
  "forecast": {
    "2025": {
      "predicted_hot_topics": ["Generative AI", "Gene Editing", "Fusion Energy"],
      "confidence": 0.87
    },
    "2026-2029": {
      "long_term_trends": ["AGI Safety", "Personalized Medicine", "Space Mining"],
      "confidence": 0.72
    }
  }
}
```

## Architecture

```
funding-trend-forecaster/
├── scripts/
│   ├── main.py              # Main entry
│   ├── collectors/          # Data collection module
│   │   ├── __init__.py
│   │   ├── nih_collector.py
│   │   ├── nsf_collector.py
│   │   └── horizon_collector.py
│   ├── analyzers/           # NLP analysis module
│   │   ├── __init__.py
│   │   ├── text_processor.py
│   │   ├── topic_modeler.py
│   │   └── trend_detector.py
│   ├── predictors/          # Prediction module
│   │   ├── __init__.py
│   │   └── trend_forecaster.py
│   └── utils/               # Utility module
│       ├── __init__.py
│       ├── config.py
│       └── visualizer.py
├── data/                    # Data storage
│   ├── raw/
│   └── processed/
├── output/                  # Output directory
├── config.json              # Configuration file
├── requirements.txt         # Python dependencies
└── SKILL.md                 # This document
```

## Roadmap

- [x] Basic architecture design
- [x] Core analysis module
- [ ] More data source support (Wellcome Trust, JSPS, etc.)
- [ ] Real-time data stream processing
- [ ] Interactive web interface
- [ ] Machine learning model optimization

## License

MIT License - See LICENSE file in project root directory

---

*Generated by OpenClaw Agent | Skill ID: 200*

## Risk Assessment

| Risk Indicator | Assessment | Level |
|----------------|------------|-------|
| Code Execution | Python scripts with tools | High |
| Network Access | External API calls | High |
| File System Access | Read/write data | Medium |
| Instruction Tampering | Standard prompt guidelines | Low |
| Data Exposure | Data handled securely | Medium |

## Security Checklist

- [ ] No hardcoded credentials or API keys
- [ ] No unauthorized file system access (../)
- [ ] Output does not expose sensitive information
- [ ] Prompt injection protections in place
- [ ] API requests use HTTPS only
- [ ] Input validated against allowed patterns
- [ ] API timeout and retry mechanisms implemented
- [ ] Output directory restricted to workspace
- [ ] Script execution in sandboxed environment
- [ ] Error messages sanitized (no internal paths exposed)
- [ ] Dependencies audited
- [ ] No exposure of internal service architecture
## Prerequisites

```bash
# Python dependencies
pip install -r requirements.txt
```

## Evaluation Criteria

### Success Metrics
- [ ] Successfully executes main functionality
- [ ] Output meets quality standards
- [ ] Handles edge cases gracefully
- [ ] Performance is acceptable

### Test Cases
1. **Basic Functionality**: Standard input → Expected output
2. **Edge Case**: Invalid input → Graceful error handling
3. **Performance**: Large dataset → Acceptable processing time

## Lifecycle Status

- **Current Stage**: Draft
- **Next Review Date**: 2026-03-06
- **Known Issues**: None
- **Planned Improvements**: 
  - Performance optimization
  - Additional feature support

Related Skills

trending-news-aggregator

3891
from openclaw/skills

智能热点新闻聚合器 - 自动抓取多平台热点新闻, AI分析趋势,支持定时推送和热度评分。 核心功能: - 每天自动聚合多平台热点(微博、知乎、百度等) - 智能分类(科技、财经、社会、国际等) - 热度评分算法 - 增量检测(标记新增热点) - AI趋势分析

Data & Research

trendyol-admin

3891
from openclaw/skills

Comprehensive management of Trendyol marketplace via API v2.0. Includes product lifecycle (create, update, delete, archive), stock/price management, order processing (status updates, shipping), returns, and customer questions. Use this skill as a knowledge base to construct correct API requests.

x-trends

3891
from openclaw/skills

Fetches current top trending topics on X (Twitter) for any country using public aggregators.

openclaw-trends

3891
from openclaw/skills

Fetch and aggregate OpenClaw-related content from across the internet. Use when the user asks about OpenClaw trends, news, tutorials, videos, community discussions, or what people are saying about OpenClaw. Triggers on phrases like "what's new with OpenClaw", "find OpenClaw tutorials", "OpenClaw news", "OpenClaw YouTube videos", or checking for OpenClaw mentions online.

tiktok-trend-slayer

3891
from openclaw/skills

TikTok 选品猎手 - 自动监控 TikTok 商品榜与达人榜,利用 AI 挖掘高增长爆款,生成选品及达人撮合策略。当用户需要 TikTok 选品分析、爆款挖掘、达人匹配、趋势监控时使用此技能。

trendproof

3891
from openclaw/skills

Query TrendProof (trendproof.dev) for keyword trend velocity scores. Returns velocity score, trend direction (rising/stable/falling), monthly search volume, CPC, peak window, and action hint. Supports single keyword analysis, batch comparison (up to 5 keywords ranked by velocity), and related keyword discovery. Use when a user asks about keyword trends, whether a topic is rising or falling, content timing, wants to compare niches, or needs similar keyword suggestions.

journal-impact-factor-trend

3891
from openclaw/skills

Show journal impact factor and quartile trends over 5 years.

grant-funding-scout

3891
from openclaw/skills

NIH funding trend analysis to identify high-priority research areas

9527-github-trending

3891
from openclaw/skills

每日自动获取 GitHub Trending 热门项目,推送通知。支持自定义语言、时间范围、推送渠道(Telegram/钉钉/企业微信)。零成本运行。

douyin-trend-finder

3891
from openclaw/skills

抖音热点追踪、BGM 发现、话题分析、爆款视频拆解。适合短视频创作者、品牌运营、MCN 机构。

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation