Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
769ae73
docs: Add location-proximity module overview and research foundation
KrishanYadav333 Dec 8, 2025
64e7a1a
docs: Add comprehensive work summary and technical achievements
KrishanYadav333 Dec 8, 2025
7010888
docs: Fix documentation inconsistencies per code review
KrishanYadav333 Dec 8, 2025
7b1aa49
Merge pull request #34 from KrishanYadav333/docs/location-proximity-o…
pradeeban Dec 8, 2025
e40c9d0
docs: Add system architecture diagram + test plan outline
KrishanYadav333 Dec 12, 2025
79943d4
docs: Update documentation formatting standards
KrishanYadav333 Dec 12, 2025
2b3fdfd
docs: Improve integration points formatting per code review
KrishanYadav333 Dec 12, 2025
d31cca2
docs: Clarify DBSCAN edge case test expectations
KrishanYadav333 Dec 12, 2025
0db4844
docs: Add concrete expected values for statistical comparison test
KrishanYadav333 Dec 12, 2025
076e4f4
docs: Define quantitative criteria for temporal trend analysis
KrishanYadav333 Dec 12, 2025
9a5d081
Merge pull request #36 from KrishanYadav333/docs/architecture-test-plan
pradeeban Dec 12, 2025
c827462
Add Data Integrity Layer (Phase-1)
AnvayKharb Dec 14, 2025
f23fe04
Apply suggestion from @gemini-code-assist[bot]
pradeeban Dec 16, 2025
b87c1cf
Apply suggestion from @gemini-code-assist[bot]
pradeeban Dec 16, 2025
24bd5e7
Merge pull request #38 from AnvayKharb/data-integrity-layer
pradeeban Dec 16, 2025
185f747
docs: Remove work summary file
KrishanYadav333 Dec 16, 2025
db582aa
feat: Add synthetic test dataset for location-proximity analysis
KrishanYadav333 Dec 17, 2025
80a632d
feat: Add proximity analysis prototype notebook
KrishanYadav333 Dec 17, 2025
2d72f07
feat: Add visualization dependencies for notebook
KrishanYadav333 Dec 17, 2025
670c7a3
feat: Add function stubs and docstrings for location_proximity module
KrishanYadav333 Dec 17, 2025
5d636d6
fix: Address code review suggestions - Add TypedDict types and NotImp…
KrishanYadav333 Dec 17, 2025
b6cb840
updated requirements.txt
shivamyadavrgipt Dec 19, 2025
ed858ee
updated requirements.txt
shivamyadavrgipt Dec 19, 2025
8719e8d
testing purpose
shivamyadavrgipt Dec 19, 2025
eeacd08
issue#44 fixed
shivamyadavrgipt Dec 19, 2025
0f50224
updated #44 issue
shivamyadavrgipt Dec 19, 2025
b82221f
Add CI validation for Phase-1 Data Integrity layer
Devansh-Sahu Dec 19, 2025
c5000dd
feat: Add Time-Aware Emotion Timeline Engine (PR-2)
AnvayKharb Dec 19, 2025
c32ef1c
Merge pull request #47 from Devansh-Sahu/ci-data-integrity
pradeeban Dec 20, 2025
8a4464f
Update tests/test_sentiment.py
shivamyadavrgipt Dec 20, 2025
eeb1a1f
undo the comments
shivamyadavrgipt Dec 20, 2025
eabad0f
corrected the comment
shivamyadavrgipt Dec 20, 2025
e8fec48
mongodb backend transition and program optimization
TheChaoticor Dec 20, 2025
e52e978
Merge pull request #45 from shivamyadavrgipt/new_issue
pradeeban Dec 20, 2025
112a18b
updated dependencies
TheChaoticor Dec 20, 2025
0528602
Update dream-integration/app/app.py
TheChaoticor Dec 21, 2025
d92ca63
updated code
TheChaoticor Dec 21, 2025
51e07ae
Merge branch 'main' of https://github.com/TheChaoticor/DREAMS
TheChaoticor Dec 21, 2025
63063cc
code update
TheChaoticor Dec 21, 2025
64617db
Merge pull request #39 from KrishanYadav333/feat/location-proximity-s…
pradeeban Dec 22, 2025
1a9a49f
Add venv310 to .gitignore and remove from tracking
TheChaoticor Dec 22, 2025
3b35ed2
docs: Add system architecture overview to ARCHITECTURE.md
KrishanYadav333 Dec 23, 2025
07469ad
docs: Address reviewer feedback on ARCHITECTURE.md
KrishanYadav333 Dec 23, 2025
7e913e3
Fix Flask Imports & App Factory
shivamyadavrgipt Dec 23, 2025
4eb07ac
Ignore virtual environment directory
shivamyadavrgipt Dec 23, 2025
9b777a3
Add Dependencies & Stabilize ML / LLM Stack
shivamyadavrgipt Dec 23, 2025
768e898
Updated the command to start the App
shivamyadavrgipt Dec 23, 2025
d8b6ea6
Merge pull request #54 from KrishanYadav333/docs/system-architecture-…
pradeeban Dec 23, 2025
536ed02
good code update
TheChaoticor Dec 24, 2025
892328c
removed comments from file:
shivamyadavrgipt Dec 24, 2025
f28def0
Fix Flask Imports & App Factory
shivamyadavrgipt Dec 23, 2025
9d3be6b
Ignore virtual environment directory
shivamyadavrgipt Dec 23, 2025
2101f43
Add Dependencies & Stabilize ML / LLM Stack
shivamyadavrgipt Dec 23, 2025
aae2963
Updated the command to start the App
shivamyadavrgipt Dec 23, 2025
d22378e
removed comments from file:
shivamyadavrgipt Dec 24, 2025
1952ef6
restored the previous
shivamyadavrgipt Dec 24, 2025
8d85f76
Merge branch 'dev' of https://github.com/shivamyadavrgipt/DREAMS into…
shivamyadavrgipt Dec 24, 2025
0b32d21
updated llms.py
shivamyadavrgipt Dec 24, 2025
bc34d4b
refactor: Apply code review and fixes to EmotionTimeline
AnvayKharb Dec 25, 2025
3310ab6
Merge pull request #48 from AnvayKharb/dev
pradeeban Dec 25, 2025
de55843
PR-3: Add time-aware emotion proximity utility
AnvayKharb Dec 25, 2025
149a85a
text_analysis updated
TheChaoticor Dec 26, 2025
87b4c59
Merge pull request #58 from shivamyadavrgipt/dev
pradeeban Dec 27, 2025
da7bcd6
docs: Enhance testing strategy and add research background
KrishanYadav333 Dec 27, 2025
24e2c7d
docs: Enhance testing strategy and add research background
KrishanYadav333 Dec 27, 2025
1fe0645
Update docs/TEST_PLAN.md
KrishanYadav333 Dec 27, 2025
8a801da
docs: Complete citations in Related Work section
KrishanYadav333 Dec 27, 2025
5499b9a
Merge branch 'docs/system-architecture-overview' of https://github.co…
KrishanYadav333 Dec 27, 2025
3aec919
Merge branch 'dev' into dev2
TheChaoticor Dec 27, 2025
e63a9c3
Merge pull request #59 from KrishanYadav333/docs/system-architecture-…
pradeeban Dec 28, 2025
d957fe5
Aspect-Based Sentiment Analysis (ABSA) implemented in sentiment.py
anish1206 Dec 29, 2025
0db8325
Update dreamsApp/app/utils/sentiment.py
anish1206 Dec 29, 2025
aa1ddf9
Update dreamsApp/app/utils/sentiment.py
anish1206 Dec 29, 2025
7c6bd9e
Update tests for aspect_sentiment and mock ABSA
anish1206 Dec 29, 2025
1467479
Merge branch 'feat/enable-absa' of https://github.com/anish1206/DREAM…
anish1206 Dec 29, 2025
2ab9a61
final #61
anish1206 Dec 29, 2025
5ca6c0a
Merge pull request #61 from anish1206/feat/enable-absa
pradeeban Dec 29, 2025
660ecf0
Update emotion_proximity.py
pradeeban Dec 29, 2025
acbff15
Merge pull request #62 from AnvayKharb/dev
pradeeban Dec 29, 2025
f9fffa8
test: Add synthetic location dataset for proximity testing
KrishanYadav333 Dec 30, 2025
a551bb8
style: Add newline at end of locations.json
KrishanYadav333 Dec 30, 2025
ad3b68f
Updated the folder structure of app in readme
shivamyadavrgipt Jan 1, 2026
ad419c5
Merge pull request #64 from shivamyadavrgipt/fixReadme
pradeeban Jan 1, 2026
7629098
Align the folder structre in tree structure
shivamyadavrgipt Jan 2, 2026
71bfae4
initial training and evaluation
anish1206 Jan 2, 2026
363d0fb
Merge pull request #53 from TheChaoticor/dev2
pradeeban Jan 3, 2026
a06319f
Merge pull request #66 from shivamyadavrgipt/dev
pradeeban Jan 3, 2026
ab34f28
PR-4: Add temporal segmentation utilities for EmotionTimeline
AnvayKharb Jan 3, 2026
9a33fa1
Shorten verbose descriptions in emotion_segmentation.py
AnvayKharb Jan 3, 2026
b3d0689
Update dreamsApp/analytics/emotion_segmentation.py
AnvayKharb Jan 7, 2026
64b926d
Update dreamsApp/analytics/emotion_segmentation.py
AnvayKharb Jan 7, 2026
91c4d94
Update dreamsApp/analytics/emotion_segmentation.py
AnvayKharb Jan 7, 2026
a3aee00
Update dreamsApp/analytics/emotion_segmentation.py
AnvayKharb Jan 7, 2026
0ac4322
Merge pull request #68 from AnvayKharb/dev
pradeeban Jan 7, 2026
ad6d8a1
Merge pull request #67 from anish1206/exp/bert
pradeeban Jan 7, 2026
ff72112
test_chime added
anish1206 Jan 9, 2026
63be9a1
Implementation of BERT(CHIME analysis)
anish1206 Jan 9, 2026
ce36043
Update dreamsApp/app/utils/sentiment.py
anish1206 Jan 9, 2026
dfcdab2
final exp/bert-followup
anish1206 Jan 9, 2026
c05764d
removed unwanted image file
anish1206 Jan 9, 2026
f53a4b7
Fix time-aware proximity: parameterize anchor, add clarifying comments
AnvayKharb Jan 10, 2026
26a8aa8
Shorten docstrings in time_aware_proximity.py
AnvayKharb Jan 10, 2026
bd5771a
Merge pull request #70 from AnvayKharb/dev
pradeeban Jan 12, 2026
d0f14ff
Add Temporal Narrative Graph abstraction
AnvayKharb Jan 15, 2026
de18ba1
Merge pull request #63 from KrishanYadav333/test/synthetic-locations
pradeeban Jan 16, 2026
1c3b641
Merge pull request #69 from anish1206/exp/bert-followup
pradeeban Jan 16, 2026
2e84b5f
Update dreamsApp/analytics/episode_proximity.py
pradeeban Jan 16, 2026
6e30f6d
Merge pull request #72 from AnvayKharb/dev
pradeeban Jan 16, 2026
acc3dab
Add GPS extraction from image EXIF
kunal-595 Jan 24, 2026
24e882e
Use with statement and public getexif() API
kunal-595 Jan 24, 2026
9600ee5
Apply suggestion from @gemini-code-assist[bot]
pradeeban Jan 26, 2026
caa1130
Apply suggestion from @gemini-code-assist[bot]
pradeeban Jan 26, 2026
3d986f1
Apply suggestion from @gemini-code-assist[bot]
pradeeban Jan 26, 2026
caa0196
Apply suggestion from @gemini-code-assist[bot]
pradeeban Jan 26, 2026
b64297f
Simplify GPS extraction logic
kunal-595 Jan 26, 2026
cdd335d
Update dreamsApp/app/utils/location_extractor.py
pradeeban Jan 26, 2026
7aa27a3
Update dreamsApp/app/utils/location_extractor.py
pradeeban Jan 26, 2026
b676e8d
fix GPS extraction call to use image path
kunal-595 Jan 26, 2026
3e3db21
Update dreamsApp/app/utils/location_extractor.py
pradeeban Jan 27, 2026
5da124c
Apply suggestion from @gemini-code-assist[bot]
pradeeban Jan 27, 2026
841e6d6
Apply suggestion from @gemini-code-assist[bot]
pradeeban Jan 27, 2026
7761268
Apply suggestion from @gemini-code-assist[bot]
pradeeban Jan 27, 2026
0cd2675
Apply suggestion from @gemini-code-assist[bot]
pradeeban Jan 27, 2026
394eb9c
Merge pull request #77 from kunal-595/feature/gps-extraction
pradeeban Jan 27, 2026
f889e36
feat: implement self-correcting CHIME model and federated learning
anish1206 Jan 30, 2026
aa504b6
Update dreamsApp/app/dashboard/main.py
anish1206 Jan 30, 2026
eaa4aae
Update dreamsApp/app/dashboard/main.py
anish1206 Jan 30, 2026
7e579e5
Update dreamsApp/app/fl_worker.py
anish1206 Jan 30, 2026
616211f
Update tests/test_fl.py
anish1206 Jan 30, 2026
f008349
Update dreamsApp/app/dashboard/main.py
anish1206 Jan 30, 2026
b27f8fb
Update dreamsApp/app/utils/sentiment.py
anish1206 Jan 30, 2026
8e8e5be
applied suggestions as per the code reviewer
anish1206 Jan 30, 2026
5629c40
Update dreamsApp/app/utils/logger.py
anish1206 Jan 30, 2026
3ffe6d9
Update dreamsApp/app/utils/sentiment.py
anish1206 Jan 30, 2026
5b0e5be
Update tests/test_fl.py
anish1206 Jan 30, 2026
c20a461
Update dreamsApp/app/fl_worker.py
pradeeban Jan 31, 2026
884de2b
Update dreamsApp/app/dashboard/main.py
pradeeban Jan 31, 2026
a059dea
Update dreamsApp/app/utils/logger.py
pradeeban Jan 31, 2026
9d267d4
Update dreamsApp/app/dashboard/main.py
pradeeban Jan 31, 2026
a41abca
Update tests/test_fl.py
pradeeban Jan 31, 2026
79fbfea
Update dreamsApp/app/utils/sentiment.py
anish1206 Feb 1, 2026
047eba7
feat(fl): add queue-triggered FL, atomic lock, validation, rate-limit…
anish1206 Feb 1, 2026
415c983
Update dreamsApp/app/dashboard/main.py
anish1206 Feb 1, 2026
be2f0e5
exp/bert-improv final 1
anish1206 Feb 1, 2026
54935ba
final 1.1
anish1206 Feb 1, 2026
e98db87
Update dreamsApp/app/dashboard/main.py
anish1206 Feb 1, 2026
8a6036a
Update dreamsApp/app/fl_worker.py
anish1206 Feb 1, 2026
190ba9b
Update dreamsApp/app/fl_worker.py
anish1206 Feb 1, 2026
7221c38
Update dreamsApp/app/utils/sentiment.py
anish1206 Feb 1, 2026
932e736
Update dreamsApp/app/dashboard/main.py
anish1206 Feb 1, 2026
b5ec68b
final 1.2
anish1206 Feb 1, 2026
a986427
Update dreamsApp/app/fl_worker.py
pradeeban Feb 1, 2026
5f05c0a
Update dreamsApp/app/dashboard/main.py
pradeeban Feb 1, 2026
4d0b42c
Update dreamsApp/app/dashboard/main.py
pradeeban Feb 1, 2026
d9cc021
Merge pull request #79 from anish1206/exp/bert-improv
pradeeban Feb 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/data-integrity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Data Integrity Validation

on:
push:
branches: [dev]
pull_request:
branches: [dev]

jobs:
validate-data-integrity:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install optional dependencies
run: |
pip install jsonschema

- name: Run data integrity validator on valid example data
run: |
python -m data_integrity.validator \
--input data_integrity/examples/valid_data.json \
--schema data_integrity/examples/sample_schema.json \
--json
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,11 @@ cython_debug/

# PyPI configuration file
.pypirc

# Virtual environments
venv310/
venv/

# Federated Learning Models
dreamsApp/app/models/production_chime_model/
dreamsApp/app/models/temp_training_artifact/
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"python.terminal.useEnvFile": true,
"python-envs.defaultEnvManager": "ms-python.python:system",
"python-envs.pythonProjects": []
}
357 changes: 357 additions & 0 deletions ARCHITECTURE.md

Large diffs are not rendered by default.

260 changes: 260 additions & 0 deletions LOCATION_PROXIMITY_SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
# Location-Proximity Analysis Extension

## Overview

A new module for DREAMS that analyzes **multi-dimensional location proximity** to understand how semantically similar places influence emotional patterns in recovery journeys.

**Key Innovation**: Goes beyond GPS coordinates to consider categorical, linguistic, and cultural dimensions of location similarity.

---

## Module Location

```
DREAMS/location_proximity/
├── __init__.py
├── location_extractor.py # Extract GPS from images
├── proximity_calculator.py # Multi-dimensional proximity
├── emotion_location_mapper.py # Emotion-location patterns
├── semantic_clustering.py # Cluster similar places
├── demo.py # Demonstration script
├── test_proximity.py # Test suite
├── requirements.txt # Dependencies
├── README.md # Module documentation
└── RESEARCH.md # Research foundation
```

---

## Quick Demo

```bash
cd location_proximity
pip install -r requirements.txt
python demo.py
```

**Output**:
```
DEMO 1: Multi-Dimensional Proximity Calculation
================================================================
St. Mary's Church ↔ Holy Trinity Church : 0.850
Alaska Native Medical Center ↔ Providence Hospital : 0.725

✓ Notice: Two churches have high proximity despite different locations
✓ Notice: Two hospitals cluster together semantically
```

---

## Key Features

### 1. Multi-Dimensional Proximity
Calculates location similarity using:
- **Geographic**: Physical distance (Haversine)
- **Categorical**: Place type (church ↔ church)
- **Linguistic**: Language context
- **Cultural**: Shared cultural tags

### 2. Emotion-Location Mapping
- Track emotional patterns at specific locations
- Identify "emotional hotspots" (places with consistent emotions)
- Compare emotions across place categories
- Temporal emotion trends at locations

### 3. Semantic Clustering
- Group semantically similar places
- Analyze emotional patterns within clusters
- Discover cross-location patterns
- DBSCAN-based clustering (no predefined cluster count)

---

## Research Questions Addressed

1. **Do semantically similar places evoke similar emotions?**
- Compare two different churches vs. church and hospital

2. **Is categorical proximity more predictive than geographic proximity?**
- Correlation analysis between proximity dimensions and emotions

3. **Do certain place types consistently associate with specific emotions?**
- Statistical analysis across place categories

4. **How do place-emotion associations evolve during recovery?**
- Temporal analysis of location patterns

---

## Example Use Cases

### Use Case 1: Categorical Analysis
**Question**: Do all churches evoke positive emotions, or just specific ones?

```python
from location_proximity.emotion_location_mapper import EmotionLocationMapper

mapper = EmotionLocationMapper()
# Add data...

# Compare specific church vs. all churches
church_a_profile = mapper.get_location_sentiment_profile("church_a")
all_churches = mapper.compare_place_types()["church"]
```

### Use Case 2: Cross-Location Patterns
**Question**: Do Portuguese restaurants evoke similar emotions despite different locations?

```python
from location_proximity.semantic_clustering import find_similar_place_patterns

patterns = find_similar_place_patterns(
places=portuguese_restaurants,
emotion_mapper=mapper,
proximity_threshold=0.6
)
```

### Use Case 3: Recovery Journey Mapping
**Question**: How does a person's emotional relationship with healthcare facilities change over time?

```python
hospitals = [p for p in places if p['type'] == 'hospital']
for hospital in hospitals:
trend = mapper.temporal_emotion_trend(hospital['id'])
# Analyze trend...
```

---

## Integration with DREAMS

### Extend Post Schema
```python
# Add to dreamsApp/app/ingestion/routes.py
from location_proximity.location_extractor import extract_location_from_image

location = extract_location_from_image(image_path)
if location:
post_doc['location'] = {
'lat': location['lat'],
'lon': location['lon']
}
```

### Add Dashboard Route
```python
# Add to dreamsApp/app/dashboard/main.py
@bp.route('/location_analysis/<user_id>')
def location_analysis(user_id):
# Use EmotionLocationMapper to analyze patterns
# Render visualization
```

---

## Metrics & Validation

### Clustering Quality
- Silhouette score
- Davies-Bouldin index

### Emotion Prediction
- Accuracy of predicting emotion from place type
- Precision/Recall for hotspot identification

### Statistical Significance
- Chi-square tests for sentiment distributions
- ANOVA across place types
- Effect size calculations

---

## Research Contribution

**Novel Contribution**: First formalization of multi-dimensional location proximity for emotion analysis in recovery journeys.

**Potential Publications**:
1. "Beyond GPS: Multi-Dimensional Location Proximity in Emotional Recovery Analysis"
2. "Semantic Place Similarity and Emotional Patterns in Digitized Memories"
3. "Affective Geography of Recovery: A Computational Approach"

---

## Dependencies

```
Pillow>=10.0.0 # Image EXIF extraction
numpy>=1.24.0 # Numerical computations
scikit-learn>=1.3.0 # Clustering algorithms
```

---

## Testing

```bash
cd location_proximity
pytest test_proximity.py -v
```

**Test Coverage**:
- Geographic distance calculation
- Proximity metrics (all dimensions)
- Emotion-location mapping
- Clustering functionality
- Edge cases and error handling

---

## Future Enhancements

### Phase 1 (Current)
- [x] Multi-dimensional proximity calculation
- [x] Emotion-location mapping
- [x] Semantic clustering
- [x] Demo and tests

### Phase 2 (Next)
- [ ] Google Places API integration
- [ ] Automated place type detection
- [ ] Interactive map visualization (Folium)
- [ ] Real-time clustering

### Phase 3 (Future)
- [ ] Image-based place recognition (CNN)
- [ ] Temporal-spatial modeling
- [ ] Cross-user analysis
- [ ] Causal inference methods

---

## Contributing

This module was developed as part of GSoC 2026 project:
> "Understanding proximity in locations and emotions through digitized memories"

**Mentors**: Jihye Kwon, Pradeeban Kathiravelu
**Institution**: University of Alaska Fairbanks

Contributions welcome! See [location_proximity/README.md](location_proximity/README.md) for details.

---

## Contact

- **Project**: https://github.com/KathiraveluLab/DREAMS
- **Discussions**: https://github.com/KathiraveluLab/DREAMS/discussions
- **Mentors**: jkwon2@alaska.edu, pkathiravelu@alaska.edu

---

## License

Same as DREAMS project (see [LICENSE](LICENSE))

---

**Status**: ✅ Ready for integration and testing
**Version**: 0.1.0
**Last Updated**: 2024
62 changes: 43 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,57 @@ Digitization for Recovery: Exploring Arts with Mining for Societal well-being.

DREAMS is an extension of the Beehive project, focused on exploring time and ordering across photo memories to better understand personal recovery journeys. The goal is to build tools that help track and analyze visual narratives over time using data mining and intelligent processing.

## 🔨 Current Progress
## Current Progress

- Set up core infrastructure using Flask and Hugging Face models.
- Implemented a basic **Caption Sentiment Analysis API** to classify emotional tone in user-submitted captions.
- 🔄 Integrating this API into Beehive to capture sentiment when users upload photos.
- 🔬 Exploring time-based data structuring and narrative analysis features.
- Set up core infrastructure using Flask and Hugging Face models.
- Implemented a basic **Caption Sentiment Analysis API** to classify emotional tone in user-submitted captions.
- Integrating this API into Beehive to capture sentiment when users upload photos.
- Exploring time-based data structuring and narrative analysis features.

### 📁 [View the API Module](./dreamsApp/README.md)
### [View the API Module](./dreamsApp/README.md)

## 📦 Repositories
## Repositories

- Beehive: [github.com/KathiraveluLab/beehive](https://github.com/KathiraveluLab/Beehive)
- DREAMS: [github.com/KathiraveluLab/DREAMS](https://github.com/KathiraveluLab/DREAMS)


## 📁 Repository Structure
## Repository Structure

```text
DREAMS/
├── dreamsApp/ # Main application package
│ ├── app/ # Flask app package (app factory + blueprints)
│ │ ├── __init__.py # create_app() factory
│ │ ├── config.py # App configuration
│ │ ├── models.py # Database models
│ │ ├── auth.py # Authentication routes
│ │ │
│ │ ├── ingestion/ # Image ingestion & processing
│ │ │ ├── __init__.py
│ │ │ └── routes.py
│ │ │
│ │ ├── dashboard/ # Dashboard & analytics views
│ │ │ ├── __init__.py
│ │ │ └── main.py
│ │ │
│ │ └── utils/ # Core ML / NLP utilities
│ │ ├── sentiment.py # Caption sentiment analysis
│ │ ├── keywords.py # Keyword extraction
│ │ ├── clustering.py # Keyword clustering (HDBSCAN)
│ │ └── llms.py # LLM (Gemini) integration
│ │
│ └── docs/ # Project documentation
├── data_integrity/ # Data validation utilities
├── location_proximity/ # Location-based analysis (future)
├── dream-integration/ # Integration & experimental code
├── tests/ # Unit and integration tests
├── requirements.txt # Python dependencies
├── pytest.ini # Pytest configuration
└── README.md # Project documentation

DREAMS/
├── dreamsApp/
│ ├── __init__.py # App factory
│ ├── captionSentiments.py # API logic and model loading
| ├── README.md
├──tests/
| ├──test_sentiment.py
├──pytest.ini
├──README.md
├──requirements.txt

## Installation and Setup

Expand All @@ -50,7 +74,7 @@ pip install -r requirements.txt
pytest

# 5. Start the Flask server in debug mode
flask --app dreamsApp run --debug
flask --app "dreamsApp.app:create_app()" run --debug
```

More coming soon!
Loading