Engineer Details Six Weeks Spent Training and Testing Signature Redaction Models for Closed-Loop Document Anonymization
A developer working on automated document sanitization spent six weeks attempting to reliably locate and redact handwritten signatures inside PDFs that must leave a closed network. The goal was to remove surnames, telephone numbers, addresses and signatures while preserving document usability, all on a single air-gapped workstation equipped with one consumer GPU.
Documents arrive in two forms. Text-layer PDFs allow direct removal of recognized words. Scanned pages require the system to detect text via Tesseract, then draw black rectangles over the corresponding image regions. Four parallel detection methods—dictionary lookup, regular expressions, natasha NER and an ink gate—successfully handled printed names but found zero signatures because signatures contain no machine-readable text.
Initial experiments with a color-saturation gate worked on blue-ink signatures yet failed completely on black-ink signatures and on any grayscale scan. An alternative heuristic that painted any dark region ignored by OCR erased entire table columns when text was printed in small fonts, violating the rule that only recognized text may be redacted.
Three off-the-shelf object detectors were benchmarked on 1,254 pages. YOLOS produced excessive false positives on engineering drawings and was discarded. A seal detector returned high-confidence false positives on documents containing no seals. A custom YOLO11s model trained on 600 synthetically augmented signature images plus 40 real pages reached 88 % coverage on isolated strokes but dropped sharply when adjacent signatures merged into large blobs.
Two rotation-related bugs repeatedly caused missed redactions. PDF /Rotate attributes produced coordinate mismatches between detection and drawing layers. Pages scanned sideways defeated Tesseract’s orientation detection when run with --psm 0, leaving the entire page unprocessed until OSD was re-enabled for low-confidence cases.
After switching the vision model from proactive detection to post-redaction verification, expensive GPU calls fell from roughly 50 pages per batch to 18. On the final corpus of 492 pages only 3.7 % of documents required the vision stage, all of them empty forms with vertical table headers.
Image-preprocessing tests showed that the classical OpenCV pipeline (deskew, illumination normalization, denoising, 2× upscaling) raised OCR to 92/103 pages while RealESRGAN reduced the same metric to 76/103 and increased runtime dramatically. Preprocessing is therefore applied only when the first-pass score falls below 70.
Comparison of twelve OCR engines on a two-page test document revealed that PaddleOCR detection combined with Tesseract recognition produced 16 correctly grouped name cells in 3.7 seconds. Full replacement by any single vision-language model either missed names entirely or required 12–20 seconds per page.
Redaction implementation errors were discovered only after the author added a verification step that extracts text from beneath every black rectangle. Using PyMuPDF draw_rect left recoverable text; switching to apply_redactions eliminated all leaks across 3,029 redactions in production files. White rectangles drawn for stamps and signatures occasionally overwrote already-redacted black areas, reopening rows of names—an issue caught only by the same under-rectangle text check.
The final pipeline therefore combines rule-based text removal, a lightweight YOLO signature detector, selective classical preprocessing, Tesseract augmented by PaddleOCR cell detection, and mandatory post-redaction text verification, achieving reliable signature removal inside the required closed environment.
Related articles
macOS Builds Undocumented Personal Knowledge Graph Since Version 13, Inferring Family Ties via On-Device ML
Since macOS 13 in 2022, two daemons named knowledgeconstructiond and intelligenceplatformd have been constructing a comprehensive personal knowledge graph on every Mac. The system aggregates data from Contacts, Calendar, Photos, Messages, Mail, Family Sharing, Health emergency contacts, Screen Time, and behavioral signals to map users, their relationships, locations, and activities. Results are stored in ~/Library/IntelligencePlatform as SQLite databases, including graph.db containing 181 entity classes and 278 predicates. Two CoreML models, EntityTagging_Family.mlmodelc and EntityTagging_FamilyAndFriends.mlmodelc, use 144 behavioral and photographic features to classify family and friend relationships with daily updates in entityTagging.db. An embedded LLM and embedding models further label unnamed faces and infer relationships from message text when Apple Intelligence is enabled. The graph remains queryable locally and is designed to feed personalized AI features while operating entirely on-device under Full Disk Access protections.
Breaking the Ice: Claude AI Maps TSPU Deep Packet Inspection and Censorship Bypass Methods in Russia
An analysis conducted by Claude AI examines the current state of Russia's TSPU censorship infrastructure as of November 2026, based on real-world testing from the Rostelecom network. The report details how DPI equipment blocks traffic by IP addresses, SNI inspection, protocol signatures, and active probing, with specific freezes occurring after approximately 16 KB on many foreign hosting providers. Multiple circumvention techniques are evaluated, including VLESS combined with Reality and XTLS Vision, cascaded connections through Russian entry nodes, and local tools such as zapret and GoodbyeDPI. The study highlights that large providers including Hetzner, OVH, Vultr, Scaleway, and AWS are heavily restricted, while alternatives like Leaseweb and certain academic networks remain functional. Recommendations emphasize using self-hosted domains with valid certificates, Reality-based masking, and regular IP testing to maintain connectivity. The article stresses that all information is presented strictly for research purposes.
Apple to Scan iCloud Photos and Files Shared via Public Links Starting with iOS 27.3
Apple announced that it will begin scanning content stored in iCloud when users share files or photos through public links. The feature activates with the release of iOS 27.3, iPadOS 27.3, macOS 27.3, and visionOS 27.3. Any file made accessible to anyone with the link will now be checked by Apple for malicious materials. This change effectively means that sharing via public links grants Apple visibility into the shared content for security purposes. The move aims to detect harmful files before they reach other users through shared links.
WhatsApp for Android Tests Long-Press Chat Preview to Avoid Read Receipts
WhatsApp is developing a feature for Android users that lets them preview and scroll through messages in a floating card without triggering blue read receipts. The capability was discovered by Android Authority researchers in beta version 2.26.44.12, where holding a chat opens a preview window containing the latest messages. Scrolling and reading inside this card does not send read notifications to the other party. The same long-press action also reveals an updated action menu with options to pin, archive, mute, mark unread, or delete the chat. On iOS, a similar preview exists but does not allow scrolling through messages. The feature remains in active development and is not yet available even to regular beta testers.